视频
This commit is contained in:
@@ -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);})
|
||||
|
||||
Reference in New Issue
Block a user