dengjie ;拨打电话功能
This commit is contained in:
@@ -10,14 +10,14 @@
|
||||
</u--image>
|
||||
</view>
|
||||
<view style="display: flex;align-items: center;">
|
||||
<text @click="changeAvatar()">{{nickname}}</text>
|
||||
<text @click="changeAvatar()" style="color: #fff;font-size: 26rpx;">{{nickname}}</text>
|
||||
<u--image v-if="showEdit==true" src="/static/my/wd_icon_bj.png" width="22rpx" height="22rpx"
|
||||
@click="changeAvatar()">
|
||||
</u--image>
|
||||
</view>
|
||||
<view style="margin:0 20rpx;">
|
||||
<u-overlay :show="!isLoad">
|
||||
<login @success="reOnLoad()" @fail="failToLoad()"></login>
|
||||
<login :timoutText="timoutText" @success="reOnLoad()" @fail="failToLoad()"></login>
|
||||
</u-overlay>
|
||||
</view>
|
||||
</view>
|
||||
@@ -44,7 +44,8 @@
|
||||
nickname: '用户',
|
||||
normal: '/static/my/wo_icon_pthy.png',
|
||||
VIP: '/static/my/wo_icon_vip.png',
|
||||
isLoad: true
|
||||
isLoad: true,
|
||||
timoutText: 1
|
||||
};
|
||||
},
|
||||
created() {
|
||||
@@ -66,14 +67,10 @@
|
||||
//获取头像昵称和普通会员和VIP会员
|
||||
getUser() {
|
||||
this.$apiServe.getUser().then(res => {
|
||||
console.log('个人信息==', res.data);
|
||||
// if (res.data.msg === "登录超时,请重新登录") {
|
||||
// this.$toast.warn('登录超时,请重新登录')
|
||||
// this.isLoad = false
|
||||
// // uni.navigateTo({
|
||||
// // url: '/pages/my/login/login'
|
||||
// // })
|
||||
// }
|
||||
// console.log('个人信息==', res.data);
|
||||
if (res.data.msg === "登录超时,请重新登录") {
|
||||
this.isLoad = false
|
||||
}
|
||||
var data = res.data.data
|
||||
this.avatar = uni.getStorageSync('img_url') + data.avatar
|
||||
this.nickname = data.nickname
|
||||
@@ -89,7 +86,7 @@
|
||||
return
|
||||
}
|
||||
this.isLoad = true
|
||||
this.$refs.myavatar.getUser()
|
||||
this.getUser()
|
||||
},
|
||||
failToLoad() {
|
||||
uni.navigateBack({
|
||||
|
||||
Reference in New Issue
Block a user