|
|
@@ -6,9 +6,9 @@
|
|
|
</view>
|
|
|
<view class="self-auth" v-if='isAuth'>
|
|
|
<image :src="userHead" mode=""></image>
|
|
|
- <view>
|
|
|
- <text style="margin-left: 10%;">{{userName}}</text>
|
|
|
- <text style="margin-left: 10%;font-size: 28rpx;" v-if="isAuthPhone">{{userPhone}} </text>
|
|
|
+ <view style="margin-left: 3%;">
|
|
|
+ <text>{{userName}}</text>
|
|
|
+ <text style="font-size: 28rpx;" v-if="isAuthPhone">{{userPhone}} </text>
|
|
|
<button type="primary" class="authPhone" open-type="getPhoneNumber" style="font-size: 12px;"
|
|
|
@getphonenumber="getPhoneNumber" v-else>手机号码授权</button>
|
|
|
</view>
|
|
|
@@ -99,9 +99,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
|
- this.switchUserStatus(getApp().globalData.user_status)
|
|
|
},
|
|
|
onShow() {
|
|
|
+ this.switchUserStatus(getApp().globalData.user_status)
|
|
|
this.getUserInfo();
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -143,7 +143,16 @@ export default {
|
|
|
success: res => {
|
|
|
if (res.data.code === 200) {
|
|
|
console.log(res.data.msg)
|
|
|
- that.userInfoObj = res.data.msg
|
|
|
+ that.userInfoObj = res.data.msg;
|
|
|
+ that.isAuth = res.data.msg.auth_status === '1';
|
|
|
+ that.isAuthPhone = res.data.msg.phone;
|
|
|
+ if(that.isAuth){
|
|
|
+ that.userName = getApp().globalData.user_name;
|
|
|
+ that.userHead = getApp().globalData.user_headUrl;
|
|
|
+ }
|
|
|
+ if(that.isAuthPhone){
|
|
|
+ that.userPhone = res.data.msg.phone;
|
|
|
+ }
|
|
|
//that.cashOutList = res.data.msg
|
|
|
}
|
|
|
}
|
|
|
@@ -230,6 +239,7 @@ export default {
|
|
|
|
|
|
},
|
|
|
cancel(type) {
|
|
|
+ this.userStatus = '审核中'+' '
|
|
|
this.$refs.showtip.close()
|
|
|
},
|
|
|
change(e) {
|
|
|
@@ -275,6 +285,8 @@ export default {
|
|
|
success: res => {
|
|
|
if(res.data.code === 200){
|
|
|
getApp().globalData.user_phone = res.data.msg.phoneNumber;
|
|
|
+ that.userPhone = res.data.msg.phoneNumber;
|
|
|
+ that.isAuthPhone = res.data.msg.phoneNumber;
|
|
|
}
|
|
|
}
|
|
|
});
|