|
|
@@ -6,7 +6,7 @@ |
|
|
|
<image src="/static/images/arrow.png" class="more"> |
|
|
|
</image> |
|
|
|
<image |
|
|
|
:src="picUrl||'https://qufang.oss-cn-beijing.aliyuncs.com/upload/icon/xcx/zkgj/headPicture.png'" |
|
|
|
:src="avatar||'https://qufang.oss-cn-beijing.aliyuncs.com/upload/icon/xcx/zkgj/headPicture.png'" |
|
|
|
class="headPicture"></image> |
|
|
|
</view> |
|
|
|
<view> |
|
|
@@ -17,11 +17,11 @@ |
|
|
|
<text class="userName">{{name||"暂无昵称"}}</text> |
|
|
|
</navigator> |
|
|
|
|
|
|
|
<navigator class="setList" url="/pages/mine/signature"> |
|
|
|
<!-- <navigator class="setList" url="/pages/mine/signature"> |
|
|
|
<text style="font-size: 30rpx;color: #333333;">签名</text> |
|
|
|
<image src="/static/images/arrow.png" class="more"></image> |
|
|
|
<text class="userName">{{personalProfile||"暂无签名"}}</text> |
|
|
|
</navigator> |
|
|
|
</navigator> --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@@ -36,7 +36,7 @@ |
|
|
|
data() { |
|
|
|
return { |
|
|
|
userInfo: {}, |
|
|
|
picUrl: "", |
|
|
|
avatar: "", |
|
|
|
name: "", |
|
|
|
personalProfile: "" |
|
|
|
}; |
|
|
@@ -44,7 +44,7 @@ |
|
|
|
onShow: function() { |
|
|
|
const userInfo = uni.getStorageSync("weapp_session_userInfo_data"); |
|
|
|
this.userInfo = userInfo; |
|
|
|
this.picUrl = userInfo.picUrl; |
|
|
|
this.avatar = userInfo.avatar; |
|
|
|
this.name = userInfo.name; |
|
|
|
this.personalProfile = userInfo.personalProfile; |
|
|
|
}, |
|
|
@@ -94,8 +94,8 @@ |
|
|
|
const result = JSON.parse(res.data); |
|
|
|
if (result.code == 10000) { |
|
|
|
console.log(result.data); |
|
|
|
that.picUrl = result.data; |
|
|
|
that.userInfo.picUrl = result.data; |
|
|
|
that.avatar = result.data; |
|
|
|
that.userInfo.avatar = result.data; |
|
|
|
uni.setStorageSync("weapp_session_userInfo_data", that.userInfo); |
|
|
|
util.showSuccess('修改成功'); |
|
|
|
} else { |
|
|
|