dengjie :解决点赞、收藏、客服电话等问题
This commit is contained in:
@@ -40,9 +40,8 @@
|
||||
//获取头像昵称
|
||||
getUser() {
|
||||
this.$apiServe.getUser().then(res => {
|
||||
console.log('头像昵称', res.data);
|
||||
var data = res.data.data
|
||||
this.avatar = data.avatar
|
||||
this.avatar = uni.getStorageSync('img_url') + data.avatar
|
||||
this.model.userInfo.name = data.nickname
|
||||
}).finally(_ => {})
|
||||
},
|
||||
@@ -58,10 +57,7 @@
|
||||
'Authorization': token
|
||||
},
|
||||
success: (res) => {
|
||||
console.log('上传头像', JSON.parse(res.data));
|
||||
// setTimeout(() => {
|
||||
resolve(JSON.parse(res.data).data.url)
|
||||
// }, 1000)
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user