Sfoglia il codice sorgente

feature: 处理wifi连接成功后停滞时间长度

Damon 7 mesi fa
parent
commit
c10358e76e
2 ha cambiato i file con 3 aggiunte e 4 eliminazioni
  1. 3 2
      pages/deviceConnect3/deviceConnect3.js
  2. 0 2
      pages/index/index.js

+ 3 - 2
pages/deviceConnect3/deviceConnect3.js

@@ -5,6 +5,7 @@ import route_constant from '../../utils/route_constant.js'
 import route_util from '../../utils/route_util.js';
 let percentIn = null;
 let errTi = null;
+
 Page({
   data: {
     nvabarData: {
@@ -120,7 +121,7 @@ Page({
                 percent: 100,
                 ruterStatus: 1,
               });
-            }, 1 * 1000);
+            }, 200);
 
           }
         }
@@ -141,7 +142,7 @@ Page({
                 delta: 1
               });
             },
-          })
+          });
         }
         break;
     }

+ 0 - 2
pages/index/index.js

@@ -416,7 +416,6 @@ Page({
     });
   },
 
-
   ///是否是同一个蓝牙
   isTheSameBlue(device) {
     var that = this;
@@ -542,7 +541,6 @@ Page({
   // 新添加Wifi设备
   addWifiDevice(device) {
     var that = this;
-    var that = this;
     var isOK = app.globalData.client && app.globalData.client.connected;
     if (!isOK) {
       app.connect();