This commit is contained in:
zoujiandong
2024-01-12 09:38:24 +08:00
parent efb6a9aacf
commit 360c1bb977
301 changed files with 19221 additions and 986 deletions
+8
View File
@@ -57,6 +57,14 @@ Page({
this.setData({
baseInfo: response.data
})
let promise=wx.$TUIKit.getUserProfile({
userIDList: [response.data.patient_user_id]
});
promise.then(function(imResponse) {
wx.setStorageSync('patient_avatar',imResponse.data[0].avatar);
}).catch(function(imError) {
console.warn('getUserProfile error:', imError); // 获取其他用户资料失败的相关信息
});
}).then(res => {
this.initChat();
}).catch(errors => {console.error(errors);})