|
@@ -24,7 +24,6 @@ Page({
|
|
|
customData: '',
|
|
|
isSubmit: false,
|
|
|
islanya: false,
|
|
|
- isOnBluetooth: false,
|
|
|
imageUrl: "./../../../img/f.png",
|
|
|
connectDevice: {},
|
|
|
},
|
|
@@ -124,25 +123,14 @@ Page({
|
|
|
case xBlufi.XBLUFI_TYPE.TYPE_CONNECTED:
|
|
|
wx.hideLoading();
|
|
|
if (options.result) {
|
|
|
- if (that.data.isOnBluetooth) {
|
|
|
- return;
|
|
|
- };
|
|
|
-
|
|
|
that.setData({
|
|
|
- isOnBluetooth: true,
|
|
|
+ islanya: false,
|
|
|
+ devicesList: [],
|
|
|
});
|
|
|
|
|
|
- setTimeout(() => {
|
|
|
- that.setData({
|
|
|
- islanya: false,
|
|
|
- devicesList: [],
|
|
|
- isOnBluetooth: false,
|
|
|
- });
|
|
|
-
|
|
|
- var p = JSON.stringify(that.data.connectDevice);
|
|
|
- var param = '?deviceId=' + options.data.deviceId + '&name=' + options.data.name + "¶m=" + p;
|
|
|
- routeUtil.jumpParam(routePath.deviceConnect3, param);
|
|
|
- }, 200);
|
|
|
+ var p = JSON.stringify(that.data.connectDevice);
|
|
|
+ var param = '?deviceId=' + options.data.deviceId + '&name=' + options.data.name + "¶m=" + p;
|
|
|
+ routeUtil.jumpParam(routePath.deviceConnect3, param);
|
|
|
} else {
|
|
|
wx.showModal({
|
|
|
title: '提示',
|
|
@@ -196,8 +184,16 @@ Page({
|
|
|
var isJungzheng2 = junzhengUtil.isJungzheng2(name);
|
|
|
|
|
|
if (isJungzheng1 || isJungzheng2) {
|
|
|
- var param = '?deviceId=' + deviceId + '&name=' + name + "¶m=" + JSON.stringify(that.data.connectDevice);
|
|
|
- routeUtil.jumpParam(routePath.deviceConnect4, param);
|
|
|
+ setTimeout(() => {
|
|
|
+ wx.hideLoading();
|
|
|
+ that.setData({
|
|
|
+ islanya: false,
|
|
|
+ devicesList: [],
|
|
|
+ });
|
|
|
+
|
|
|
+ var param = '?deviceId=' + deviceId + '&name=' + name + "¶m=" + JSON.stringify(that.data.connectDevice);
|
|
|
+ routeUtil.jumpParam(routePath.deviceConnect4, param);
|
|
|
+ }, 500);
|
|
|
return;
|
|
|
}
|
|
|
|