提交 ddd722ae 编写于 作者: Skyeye云's avatar Skyeye云

feat: 解决首次加载报错的问题

上级 4f7c67fb
...@@ -30,7 +30,8 @@ ...@@ -30,7 +30,8 @@
end: {}, end: {},
minIndex: 0, minIndex: 0,
minLeft: [], minLeft: [],
btn: [systemLanguage["com.skyeye.determine"][languageType], systemLanguage["com.skyeye.cancel"][languageType]], btn: [isNull(systemLanguage) ? '确定' : systemLanguage["com.skyeye.determine"][languageType],
isNull(systemLanguage) ? '取消' :systemLanguage["com.skyeye.cancel"][languageType]],
//五种原始层模式 //五种原始层模式
type: ['dialog', 'page', 'iframe', 'loading', 'tips'], type: ['dialog', 'page', 'iframe', 'loading', 'tips'],
......
...@@ -63,8 +63,10 @@ layui.config({ ...@@ -63,8 +63,10 @@ layui.config({
if (!isLogin) { if (!isLogin) {
if (isNull($("#userCode").val())) { if (isNull($("#userCode").val())) {
top.winui.window.msg("请输入用户名", {icon: 2, time: 2000}); top.winui.window.msg("请输入用户名", {icon: 2, time: 2000});
$("#loginBtn").find("i").attr("class", "fa fa-arrow-right");
} else if (isNull($("#password").val())) { } else if (isNull($("#password").val())) {
top.winui.window.msg("请输入密码", {icon: 2, time: 2000}); top.winui.window.msg("请输入密码", {icon: 2, time: 2000});
$("#loginBtn").find("i").attr("class", "fa fa-arrow-right");
} else { } else {
var params = { var params = {
userCode: $("#userCode").val(), userCode: $("#userCode").val(),
...@@ -82,9 +84,12 @@ layui.config({ ...@@ -82,9 +84,12 @@ layui.config({
if (checkURL(url)) { if (checkURL(url)) {
location.href = url; location.href = url;
} else { } else {
location.href = "index.html"; location.href = "../../tpl/traditionpage/index.html";
} }
} }
}, errorCallback: function (json) {
winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
$("#loginBtn").find("i").attr("class", "fa fa-arrow-right");
}}); }});
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册