瀏覽代碼

修改bug

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

+ 4 - 4
pages/activity/lottery/index.vue

@@ -300,7 +300,7 @@ export default {
     if (this.$route.query.type === 'pc') {
       this.$router.push({ path: '/activity/lottery/pc', query: { token: this.$route.query.token } })
     }
-    if (this.$userAgent.isAndroid) {
+    if (this.$userAgent.isSzx && this.$userAgent.isAndroid) {
       this.token = await window.native.getToken();
     } else {
       this.token = this.$route.query.token;
@@ -490,7 +490,7 @@ export default {
         this.prizeIndex = res.data.luckDrawType === 1 ? 5 : 2;
         if (this.num === 0) {
           this.showPay = true
-          if (this.$userAgent.isAndroid) {
+          if (this.$userAgent.isSzx && this.$userAgent.isAndroid) {
             window.native.isMembersLotto(true)
           }
         }
@@ -532,7 +532,7 @@ export default {
       this.showPay = true;
       // 解锁
       this.isLocking = false;
-      if (this.$userAgent.isAndroid) {
+      if (this.$userAgent.isSzx && this.$userAgent.isAndroid) {
         window.native.isMembersLotto(true)
       }
 
@@ -580,7 +580,7 @@ export default {
       }
       if (this.num === 0) {
         this.showPay = true;
-        if (this.$userAgent.isAndroid) {
+        if (this.$userAgent.isSzx && this.$userAgent.isAndroid) {
           window.native.isMembersLotto(true)
         }
         return false;