huangxiaojing 2 lat temu
rodzic
commit
157537182e

+ 6 - 5
pages/activity/lottery/index.vue

@@ -303,11 +303,7 @@ export default {
     } else {
     } else {
       this.token = this.$route.query.token;
       this.token = this.$route.query.token;
     }
     }
-  },
-  head: {
-    title: '年卡抽奖活动',
-  },
-  created() {
+    
     if (this.$userAgent.isAndroid) {
     if (this.$userAgent.isAndroid) {
       this.client = 1;
       this.client = 1;
     } else if (this.$userAgent.isIos) {
     } else if (this.$userAgent.isIos) {
@@ -317,6 +313,11 @@ export default {
     } else {
     } else {
       this.client = 7;
       this.client = 7;
     }
     }
+  },
+  head: {
+    title: '年卡抽奖活动',
+  },
+  created() {
     this.getLuckDrawActivity();
     this.getLuckDrawActivity();
     this.getCarouselList();
     this.getCarouselList();
   },
   },

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

@@ -295,12 +295,12 @@ export default {
   },
   },
   async fetch() {
   async fetch() {
     this.token = await this.$route.query.token;
     this.token = await this.$route.query.token;
+    this.client = 3;
   },
   },
   head: {
   head: {
     title: '年卡抽奖活动',
     title: '年卡抽奖活动',
   },
   },
   created() {
   created() {
-    this.client = 3;
     this.getLuckDrawActivity();
     this.getLuckDrawActivity();
     this.getCarouselList();
     this.getCarouselList();
   },
   },