Authored by wangtao

fix: 优化展示loadding

... ... @@ -68,7 +68,9 @@ let http = {
data: JSON.stringify(data),
error: function (xhr, textStatus) {
if (showLoadding && showLoadding == true) {
loading.close();
setTimeout(() => {
loading.close();
}, 1000)
}
if (errFunc) {
errFunc();
... ... @@ -81,7 +83,9 @@ let http = {
callback(data);
}
if (showLoadding && showLoadding == true) {
loading.close();
setTimeout(() => {
loading.close();
}, 1000)
}
//console.log("==>", requestUrl, jqXHR, textStatus)
... ... @@ -120,7 +124,9 @@ let http = {
data: data,
error: function (xhr, textStatus) {
if (showLoadding && showLoadding == true) {
loading.close();
setTimeout(() => {
loading.close();
}, 1000)
}
// console.log("==>", requestUrl, xhr, textStatus)
http.reqErr(xhr);
... ... @@ -135,7 +141,9 @@ let http = {
callback(data);
}
if (showLoadding && showLoadding == true) {
loading.close();
setTimeout(() => {
loading.close();
}, 1000)
}
//console.log("==>", requestUrl, jqXHR, textStatus)
}
... ... @@ -165,7 +173,9 @@ let http = {
async: false,
data: formData,
error: function (xhr, textStatus) {
loading.close();
setTimeout(() => {
loading.close();
}, 1000)
// console.log("==>", requestUrl, xhr, textStatus)
http.reqErr(xhr);
__global.showMsg("上传失败,请您确认文件是否存在!", "error");
... ...