duanshenglang 2 days ago
parent
commit
937a76d8fd
2 changed files with 18 additions and 33 deletions
  1. 4 2
      lottery/registrationActivity.html
  2. 14 31
      lottery/smartTab.html

+ 4 - 2
lottery/registrationActivity.html

@@ -442,7 +442,8 @@
         && Number(toshopData.id) !== 116568649610001
         && Number(toshopData.id) !== 116816531710011
         && Number(toshopData.id) !== 117422198310041
-        && Number(toshopData.id) !== 117472990410101">【 报名成功还能抽华为手机! 】</div>
+        && Number(toshopData.id) !== 117472990410101
+        && Number(toshopData.id) !== 117536128510031">【 报名成功还能抽华为手机! 】</div>
         <el-form ref="form" label-position="left" label-width="120px">
           <el-form-item v-for="(item, index) in toshopData.formProList" :key="index" :label="item.name"
             :required="Boolean(item.isNeed)">
@@ -482,7 +483,8 @@
           && Number(toshopData.id) !== 116568649610001
           && Number(toshopData.id) !== 116816531710011
           && Number(toshopData.id) !== 117422198310041
-          && Number(toshopData.id) !== 117472990410101">【 报名成功还能抽华为手机 】</div>
+          && Number(toshopData.id) !== 117472990410101
+          && Number(toshopData.id) !== 117536128510031">【 报名成功还能抽华为手机 】</div>
         </el-button>
         <el-button class="signUp_btn" :loading="loading" @click="toSignUp" v-else>确定</el-button>
       </div>

+ 14 - 31
lottery/smartTab.html

@@ -18,10 +18,10 @@
     src="https://wl-1306604067.cos.ap-guangzhou.myqcloud.com/production/ct/103548289110001/1742017747738/element-ui.js"></script>
   <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
   <script src="https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"></script>
-  <!-- <script src="js/vconsole.min.js"></script>
+  <script src="js/vconsole.min.js"></script>
   <script>
 		  var vConsole = new window.VConsole();
-		</script> -->
+		</script>
 </head>
 <style>
   body {
@@ -380,8 +380,6 @@
           problem: '',
           reply: '',
         },
-        timer: null,
-        secondTimer: null,
         loading: false,
         disabled1: true,
         disabled2: true,
@@ -407,23 +405,15 @@
       } else {
         this.httpUrl = 'http://test.wefanbot.com:18993'
       }
-      
+      this.activeName = 'first'
       if (this.getQueryParam('memberId')) {
         // 已授权
         this.memberId = this.getQueryParam('memberId')
         if (this.getQueryParam('externalUserId')) {
           this.externalUserId = this.getQueryParam('externalUserId')
           this.getClientExt()
-          this.getLastMsg()
-          // 设置定时器:每60秒刷新一次
-          this.timer = setInterval(() => {
-            this.getLastMsg()
-          }, 5 * 1000)
-          this.insight()
-          this.secondTimer = setInterval(() => {
-            this.insight()
-          }, 5 * 1000)
           this.getCityLevel()
+          this.getLastMsg()
         } else {
           this.getQyWxSign()
         }
@@ -431,15 +421,6 @@
         // 授权
         this.getAuth()
       }
-      // this.memberId = "woU17nDAAAfzP9lzjd-G8iwCiveKR8GA"
-      // this.externalUserId = "wmU17nDAAALFy-xUBJDwHbB5CsjzeY_g"
-      // this.getClientExt()
-      // this.getLastMsg()
-      // // 设置定时器:每60秒刷新一次
-      // this.timer = setInterval(() => {
-      //   this.getLastMsg()
-      // }, 60 * 1000)
-      // this.getCityLevel()
     },
     methods: {
       getAuth() {
@@ -491,14 +472,6 @@
                     that.externalUserId = res.userId
                     that.getClientExt()
                     that.getLastMsg()
-                    // 设置定时器:每60秒刷新一次
-                    that.timer = setInterval(() => {
-                      that.getLastMsg()
-                    }, 5 * 1000)
-                    that.insight()
-                    that.secondTimer = setInterval(() => {
-                      that.insight()
-                    }, 5 * 1000)
                     that.getCityLevel()
                   } else {
                     //错误处理
@@ -584,6 +557,11 @@
               type: 'warning'
             })
           }
+        }).finally(() => {
+          // 无论成功失败都等待5秒后重新调用
+          setTimeout(() => {
+            this.getLastMsg()
+          }, 5000)
         })
       },
       sendMsg(item) {
@@ -675,6 +653,11 @@
               type: 'warning'
             })
           }
+        }).finally(() => {
+          // 无论成功失败都等待5秒后重新调用
+          setTimeout(() => {
+            this.insight()
+          }, 5000)
         })
       },
       handleSave (num, status) {