增加下载数,页面跳转、展示优化

This commit is contained in:
暮光:城中城
2019-06-18 20:32:37 +08:00
parent 40f594f1ff
commit 994ced47bc
26 changed files with 419 additions and 79 deletions

View File

@@ -30,8 +30,8 @@ function validateResult(result) {
if (result.errCode == 200) {
return true;
} else if (result.errCode == 400) {
var href = encodeURI(window.location.href);
window.location = "static/manage/login.html?returnUrl=" + href;
var href = encodeURIComponent(window.location.href);
window.location = "static/manage/login.html?redirect=" + href;
} else {
Toast.error(result.errMsg);
}
@@ -196,8 +196,8 @@ function ajaxTemp(url, dataSentType, dataReceiveType, paramsStr, successFunction
contentType : "application/x-www-form-urlencoded; charset=UTF-8",
success : function(msg) {
if (msg.errCode == 400) {
var href = encodeURI(window.location.href);
window.location = "static/manage/login.html?returnUrl=" + href;
var href = encodeURIComponent(window.location.href);
window.location = "static/manage/login.html?redirect=" + href;
} else {
if (typeof successFunction == "function") {
successFunction(msg, id);

View File

@@ -30,8 +30,8 @@ function validateResult(result) {
if (result.errCode == 200) {
return true;
} else if (result.errCode == 400) {
var href = encodeURI(window.location.href);
window.location = "static/manage/login.html?returnUrl=" + href;
var href = encodeURIComponent(window.location.href);
window.location = "static/manage/login.html?redirect=" + href;
} else {
Toast.error(result.errMsg);
}
@@ -196,8 +196,8 @@ function ajaxTemp(url, dataSentType, dataReceiveType, paramsStr, successFunction
contentType : "application/x-www-form-urlencoded; charset=UTF-8",
success : function(msg) {
if (msg.errCode == 400) {
var href = encodeURI(window.location.href);
window.location = "static/manage/login.html?returnUrl=" + href;
var href = encodeURIComponent(window.location.href);
window.location = "static/manage/login.html?redirect=" + href;
} else {
if (typeof successFunction == "function") {
successFunction(msg, id);

View File

@@ -30,8 +30,8 @@ function validateResult(result) {
if (result.errCode == 200) {
return true;
} else if (result.errCode == 400) {
var href = encodeURI(window.location.href);
window.location = "static/manage/login.html?returnUrl=" + href;
var href = encodeURIComponent(window.location.href);
window.location = "static/manage/login.html?redirect=" + href;
} else {
Toast.error(result.errMsg);
}
@@ -196,8 +196,8 @@ function ajaxTemp(url, dataSentType, dataReceiveType, paramsStr, successFunction
contentType : "application/x-www-form-urlencoded; charset=UTF-8",
success : function(msg) {
if (msg.errCode == 400) {
var href = encodeURI(window.location.href);
window.location = "static/manage/login.html?returnUrl=" + href;
var href = encodeURIComponent(window.location.href);
window.location = "static/manage/login.html?redirect=" + href;
} else {
if (typeof successFunction == "function") {
successFunction(msg, id);