|
@@ -8,7 +8,7 @@ const {
|
|
|
import time_util from '../../utils/time_util.js';
|
|
|
import strings from '../../utils/strings.js';
|
|
|
import store from '../../utils/store.js';
|
|
|
-import route_constant from '../../utils/route_constant.js';
|
|
|
+import routePath from '../../utils/route_path.js';
|
|
|
import route_util from '../../utils/route_util.js';
|
|
|
|
|
|
/// 乐鑫相关
|
|
@@ -541,7 +541,7 @@ Page({
|
|
|
that.logOut();
|
|
|
return;
|
|
|
}
|
|
|
- route_util.jump(route_constant.login);
|
|
|
+ route_util.jump(routePath.login);
|
|
|
},
|
|
|
|
|
|
///退出登录
|
|
@@ -599,7 +599,7 @@ Page({
|
|
|
var that = this;
|
|
|
var isLogin = that.getIsLogin();
|
|
|
if (!isLogin) {
|
|
|
- route_util.jump(route_constant.login);
|
|
|
+ route_util.jump(routePath.login);
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -1012,19 +1012,21 @@ Page({
|
|
|
var item = e.currentTarget.dataset.item;
|
|
|
try {
|
|
|
if (strings.isEmpty(item.forwardUrl)) {
|
|
|
- return
|
|
|
+ return;
|
|
|
}
|
|
|
+ // 内链,暂时不支持
|
|
|
if (item.forwardType == 0) {
|
|
|
- // 内链,暂时不支持
|
|
|
route_util.jump(item.forwardUrl, item.forwardUrl);
|
|
|
- } else if (item.forwardType == 1) {
|
|
|
- // 外链
|
|
|
- route_util.jumpParam(route_constant.webview, item.forwardUrl);
|
|
|
+ }
|
|
|
+ // 外链
|
|
|
+ else if (item.forwardType == 1) {
|
|
|
+ route_util.jumpParam(routePath.webview, item.forwardUrl);
|
|
|
+ } else {
|
|
|
+
|
|
|
}
|
|
|
} catch (err) {
|
|
|
console.log("跳转失败", err)
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
|
|
|
///去充值内容会员
|
|
@@ -1039,10 +1041,10 @@ Page({
|
|
|
// return;
|
|
|
var isLogin = that.getIsLogin();
|
|
|
if (!isLogin) {
|
|
|
- route_util.jump(route_constant.login);
|
|
|
+ route_util.jump(routePath.login);
|
|
|
return;
|
|
|
}
|
|
|
- route_util.jump(route_constant.deviceList);
|
|
|
+ route_util.jump(routePath.deviceList);
|
|
|
},
|
|
|
|
|
|
// 关于我们
|