默认提交
Showing
2 changed files
with
21 additions
and
5 deletions
... | @@ -270,6 +270,24 @@ Page({ | ... | @@ -270,6 +270,24 @@ Page({ |
270 | }) | 270 | }) |
271 | }, | 271 | }, |
272 | 272 | ||
273 | /** | ||
274 | * 检查验证修改 | ||
275 | */ | ||
276 | checkVerify() { | ||
277 | let auditStatus = this.data.userInfo && this.data.userInfo.auditStatus || ""; | ||
278 | // console.log("@checkVerify || auditStatus:", auditStatus); | ||
279 | if (auditStatus == "authorization") { | ||
280 | // 已经验证 去修改页,查看审核 | ||
281 | this.toVipVerifyHandler(); | ||
282 | } else if (auditStatus == "unauthorized") { | ||
283 | // 已经验证 去修改页,查看审核 | ||
284 | this.toVipVerifyHandler(); | ||
285 | } else { | ||
286 | // 未验证 去编辑页,填写表单 | ||
287 | this.toVipLoginHandler(); | ||
288 | } | ||
289 | }, | ||
290 | |||
273 | // 隐藏蒙层 | 291 | // 隐藏蒙层 |
274 | hideMask() { | 292 | hideMask() { |
275 | this.setData({ | 293 | this.setData({ | ... | ... |
... | @@ -7,17 +7,15 @@ | ... | @@ -7,17 +7,15 @@ |
7 | <!-- 用户信息 --> | 7 | <!-- 用户信息 --> |
8 | <view class="user"> | 8 | <view class="user"> |
9 | <!-- 左边栏 --> | 9 | <!-- 左边栏 --> |
10 | <view class="user-info" bindtap="toVipVerifyHandler"> | 10 | <view class="user-info" bindtap="checkVerify"> |
11 | <image class="avatar" mode="aspectFill" src="{{userInfo.avatar}}" /> | 11 | <image class="avatar" mode="aspectFill" src="{{userInfo.avatar}}" /> |
12 | <view class="wrap1"> | 12 | <view class="wrap1"> |
13 | <view class="name">{{userInfo.realName ? userInfo.realName : userInfo.nickname}}</view> | 13 | <view class="name">{{userInfo.realName ? userInfo.realName : userInfo.nickname}}</view> |
14 | <view wx:if="{{userInfo.auditStatus == 'authorization'}}" class="vip vip-check"> | 14 | <view wx:if="{{userInfo.auditStatus == 'authorization'}}" class="vip vip-check"> |
15 | 积分会员 | 15 | 积分会员 |
16 | </view> | 16 | </view> |
17 | <view wx:elif="{{userInfo.auditStatus == 'unauthorized'}}" class="vip" > | 17 | <view wx:elif="{{userInfo.auditStatus == 'unauthorized'}}" class="vip">审核中 ></view> |
18 | 审核中 > | 18 | <view wx:else class="vip">未验证 ></view> |
19 | </view> | ||
20 | <view wx:else class="vip" bindtap="toVipLoginHandler">未验证 ></view> | ||
21 | </view> | 19 | </view> |
22 | </view> | 20 | </view> |
23 | <!-- 右边栏 --> | 21 | <!-- 右边栏 --> | ... | ... |
-
Please register or sign in to post a comment