avater
This commit is contained in:
parent
b914ba7c58
commit
3115ac9447
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="information">
|
<view class="information">
|
||||||
<view class="info-avatar">
|
<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>
|
||||||
<view class="info-item">
|
<view class="info-item">
|
||||||
<view class="title">昵称</view>
|
<view class="title">昵称</view>
|
||||||
@ -51,8 +51,8 @@ export default {
|
|||||||
getUserInfo() {
|
getUserInfo() {
|
||||||
this.$u.api.getMemberInfo().then(res => {
|
this.$u.api.getMemberInfo().then(res => {
|
||||||
if (res.errCode == 0) {
|
if (res.errCode == 0) {
|
||||||
//this.userInfo = res.data.MemberArray;
|
this.userInfo = res.data.MemberArray;
|
||||||
this.$set(this, 'userInfo', res.data.MemberArray);
|
// this.$set(this, 'userInfo', res.data.MemberArray);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<view class="mine">
|
<view class="mine">
|
||||||
<view class="mine-top">
|
<view class="mine-top">
|
||||||
<view class="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="user-info">
|
||||||
<view class="info-top">
|
<view class="info-top">
|
||||||
<view class="user-nickname u-line-1">{{ userInfo.member_nickname }}</view>
|
<view class="user-nickname u-line-1">{{ userInfo.member_nickname }}</view>
|
||||||
@ -207,8 +207,8 @@ export default {
|
|||||||
this.$u.api.getMemberInfo().then(res => {
|
this.$u.api.getMemberInfo().then(res => {
|
||||||
// uni.stopPullDownRefresh();
|
// uni.stopPullDownRefresh();
|
||||||
if (res.errCode == 0) {
|
if (res.errCode == 0) {
|
||||||
// this.userInfo = res.data.MemberArray;
|
this.userInfo = res.data.MemberArray;
|
||||||
this.$set(this, 'userInfo', res.data.MemberArray);
|
// this.$set(this, 'userInfo', res.data.MemberArray);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user