Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_wechat
Overview
Overview
Details
Activity
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
pseer
gxpt_wechat
Commits
80eac279
Commit
80eac279
authored
Jul 31, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
界面优化
parent
65d5015b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
12 deletions
+6
-12
myInfo.vue
pages/my/myInfo.vue
+4
-4
vipCreate.vue
pages/vipCreate/vipCreate.vue
+2
-8
No files found.
pages/my/myInfo.vue
View file @
80eac279
...
...
@@ -14,21 +14,21 @@
<view
class=
"flex-col margin-left user-info-box"
>
<text
class=
"text-title text-lg text-bold text-xxl"
>
{{
userInfo
.
nickName
||
"凑角用户"
}}
</text>
<view
class=
"flex-row"
style=
"margin-top: 10rpx;"
>
<view
v-if=
"!userInfo.memberConfig || (userInfo.memberConfig&&userInfo.memberConfig.memberType ==1)"
class=
"relative"
:class=
"!userInfo.memberConfig?'grayscale':'
'"
>
<view
class=
"relative"
:class=
"userInfo.consumerMember&&userInfo.consumerMember.isRecharge?'':'grayscale
'"
>
<image
class=
"img-icon"
:src=
"assetsPath+'/tag_icon_1.png'"
mode=
"widthFix"
></image>
<view
class=
"absolute"
>
<text
class=
"text-1"
>
充值会员
</text>
</view>
</view>
<view
v-if=
"!userInfo.memberConfig || (userInfo.memberConfig&&userInfo.memberConfig.memberType ==2)"
class=
"relative"
:class=
"!userInfo.memberConfig?'grayscale':'
'"
>
<view
class=
"relative"
:class=
"userInfo.consumerMember&&userInfo.consumerMember.isRights?'':'grayscale
'"
>
<image
class=
"img-icon"
:src=
"assetsPath+'/tag_icon_2.png'"
mode=
"widthFix"
></image>
<view
class=
"absolute"
>
<text
class=
"text-1"
>
权益会员
</text>
</view>
</view>
</view>
<view
v-if=
"userInfo.
memberConfig && ( userInfo.memberConfig.memberType ==1 || userInfo.memberConfig.memberType ==2)
"
class=
"tip-date"
>
<text>
{{
userInfo
.
consumerMember
.
expirationDate
}}
到期
</text>
<view
v-if=
"userInfo.
consumerMember.isRights
"
class=
"tip-date"
>
<text>
权益
{{
userInfo
.
consumerMember
.
expirationDate
}}
到期
</text>
</view>
</view>
<view
class=
"nav-right"
@
tap
.
stop=
"onNavToSetUserInfo"
>
...
...
pages/vipCreate/vipCreate.vue
View file @
80eac279
...
...
@@ -402,15 +402,9 @@
getUserInfo
().
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
this
.
userInfo
=
res
.
data
.
data
;
if
(
res
.
data
.
data
.
consumerMember
&&
res
.
data
.
data
.
consumerMember
.
memberType
==
2
)
{
let
expirationDate
=
moment
(
res
.
data
.
data
.
consumerMember
.
expirationDate
).
valueOf
();
let
nowDate
=
moment
().
valueOf
()
if
(
nowDate
<=
expirationDate
)
{
this
.
consumerMemberStatus
=
true
;
}
if
(
this
.
userInfo
.
consumerMember
&&
this
.
userInfo
.
consumerMember
.
isRights
)
{
this
.
consumerMemberStatus
=
true
;
}
}
})
},
...
...
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