|
|
|
|
@ -8,7 +8,7 @@
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="me">
|
|
|
|
|
<view class="me-avatar" @click="showform = true,maskClose=true">
|
|
|
|
|
<view class="me-avatar" @click="getInitUser(true)">
|
|
|
|
|
<view>
|
|
|
|
|
<image :src="info.headimgurl?info.headimgurl:headReplace" mode=""></image>
|
|
|
|
|
<view class="">
|
|
|
|
|
@ -61,6 +61,7 @@
|
|
|
|
|
<u-popup v-model="showPhone" mode="bottom" :mask-close-able="false">
|
|
|
|
|
<view class="login-btn" style="padding:60rpx">
|
|
|
|
|
<button class="login-btn-btn" open-type="getPhoneNumber" @getphonenumber="getUserWxPhone">授权手机号</button>
|
|
|
|
|
<view style="text-align: center;padding: 10px;font-size: 36rpx;color: rgba(0,0,0,0.5);" @click="showPhone=false">取消</view>
|
|
|
|
|
</view>
|
|
|
|
|
</u-popup>
|
|
|
|
|
<!-- 弹出头像 昵称12 -->
|
|
|
|
|
@ -85,7 +86,7 @@
|
|
|
|
|
<view>
|
|
|
|
|
<span>电话:</span>
|
|
|
|
|
<view>
|
|
|
|
|
<input :placeholderStyle="'color:#999;font-size:30rpx'" v-model="form.mobile"
|
|
|
|
|
<input disabled :placeholderStyle="'color:#999;font-size:30rpx'" v-model="form.mobile"
|
|
|
|
|
placeholder="请输入手机号" :border="false" shape="circle" clearable></input>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
@ -166,7 +167,7 @@
|
|
|
|
|
this.myToken = uni.getStorageSync('xtt_lifeData3')?uni.getStorageSync('xtt_lifeData3').vuex_token:''
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
this.getInitUser()
|
|
|
|
|
// this.getInitUser()
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
onChooseAvatar(e) {
|
|
|
|
|
@ -217,8 +218,14 @@
|
|
|
|
|
this.showPhone = false
|
|
|
|
|
this.showform = true
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
async getInitUser() {
|
|
|
|
|
},
|
|
|
|
|
// open(){
|
|
|
|
|
// if(!this.showPhone){
|
|
|
|
|
// this.showform = true
|
|
|
|
|
// this.maskClose = true
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
async getInitUser(open) {
|
|
|
|
|
const res = await this.$u.api.user()
|
|
|
|
|
this.$u.vuex('vuex_user', res.user)
|
|
|
|
|
this.form = res.user
|
|
|
|
|
@ -226,6 +233,11 @@
|
|
|
|
|
this.info = this.$u.deepClone(res.user);
|
|
|
|
|
if (isNull(res.user.mobile)) {
|
|
|
|
|
this.showPhone = true
|
|
|
|
|
}else{
|
|
|
|
|
if(open){
|
|
|
|
|
this.showform = true
|
|
|
|
|
this.maskClose = true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
submit() {
|
|
|
|
|
|