sunlupeng 1 anno fa
parent
commit
70f5fa47fe
1 ha cambiato i file con 9 aggiunte e 3 eliminazioni
  1. 9 3
      src/views/HomeView/PointsMall.vue

+ 9 - 3
src/views/HomeView/PointsMall.vue

@@ -140,6 +140,7 @@
 </template>
 <script>
 import { integralList, festivalList, notice, welfareType, integralTypes } from "@/api/allApi";
+import { getTab,setTab } from '@/utils/auth'
 export default {
     data() {
         return {
@@ -168,6 +169,10 @@ export default {
         };
     },
     created() {
+        const Tab = getTab();
+        if(Tab == 'gift'){
+            this.activeName = 'giftNotice';
+        };
         this.getIntegralTypes();
         this.getWelfareList();
         this.getList(this.activeName);
@@ -219,10 +224,11 @@ export default {
                     });
                     this.choseList = dataList;
                     this.curChosed = dataList[0].welfareId;
+                    festivalList({ welfareId: this.curChosed }).then(response => {
+                        console.log(response.data.data);
+                        this.goodsList = response.data.data
+                    })
                 }
-
-            }).catch(() => {
-                this.goodsList = []
             })
         },
         choseProductAttributeType(item) {