|
@@ -3,6 +3,8 @@ let xBlufi = require("../../../utils/blufi/xBlufi.js");
|
|
|
import strings from '../../../utils/strings.js';
|
|
|
import lexin_devices from '../../../utils/lexin/devices';
|
|
|
import junzheng_util from '../../../utils/junzheng/util';
|
|
|
+import routeUtil from '../../../utils/routeUtil.js';
|
|
|
+import routePath from '../../../utils/routePath.js';
|
|
|
|
|
|
Page({
|
|
|
|
|
@@ -147,10 +149,8 @@ Page({
|
|
|
devicesList: [],
|
|
|
isOnBluetooth: false,
|
|
|
});
|
|
|
- var param = JSON.stringify(that.data.connectDevice);
|
|
|
- wx.redirectTo({
|
|
|
- url: '../deviceConnect3/deviceConnect3?deviceId=' + options.data.deviceId + '&name=' + options.data.name + "¶m=" + param,
|
|
|
- });
|
|
|
+ var param = 'deviceId=' + options.data.deviceId + '&name=' + options.data.name + "¶m=" + param;
|
|
|
+ routeUtil.redirectParam(routePath.deviceConnect3, param);
|
|
|
}, 200);
|
|
|
} else {
|
|
|
that.data.isSubmit = false;
|
|
@@ -209,10 +209,8 @@ Page({
|
|
|
var isJungzheng2 = junzheng_util.isJungzheng2(name);
|
|
|
|
|
|
if (isJungzheng1 || isJungzheng2) {
|
|
|
- var param = JSON.stringify(that.data.connectDevice);
|
|
|
- wx.redirectTo({
|
|
|
- url: '../deviceConnect4/deviceConnect4?deviceId=' + deviceId + '&name=' + name + "¶m=" + param,
|
|
|
- });
|
|
|
+ var param = 'deviceId=' + deviceId + '&name=' + name + "¶m=" + JSON.stringify(that.data.connectDevice)
|
|
|
+ routeUtil.redirectParam(routePath.deviceConnect4, param);
|
|
|
return;
|
|
|
}
|
|
|
|