8f78b155 by simon

默认提交

1 parent 200eb9ea
......@@ -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({
......
......@@ -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>
<!-- 右边栏 -->
......