权限开发,页面交互开发,增加阅读数

This commit is contained in:
暮光:城中城
2019-06-05 22:53:24 +08:00
parent 96d081fdae
commit 605c97347d
34 changed files with 537 additions and 5282 deletions

View File

@@ -74,16 +74,22 @@
app.passwordError = "密码不能为空";
return;
}
post(ctx + "login", param, function (result) {
console.log(result);
if (result.errCode == 200) {
location.href = ctx + "static/manage/home.html";
} else {
app.passwordError = "登录失败," + result.errMsg;
}
}, function(){
// 通过nginx代理之后没端口但tomcat容器有端口会跨域异常但正常登陆了的直接跳
location.href = ctx + "static/manage/home.html";
var returnUrl = common.getParam("returnUrl");
if (!!returnUrl) {
returnUrl = decodeURI(returnUrl);
} else {
returnUrl = ctx + "static/manage/home.html";
}
post(ctx + "login", param, function (result) {
console.log(result);
if (result.errCode == 200) {
location.href = returnUrl;
} else {
app.passwordError = "登录失败," + result.errMsg;
}
}, function () {
// 通过nginx代理之后没端口但tomcat容器有端口会跨域异常但正常登陆了的直接跳
// location.href = returnUrl;
});
},
init: function () {