Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
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
viitto
mallapp
Commits
f966f330
Commit
f966f330
authored
Jul 17, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
31ca577d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
76 additions
and
57 deletions
+76
-57
goodsaction.vue
pages/goods/components/goodsaction.vue
+4
-1
refunds-detail.vue
pages/order/after-sale/refunds-detail.vue
+5
-2
order-detail.vue
pages/order/order-detail.vue
+7
-3
user-center.vue
pages/user-center/user-center.vue
+60
-51
No files found.
pages/goods/components/goodsaction.vue
View file @
f966f330
...
...
@@ -66,7 +66,10 @@ export default {
this
.
btn2
.
background
=
this
.
mc
;
this
.
getfu
()
let
t
=
getCurrentPages
();
this
.
path
=
'/'
+
t
[
t
.
length
-
1
].
route
;
let
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
let
uid
=
u
.
UserId
?
u
.
UserId
:
0
;
this
.
path
=
'/'
+
t
[
t
.
length
-
1
].
route
+
"?id="
+
this
.
goodId
+
"&user_id="
+
uid
;
//console.log(t[t.length - 1]);
this
.
favorStatus
=
this
.
favorite
;
},
...
...
pages/order/after-sale/refunds-detail.vue
View file @
f966f330
...
...
@@ -95,7 +95,7 @@
<button
open-type=
"contact"
:send-message-title=
"d.OrderInfo.GoodsName"
:send-message-path=
"
path
"
:send-message-path=
"
'/pages/goods/goods?id=' + d.OrderInfo.GoodsId + '&user_id=' + uid
"
:send-message-img=
"d.OrderInfo.CoverImagePath"
:show-message-card=
"true"
>
...
...
@@ -299,6 +299,7 @@ export default {
expressName
:
""
,
},
currentStatus
:
0
,
uid
:
0
,
};
},
onLoad
(
option
)
{
...
...
@@ -313,7 +314,9 @@ export default {
}
this
.
init
();
let
t
=
getCurrentPages
();
this
.
path
=
"/"
+
t
[
t
.
length
-
1
].
route
;
let
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
uid
=
u
.
UserId
?
u
.
UserId
:
0
;
uni
.
setNavigationBarTitle
({
title
:
"售后详情"
,
});
...
...
pages/order/order-detail.vue
View file @
f966f330
...
...
@@ -132,7 +132,7 @@
<button
open-type=
"contact"
:send-message-title=
"x.GoodsName"
:send-message-path=
"
path
"
:send-message-path=
"
'/pages/goods/goods?id=' + x.GoodsId + '&user_id=' + uid
"
:send-message-img=
" x.CoverImagePath "
:show-message-card=
"true"
>
...
...
@@ -372,6 +372,7 @@ export default {
marginLeft
:
"20px"
,
padding
:
"0 30rpx"
,
},
path
:
""
,
scrollTop
:
0
,
recommend
:
[],
prevPage
:
""
,
...
...
@@ -395,6 +396,7 @@ export default {
showAfter
:
false
,
showModal
:
false
,
delivery_time
:
14
,
//时间
uid
:
0
,
};
},
onLoad
(
option
)
{
...
...
@@ -407,7 +409,9 @@ export default {
this
.
contentStyle
.
paddingTop
=
nav
.
top
+
44
+
"px"
;
this
.
delivery_time
=
uni
.
getStorageSync
(
'basedata'
)
?
uni
.
getStorageSync
(
'basedata'
).
mall
.
setting
.
delivery_time
:
14
;
let
p
=
getCurrentPages
();
let
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
uid
=
u
.
UserId
?
u
.
UserId
:
0
;
if
(
p
.
length
>
1
)
{
this
.
prevPage
=
p
[
p
.
length
-
2
].
route
;
...
...
@@ -421,7 +425,7 @@ export default {
},
goExpressHandler
(
express
,
no
,
id
)
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
"/pages/order/express?express="
+
express
+
...
...
pages/user-center/user-center.vue
View file @
f966f330
<
template
>
<view
class=
"userStyle"
>
<view
class=
"userBox"
:style=
"
{ 'margin-bottom': bottommargin }">
<view
:style=
"
{ 'background-image': 'url(' + (meueData.user_center.top_pic_url?meueData.user_center.top_pic_url:'') + ')', backgroundSize: '100% 330rpx' }" class="imgbg">
<view
:style=
"
{ 'background-image': 'url(' + (meueData.user_center.top_pic_url ? meueData.user_center.top_pic_url : '') + ')', backgroundSize: '100% 330rpx' }"
class="imgbg"
>
<view
style=
"display: flex;flex-direction: row;align-items: center;width: 100%;"
v-if=
"meueData.user_center.top_style == 1"
>
<u-avatar
:src=
"user_info.avatar"
size=
"140"
style=
"margin-left: 50rpx;"
></u-avatar>
<view
style=
"display: flex;flex-direction: column;justify-content: center;"
>
<Text
style=
"color: #FFF;margin-left: 20rpx;font-size: 36rpx;"
@
click=
"login(user_info)"
>
{{
user_info
.
nickname
?
user_info
.
nickname
:
'立即登录'
}}
</Text>
<view
class=
"member"
v-if=
'is_icon_members_grade==1'
>
<image
:src=
"meueData.user_center.top_pic_url"
mode=
'aspectFill'
style=
"width: 26px;height: 26px;border-radius: 13px;"
></image>
<Text
style=
'margin-right: 10px;'
>
{{
user_info
.
identity
.
level_name
!=
null
?
user_info
.
identity
.
level_name
:
'普通用户'
}}
</Text>
<view
class=
"member"
v-if=
"is_icon_members_grade == 1"
>
<image
:src=
"meueData.user_center.top_pic_url"
mode=
"aspectFill"
style=
"width: 26px;height: 26px;border-radius: 13px;"
></image>
<Text
style=
"margin-right: 10px;"
>
{{
user_info
.
identity
.
level_name
!=
null
?
user_info
.
identity
.
level_name
:
'普通用户'
}}
</Text>
</view>
</view>
</view>
<view
style=
"display: flex;flex-direction: column;align-items: center;"
v-if=
"meueData.user_center.top_style == 2"
>
<u-avatar
:src=
"user_info.avatar"
size=
"140"
></u-avatar>
<Text
style=
"color: #FFF;margin-left: 20rpx;font-size: 36rpx;"
@
click=
"login(user_info)"
>
{{
user_info
.
nickname
?
user_info
.
nickname
:
'立即登录'
}}
</Text>
<view
class=
"member"
v-if=
'is_icon_members_grade==1'
>
<image
:src=
"meueData.user_center.top_pic_url"
mode=
'aspectFill'
style=
"width: 26px;height: 26px;border-radius: 13px;"
></image>
<Text
style=
'margin-right: 10px;'
>
{{
user_info
.
identity
.
level_name
!=
null
?
user_info
.
identity
.
level_name
:
'普通用户'
}}
</Text>
<view
class=
"member"
v-if=
"is_icon_members_grade == 1"
>
<image
:src=
"meueData.user_center.top_pic_url"
mode=
"aspectFill"
style=
"width: 26px;height: 26px;border-radius: 13px;"
></image>
<Text
style=
"margin-right: 10px;"
>
{{
user_info
.
identity
.
level_name
!=
null
?
user_info
.
identity
.
level_name
:
'普通用户'
}}
</Text>
</view>
</view>
<view
class=
"ReceiptAdder"
@
click=
"goUrl('/pages/address/address')"
:style=
"
{ background: mainColor }">
...
...
@@ -45,15 +47,15 @@
</view>
<view
class=
"account_bar"
v-if=
"meueData.user_center.is_account_status == 1"
>
<view
class=
"account_bar_item"
v-for=
"(item,index) in meueData.user_center.account"
@
click=
"goUrl(item.link_url)"
:key=
"index"
>
<view
class=
"account_bar_item"
v-for=
"(item,
index) in meueData.user_center.account"
@
click=
"goUrl(item.link_url)"
:key=
"index"
>
<!-- 优惠券 -->
<Text
:style=
"
{ color: secondary }" v-if="item.link_url
=='/pages/coupon/index/index'">
{{
user_info
.
coupon
}}
</Text>
<Text
:style=
"
{ color: secondary }" v-if="item.link_url
== '/pages/coupon/index/index'">
{{
user_info
.
coupon
}}
</Text>
<!-- 积分 -->
<Text
:style=
"
{ color: secondary }" v-if="item.link_url
=='/pages/user-center/integral-detail/integral-detail'">
{{
user_info
.
integral
}}
</Text>
<Text
:style=
"
{ color: secondary }" v-if="item.link_url
== '/pages/user-center/integral-detail/integral-detail'">
{{
user_info
.
integral
}}
</Text>
<!-- 余额 -->
<Text
:style=
"
{ color: secondary }" v-if="item.link_url
=='/pages/balance/balance'">
{{
user_info
.
balance
}}
</Text>
<!-- 卡券 -->
<Text
:style=
"
{ color: secondary }" v-if="item.link_url
=='/pages/card/index/index'">
{{
user_info
.
card
}}
</Text>
<Text
:style=
"
{ color: secondary }" v-if="item.link_url
== '/pages/balance/balance'">
{{
user_info
.
balance
}}
</Text>
<!-- 卡券 -->
<Text
:style=
"
{ color: secondary }" v-if="item.link_url
== '/pages/card/index/index'">
{{
user_info
.
card
}}
</Text>
<view
class=
"footprint_item_bottom"
>
<image
:src=
"item.icon_url"
style=
"width: 26rpx;height: 26rpx;"
></image>
<Text
style=
"margin-left: 10rpx;"
>
{{
item
.
name
}}
</Text>
...
...
@@ -69,15 +71,25 @@
<image
:src=
"item.icon_url"
style=
"width: 66rpx;height: 60rpx;"
></image>
<Text
style=
"margin-top: 10rpx;"
>
{{
item
.
name
}}
</Text>
<!-- 待付款 -->
<view
v-if=
"item.link_url =='/pages/order/index/index?status=1'&&user_info.MyOrder.NonPayment>0"
class=
"badge"
:style=
"
{ background: mainColor }">
{{
user_info
.
MyOrder
.
NonPayment
}}
</view>
<!-- 待发货 -->
<view
v-if=
"item.link_url =='/pages/order/index/index?status=2'&&user_info.MyOrder.WaitSendGoods>0"
class=
"badge"
:style=
"
{ background: mainColor }">
{{
user_info
.
MyOrder
.
WaitSendGoods
}}
</view>
<!-- 待收货 -->
<view
v-if=
"item.link_url =='/pages/order/index/index?status=3'&&user_info.MyOrder.WaitReceiving>0"
class=
"badge"
:style=
"
{ background: mainColor }">
{{
user_info
.
MyOrder
.
WaitReceiving
}}
</view>
<view
v-if=
"item.link_url == '/pages/order/index/index?status=1' && user_info.MyOrder.NonPayment > 0"
class=
"badge"
:style=
"
{ background: mainColor }">
{{
user_info
.
MyOrder
.
NonPayment
}}
</view>
<!-- 待发货 -->
<view
v-if=
"item.link_url == '/pages/order/index/index?status=2' && user_info.MyOrder.WaitSendGoods > 0"
class=
"badge"
:style=
"
{ background: mainColor }">
{{
user_info
.
MyOrder
.
WaitSendGoods
}}
</view>
<!-- 待收货 -->
<view
v-if=
"item.link_url == '/pages/order/index/index?status=3' && user_info.MyOrder.WaitReceiving > 0"
class=
"badge"
:style=
"
{ background: mainColor }">
{{
user_info
.
MyOrder
.
WaitReceiving
}}
</view>
<!-- 待评价 -->
<view
v-if=
"item.link_url =='/pages/order/index/index?status=4'&&user_info.MyOrder.WaitCommentNum>0"
class=
"badge"
:style=
"
{ background: mainColor }">
{{
user_info
.
MyOrder
.
WaitCommentNum
}}
</view>
<view
v-if=
"item.link_url == '/pages/order/index/index?status=4' && user_info.MyOrder.WaitCommentNum > 0"
class=
"badge"
:style=
"
{ background: mainColor }">
{{
user_info
.
MyOrder
.
WaitCommentNum
}}
</view>
<!-- 售后 -->
<view
v-if=
"item.link_url =='/pages/order/after-sale/refunds-list'&&user_info.MyOrder.AfterSaleNum>0"
class=
"badge"
:style=
"
{ background: mainColor }">
{{
user_info
.
MyOrder
.
AfterSaleNum
}}
</view>
<view
v-if=
"item.link_url == '/pages/order/after-sale/refunds-list' && user_info.MyOrder.AfterSaleNum > 0"
class=
"badge"
:style=
"
{ background: mainColor }">
{{
user_info
.
MyOrder
.
AfterSaleNum
}}
</view>
</view>
</view>
</view>
...
...
@@ -89,7 +101,7 @@
:key=
"index"
:name=
"item.name"
@
click=
"goUrl(item.link_url)"
v-if=
"item.name
!='分销中心' || user_info.isShowDistributionCenter==
1"
v-if=
"item.name
!= '分销中心' || user_info.isShowDistributionCenter ==
1"
>
<image
:src=
"item.icon_url"
style=
"width: 48rpx;height: 48rpx;"
></image>
<Text
...
...
@@ -97,7 +109,7 @@
>
{{
item
.
name
}}
</Text>
<button
open-type=
"contact"
v-if=
"item.link_url
=='contact'&& item.name=='客服'
"
>
0
</button>
<button
open-type=
"contact"
v-if=
"item.link_url
== 'contact' && item.name == '客服'
"
>
0
</button>
</view>
</view>
<view
class=
"copyright"
>
...
...
@@ -117,7 +129,7 @@ import auth from '../../components/auth/index.vue';
export
default
{
data
()
{
return
{
isloading
:
true
,
isloading
:
true
,
pageTitle
:
'用户中心'
,
navHeight
:
0
,
contentHeight
:
0
,
...
...
@@ -130,7 +142,7 @@ export default {
mainColor
:
''
,
secondary
:
''
,
u
:
{},
is_icon_members_grade
:
0
is_icon_members_grade
:
0
};
},
components
:
{
...
...
@@ -158,7 +170,7 @@ export default {
this
.
bottommargin
=
c
-
2
+
'px'
;
this
.
listbottom
=
c
-
2
+
50
+
'px'
;
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
(
c
);
this
.
is_icon_members_grade
=
uni
.
getStorageSync
(
"basedata"
)?
uni
.
getStorageSync
(
"basedata"
).
mall
.
setting
.
is_icon_members_grade
:
0
this
.
is_icon_members_grade
=
uni
.
getStorageSync
(
'basedata'
)
?
uni
.
getStorageSync
(
'basedata'
).
mall
.
setting
.
is_icon_members_grade
:
0
;
let
u
=
'/'
+
currentPages
[
currentPages
.
length
-
1
].
route
;
let
pages
=
wx
.
getStorageSync
(
'basedata'
)
?
wx
.
getStorageSync
(
'basedata'
).
bar_title
:
[];
// pages.forEach(x => {
...
...
@@ -178,48 +190,46 @@ export default {
goHome
()
{
uni
.
redirectTo
({
url
:
'/pages/index/main'
});
},
//获取菜单配置
userinfo
()
{
uni
.
showNavigationBarLoading
();
this
.
request2
(
{
url
:
'/api/Mall/GetUserCenter'
,
url
:
'/api/Mall/GetUserCenter'
,
data
:
{}
},
res
=>
{
uni
.
hideNavigationBarLoading
();
this
.
meueData
=
res
.
data
.
config
;
this
.
user_info
=
res
.
data
.
user_info
;
this
.
meueData
=
res
.
data
.
config
;
this
.
user_info
=
res
.
data
.
user_info
;
}
);
},
goUrl
(
url
)
{
if
(
url
==
'/pages/balance/balance'
){
if
(
url
==
'/pages/balance/balance'
)
{
uni
.
navigateTo
({
url
:
'/pages/balance/balance?balance='
+
this
.
user_info
.
balance
url
:
'/pages/balance/balance?balance='
+
this
.
user_info
.
balance
});
}
else
{
}
else
{
uni
.
navigateTo
({
url
:
url
});
}
},
reloadUserinfo
()
{
this
.
userinfo
();
this
.
u
=
this
.
user_info
;
this
.
u
=
this
.
user_info
;
this
.
showAuth
=
false
;
},
login
(
name
)
{
if
((
name
&&
name
.
nickname
==
''
)
||!
name
||
!
name
.
nickname
)
{
if
((
name
&&
name
.
nickname
==
''
)
||
!
name
||
!
name
.
nickname
)
{
this
.
showAuth
=
true
;
}
},
//关闭登录窗口
gbAuth
(){
this
.
showAuth
=
false
;
gbAuth
()
{
this
.
showAuth
=
false
;
}
}
};
...
...
@@ -228,7 +238,6 @@ export default {
<
style
>
.body
{
background
:
#f3f4f6
;
}
.userStyle
.userBox
{
height
:
100%
;
...
...
@@ -236,7 +245,7 @@ export default {
flex-direction
:
column
;
align-items
:
center
;
background
:
#f3f4f6
;
min-height
:
100vh
min-height
:
100vh
;
}
.userStyle
.imgbg
{
width
:
100%
;
...
...
@@ -290,11 +299,11 @@ export default {
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
space-between
;
border-right
:
1px
solid
#d1d1d1
;
width
:
25%
;
border-right
:
1px
solid
#d1d1d1
;
width
:
25%
;
}
.userStyle
.account_bar_item
:last-child
{
border-right
:
0
;
.userStyle
.account_bar_item
:last-child
{
border-right
:
0
;
}
.userStyle
.order_bar
{
width
:
94%
;
...
...
@@ -361,14 +370,14 @@ export default {
justify-content
:
space-between
;
position
:
relative
;
}
.menus_item2
,
.menus_item
button
{
.menus_item2
,
.menus_item
button
{
width
:
100%
;
height
:
100%
;
position
:
absolute
;
left
:
0
;
top
:
0
;
top
:
0
;
opacity
:
0
;
}
.userStyle
.menus2
.menus_item2
{
width
:
100%
;
...
...
@@ -398,11 +407,11 @@ export default {
align-items
:
center
;
padding
:
0
20
rpx
;
}
.userStyle
.member
{
background
:
#3
B
3641
;
.userStyle
.member
{
background
:
#3
b
3641
;
width
:
80px
;
font-size
:
10px
;
color
:
#fff
;
color
:
#fff
;
height
:
18px
;
border-radius
:
9px
;
display
:
flex
;
...
...
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