Pārlūkot izejas kodu

福利页面添加寄卖横幅(云店服务)

2662043119@qq.com 1 gadu atpakaļ
vecāks
revīzija
82c3ae65b5
2 mainītis faili ar 10 papildinājumiem un 2 dzēšanām
  1. 9 2
      src/pages/sign/index.vue
  2. 1 0
      src/pagesB/specialregion/index.vue

+ 9 - 2
src/pages/sign/index.vue

@@ -43,7 +43,7 @@
               class="pick_img"
               mode="widthFix"
               :src="item.image"
-              @click="goto('/pages/product/productRetail', { type: item.type })"
+              @click="toPage(item.type)"
             ></image>
         </view>
         <!-- 天天捡漏等活动区-end -->
@@ -144,7 +144,7 @@ export default {
                 }
             });
         },
-        // 天天捡漏
+        // 横幅活动
         getActivityList() {
             post("v1/goods/simple").then((res) => {
                 if (res.code === 0) {
@@ -154,6 +154,13 @@ export default {
                 }
             });
         },
+        toPage(type){
+            if(type == 1){
+                this.goto("/pagesB/specialregion/index")
+            }else{
+                this.goto("/pages/product/productRetail", { type: type })
+            }
+        },
         typeto(va) {
             switch (va) {
                 case 1: return "消费商";

+ 1 - 0
src/pagesB/specialregion/index.vue

@@ -144,6 +144,7 @@ export default {
         },
     },
     onLoad(da) {
+        page = 1
         this.loadData();
     },
     onShow() {