Переглянути джерело

聊天用户头像默认为 hhb_small.png

shizhongqi 11 місяців тому
батько
коміт
9b00de933e
2 змінених файлів з 2 додано та 2 видалено
  1. 1 1
      hdApp/src/admin/chat/list.vue
  2. 1 1
      mallApp/src/pages/chat/list.vue

+ 1 - 1
hdApp/src/admin/chat/list.vue

@@ -84,7 +84,7 @@ export default {
   },
   },
   onLoad(options) {
   onLoad(options) {
     const avatar = uni.getStorageSync('shopAvatar');
     const avatar = uni.getStorageSync('shopAvatar');
-    this.shopAvatar = avatar != '' ? this.$constant.imgUrl +'/'+ avatar + '?x-oss-process=image/resize,m_fill,h_130,w_130' : this.$constant.imgUrl + '/retail/default-img.png';
+    this.shopAvatar = avatar != '' ? this.$constant.imgUrl +'/'+ avatar + '?x-oss-process=image/resize,m_fill,h_130,w_130' : this.$constant.imgUrl + '/hhb_small.png?x-oss-process=image/resize,m_fill,h_130,w_130';
   },
   },
   onShow() {
   onShow() {
     this.getMyCustomList();
     this.getMyCustomList();

+ 1 - 1
mallApp/src/pages/chat/list.vue

@@ -91,7 +91,7 @@ export default {
     ...mapGetters(["getLoginInfo"]),
     ...mapGetters(["getLoginInfo"]),
   },
   },
   onLoad(options) {
   onLoad(options) {
-    this.shopAvatar = this.getLoginInfo.avatar != '' ? this.getLoginInfo.avatar : this.$constant.imgUrl + '/retail/default-img.png';
+    this.shopAvatar = this.getLoginInfo.avatar != '' ? this.getLoginInfo.avatar : this.$constant.imgUrl + '/hhb_small.png?x-oss-process=image/resize,m_fill,h_130,w_130';
 
 
   },
   },
   onShow() {
   onShow() {