Просмотр исходного кода

1.fix bug 2.商品消息的图片使用 smallCover

shizhongqi 10 месяцев назад
Родитель
Сommit
594a67504b

+ 2 - 0
hdApp/src/admin/home/workbench.vue

@@ -514,6 +514,8 @@ export default {
 			})
   },
   onShow () {
+      this.unReadMsgNum = 0; // 重置未读消息数
+    
       if(this.backAction == 'login'){
         this.init()
       }

+ 5 - 1
mallApp/src/pages/goods/detail.vue

@@ -126,6 +126,8 @@ export default {
       this.initializeOption(option);
       // 如果是普通路由跳转,直接获取商品信息
       this.getGoodsInfo();
+      this.hdId = this.option.hdId || 0;
+      this.account = this.option.account || 0;
     }
 
     const eventChannel = this.getOpenerEventChannel();
@@ -134,6 +136,8 @@ export default {
       // 兼容
       if (Object.keys(option).length == 0) {
         this.option = {...data};
+        this.hdId = this.option.hdId || 0;
+        this.account = this.option.account || 0;
       }
       this.initializeChatPage(data);
       // eventChannel 执行完成后,获取商品信息
@@ -367,7 +371,7 @@ export default {
         goodsName: this.data.name,
         goodsPriceType: this.data.priceType,
         goodsPrice: this.data.price,
-        goodsImg: this.data.cover,
+        goodsImg: this.data.smallCover, // smallCover, cover, bigCover。 取smallCover
         account: this.shopInfo.account,
         hdId: this.shopInfo.hdId,
         categoryId: this.shopInfo.categoryId,

+ 1 - 1
mallApp/src/plugins/luch-request_0.0.7/request.js

@@ -267,7 +267,7 @@ class Request {
 		} else {
 			// 判断data中有无account和hdId
 			if(data.account && data.hdId){
-				options.url = url + parse({...data})
+				options.url = url + parse({...data, 'account':data.account, 'hdId':data.hdId})
 			} else if(data.account && !data.hdId){
 				options.url = url + parse({...data, 'hdId':hdId})
 			} else if(!data.account && data.hdId){