|
@@ -9,7 +9,7 @@ import time_util from '../../utils/time_util.js';
|
|
|
import strings from '../../utils/strings.js';
|
|
|
import store from '../../utils/store.js';
|
|
|
import routePath from '../../utils/routePath.js';
|
|
|
-import route_util from '../../utils/route_util.js';
|
|
|
+import routeUtil from '../../utils/routeUtil.js';
|
|
|
|
|
|
/// 乐鑫相关
|
|
|
import lexin_util from '../../utils/lexin/util.js';
|
|
@@ -541,7 +541,7 @@ Page({
|
|
|
that.logOut();
|
|
|
return;
|
|
|
}
|
|
|
- route_util.jump(routePath.login);
|
|
|
+ routeUtil.jump(routePath.login);
|
|
|
},
|
|
|
|
|
|
///退出登录
|
|
@@ -599,7 +599,7 @@ Page({
|
|
|
var that = this;
|
|
|
var isLogin = that.getIsLogin();
|
|
|
if (!isLogin) {
|
|
|
- route_util.jump(routePath.login);
|
|
|
+ routeUtil.jump(routePath.login);
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -624,7 +624,7 @@ Page({
|
|
|
var deviceList = that.getDeviceList();
|
|
|
let curDevice = deviceList[index]
|
|
|
if (index === deviceListSelect && device.state === "online") {
|
|
|
- route_util.jumpParam('/pages/deviceDetail/detail', JSON.stringify(curDevice))
|
|
|
+ routeUtil.jumpParam('/pages/deviceDetail/detail', JSON.stringify(curDevice))
|
|
|
} else if (device.state === "offline") {
|
|
|
|
|
|
var deviceListSelect = that.getDeviceListSelect();
|
|
@@ -1016,11 +1016,11 @@ Page({
|
|
|
}
|
|
|
// 内链,暂时不支持
|
|
|
if (item.forwardType == 0) {
|
|
|
- route_util.jump(item.forwardUrl, item.forwardUrl);
|
|
|
+ routeUtil.jump(item.forwardUrl, item.forwardUrl);
|
|
|
}
|
|
|
// 外链
|
|
|
else if (item.forwardType == 1) {
|
|
|
- route_util.jumpParam(routePath.webview, item.forwardUrl);
|
|
|
+ routeUtil.jumpParam(routePath.webview, item.forwardUrl);
|
|
|
} else {
|
|
|
|
|
|
}
|
|
@@ -1037,14 +1037,14 @@ Page({
|
|
|
///添加设备
|
|
|
jumpToAddDevice() {
|
|
|
var that = this;
|
|
|
- // route_util.jump("../deviceConnect4/deviceConnect4");
|
|
|
+ // routeUtil.jump("../deviceConnect4/deviceConnect4");
|
|
|
// return;
|
|
|
var isLogin = that.getIsLogin();
|
|
|
if (!isLogin) {
|
|
|
- route_util.jump(routePath.login);
|
|
|
+ routeUtil.jump(routePath.login);
|
|
|
return;
|
|
|
}
|
|
|
- route_util.jump(routePath.deviceList);
|
|
|
+ routeUtil.jump(routePath.deviceList);
|
|
|
},
|
|
|
|
|
|
// 关于我们
|