Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Athena
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
华国豪
Athena
Commits
8f037893
Commit
8f037893
authored
May 30, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增页面
parent
fd4815ae
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
1277 additions
and
69 deletions
+1277
-69
orderLins.png
src/assets/img/orderLins.png
+0
-0
huigou.png
src/assets/img/ticket/huigou.png
+0
-0
jfgz.png
src/assets/img/ticket/jfgz.png
+0
-0
newHead.css
src/assets/mall/newHead.css
+5
-0
IntegralDetail.vue
src/components/IntegralMall/IntegralDetail.vue
+256
-0
IntegralMall.vue
src/components/IntegralMall/IntegralMall.vue
+16
-3
OrderCompleted.vue
src/components/IntegralMall/OrderCompleted.vue
+182
-0
OrderdetailsCompleted.vue
src/components/IntegralMall/OrderdetailsCompleted.vue
+277
-0
myPointOrder.vue
src/components/IntegralMall/myPointOrder.vue
+391
-0
commodity.vue
...components/newPersonalCenter/integral/model/commodity.vue
+64
-40
integralHomeV2.vue
...nents/newPersonalCenter/integral/model/integralHomeV2.vue
+50
-25
newPersonalCenter.vue
src/components/newPersonalCenter/newPersonalCenter.vue
+1
-1
main.js
src/main.js
+3
-0
router.js
src/router.js
+32
-0
No files found.
src/assets/img/orderLins.png
0 → 100644
View file @
8f037893
713 Bytes
src/assets/img/ticket/huigou.png
0 → 100644
View file @
8f037893
494 Bytes
src/assets/img/ticket/jfgz.png
0 → 100644
View file @
8f037893
553 Bytes
src/assets/mall/newHead.css
View file @
8f037893
...
...
@@ -12,6 +12,11 @@ ul,li{list-style: none;}
width
:
1180px
!important
;
margin
:
0
auto
;
}
.w1200
{
width
:
1200px
!important
;
margin
:
0
auto
;
}
.w85
{
width
:
85px
!important
;
}
...
...
src/components/IntegralMall/IntegralDetail.vue
0 → 100644
View file @
8f037893
<
style
>
.IntegralDetail
{
background-color
:
#f5f5f5
;
padding-bottom
:
20px
;
}
.IntegralDetail
.breadcrumb
{
padding
:
20px
0
;
}
.IntegralDetail
.pd_top_info
{
height
:
554px
;
}
.IntegralDetail
.Ingegra_Top
{
width
:
100%
;
height
:
70px
;
line-height
:
70px
;
}
.IntegralDetail
.Integra_Content
{
width
:
100%
;
height
:
auto
;
background-color
:
#fff
;
margin-left
:
20px
;
}
.IntegralDetail
.Integra_left
{
float
:
left
;
width
:
250px
;
font-size
:
16px
;
color
:
#333333
;
font-weight
:
bold
;
margin-left
:
20px
;
}
.IntegralDetail
.Integra_right
{
float
:
right
;
color
:
#FFA835
;
font-size
:
12px
;
margin-right
:
20px
;
}
.IntegralDetail
.Integra_right
img
{
position
:
relative
;
top
:
2px
;
left
:
-5px
;
width
:
14px
;
}
.IntegralDetail
.IngegraTable
{
width
:
96%
;
border-collapse
:
collapse
;
font-size
:
14px
;
margin
:
auto
;
}
.IntegralDetail
.IngegraTable
th
{
background-color
:
#F8F8F8
;
height
:
40px
;
font-size
:
12px
;
color
:
#666666
;
}
.IntegralDetail
.IngegraTable
td
{
padding
:
18px
;
background-color
:
#fff
;
text-align
:
center
;
color
:
#666666
;
border-bottom
:
1px
solid
#E9E9E9
;
font-size
:
12px
;
}
.IntegralDetail
.IngegraTable
tr
:hover
td
{
background-color
:
#FFF0F0
;
}
.IntegralDetail
.pointOrderTime
{
color
:
#999999
;
}
.IntegralDetail
.pointOrderNum
{
color
:
#333333
}
.IntegralDetail
.pointOrderTitle
{
margin-left
:
30px
;
color
:
#666666
;
}
.IntegralDetail
.pointDetailBtn
{
width
:
64px
;
height
:
24px
;
color
:
#fff
;
outline
:
none
;
border
:
none
;
background-color
:
#EE4454
;
border-radius
:
4px
;
margin-bottom
:
10px
;
cursor
:
pointer
;
font-size
:
12px
;
}
.IntegralDetail
.pointCancelBtn
{
width
:
64px
;
height
:
24px
;
outline
:
none
;
color
:
#666666
;
background-color
:
transparent
;
border
:
1px
solid
rgba
(
102
,
102
,
102
,
1
);
border-radius
:
4px
;
cursor
:
pointer
;
font-size
:
12px
;
}
.IntegralDetail
.po_info
{
display
:
flex
;
align-items
:
center
;
}
.IntegralDetail
.po_left
{
width
:
70px
;
height
:
70px
;
background-color
:
#fff
;
margin-right
:
10px
;
border
:
1px
solid
#ECECEC
;
display
:
inline-block
;
}
.IntegralDetail
.po_right
{
color
:
#666666
;
font-size
:
14px
;
display
:
inline-block
;
width
:
220px
;
text-align
:
left
;
}
.IntegralDetail
.po_type
{
width
:
80px
;
text-align
:
left
;
margin
:
auto
;
color
:
#333333
;
}
/* 分页样式 */
.IntegralDetail
._pagination
{
height
:
45px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
flex-end
;
margin-right
:
15px
;
}
.IntegralDetail
.el-pagination
.btn-next
,
.IntegralDetail
.el-pagination
.btn-prev
{
width
:
40px
!important
;
height
:
20px
!important
;
border
:
1px
solid
rgba
(
238
,
68
,
84
,
1
);
border-radius
:
10px
;
color
:
#f56c6c
;
}
.IntegralDetail
.el-pagination
{
display
:
flex
;
align-items
:
center
;
}
.IntegralDetail
.el-pager
li
{
background
:
transparent
;
font-weight
:
initial
;
}
.IntegralDetail
.el-pager
li
.active
{
color
:
#f56c6c
;
}
.IntegralDetail
.Integral_InOut
{
color
:
#FF0101
!important
;
}
</
style
>
<
template
>
<el-row
class=
"IntegralDetail"
>
<div
class=
"w1200"
>
<el-row>
<el-breadcrumb
separator-class=
"el-icon-arrow-right"
class=
"breadcrumb"
>
<el-breadcrumb-item
:to=
"
{ path: '/IntegralMall' }">积分商城
</el-breadcrumb-item>
<el-breadcrumb-item>
积分明细
</el-breadcrumb-item>
</el-breadcrumb>
</el-row>
<el-row
class=
"pd_bottom_detail"
>
<el-col
:span=
"5"
>
<detailsLeftHot/>
</el-col>
<el-col
:span=
"19"
>
<el-row>
<div
class=
"Integra_Content"
>
<div
class=
"Ingegra_Top clearfix"
>
<div
class=
"Integra_left"
>
积分明细
</div>
<div
class=
"Integra_right"
>
<img
src=
"../../assets/img/ticket/jfgz.png"
alt=
""
/>
查看积分规则
</div>
</div>
<table
class=
"IngegraTable"
>
<tr>
<th>
日期
</th>
<th>
收入/支出
</th>
<th>
详细说明
</th>
</tr>
<tr
v-for=
"item in dataList"
>
<td>
{{
item
.
createTime
|
YMDHMS
}}
</td>
<td>
<span
v-if=
"item.integralNum>0"
class=
"Integral_InOut"
>
+
{{
item
.
integralNum
}}
</span>
<span
v-else
>
{{
item
.
integralNum
}}
</span>
</td>
<td>
{{
item
.
integralDescri
}}
</td>
</tr>
</table>
<div
class=
"empty-data"
v-if=
"dataList.length==0"
>
<i
class=
"iconfont icon-kong"
></i>
很抱歉,你想要的信息我们真的找不到了
</div>
<!-- 分页 -->
<el-row
class=
"_pagination"
v-if=
"totalCount > 1 && dataList.length>0"
>
<el-pagination
:current-page
.
sync=
"currentPage"
:page-size=
"msg.pageSize"
layout=
"total, prev, pager, next"
:total=
"Count"
@
current-change=
"handleCurrentChange"
></el-pagination>
</el-row>
</div>
</el-row>
</el-col>
</el-row>
</div>
</el-row>
</
template
>
<
script
>
import
detailsLeftHot
from
'@/components/IntegralMall/block/detailsLeftHot'
export
default
{
components
:{
detailsLeftHot
},
data
(){
return
{
currentPage
:
1
,
totalCount
:
0
,
Count
:
1
,
msg
:
{
pageIndex
:
1
,
pageSize
:
10
,
},
dataList
:[]
}
},
methods
:{
handleCurrentChange
(
val
)
{
// 翻页
this
.
msg
.
pageIndex
=
parseInt
(
val
);
this
.
getList
();
},
goUrl
:
function
(
path
)
{
this
.
$router
.
push
({
name
:
path
});
},
getList
(){
this
.
apiJavaPost
(
'/api/orderForm/integralDetail'
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
totalCount
=
res
.
data
.
data
.
pageCount
;
this
.
Count
=
res
.
data
.
data
.
count
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
)
},
},
mounted
(){
this
.
getList
();
}
}
</
script
>
src/components/IntegralMall/IntegralMall.vue
View file @
8f037893
...
...
@@ -35,7 +35,7 @@
<p>
热门精品推荐
</p>
</div>
</el-row>
<commodity/>
<commodity
v-bind:message=
"dataList[0].list"
/>
</div>
<div
class=
"_block"
>
<el-row
class=
"tit"
>
...
...
@@ -76,6 +76,7 @@ export default {
data
(){
return
{
ClassifyGoodsList
:
[],
dataList
:[]
}
},
methods
:
{
getClassifyGoods
:
function
()
{
...
...
@@ -91,10 +92,22 @@ export default {
},
null
);
}
},
//获取活动分类展示
getActivesList
(){
this
.
apiJavaPost
(
'/api/goodsMarket/getActivityClassifyGoods'
,{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
dataList
=
res
.
data
.
data
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
)
},
},
mounted
()
{
this
.
getClassifyGoods
()
this
.
getClassifyGoods
();
this
.
getActivesList
();
}
}
</
script
>
src/components/IntegralMall/OrderCompleted.vue
0 → 100644
View file @
8f037893
<
style
>
.OrderCompleted
{
background-color
:
#f5f5f5
;
padding-bottom
:
20px
;
}
.OrderCompleted
.OC_top
{
width
:
1090px
;
height
:
auto
;
font-size
:
12px
;
margin
:
auto
;
padding
:
30px
0
;
position
:
relative
;
}
.OrderCompleted
.OC_TopLeft
{
width
:
60px
;
display
:
inline-block
;
text-align
:
center
;
}
.OrderCompleted
.O_radius
{
width
:
26px
;
height
:
26px
;
background-color
:
#EE4454
;
border-radius
:
50%
;
color
:
#fff
;
text-align
:
center
;
line-height
:
26px
;
margin
:
9px
auto
;
}
.OrderCompleted
.OC_Line
{
width
:
1004px
;
height
:
3px
;
background-color
:
#EE4454
;
display
:
inline-block
;
position
:
relative
;
top
:
-33px
;
left
:
-17px
;
}
.OrderCompleted
.OC_TopRight
{
width
:
60px
;
position
:
absolute
;
right
:
0
;
top
:
30px
;
text-align
:
center
;
}
.OrderCompleted
.OC_content
{
width
:
100%
;
height
:
400px
;
border
:
1px
solid
#ECECEC
;
background-color
:
#fff
;
}
.OrderCompleted
.OC_ConLeft
{
display
:
inline-block
;
margin
:
62px
0
0
200px
;
width
:
378px
;
}
.OrderCompleted
.OC_ConTop
img
{
float
:
left
;
}
.OrderCompleted
.OC_riContent
{
float
:
left
;
margin-left
:
20px
;
}
.OrderCompleted
.OC_paySuccsss
{
font-size
:
24px
;
font-weight
:
bold
;
color
:
#333333
;
}
.OrderCompleted
.Order_more
{
color
:
#EE4454
;
text-decoration
:
underline
;
cursor
:
pointer
;
}
.OrderCompleted
.OC_dianhua
{
font-size
:
12px
;
margin-top
:
10px
;
}
.OrderCompleted
.OC_btmList
{
width
:
320px
;
margin-top
:
63px
;
font-size
:
12px
;
color
:
#333333
;
}
.OrderCompleted
.OC_btmList
>
div
{
width
:
100%
;
height
:
40px
;
line-height
:
40px
;
border-bottom
:
1px
solid
#DDDDDD
;
}
.OrderCompleted
.OC_jishu
{
width
:
58%
;
}
.OrderCompleted
.OC_jifen
{
display
:
inline-block
;
}
.OrderCompleted
.OC_backBtn
{
width
:
87px
;
height
:
28px
;
color
:
#fff
;
outline
:
none
;
border
:
none
;
margin-top
:
45px
;
background-color
:
#EE4454
;
border-radius
:
4px
;
cursor
:
pointer
;
font-size
:
12px
;
}
.OrderCompleted
.OC_rightImg
{
display
:
inline-block
;
width
:
354px
;
height
:
289px
;
margin-left
:
70px
;
}
.OrderCompleted
.OC_rightImg
img
{
width
:
100%
;
}
</
style
>
<
template
>
<!-- 积分明细 -->
<div
class=
"OrderCompleted"
>
<div
class=
"w1200"
>
<div
class=
"OC_top"
>
<div
class=
"OC_TopLeft"
>
<div
class=
"O_radius"
>
1
</div>
确认订单
</div>
<div
class=
"OC_Line"
></div>
<div
class=
"OC_TopRight"
>
<div
class=
"O_radius"
>
2
</div>
订单完成
</div>
</div>
<div
class=
"OC_content"
>
<div
class=
"OC_ConLeft"
>
<div
class=
"OC_ConTop clearfix"
>
<img
src=
"../../assets/img/ticket/icons8-tick-box-96.png"
alt=
""
/>
<div
class=
"OC_riContent"
>
<div
class=
"OC_paySuccsss"
>
支付成功!
</div>
<div
class=
"OC_dianhua"
>
如有任何疑问可致电028-56540254,点击
<span
class=
"Order_more"
>
查看订单>>
</span></div>
</div>
</div>
<div
class=
"OC_btmList"
>
<div>
<div
class=
"OC_jifen OC_jishu"
>
支付积分:¥9900
</div>
<div
class=
"OC_jifen"
>
剩余积分:¥190010
</div>
</div>
<div>
<div
class=
"OC_jifen OC_jishu"
>
订单编号:45612312321
</div>
<div
class=
"OC_jifen"
>
下单时间:2019-02-21
</div>
</div>
</div>
<input
type=
"button"
value=
"返回积分商城"
class=
"OC_backBtn"
/>
</div>
<div
class=
"OC_rightImg"
>
<img
src=
"../../assets/img/ticket/back.png"
alt=
""
/>
</div>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
components
:
{
},
props
:{},
data
(){
return
{
}
},
methods
:
{
}
}
</
script
>
src/components/IntegralMall/OrderdetailsCompleted.vue
0 → 100644
View file @
8f037893
<
style
>
.OrderdetailCompleted
{
background-color
:
#f5f5f5
}
.OrderdetailCompleted
.breadcrumb
{
padding
:
20px
0
;
}
.Order_Top
{
width
:
100%
;
height
:
300px
;
border
:
1px
solid
#ECECEC
;
background-color
:
#fff
;
border-top
:
4px
solid
#F2DADA
;
}
.Order_Top_left
{
display
:
inline-block
;
width
:
326px
;
height
:
100%
;
border-right
:
1px
solid
#ECECEC
;
text-align
:
center
;
font-size
:
12px
;
color
:
#666666
;
}
.Order_Top_right
{
font-size
:
12px
;
color
:
#333333
;
float
:
right
;
margin
:
120px
25px
0
0
;
}
.Order_Complate
{
margin-top
:
109px
;
}
.Order_Complate
span
{
position
:
relative
;
top
:
-18px
;
margin-left
:
20px
;
color
:
#4CAF50
;
font-size
:
24px
;
font-weight
:
bold
;
}
.Order_jifen
{
margin
:
20px
0
;
}
.Submit_Orders
i
{
display
:
block
;
font-size
:
25px
;
color
:
#4CAF50
;
margin-bottom
:
10px
;
}
.Submit_Orders
{
width
:
80px
;
display
:
inline-block
;
text-align
:
center
;
}
.SubmitComLine
{
display
:
inline-block
;
position
:
relative
;
top
:
-28px
;
}
.Submit_Orders
img
{
width
:
22px
;
position
:
relative
;
top
:
-8px
;
}
.OrderdetailCompleted
.myPointTable
{
width
:
100%
;
border
:
solid
1px
#EDEDED
;
border-collapse
:
collapse
;
font-size
:
14px
;
margin
:
20px
0
;
}
.OrderdetailCompleted
.myPointTable
td
{
padding
:
17px
15px
;
background-color
:
#fff
;
color
:
#333333
;
border
:
1px
solid
#ECECEC
;
font-size
:
12px
;
}
.OrderdetailCompleted
.pointOrderTime
{
color
:
#999999
;
}
.OrderdetailCompleted
.pointOrderNum
{
color
:
#333333
}
.OrderdetailCompleted
.pointOrderTitle
{
margin-left
:
30px
;
color
:
#666666
;
}
.OrderdetailCompleted
.po_info
{
display
:
flex
;
align-items
:
center
;
}
.OrderdetailCompleted
.po_left
{
width
:
70px
;
height
:
70px
;
background-color
:
#fff
;
margin-right
:
10px
;
border
:
1px
solid
#ECECEC
;
display
:
inline-block
;
}
.OrderdetailCompleted
.po_right
{
color
:
#666666
;
font-size
:
14px
;
display
:
inline-block
;
width
:
220px
;
text-align
:
left
;
}
.OrderdetailCompleted
.pointCancelBtn
{
width
:
64px
;
height
:
24px
;
outline
:
none
;
color
:
#666666
;
background-color
:
transparent
;
border
:
1px
solid
rgba
(
102
,
102
,
102
,
1
);
border-radius
:
4px
;
cursor
:
pointer
;
font-size
:
12px
;
}
.OrderShouContent
{
font-size
:
12px
;
color
:
#333333
;
margin-left
:
20px
;
}
.Order_left
,
.Order_right
{
display
:
inline-block
;
vertical-align
:
top
;
}
.Order_right
{
margin-left
:
20px
;
text-align
:
left
;
}
.Order_right
div
{
margin-bottom
:
5px
;
}
.Order_more
{
color
:
#EE4454
;
text-decoration
:
underline
;
cursor
:
pointer
;
}
</
style
>
<
template
>
<el-row
class=
"OrderdetailCompleted"
>
<div
class=
"w1200"
>
<el-row>
<el-breadcrumb
separator-class=
"el-icon-arrow-right"
class=
"breadcrumb"
>
<el-breadcrumb-item
:to=
"
{ path: '/IntegralMall' }">积分商城
</el-breadcrumb-item>
<el-breadcrumb-item
:to=
"
{ path: '/myPointOrder' }">我的订单
</el-breadcrumb-item>
<el-breadcrumb-item>
订单详情
</el-breadcrumb-item>
</el-breadcrumb>
</el-row>
<div
class=
"OrderContent"
>
<div
class=
"Order_Top"
>
<div
class=
"Order_Top_left"
>
<div
class=
"Order_Complate"
>
<img
src=
"../../assets/img/ticket/icons8-tick-box-96.png"
alt=
""
/>
<span>
完成
</span>
</div>
<div
class=
"Order_jifen"
>
支付积分:¥9900
</div>
<div>
剩余积分:¥190010
</div>
</div>
<div
class=
"Order_Top_right"
>
<div
class=
"Submit_Orders"
>
<i
class=
"iconfont icon-order_icon"
/>
提交订单
</div>
<div
class=
"SubmitComLine"
>
<img
src=
"../../assets/img/orderLins.png"
alt=
""
/>
</div>
<div
class=
"Submit_Orders"
>
<i
class=
"iconfont icon-xunhuan"
/>
确认兑换
</div>
<div
class=
"SubmitComLine"
>
<img
src=
"../../assets/img/orderLins.png"
alt=
""
/>
</div>
<div
class=
"Submit_Orders"
>
<i
class=
"iconfont icon-gerenzhongxindingdandaishouhuo"
/>
确认兑换
</div>
<div
class=
"SubmitComLine"
>
<img
src=
"../../assets/img/orderLins.png"
alt=
""
/>
</div>
<div
class=
"Submit_Orders"
>
<!--
<div><img
src=
"../../assets/img/ticket/icons8-tick-box-96.png"
alt=
""
/></div>
-->
<div><img
src=
"../../assets/img/ticket/huigou.png"
alt=
""
/></div>
订单完成
</div>
</div>
</div>
<table
class=
"myPointTable"
>
<tr>
<td
colspan=
"3"
>
<span
class=
"pointOrderTime"
>
2019-04-28 08:25:23
</span>
<span
class=
"pointOrderTitle"
>
订单号:
</span><span
class=
"pointOrderNum"
>
451648
</span>
</td>
</tr>
<tr>
<td
width=
"325px"
>
<div
class=
"po_info"
>
<div
class=
"po_left"
>
</div>
<div
class=
"po_right"
>
天空大容量抽绳化妆包+防水防潮+便携耐用 暗兜设计
</div>
</div>
</td>
<td>
<div
class=
"OrderShouContent"
v-if=
"index
<num
"
v-for=
"(item,index) in data"
>
<div
class=
"Order_left"
>
{{
item
.
time
}}
</div>
<div
class=
"Order_right"
>
<div
v-for=
"(subItem,subIndex) in item.list"
>
{{
subItem
}}
<span
@
click=
"DataLength(1)"
v-if=
"num==1&&data.length>1&&subIndex==item.list.length-1"
class=
"Order_more"
>
查看更多>>
</span>
<span
@
click=
"DataLength(2)"
v-if=
"num>1&&index==data.length-1&&subIndex==item.list.length-1"
class=
"Order_more"
>
收起>>
</span>
</div>
</div>
</div>
</td>
<td
width=
"132px"
style=
"text-align:center;"
>
<input
type=
"button"
class=
"pointCancelBtn"
value=
"取消订单"
>
</td>
</tr>
</table>
</div>
</div>
</el-row>
</
template
>
<
script
>
export
default
{
data
(){
return
{
num
:
1
,
data
:[
{
time
:
"2019-08-08"
,
list
:[
"09:26:17包裹正在等待收货"
,
"09:26:17包裹正在等待收货"
,
"09:26:17包裹正在等待收货"
,
"09:26:17包裹正在等待收货"
,
]
},
{
time
:
"2019-08-09"
,
list
:[
"09:26:17包裹正在等待收货"
,
"09:26:17包裹正在等待收货"
,
"09:26:17包裹正在等待收货"
,
"09:26:17包裹正在等待收货"
,
]
}
]
}
},
methods
:{
DataLength
(
num
){
if
(
num
==
2
){
this
.
num
=
1
;
}
else
{
this
.
num
=
this
.
data
.
length
;
console
.
log
(
"this.num"
,
this
.
num
)
}
}
},
mounted
(){
}
}
</
script
>
src/components/IntegralMall/myPointOrder.vue
0 → 100644
View file @
8f037893
This diff is collapsed.
Click to expand it.
src/components/newPersonalCenter/integral/model/commodity.vue
View file @
8f037893
...
...
@@ -7,7 +7,6 @@
padding
:
26px
;
text-align
:
center
;
border-left
:
1px
solid
rgba
(
236
,
236
,
236
,
1
);
border-right
:
1px
solid
rgba
(
236
,
236
,
236
,
1
);
font-size
:
14px
;
color
:
#333333
;
}
...
...
@@ -19,17 +18,23 @@
}
.commodity
.small
{
text-align
:
center
;
padding
:
20px
10px
;
border-right
:
1px
solid
rgba
(
236
,
236
,
236
,
1
);
border-bottom
:
1px
solid
rgba
(
236
,
236
,
236
,
1
);
font-size
:
14px
;
color
:
#333333
;
width
:
229px
;
height
:
241px
;
cursor
:
pointer
;
}
.commodity
.small
:last-child
{
width
:
230px
;
}
.commodity
.small
img
{
max-height
:
110px
;
margin
:
15px
0
;
}
.commodity
.small
._name
{
margin
:
5px
0
1
5
px
0
;
margin
:
5px
0
1
0
px
0
;
}
.commodity
.small
._detais
{
color
:
#999999
;
...
...
@@ -51,56 +56,56 @@
.commodity
.medium
._detais
{
color
:
#999999
;
}
.com_bigImg
{
max-width
:
357px
;
}
.medium
{
width
:
344px
;
height
:
240px
;
cursor
:
pointer
;
}
.com_BigDiv
{
min-height
:
480px
;
border-right
:
1px
solid
#ECECEC
;
}
.commodity
.r_item_img_box
{
min-height
:
175px
;
}
.r_item_btmBox
{
min-height
:
135px
;
}
</
style
>
<
template
>
<el-row
class=
"commodity"
>
<el-col
:span=
"10"
>
<div
class=
"info"
>
<el-col
:span=
"10"
class=
"com_BigDiv"
>
<div
class=
"info"
v-if=
"index==0"
v-for=
"(item,index) in message"
>
<div>
<img
src=
"../../../../assets/img/img-01.png
"
alt
>
<img
class=
"com_bigImg"
:src=
"getImgUrl(message[0].Images)
"
alt
>
</div>
<p
class=
"_name"
>
出行必备物品
</p>
<p
class=
"_detais"
>
699
积分抢兑
</p>
<p
class=
"_name"
>
{{
message
[
0
].
name
}}
</p>
<p
class=
"_detais"
>
{{
message
[
0
].
Price
}}
积分抢兑
</p>
</div>
</el-col>
<el-col
:span=
"14"
>
<el-row>
<el-col
:span=
"8"
class=
"small"
>
<div>
<img
src=
"../../../../assets/img/img-01.png"
alt
>
<el-col
:span=
"8"
class=
"small"
v-if=
"index>0&&index
<4
"
v-for=
"(item,index) in message"
>
<div
@
click=
"goDetail(item.Id)"
>
<div
class=
"r_item_img_box"
>
<img
:src=
"getImgUrl(item.Images)"
alt
>
</div>
<p
class=
"_name"
>
{{
item
.
name
}}
</p>
<p
class=
"_detais"
v-if=
"item.Price!=''"
>
{{
item
.
Price
}}
积分抢兑
</p>
</div>
<p
class=
"_name"
>
出行必备物品
</p>
<p
class=
"_detais"
>
699积分抢兑
</p>
</el-col>
<el-col
:span=
"8"
class=
"small"
>
<div>
<img
src=
"../../../../assets/img/img-01.png"
alt
>
</div>
<p
class=
"_name"
>
出行必备物品
</p>
<p
class=
"_detais"
>
699积分抢兑
</p>
</el-col>
<el-col
:span=
"8"
class=
"small"
>
<div>
<img
src=
"../../../../assets/img/img-01.png"
alt
>
</div>
<p
class=
"_name"
>
出行必备物品
</p>
<p
class=
"_detais"
>
699积分抢兑
</p>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
class=
"medium f"
>
<div>
<img
src=
"../../../../assets/img/img-01.png"
alt
>
<el-col
:span=
"12"
class=
"medium f"
v-if=
"index>3"
v-for=
"(item,index) in message"
>
<div
@
click=
"goDetail(item.Id)"
>
<div
class=
"r_item_btmBox"
>
<img
:src=
"getImgUrl(item.Images)"
alt
>
</div>
<p
class=
"_name"
>
{{
item
.
name
}}
</p>
<p
class=
"_detais"
v-if=
"item.Price!=''"
>
{{
item
.
Price
}}
积分抢兑
</p>
</div>
<p
class=
"_name"
>
出行必备物品
</p>
<p
class=
"_detais"
>
699积分抢兑
</p>
</el-col>
<el-col
:span=
"12"
class=
"medium"
>
<div>
<img
src=
"../../../../assets/img/img-01.png"
alt
>
</div>
<p
class=
"_name"
>
出行必备物品
</p>
<p
class=
"_detais"
>
699积分抢兑
</p>
</el-col>
</el-row>
</el-col>
...
...
@@ -108,5 +113,24 @@
</
template
>
<
script
>
export
default
{};
export
default
{
props
:[
"message"
],
data
(){
return
{
}
},
methods
:{
getImgUrl
(
imgUrl
){
var
url
=
imgUrl
.
split
(
","
)[
0
];
return
url
;
},
//跳转详情页面
goDetail
:
function
(
id
)
{
this
.
$router
.
push
({
path
:
'productDetail'
,
query
:
{
id
:
id
}})
},
},
mounted
(){
console
.
log
(
this
.
message
,
'messagess'
);
}
};
</
script
>
src/components/newPersonalCenter/integral/model/integralHomeV2.vue
View file @
8f037893
...
...
@@ -166,7 +166,7 @@
<el-col
:span=
"6"
>
<div>
<div>
<p
class=
"font_bla"
>
我的积分订单
</p>
<p
class=
"font_bla"
@
click=
"goUrl('myPointOrder')"
>
我的积分订单
</p>
<p>
会员积分兑
</p>
</div>
<div>
...
...
@@ -176,32 +176,15 @@
</el-col>
</el-row>
<!-- class -->
<el-row
class=
"class"
>
<el-row
class=
"tit"
>
<div>
<img
src=
"../../../../assets/img/ps/jifenhot.png"
alt=
""
>
<p>
热门精品推荐
</p>
</div>
</el-row>
<Vcommodity/>
</el-row>
<el-row
class=
"class"
>
<el-row
class=
"class"
v-for=
"item in dataList"
>
<el-row
class=
"tit"
>
<div>
<img
src=
"../../../../assets/img/ps/jifenchou.png"
alt=
""
>
<p>
积分抽大奖
</p>
<!--
<img
src=
"../../../../assets/img/ps/jifenhot.png"
alt=
""
>
-->
<img
:src=
"item.activityImg"
alt=
""
>
<p>
{{
item
.
activityName
}}
</p>
</div>
</el-row>
<Vcommodity/>
</el-row>
<el-row
class=
"class"
>
<el-row
class=
"tit"
>
<div>
<img
src=
"../../../../assets/img/ps/jifenli.png"
alt=
""
>
<p>
999积分享好礼
</p>
</div>
</el-row>
<Vcommodity/>
<Vcommodity
v-bind:message=
"item.list"
/>
</el-row>
<el-row
class=
"advert"
:gutter=
"20"
>
<el-col
:span=
"12"
>
...
...
@@ -247,7 +230,8 @@ export default {
data
(){
return
{
StorageInfo
:
{},
list
:
[
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
]
list
:
[
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
],
dataList
:[],
}
},
created
(){
...
...
@@ -256,9 +240,50 @@ export default {
},
methods
:{
goExchange
:
function
(){
this
.
MsgBus
.
$emit
(
'goCPage'
,
'4-3'
)
},
goUrl
:
function
(
path
)
{
this
.
$router
.
push
({
name
:
path
});
},
//获取活动分类展示
getActivesList
(){
this
.
apiJavaPost
(
'/api/goodsMarket/getActivityClassifyGoods'
,{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
dataList
=
res
.
data
.
data
;
console
.
log
(
this
.
dataList
,
'sssssss'
);
var
num
=
0
;
this
.
dataList
.
forEach
(
x
=>
{
if
(
x
.
list
.
length
<
6
){
num
=
6
-
x
.
list
.
length
;
}
var
obj
=
{
Description
:
''
,
Id
:
''
,
Images
:
''
,
Price
:
''
,
activityId
:
''
,
activityImg
:
''
,
activityName
:
''
,
name
:
''
}
for
(
var
i
=
0
;
i
<
num
;
i
++
){
x
.
list
.
push
(
obj
);
}
})
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
)
},
//获取积分
getScore
(){
this
.
apiJavaPost
(
'/api/orderForm/getTotalIntegrals'
,{},
res
=>
{
console
.
log
(
res
,
'ressss'
);
});
}
},
mounted
(){
this
.
getScore
();
this
.
getActivesList
();
}
}
</
script
>
src/components/newPersonalCenter/newPersonalCenter.vue
View file @
8f037893
...
...
@@ -87,7 +87,7 @@
<span>
我的积分
</span>
</
template
>
<el-menu-item
index=
"4-1"
@
click=
"goUrl('integral')"
>
积分首页
</el-menu-item>
<el-menu-item
index=
"4-2"
@
click=
"clickMenu('4-2
')"
>
积分明细
</el-menu-item>
<el-menu-item
index=
"4-2"
@
click=
"goUrl('IntegralDetail
')"
>
积分明细
</el-menu-item>
<el-menu-item
index=
"4-3"
@
click=
"clickMenu('4-3')"
>
我的兑换
</el-menu-item>
</el-submenu>
<el-menu-item
index=
"5"
@
click=
"clickMenu('5')"
>
...
...
src/main.js
View file @
8f037893
...
...
@@ -137,6 +137,9 @@ Vue.filter("YMD", function (date) {
Vue
.
filter
(
"MD"
,
function
(
date
)
{
return
moment
(
date
).
format
(
"MM月DD日"
);
})
Vue
.
filter
(
"YMDHMS"
,
function
(
date
)
{
return
moment
(
date
).
format
(
"YYYY-MM-DD HH:mm:ss"
);
})
Vue
.
prototype
.
random_string
=
function
(
len
)
{
len
=
len
||
32
;
var
chars
=
'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678'
;
...
...
src/router.js
View file @
8f037893
...
...
@@ -192,6 +192,38 @@ export default new Router({
title
:
"订单确认-印象之旅~感动与世界同步"
}
},
{
path
:
"/myPointOrder"
,
//个人中心-我的积分订单
name
:
"myPointOrder"
,
component
:
resolve
=>
require
([
"@/components/IntegralMall/myPointOrder"
],
resolve
),
meta
:
{
title
:
"订单确认-印象之旅~感动与世界同步"
}
},
{
path
:
"/OrderdetailsCompleted"
,
//个人中心-订单完成详情
name
:
"OrderdetailsCompleted"
,
component
:
resolve
=>
require
([
"@/components/IntegralMall/OrderdetailsCompleted"
],
resolve
),
meta
:
{
title
:
"订单确认-印象之旅~感动与世界同步"
}
},
{
path
:
"/IntegralDetail"
,
//个人中心-积分明细
name
:
"IntegralDetail"
,
component
:
resolve
=>
require
([
"@/components/IntegralMall/IntegralDetail"
],
resolve
),
meta
:
{
title
:
"订单确认-印象之旅~感动与世界同步"
}
},
{
path
:
"/OrderCompleted"
,
//个人中心-订单完成
name
:
"OrderCompleted"
,
component
:
resolve
=>
require
([
"@/components/IntegralMall/OrderCompleted"
],
resolve
),
meta
:
{
title
:
"订单确认-印象之旅~感动与世界同步"
}
},
{
path
:
"/integral"
,
name
:
"integral"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment