This commit is contained in:
Gdpao 2020-09-23 09:55:30 +08:00
parent b914ba7c58
commit 3115ac9447
2 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
<template>
<view class="information">
<view class="info-avatar">
<u-avatar :src="userInfo.member_avatar" :size="120"></u-avatar>
<u-avatar :src="userInfo.member_avatar + '?' + (new Date().getTime())" :size="120"></u-avatar>
</view>
<view class="info-item">
<view class="title">昵称</view>
@ -51,8 +51,8 @@ export default {
getUserInfo() {
this.$u.api.getMemberInfo().then(res => {
if (res.errCode == 0) {
//this.userInfo = res.data.MemberArray;
this.$set(this, 'userInfo', res.data.MemberArray);
this.userInfo = res.data.MemberArray;
// this.$set(this, 'userInfo', res.data.MemberArray);
}
})
},

View File

@ -2,7 +2,7 @@
<view class="mine">
<view class="mine-top">
<view class="top">
<u-avatar @click="toOtherPage('/mine/MineInfo')" :src="userInfo.member_avatar" :size="110"></u-avatar>
<u-avatar @click="toOtherPage('/mine/MineInfo')" :src="userInfo.member_avatar + '?' + (new Date().getTime())" :size="110"></u-avatar>
<view class="user-info">
<view class="info-top">
<view class="user-nickname u-line-1">{{ userInfo.member_nickname }}</view>
@ -207,8 +207,8 @@ export default {
this.$u.api.getMemberInfo().then(res => {
// uni.stopPullDownRefresh();
if (res.errCode == 0) {
// this.userInfo = res.data.MemberArray;
this.$set(this, 'userInfo', res.data.MemberArray);
this.userInfo = res.data.MemberArray;
// this.$set(this, 'userInfo', res.data.MemberArray);
}
})
},