Browse Source

拼团详情供应商商品没传mch_id修复

一懒众山小 3 years ago
parent
commit
27b857c4ac
2 changed files with 11 additions and 6 deletions
  1. 3 3
      src/plugins/pt/components/app-product-list.vue
  2. 8 3
      src/plugins/pt/goods/goods.vue

+ 3 - 3
src/plugins/pt/components/app-product-list.vue

xqd
@@ -78,19 +78,19 @@
 
                     // #ifdef H5
                     uni.navigateTo({
-                        url: `/plugins/pt/goods/goods?goods_id=${data.id}`,
+                        url: data.page_url,
                     });
                     // #endif
                 } else {
                     uni.navigateTo({
-                        url: `/plugins/pt/goods/goods?goods_id=${data.id}`,
+                        url: data.page_url,
                     });
                 }
                 // #endif
 
                 // #ifdef MP-BAIDU
                 uni.navigateTo({
-                    url: `/plugins/pt/goods/goods?goods_id=${data.id}`,
+                    url: data.page_url,
                 });
                 // #endif
             }

+ 8 - 3
src/plugins/pt/goods/goods.vue

xqd xqd xqd xqd xqd
@@ -201,6 +201,7 @@
                 showClose: false,
                 is_open: 0,
                 goods_id: 0,
+				mch_id:0,
                 detail: {
                     goods_activity: {
                         full_reduce: {}
@@ -362,7 +363,8 @@
             })
         },
         onLoad(options) { this.$commonLoad.onload(options);
-            this.webUrl = '/plugins/pt/goods/goods?goods_id=' + options.goods_id;
+            this.webUrl = '/plugins/pt/goods/goods?goods_id=' + options.goods_id+'&mch_id='+options.mch_id;
+			this.mch_id = options.mch_id;
             this.goods_id = options.goods_id;
             this.requestDetail();
             this.newRecommend();
@@ -378,7 +380,8 @@
             return this.$shareTimeline({
                 title: this.detail.app_share_title ? this.detail.app_share_title : this.detail.name,
                 query: {
-                    goods_id: this.goods_id
+                    goods_id: this.goods_id,
+					mch_id:this.mch_id
                 } // 此处填写页面的参数
             });
         },
@@ -396,7 +399,8 @@
                     imageUrl: this.detail.app_share_pic ? this.detail.app_share_pic : this.detail.pic_url[0].pic_url,
                     desc: this.detail.subtitle,
                     params: {
-                        goods_id: this.goods_id
+                        goods_id: this.goods_id,
+						mch_id:this.mch_id
                     }
                 }, s);
             },
@@ -415,6 +419,7 @@
                     method: 'get',
                     data: {
                         id: this.goods_id,
+						mch_id:this.mch_id
                     }
                 });
                 if (e.code === 0) {