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
ce399021
Commit
ce399021
authored
May 29, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
e83c1e4a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
334 additions
and
347 deletions
+334
-347
user-center.vue
pages/user-center/user-center.vue
+334
-347
No files found.
pages/user-center/user-center.vue
View file @
ce399021
<
template
>
<view
class=
"userStyle"
v-if=
"!isloading"
>
<view
class=
"userBox"
:style=
"
{
'margin-bottom':bottommargin
}">
<view
:style=
"
{
'background-image':'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>
<Text
style=
"color: #FFF;margin-left: 20rpx;font-size: 36rpx;"
@
click=
'login(user_info)'
>
{{
user_info
.
nickname
?
user_info
.
nickname
:
'立即登录'
}}
</Text>
<view
class=
"userStyle"
>
<view
class=
"userBox"
:style=
"
{
'margin-bottom': bottommargin
}">
<view
:style=
"
{
'background-image': '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>
<Text
style=
"color: #FFF;margin-left: 20rpx;font-size: 36rpx;"
@
click=
"login(user_info)"
>
{{
user_info
.
nickname
?
user_info
.
nickname
:
'立即登录'
}}
</Text>
</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
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>
<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
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"
v-if=
"meueData.user_center.is_foot_bar_status == 1"
>
<view
class=
"footprint_item"
@
click=
"goUrl('/pages/favorite/favorite')"
>
<text>
{{
user_info
.
favorite
}}
</text>
<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>
<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>
<view
style=
"width: 1px;height: 60rpx;background: #000000;"
></view>
<view
class=
"footprint_item"
@
click=
"goUrl('/pages/foot/index/index')"
>
<text>
{{
user_info
.
footprint
}}
</text>
<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>
<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>
</view>
<view
class=
"account_bar"
v-if=
"meueData.user_center.
account_bar.status==
1"
>
<view
class=
"account_bar_item"
v-
if=
"meueData.user_center.account_bar.integral.status==1"
>
<Text
:style=
"
{
'color':secondary}">
{{
user_info
.
integral
}}
</Text>
<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 }">0
</Text>
<view
class=
"footprint_item_bottom"
>
<image
:src=
'meueData.user_center.account_bar.integral.icon'
style=
"width: 26rpx;height: 26rpx;"
></image>
<Text
style=
'margin-left: 10rpx;'
>
{{
meueData
.
user_center
.
account_bar
.
integral
.
text
}}
</Text>
<image
:src=
"item.icon_url"
style=
"width: 26rpx;height: 26rpx;"
></image>
<Text
style=
"margin-left: 10rpx;"
>
{{
item
.
name
}}
</Text>
</view>
</view>
<view
style=
"width: 1px;height: 60rpx;background: #f5f5f5;"
v-if=
"meueData.user_center.account_bar.integral.status
==
1"
></view>
<
view
class=
"account_bar_item"
v-if=
"meueData.user_center.account_bar.balance.status==
1"
@
click=
"goUrl('/pages/balance/balance')"
>
<Text
:style=
"
{
'color':secondary}">
{{
user_info
.
balance
}}
</Text>
<view
style=
"width: 1px;height: 60rpx;background: #f5f5f5;"
v-if=
"meueData.user_center.account_bar.integral.status
==
1"
></view>
<
!--
<view
class=
"account_bar_item"
v-if=
"meueData.user_center.account_bar.balance.status ==
1"
@
click=
"goUrl('/pages/balance/balance')"
>
<Text
:style=
"
{
color: secondary }">
{{
user_info
.
balance
}}
</Text>
<view
class=
"footprint_item_bottom"
>
<image
:src=
'meueData.user_center.account_bar.balance.icon'
style=
"width: 26rpx;height: 26rpx;"
></image>
<Text
style=
'margin-left: 10rpx;'
>
{{
meueData
.
user_center
.
account_bar
.
balance
.
text
}}
</Text>
<image
:src=
"meueData.user_center.account_bar.balance.icon"
style=
"width: 26rpx;height: 26rpx;"
></image>
<Text
style=
"margin-left: 10rpx;"
>
{{
meueData
.
user_center
.
account_bar
.
balance
.
text
}}
</Text>
</view>
</view>
<view
style=
"width: 1px;height: 60rpx;background: #f5f5f5;"
v-if=
"meueData.user_center.account_bar.balance.status
==
1"
></view>
<view
style=
"width: 1px;height: 60rpx;background: #f5f5f5;"
v-if=
"meueData.user_center.account_bar.balance.status
==
1"
></view>
<view
class=
"account_bar_item"
v-if=
"meueData.user_center.account_bar.coupon.status
==
1"
>
<Text
:style=
"
{
'color':secondary}">
{{
user_info
.
coupon
}}
</Text>
<view
class=
"account_bar_item"
v-if=
"meueData.user_center.account_bar.coupon.status
==
1"
>
<Text
:style=
"
{
color: secondary }">
{{
user_info
.
coupon
}}
</Text>
<view
class=
"footprint_item_bottom"
>
<image
:src=
'meueData.user_center.account_bar.coupon.icon'
style=
"width: 26rpx;height: 26rpx;"
></image>
<Text
style=
'margin-left: 10rpx;'
>
{{
meueData
.
user_center
.
account_bar
.
coupon
.
text
}}
</Text>
<image
:src=
"meueData.user_center.account_bar.coupon.icon"
style=
"width: 26rpx;height: 26rpx;"
></image>
<Text
style=
"margin-left: 10rpx;"
>
{{
meueData
.
user_center
.
account_bar
.
coupon
.
text
}}
</Text>
</view>
</view>
<view
style=
"width: 1px;height: 60rpx;background: #f5f5f5;"
v-if=
"meueData.user_center.account_bar.coupon.status
==
1"
></view>
<view
style=
"width: 1px;height: 60rpx;background: #f5f5f5;"
v-if=
"meueData.user_center.account_bar.coupon.status
==
1"
></view>
<view
class=
"account_bar_item"
v-if=
"meueData.user_center.account_bar.card.status==1"
>
<Text
:style=
"
{'color':secondary}">
{{
user_info
.
card
}}
</Text>
<view
class=
"account_bar_item"
v-if=
"meueData.user_center.account_bar.card.status == 1"
>
<Text
:style=
"
{ color: secondary }">
{{
user_info
.
card
}}
</Text>
<view
class=
"footprint_item_bottom"
>
<image
:src=
'meueData.user_center.account_bar.card.icon'
style=
"width: 26rpx;height: 26rpx;"
></image>
<Text
style=
'margin-left: 10rpx;'
>
{{
meueData
.
user_center
.
account_bar
.
card
.
text
}}
</Text>
</view>
<image
:src=
"meueData.user_center.account_bar.card.icon"
style=
"width: 26rpx;height: 26rpx;"
></image>
<Text
style=
"margin-left: 10rpx;"
>
{{
meueData
.
user_center
.
account_bar
.
card
.
text
}}
</Text>
</view>
</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"
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.num>0'
class=
'badge'
:style=
"
{'background':mainColor}">
{{
item
.
num
}}
</view>
<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.num > 0"
class=
"badge"
:style=
"
{ background: mainColor }">
{{
item
.
num
}}
</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)"
>
<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'}">
{{
item
.
name
}}
<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)"
>
<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' }"
>
{{
item
.
name
}}
</Text>
</view>
</view>
<view
class=
"copyright"
>
<image
:src=
'meueData.copyright.pic_url'
style=
"width: 95px;height: 28px;"
></image>
<Text
style=
'margin-top: 10rpx;'
>
{{
meueData
.
copyright
.
description
}}
</Text>
<image
:src=
"meueData.user_center.copyright.pic_url"
style=
"width: 95px;height: 28px;"
></image>
<Text
style=
"margin-top: 10rpx;"
>
{{
meueData
.
user_center
.
copyright
.
description
}}
</Text>
</view>
</view>
<
auth
v-if=
"showAuth"
@
changeuserinfo=
"reloadUserinfo"
></auth
>
<
!--
<auth
v-if=
"showAuth"
@
changeuserinfo=
"reloadUserinfo"
></auth>
--
>
<tabbars></tabbars>
</view>
</
template
>
<
script
>
import
tabbars
from
"@/components/tabbar/index"
;
import
auth
from
"../../components/auth/index.vue"
;
import
tabbars
from
'@/components/tabbar/index'
;
import
auth
from
'../../components/auth/index.vue'
;
export
default
{
data
()
{
return
{
export
default
{
data
()
{
return
{
isloading
:
true
,
pageTitle
:
"用户中心"
,
pageTitle
:
'用户中心'
,
navHeight
:
0
,
contentHeight
:
0
,
cstyle
:
{},
meueData
:{},
//菜单
user_info
:{},
//个人信息
bottommargin
:
0
,
listbottom
:
0
,
showAuth
:
false
,
mainColor
:
""
,
secondary
:
''
,
u
:
{},
}
contentHeight
:
0
,
cstyle
:
{},
meueData
:
{},
//菜单
user_info
:
{},
//个人信息
bottommargin
:
0
,
listbottom
:
0
,
showAuth
:
false
,
mainColor
:
''
,
secondary
:
''
,
u
:
{}
};
},
components
:
{
components
:
{
tabbars
,
auth
},
created
()
{
created
()
{
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
secondary
=
this
.
$uiConfig
.
secondary
;
},
onLoad
()
{
this
.
navHeight
=
this
.
$navHeight
-
2
;
this
.
u
=
wx
.
getStorageSync
(
"userinfo"
);
this
.
u
=
wx
.
getStorageSync
(
'userinfo'
);
if
(
!
this
.
u
)
{
this
.
u
=
{
nickName
:
"未登录"
,
avatarUrl
:
""
nickName
:
'未登录'
,
avatarUrl
:
''
};
this
.
showAuth
=
true
;
}
this
.
cstyle
=
uni
.
getStorageSync
(
"basedata"
)
?
uni
.
getStorageSync
(
"basedata"
).
cat_style
:
[];
if
(
this
.
cstyle
.
cat_style
==
"4"
)
{
this
.
cstyle
=
uni
.
getStorageSync
(
'basedata'
)
?
uni
.
getStorageSync
(
'basedata'
).
cat_style
:
[];
if
(
this
.
cstyle
.
cat_style
==
'4'
)
{
}
},
mounted
()
{
mounted
()
{
let
currentPages
=
getCurrentPages
();
let
c
=
this
.
$uiConfig
.
is_bang
?
80
:
52
;
this
.
bottommargin
=
(
c
-
2
)
+
'px'
;
this
.
listbottom
=
(
c
-
2
+
50
)
+
'px'
;
this
.
bottommargin
=
c
-
2
+
'px'
;
this
.
listbottom
=
c
-
2
+
50
+
'px'
;
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
(
c
);
let
u
=
"/"
+
currentPages
[
currentPages
.
length
-
1
].
route
;
let
pages
=
wx
.
getStorageSync
(
"basedata"
)
?
wx
.
getStorageSync
(
"basedata"
).
bar_title
:
[];
console
.
log
(
wx
.
getStorageSync
(
"basedata"
))
pages
.
forEach
((
x
)
=>
{
if
(
x
.
value
==
u
)
{
this
.
pageTitle
=
x
.
new_name
?
x
.
new_name
:
x
.
name
;
}
});
let
u
=
'/'
+
currentPages
[
currentPages
.
length
-
1
].
route
;
let
pages
=
wx
.
getStorageSync
(
'basedata'
)
?
wx
.
getStorageSync
(
'basedata'
).
bar_title
:
[];
console
.
log
(
wx
.
getStorageSync
(
'basedata'
),
'getetetettt'
);
// pages.forEach(x => {
// if (x.value == u) {
// this.pageTitle = x.new_name ? x.new_name : x.name;
// }
// });
uni
.
setNavigationBarTitle
({
title
:
this
.
pageTitle
,
title
:
'用户中心'
});
this
.
userinfo
()
this
.
getmeue
()
this
.
userinfo
();
this
.
getmeue
();
},
methods
:
{
methods
:
{
goHome
()
{
uni
.
redirectTo
({
url
:
"/pages/index/main"
});
uni
.
redirectTo
({
url
:
'/pages/index/main'
});
},
//获取用户信息
userinfo
()
{
uni
.
showNavigationBarLoading
();
let
h
=
this
.
apiheader
();
this
.
request
(
this
.
request2
(
{
url
:
""
,
header
:
h
,
data
:
{
r
:
"api/user/user-info"
,
},
url
:
'/api/Mall/GetUserCenter'
,
data
:
{}
},
(
res
)
=>
{
uni
.
hideNavigationBarLoading
()
this
.
isloading
=
false
;
res
=>
{
uni
.
hideNavigationBarLoading
();
//this.isloading = false;
}
);
},
getmeue
(){
//获取菜单配置
getmeue
()
{
uni
.
showNavigationBarLoading
();
let
h
=
this
.
apiheader
();
this
.
request
(
this
.
request2
(
{
url
:
""
,
header
:
h
,
data
:
{
r
:
"api/user/config"
,
},
url
:
'/api/Mall/GetUserCenter'
,
data
:
{}
},
(
res
)
=>
{
uni
.
hideNavigationBarLoading
()
this
.
isloading
=
false
;
res
=>
{
console
.
log
(
res
,
'resssssss'
);
uni
.
hideNavigationBarLoading
()
;
//this.isloading = false;
this
.
meueData
=
res
.
data
.
config
;
this
.
user_info
=
res
.
data
.
user_info
;
// this.user_info = res.data.user_center
;
}
);
},
goUrl
(
url
)
{
console
.
log
(
url
)
goUrl
(
url
)
{
console
.
log
(
url
);
uni
.
navigateTo
({
url
:
url
})
});
},
reloadUserinfo
()
{
this
.
u
=
uni
.
getStorageSync
(
"userinfo"
);
this
.
showAuth
=
false
this
.
u
=
uni
.
getStorageSync
(
'userinfo'
);
this
.
showAuth
=
false
;
},
login
(
name
)
{
if
(
!
name
)
{
login
(
name
)
{
if
(
!
name
)
{
this
.
showAuth
=
true
;
}
}
}
}
};
</
script
>
<
style
>
.body
{
.body
{
background
:
#f3f4f6
;
}
.userStyle
.userBox
{
}
.userStyle
.userBox
{
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
background
:
#f3f4f6
;
;
}
.userStyle
.imgbg
{
background
:
#f3f4f6
;
}
.userStyle
.imgbg
{
width
:
100%
;
height
:
330
rpx
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
center
;
}
.userStyle
.headimg
{
}
.userStyle
.headimg
{
width
:
140
rpx
;
height
:
140
rpx
;
border-radius
:
50%
;
margin-left
:
60
rpx
;
}
.userStyle
.footprint
{
}
.userStyle
.footprint
{
width
:
80%
;
height
:
140
rpx
;
height
:
140
rpx
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-around
;
}
.userStyle
.footprint_item
{
}
.userStyle
.footprint_item
{
width
:
200
rpx
;
height
:
90
rpx
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
space-between
;
}
.userStyle
.footprint_item_bottom
{
}
.userStyle
.footprint_item_bottom
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
center
;
}
.userStyle
.account_bar
{
}
.userStyle
.account_bar
{
width
:
94%
;
height
:
110
rpx
;
border-radius
:
10
rpx
;
...
...
@@ -295,16 +282,18 @@
align-items
:
center
;
justify-content
:
space-around
;
padding
:
0
20
rpx
;
}
.userStyle
.account_bar_item
{
}
.userStyle
.account_bar_item
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
space-between
;
}
.userStyle
.order_bar
{
border-right
:
1px
solid
#d1d1d1
;
}
.userStyle
.account_bar_item
:last-child
{
border-right
:
0
;
}
.userStyle
.order_bar
{
width
:
94%
;
border-radius
:
10
rpx
;
background
:
#fff
;
...
...
@@ -313,27 +302,26 @@
align-items
:
center
;
padding
:
30
rpx
;
margin-top
:
30
rpx
;
}
.userStyle
.order_bar
.order_bar_list
{
}
.userStyle
.order_bar
.order_bar_list
{
width
:
100%
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
}
.userStyle
.order_bar_item
{
}
.userStyle
.order_bar_item
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
margin-top
:
20
rpx
;
position
:
relative
}
.userStyle
.badge
{
position
:
relative
;
}
.userStyle
.badge
{
position
:
absolute
;
right
:
-10
rpx
;
top
:
-10
rpx
;
padding
:
0
12
rpx
;
padding
:
0
12
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
...
...
@@ -341,8 +329,8 @@
color
:
#fff
;
height
:
30
rpx
;
border-radius
:
15
rpx
;
}
.userStyle
.menus
{
}
.userStyle
.menus
{
width
:
94%
;
border-radius
:
10
rpx
;
background
:
#fff
;
...
...
@@ -351,16 +339,16 @@
flex-wrap
:
wrap
;
align-items
:
center
;
margin-top
:
30
rpx
;
}
.userStyle
.menus2
{
}
.userStyle
.menus2
{
width
:
94%
;
border-radius
:
10
rpx
;
background
:
#fff
;
display
:
flex
;
flex-direction
:
column
;
margin-top
:
20
rpx
;
}
.userStyle
.menus
.menus_item
{
}
.userStyle
.menus
.menus_item
{
width
:
25%
;
height
:
110
rpx
;
margin
:
20
rpx
0
10
rpx
;
...
...
@@ -368,33 +356,32 @@
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
space-between
;
}
.userStyle
.menus2
.menus_item2
{
}
.userStyle
.menus2
.menus_item2
{
width
:
100%
;
height
:
80
rpx
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
margin-left
:
30
rpx
;
}
.userStyle
.copyright
{
}
.userStyle
.copyright
{
padding
:
70
rpx
0
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
}
.userStyle
.ReceiptAdder
{
}
.userStyle
.ReceiptAdder
{
position
:
absolute
;
right
:
0
;
top
:
125
rpx
;
top
:
125
rpx
;
width
:
230
rpx
;
height
:
80
rpx
;
height
:
80
rpx
;
border-top-left-radius
:
40
rpx
;
border-bottom-left-radius
:
40
rpx
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
padding
:
0
20
rpx
;
}
}
</
style
>
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