Browse Source

7月4日杨青

杨青 1 year ago
parent
commit
966c2b18ff
1 changed files with 37 additions and 37 deletions
  1. 37 37
      src/xt_pages/sign/Contextowner.vue

+ 37 - 37
src/xt_pages/sign/Contextowner.vue View File

@@ -268,44 +268,44 @@ export default {
268 268
     },
269 269
     mounted(){
270 270
         
271
-        // this.timer = setInterval(() => {
272
-        //     if(this.page < Math.ceil(this.count / 6)){
273
-        //         console.log('执行',Math.ceil(this.count / 6),this.page)
274
-        //         this.page++
275
-        //         let obj = {
276
-        //             cmd: "queue/queuelist",
277
-        //             data: {page:this.page,size:6,sort:0}
278
-        //         };
279
-        //         this.websocketSend(obj)
280
-        //         setTimeout(() => {
281
-        //             this.websocketMess();
282
-        //         }, 1000);
283
-        //     }
284
-        //     else{
285
-        //         console.log('执行22223333')
286
-        //         this.page = 1
287
-        //         let a = {
288
-        //             cmd: "queue/queuelist",
289
-        //             data: {page:this.page,size:6,sort:0}
290
-        //         };
291
-        //         this.websocketSend(a)
292
-        //         setTimeout(() => {
293
-        //             // this.websocketMess();
294
-        //             this.lineUpList
295
-        //         }, 1000);
271
+        this.timer = setInterval(() => {
272
+            if(this.page < Math.ceil(this.count / 6)){
273
+                console.log('执行',Math.ceil(this.count / 6),this.page)
274
+                this.page++
275
+                let obj = {
276
+                    cmd: "queue/queuelist",
277
+                    data: {page:this.page,size:6,sort:0}
278
+                };
279
+                this.websocketSend(obj)
280
+                setTimeout(() => {
281
+                    this.websocketMess();
282
+                }, 1000);
283
+            }
284
+            else{
285
+                console.log('执行22223333')
286
+                this.page = 1
287
+                let a = {
288
+                    cmd: "queue/queuelist",
289
+                    data: {page:this.page,size:6,sort:0}
290
+                };
291
+                this.websocketSend(a)
292
+                setTimeout(() => {
293
+                    // this.websocketMess();
294
+                    this.lineUpList
295
+                }, 1000);
296 296
                 
297
-        //     }
298
-        //     console.log('切换时间',this.queueConfig)
299
-        // }, 1000 * parseInt(this.queueConfig.qhsj));
300
-        // this.timerID = setInterval(() => {
301
-        //     this.updateTime()
302
-        // }, 1000);
303
-        // this.newTimes = setInterval(() => {
304
-        //     // this.reload()
305
-        //     console.log('1222222333333333');
306
-        //     sessionStorage.setItem('lineUpKey',1);
307
-        //     window.location.reload()
308
-        // }, 1000 * 60 * 30);
297
+            }
298
+            console.log('切换时间',this.queueConfig)
299
+        }, 1000 * parseInt(this.queueConfig.qhsj));
300
+        this.timerID = setInterval(() => {
301
+            this.updateTime()
302
+        }, 1000);
303
+        this.newTimes = setInterval(() => {
304
+            // this.reload()
305
+            console.log('1222222333333333');
306
+            sessionStorage.setItem('lineUpKey',1);
307
+            window.location.reload()
308
+        }, 1000 * 60 * 30);
309 309
     },
310 310
     beforeDestroy(){
311 311
         clearInterval(this.timer);// 清除定时器