客服模块添加默认头像

This commit is contained in:
赵毅 2025-12-02 10:17:08 +08:00
parent 730eac05b7
commit 83641d4932
2 changed files with 3 additions and 3 deletions

View File

@ -68,9 +68,9 @@ export default {
}, },
getAvatarUrl(record){ getAvatarUrl(record){
if(record.client_id_one == uni.getStorageSync('openId')){ if(record.client_id_one == uni.getStorageSync('openId')){
return record.two.avatar ? picUrl + record.two.avatar : 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/defaultTx.png' return record.two.avatar ? picUrl + record.two.avatar : 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/defaultTx.png'
}else{ }else{
return record.one.avatar ? picUrl + record.one.avatar : 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/defaultTx.png' return record.one.avatar ? picUrl + record.one.avatar : 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/defaultTx.png'
} }
}, },
// //

View File

@ -153,7 +153,7 @@ export default {
}, },
methods: { methods: {
getAvatarUrl(record) { getAvatarUrl(record) {
return this.chatTarget.employee_image ? this.chatTarget.employee_image : 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/defaultTx.png' return this.chatTarget.employee_image ? this.chatTarget.employee_image : 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/defaultTx.png'
}, },
async connect() { async connect() {
this.client = null this.client = null