dengjie :解决点赞、收藏、客服电话等问题

This commit is contained in:
邓洁
2023-02-04 19:03:41 +08:00
parent 4db15d21cf
commit 08ebc6574d
10 changed files with 128 additions and 102 deletions

View File

@@ -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)
}
});
})