|
|
@ -15,7 +15,7 @@ |
|
|
|
<view class="userInfo"> |
|
|
|
<view class="userInfo"> |
|
|
|
<view v-if="isLogin"> |
|
|
|
<view v-if="isLogin"> |
|
|
|
<view class="userName"> |
|
|
|
<view class="userName"> |
|
|
|
{{source=='phone'?userInfo.nickname:userInfo.nickName}} |
|
|
|
{{source=='phone'?userInfo.nickname:userInfo.nickname}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="id" v-if="source=='phone'"> |
|
|
|
<view class="id" v-if="source=='phone'"> |
|
|
|
ID:{{userInfo.user_id}} |
|
|
|
ID:{{userInfo.user_id}} |
|
|
@ -124,7 +124,7 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
onShow() { |
|
|
|
this.source = uni.getStorageSync('source') |
|
|
|
this.source = uni.getStorageSync('source') |
|
|
|
console.log(this.source) |
|
|
|
console.log(this.source,"ooo") |
|
|
|
let info = JSON.parse(JSON.stringify(uni.getStorageSync('userInfo'))) |
|
|
|
let info = JSON.parse(JSON.stringify(uni.getStorageSync('userInfo'))) |
|
|
|
if(info.avatar){ |
|
|
|
if(info.avatar){ |
|
|
|
if(info.avatar.indexOf("http") == -1 && info.avatar.indexOf("uploads/") == 0){ |
|
|
|
if(info.avatar.indexOf("http") == -1 && info.avatar.indexOf("uploads/") == 0){ |
|
|
|