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
f39e26dd
Commit
f39e26dd
authored
Jul 21, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f966f330
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
317 additions
and
117 deletions
+317
-117
index.vue
pages/share/index/index.vue
+53
-5
user-center.vue
pages/user-center/user-center.vue
+264
-112
icon-balance-recharge-bg.png
static/images/icon/icon-balance-recharge-bg.png
+0
-0
shareTop.png
static/images/shareTop.png
+0
-0
No files found.
pages/share/index/index.vue
View file @
f39e26dd
<
template
>
<view
class=
"shareindexStyle"
:style=
"
{'height':contentHeight}">
<view
class=
"headStatus"
v-if=
""
:style=
"[headStyle]"
>
<view
class=
"arrow"
@
click=
"redirectPrev"
>
<u-icon
name=
"arrow-left"
size=
"48"
color=
"#000"
></u-icon>
</view>
<view
class=
"title"
>
{{
pageTitle
}}
</view>
</view>
<view
class=
"shareadd"
v-if=
" sharestatus.Status==1"
>
<u-empty
text=
" "
mode=
"data"
></u-empty>
<Text
style=
'margin: 10px 0;'
>
{{
sharestatus
.
Msg
}}
</Text>
...
...
@@ -7,7 +17,7 @@
<Text>
{{
sharestatus
.
ApplyForName
}}
</Text>
</view>
</view>
<view
v-if=
"sharestatus.Status==
2
"
style=
"width: 100%;display: flex;flex-direction: column;align-items: center;"
>
<view
v-if=
"sharestatus.Status==
3
"
style=
"width: 100%;display: flex;flex-direction: column;align-items: center;"
>
<image
src=
"../../../static/images/icon/img-share-status.png"
style=
"width: 100%;height: 165px;"
></image>
<Text
style=
'margin-top: 70px;'
>
谢谢您的支持,请等待审核
</Text>
<view
style=
"display: flex;align-items: center;justify-content: center;margin-top: 60rpx;"
>
...
...
@@ -21,7 +31,7 @@
<u-button
shape=
"circle"
type=
"error"
size=
"medium"
@
click=
'goshoping'
>
去商城逛逛
</u-button>
</view>
-->
</view>
<view
style=
"width: 100%;height: 100%;"
v-if=
"sharestatus.Status==
3
"
>
<view
style=
"width: 100%;height: 100%;"
v-if=
"sharestatus.Status==
4
"
>
<view
class=
"sharebox_top"
:style=
"
{background:mainColor}">
<view
class=
"sharebox_top_t"
>
<view
class=
"top_t_l"
>
...
...
@@ -121,15 +131,17 @@
userinfo
:{},
sharedata
:{},
showAuth
:
false
showAuth
:
false
,
nav
:
0
,
headStyle
:{}
}
},
created
(){
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
(
-
40
)
+
'px'
;
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
secondary
=
this
.
$uiConfig
.
secondary
;
this
.
nav
=
uni
.
getMenuButtonBoundingClientRect
().
top
+
'px'
;
this
.
headStyle
.
paddingTop
=
this
.
nav
;
},
mounted
()
{
let
currentPages
=
getCurrentPages
();
...
...
@@ -232,6 +244,14 @@
}
},
redirectPrev
()
{
if
(
this
.
prevPage
!=
""
)
{
uni
.
navigateBack
({
delta
:
1
,
});
}
},
goUrl
(
url
){
console
.
log
(
url
)
uni
.
navigateTo
({
...
...
@@ -326,4 +346,32 @@
font-size
:
13px
;
margin
:
5px
0
;
}
.shareindexStyle
.headStatus
{
overflow
:
hidden
;
position
:
relative
;
width
:
140vw
;
padding-right
:
40vw
;
padding-bottom
:
10px
;
position
:
fixed
;
left
:
0
;
right
:
0
;
top
:
0
;
display
:
flex
;
background
:
#FFFFFF
;
}
.shareindexStyle
.headStatus
.arrow
{
height
:
24px
;
margin
:
5px
10px
;
width
:
24px
;
}
.shareindexStyle
.headStatus
.title
{
font-size
:
18px
;
color
:
#000
;
flex
:
1
;
width
:
1px
;
margin-left
:
10px
;
line-height
:
34px
;
/* text-align: center; */
}
</
style
>
pages/user-center/user-center.vue
View file @
f39e26dd
<
template
>
<view
class=
"userStyle"
>
<view
class=
"userBox"
:style=
"
{ 'margin-bottom': bottommargin }">
<scroll-view
:scroll-y=
"true"
@
scroll=
"scrollHandler"
@
scrolltoupper=
"scrollTopHandler"
style=
"height: 100vh;"
>
<view
class=
"userStyle"
>
<view
:style=
"
{ 'background-image': 'url(' + (meueData.user_center.top_pic_url ? meueData.user_center.top_pic_url : '') + ')', backgroundSize: '100% 330rpx' }"
class="imgbg"
class=
"headStatus"
v-if=
"scrollTop > 50"
:style=
"[
headStyle,
{
zIndex: scrollTop
<
10
?
'
unset
'
:
2
,
opacity:
scrollTop
<
10
?
'
100
'
:
scrollTop
,
},
]"
>
<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;"
>
<!--
<view
class=
"arrow"
>
<u-icon
name=
"arrow-left"
size=
"48"
color=
"#FFF"
></u-icon>
</view>
-->
<view
class=
"title"
v-if=
"scrollTop > 50"
>
{{
pageTitle
}}
</view>
</view>
<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% 310px' }"
class="imgbg"
>
<view
class=
"titlenav"
:style=
"
{paddingTop:nav}">
{{
pageTitle
}}
</view>
<view
style=
"display: flex;flex-direction: row;align-items: center;width: 100%;margin-top: 52px;"
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>
</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>
</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>
</view>
<view
class=
"ReceiptAdder"
@
click=
"goUrl('/pages/address/address')"
:style=
"
{ background: mainColor }">
<u-icon
name=
"location"
color=
"#fff"
size=
"40"
></u-icon>
<Text
style=
"color: #fff;font-size: 32;margin-left: 20rpx;"
>
收货地址
</Text>
</view>
</view>
<view
class=
"footprint"
v-if=
"meueData.user_center.is_foot_bar_status == 1"
>
<view
class=
"footprint_item"
@
click=
"goUrl('/pages/favorite/favorite')"
>
<text>
{{
user_info
.
favorite
}}
</text>
<view
class=
"footprint_item_bottom"
>
<image
:src=
"meueData.user_center.foot_bar[0].icon_url"
style=
"width: 40rpx;height: 40rpx;"
></image>
<Text
style=
"margin-left: 10rpx;"
>
{{
meueData
.
user_center
.
foot_bar
[
0
].
name
}}
</Text>
<view
class=
"top_b"
>
<view
class=
"top_b_item"
v-if=
"meueData.user_center.is_foot_bar_status == 1"
@
click=
"goUrl('/pages/favorite/favorite')"
>
<text
style=
"font-size: 21px;"
>
{{
user_info
.
favorite
}}
</text>
<text>
{{
meueData
.
user_center
.
foot_bar
[
0
].
name
}}
</text>
</view>
<view
class=
"top_b_item"
v-if=
"meueData.user_center.is_foot_bar_status == 1"
@
click=
"goUrl('/pages/foot/index/index')"
>
<text
style=
"font-size: 21px;"
>
{{
user_info
.
footprint
}}
</text>
<text>
{{
meueData
.
user_center
.
foot_bar
[
1
].
name
}}
</text>
</view>
<view
class=
"top_b_item"
v-if=
"meueData.user_center.is_account_status == 1"
@
click=
"goUrl('/pages/coupon/index/index')"
>
<text
style=
"font-size: 21px;"
>
{{
user_info
.
coupon
}}
</text>
<text
v-for=
"(item, index) in meueData.user_center.account"
:key=
"index"
>
{{
item
.
link_url
==
'/pages/coupon/index/index'
?
item
.
name
:
''
}}
</text>
</view>
</view>
</view>
<view
style=
"width: 1px;height: 60rpx;background: #000000;"
></view>
<view
class=
"footprint_item"
@
click=
"goUrl('/pages/foot/index/index')"
>
<text>
{{
user_info
.
footprint
}}
</text>
<view
class=
"footprint_item_bottom"
>
<image
:src=
"meueData.user_center.foot_bar[1].icon_url"
style=
"width: 40rpx;height: 40rpx;"
></image>
<Text
style=
"margin-left: 10rpx;"
>
{{
meueData
.
user_center
.
foot_bar
[
1
].
name
}}
</Text>
<view
class=
"ReceiptAdder"
@
click=
"goUrl('/pages/address/address')"
style=
" background: rgba(55, 55, 55, 0.15) "
>
<u-icon
name=
"location"
color=
"#fff"
size=
"23"
></u-icon>
<Text
style=
"color: #fff;font-size: 12px;margin-left: 20rpx;"
>
收货地址
</Text>
</view>
</view>
</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"
>
<!-- 优惠券 -->
<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/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>
<view
class=
"Receiptbalance"
v-if=
"meueData.user_center.is_account_status == 1"
>
<view
class=
"Receiptbalance_item"
v-for=
"(item, index) in meueData.user_center.account"
:key=
"index"
v-if=
"item.link_url == '/pages/balance/balance'"
@
click=
"goUrl(item.link_url)"
>
<image
:src=
"item.icon_url"
style=
"width: 22px;"
mode =
'widthFix'
></image>
<view
style=
"margin-left: 15px;display: flex;flex-direction: column;justify-content: space-between;"
>
<span
style=
'font-size: 21px;color: #0D0D0D;font-weight: 200;'
>
{{
user_info
.
balance
>
10000
?(
user_info
.
balance
/
10000
).
toFixed
(
1
)
+
'w'
:
user_info
.
balance
}}
</span>
<span
style=
''
>
{{
item
.
name
}}
</span>
</view>
</view>
<view
style=
"width: 1px;height: 34px;background: #E8E8E8;"
></view>
<view
class=
"Receiptbalance_item"
v-for=
"(item, index) in meueData.user_center.account"
:key=
"index"
v-if=
"item.link_url == '/pages/user-center/integral-detail/integral-detail'"
@
click=
"goUrl(item.link_url)"
>
<image
:src=
"item.icon_url"
style=
"width: 17px;"
mode =
'widthFix'
></image>
<view
style=
"margin-left: 15px;display: flex;flex-direction: column;justify-content: space-between;"
>
<span
style=
'font-size: 21px;color: #0D0D0D;font-weight: 200;'
>
{{
user_info
.
integral
>
10000
?(
user_info
.
integral
/
10000
).
toFixed
(
1
)
+
'w'
:
user_info
.
integral
}}
</span>
<span>
{{
item
.
name
}}
</span>
</view>
</view>
</view>
</view>
<view
style=
"width: 1px;height: 60rpx;background: #f5f5f5;"
v-if=
"meueData.user_center.account_bar.integral.status == 1"
></view>
</view>
<view
class=
"order_bar"
v-if=
"meueData.user_center.is_order_bar_status == 1"
>
<u-section
title=
"我的订单"
sub-title=
"查看更多"
style=
"width: 100%;padding: ;"
@
click=
"goUrl('/pages/order/index/index?status=0')"
></u-section>
<view
class=
"order_bar_list"
>
<view
class=
"order_bar_item"
v-for=
"(item, index) in meueData.user_center.order_bar"
:key=
"index"
:name=
"item.name"
@
click=
"goUrl(item.link_url)"
>
<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
class=
"footprint"
v-if=
"meueData.user_center.is_foot_bar_status == 1"
>
<view
class=
"footprint_item"
@
click=
"goUrl('/pages/favorite/favorite')"
>
<text>
{{
user_info
.
favorite
}}
</text>
<view
class=
"footprint_item_bottom"
>
<image
:src=
"meueData.user_center.foot_bar[0].icon_url"
style=
"width: 40rpx;height: 40rpx;"
></image>
<Text
style=
"margin-left: 10rpx;"
>
{{
meueData
.
user_center
.
foot_bar
[
0
].
name
}}
</Text>
</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
style=
"width: 1px;height: 60rpx;background: #000000;"
></view>
<view
class=
"footprint_item"
@
click=
"goUrl('/pages/foot/index/index')"
>
<text>
{{
user_info
.
footprint
}}
</text>
<view
class=
"footprint_item_bottom"
>
<image
:src=
"meueData.user_center.foot_bar[1].icon_url"
style=
"width: 40rpx;height: 40rpx;"
></image>
<Text
style=
"margin-left: 10rpx;"
>
{{
meueData
.
user_center
.
foot_bar
[
1
].
name
}}
</Text>
</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>
-->
<!--
<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"
>
优惠券
<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/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>
</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
style=
"width: 1px;height: 60rpx;background: #f5f5f5;"
v-if=
"meueData.user_center.account_bar.integral.status == 1"
></view>
</view>
-->
<view
class=
"order_bar"
v-if=
"meueData.user_center.is_order_bar_status == 1"
>
<u-section
title=
"我的订单"
sub-title=
"查看更多"
style=
"width: 100%;padding:0px 0 10px ;"
@
click=
"goUrl('/pages/order/index/index?status=0')"
></u-section>
<view
class=
"order_bar_list"
>
<view
class=
"order_bar_item"
v-for=
"(item, index) in meueData.user_center.order_bar"
:key=
"index"
:name=
"item.name"
@
click=
"goUrl(item.link_url)"
>
<image
:src=
"item.icon_url"
style=
"width: 60rpx"
mode =
'widthFix'
></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=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>
</view>
</view>
</view>
<view
:class=
"meueData.user_center.menu_style == 1 ? 'menus2' : 'menus'"
v-if=
"meueData.user_center.is_menu_status == 1"
>
<view
:class=
"meueData.user_center.menu_style == 1 ? 'menus_item2' : 'menus_item'"
v-for=
"(item, index) in meueData.user_center.menus"
:key=
"index"
:name=
"item.name"
@
click=
"goUrl(item.link_url)"
v-if=
"item.name != '分销中心' || user_info.isShowDistributionCenter == 1"
>
<image
:src=
"item.icon_url"
style=
"width: 48rpx;height: 48rpx;"
></image>
<Text
:style=
"
{ 'margin-top': meueData.user_center.menu_style == 1 ? '0rpx' : '10rpx', 'margin-left': meueData.user_center.menu_style == 1 ? '10rpx' : '0rpx' }"
<view
:class=
"meueData.user_center.menu_style == 1 ? 'menus2' : 'menus'"
v-if=
"meueData.user_center.is_menu_status == 1"
>
<view
:class=
"meueData.user_center.menu_style == 1 ? 'menus_item2' : 'menus_item'"
v-for=
"(item, index) in meueData.user_center.menus"
:key=
"index"
:name=
"item.name"
@
click=
"goUrl(item.link_url)"
v-if=
"item.name != '分销中心' || user_info.isShowDistributionCenter == 1"
>
{{
item
.
name
}}
</Text>
<button
open-type=
"contact"
v-if=
"item.link_url == 'contact' && item.name == '客服'"
>
0
</button>
<image
:src=
"item.icon_url"
:style=
"
{width:meueData.user_center.menu_style == 1 ?'12px':'20px'}" mode="widthFix">
</image>
<Text
:style=
"
{ 'margin-top': meueData.user_center.menu_style == 1 ? '0rpx' : '10rpx', 'margin-left': meueData.user_center.menu_style == 1 ? '10rpx' : '0rpx' }"
>
{{
item
.
name
}}
</Text>
<button
open-type=
"contact"
class=
"contButton"
v-if=
"item.link_url == 'contact' && item.name == '客服'"
></button>
</view>
</view>
<!--
<view
class=
"copyright"
>
<image
:src=
"meueData.user_center.copyright.pic_url"
mode=
"widthFix"
style=
"width: 95px;"
></image>
<Text
style=
"margin-top: 10rpx;color: #666666;"
>
{{
meueData
.
user_center
.
copyright
.
description
}}
</Text>
</view>
-->
</view>
<view
class=
"copyright"
>
<image
:src=
"meueData.user_center.copyright.pic_url"
mode=
"widthFix"
style=
"width: 95px;"
></image>
<Text
style=
"margin-top: 10rpx;color: #666666;"
>
{{
meueData
.
user_center
.
copyright
.
description
}}
</Text>
</view>
<auth
v-if=
"showAuth"
@
changeuserinfo=
"reloadUserinfo"
@
gbAuth=
"gbAuth"
></auth>
<tabbars></tabbars>
</view>
<auth
v-if=
"showAuth"
@
changeuserinfo=
"reloadUserinfo"
@
gbAuth=
"gbAuth"
></auth>
<tabbars></tabbars>
</view>
</scroll-view>
</
template
>
<
script
>
...
...
@@ -136,13 +195,16 @@ export default {
cstyle
:
{},
meueData
:
{},
//菜单
user_info
:
{},
//个人信息
headStyle
:
{},
bottommargin
:
0
,
listbottom
:
0
,
showAuth
:
false
,
mainColor
:
''
,
secondary
:
''
,
u
:
{},
is_icon_members_grade
:
0
is_icon_members_grade
:
0
,
nav
:
0
,
scrollTop
:
0
};
},
components
:
{
...
...
@@ -156,6 +218,9 @@ export default {
onLoad
()
{
this
.
navHeight
=
this
.
$navHeight
-
2
;
this
.
u
=
wx
.
getStorageSync
(
'basedata'
).
user_info
;
this
.
nav
=
uni
.
getMenuButtonBoundingClientRect
().
top
+
'px'
;
this
.
headStyle
.
background
=
`linear-gradient(to right, '#6E75EA',80%, '#B984EC')`
;
this
.
headStyle
.
paddingTop
=
this
.
nav
;
// if (!this.u) {
// this.u = {
// nickname: '未登录',
...
...
@@ -230,7 +295,15 @@ export default {
//关闭登录窗口
gbAuth
()
{
this
.
showAuth
=
false
;
}
},
scrollHandler
(
e
)
{
this
.
scrollTop
=
e
.
detail
.
scrollTop
;
//this.$forceUpdate();
},
scrollTopHandler
()
{
this
.
scrollTop
=
0
;
},
}
};
</
script
>
...
...
@@ -249,11 +322,11 @@ export default {
}
.userStyle
.imgbg
{
width
:
100%
;
height
:
3
30
r
px
;
height
:
3
10
px
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
}
.userStyle
.headimg
{
width
:
140
rpx
;
...
...
@@ -313,7 +386,7 @@ export default {
flex-direction
:
column
;
align-items
:
center
;
padding
:
30
rpx
;
margin-top
:
3
0
rpx
;
margin-top
:
7
0
rpx
;
}
.userStyle
.order_bar
.order_bar_list
{
width
:
100%
;
...
...
@@ -359,6 +432,7 @@ export default {
display
:
flex
;
flex-direction
:
column
;
margin-top
:
20
rpx
;
margin-bottom
:
20px
;
}
.userStyle
.menus
.menus_item
{
width
:
25%
;
...
...
@@ -370,8 +444,8 @@ export default {
justify-content
:
space-between
;
position
:
relative
;
}
.menus_item2
,
.menus_item
b
utton
{
.menus_item2
.contButton
,
.menus_item
.contB
utton
{
width
:
100%
;
height
:
100%
;
position
:
absolute
;
...
...
@@ -381,7 +455,7 @@ export default {
}
.userStyle
.menus2
.menus_item2
{
width
:
100%
;
height
:
8
0
rpx
;
height
:
9
0
rpx
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
...
...
@@ -397,11 +471,11 @@ export default {
.userStyle
.ReceiptAdder
{
position
:
absolute
;
right
:
0
;
top
:
1
25
rpx
;
width
:
230
r
px
;
height
:
80
r
px
;
border-top-left-radius
:
40
r
px
;
border-bottom-left-radius
:
40
r
px
;
top
:
2
25
rpx
;
width
:
100
px
;
height
:
24
px
;
border-top-left-radius
:
12
px
;
border-bottom-left-radius
:
12
px
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
...
...
@@ -419,4 +493,82 @@ export default {
align-items
:
center
;
justify-content
:
space-between
;
}
.userStyle
.titlenav
{
width
:
100%
;
text-align
:
center
;
font-size
:
16px
;
color
:
#FFFFFF
;
}
.userStyle
.top_b
{
width
:
86%
;
height
:
65px
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
margin-top
:
20px
;
}
.userStyle
.top_b_item
{
width
:
26%
;
height
:
50px
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
space-between
;
color
:
#FFFFFF
;
font-size
:
12px
;
}
.userStyle
.Receiptbalance
{
width
:
92%
;
height
:
62px
;
position
:
absolute
;
left
:
4%
;
top
:
265px
;
background
:
#FFFFFF
;
border-radius
:
6px
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-around
;
padding
:
0
10px
;
}
.userStyle
.Receiptbalance_item
{
width
:
40%
;
height
:
50px
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
font-size
:
12px
;
color
:
#534D62
;
}
.userStyle
.headStatus
{
overflow
:
hidden
;
position
:
relative
;
width
:
140vw
;
padding-right
:
40vw
;
padding-bottom
:
10px
;
position
:
fixed
;
left
:
0
;
right
:
0
;
top
:
0
;
display
:
flex
;
background-image
:
linear-gradient
(
to
right
,
#6E75EA
,
#B984EC
);
}
.userStyle
.headStatus
.arrow
{
height
:
24px
;
margin
:
5px
10px
;
width
:
24px
;
}
.userStyle
.headStatus
.title
{
font-size
:
18px
;
color
:
#fff
;
flex
:
1
;
width
:
1px
;
/* margin-left: 10px; */
line-height
:
34px
;
text-align
:
center
;
}
</
style
>
static/images/icon/icon-balance-recharge-bg.png
0 → 100644
View file @
f39e26dd
9.24 KB
static/images/shareTop.png
0 → 100644
View file @
f39e26dd
10.2 KB
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