Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
zhiliang-light-mp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
8f78b155
authored
2019-11-01 18:32:35 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
200eb9ea
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
5 deletions
src/pages/user-center/user-center.js
src/pages/user-center/user-center.wxml
src/pages/user-center/user-center.js
View file @
8f78b15
...
...
@@ -270,6 +270,24 @@ Page({
})
},
/**
* 检查验证修改
*/
checkVerify
()
{
let
auditStatus
=
this
.
data
.
userInfo
&&
this
.
data
.
userInfo
.
auditStatus
||
""
;
// console.log("@checkVerify || auditStatus:", auditStatus);
if
(
auditStatus
==
"authorization"
)
{
// 已经验证 去修改页,查看审核
this
.
toVipVerifyHandler
();
}
else
if
(
auditStatus
==
"unauthorized"
)
{
// 已经验证 去修改页,查看审核
this
.
toVipVerifyHandler
();
}
else
{
// 未验证 去编辑页,填写表单
this
.
toVipLoginHandler
();
}
},
// 隐藏蒙层
hideMask
()
{
this
.
setData
({
...
...
src/pages/user-center/user-center.wxml
View file @
8f78b15
...
...
@@ -7,17 +7,15 @@
<!-- 用户信息 -->
<view class="user">
<!-- 左边栏 -->
<view class="user-info" bindtap="
toVipVerifyHandler
">
<view class="user-info" bindtap="
checkVerify
">
<image class="avatar" mode="aspectFill" src="{{userInfo.avatar}}" />
<view class="wrap1">
<view class="name">{{userInfo.realName ? userInfo.realName : userInfo.nickname}}</view>
<view wx:if="{{userInfo.auditStatus == 'authorization'}}" class="vip vip-check">
积分会员
</view>
<view wx:elif="{{userInfo.auditStatus == 'unauthorized'}}" class="vip" >
审核中 >
</view>
<view wx:else class="vip" bindtap="toVipLoginHandler">未验证 ></view>
<view wx:elif="{{userInfo.auditStatus == 'unauthorized'}}" class="vip">审核中 ></view>
<view wx:else class="vip">未验证 ></view>
</view>
</view>
<!-- 右边栏 -->
...
...
Please
register
or
sign in
to post a comment