Explorar el Código

【修复】拼团装修组件,跳转拼团商品界面的 id 不正确的问题

YunaiV hace 1 año
padre
commit
68d2fc4c24

+ 2 - 4
sheep/components/s-groupon-block/s-groupon-block.vue

@@ -27,8 +27,7 @@
           :bottomRadius="data.borderRadiusBottom"
           @click="
             sheep.$router.go('/pages/goods/groupon', {
-              id: product.id,
-              activity_id: props.data.activityId,
+              id: props.data.activityId,
             })
           "
         ></s-goods-column>
@@ -54,8 +53,7 @@
           :bottomRadius="data.borderRadiusBottom"
           @click="
             sheep.$router.go('/pages/goods/groupon', {
-              id: product.id,
-              activity_id: props.data.activityId,
+              id: props.data.activityId,
             })
           "
         >

+ 1 - 1
sheep/platform/share.js

@@ -130,7 +130,7 @@ const decryptSpm = (spm) => {
       query = shareParamsArray[2].split(',');
       shareParams.query = {
         id: query[0],
-        activity_id: query[1],
+        activity_id: query[1], // TODO 芋艿:接入分享后,应该统一成 id 参数
       };
       break;
     case '4':