瀏覽代碼

修改bug

huangxiaojing 2 年之前
父節點
當前提交
ab75cd2e22
共有 2 個文件被更改,包括 11 次插入8 次删除
  1. 10 8
      pages/activity/lottery/index.vue
  2. 1 0
      pages/activity/lottery/pc.vue

+ 10 - 8
pages/activity/lottery/index.vue

@@ -305,7 +305,15 @@ export default {
     } else {
       this.token = this.$route.query.token;
     }
-
+  },
+  head: {
+    title: '年卡抽奖活动',
+  },
+  created() {
+    this.getLuckDrawActivity();
+    this.getCarouselList();
+  },
+  mounted() {
     if (this.$userAgent.isAndroid) {
       this.client = 1;
     } else if (this.$userAgent.isIos) {
@@ -317,13 +325,6 @@ export default {
     }
     console.log(this.client);
   },
-  head: {
-    title: '年卡抽奖活动',
-  },
-  created() {
-    this.getLuckDrawActivity();
-    this.getCarouselList();
-  },
   methods: {
     async getCarouselList() {
       const res = await this.$axios.$post('/activity/v1/member/carousel');
@@ -583,6 +584,7 @@ export default {
     },
     closed() {
       this.makePoint('activity_关闭抽奖', 'eventCode传27_抽奖流程');
+      this.selMealId = this.mealId;
       if (+localStorage.getItem('year-15-9') !== 2) {
         this.show = true;
         localStorage.setItem('year-15-9', 2);

+ 1 - 0
pages/activity/lottery/pc.vue

@@ -528,6 +528,7 @@ export default {
     },
     closed() {
       this.makePoint('activity_关闭抽奖', 'eventCode传27_抽奖流程');
+      this.selMealId = this.mealId;
       if (+localStorage.getItem('year-15-9') !== 2) {
         this.show = true;
         localStorage.setItem('year-15-9', 2);