命令行提交3

This commit is contained in:
zoujiandong 2025-08-05 14:09:12 +08:00
parent 86eb7d47e0
commit 9e01fa0032
3 changed files with 17 additions and 17 deletions

File diff suppressed because one or more lines are too long

View File

@ -83,18 +83,17 @@ const request = (url, data = {}, method = "post", loading = false, contentType =
n(res);
} else {
if (url.indexOf("/login/hcp") != -1) {
common_vendor.index.showToast({
title: res.data.message,
icon: "none"
});
n(res);
} else {
e(res);
let H5url = "https://dev-wx.igandan.com";
if (window.location.href.indexOf("//dev-casedata.igandan.com") == -1) {
H5url = "https://wx.igandan.com";
}
window.location.href = H5url + "/hcp/Signup2020online_tologin?back_url=" + encodeURIComponent(window.location.href);
} else {
common_vendor.index.showToast({
title: res.data.message,
icon: "none"
});
n(res);
}
}
},

View File

@ -176,23 +176,24 @@ export const request = (url, data = {}, method = 'post', loading = false, conten
})
n(res)
} else {
if(url.indexOf('/login/hcp')!=-1){
uni.showToast({
title: res.data.message,
icon: 'none',
})
n(res)
}else{
e(res)
if(url.indexOf('/login/hcp')!=-1){
let H5url = 'https://dev-wx.igandan.com';
if(window.location.href.indexOf('//dev-casedata.igandan.com') == -1) {
H5url = 'https://wx.igandan.com'
}
window.location.href = H5url + "/hcp/Signup2020online_tologin?back_url=" + encodeURIComponent(window.location.href);
}else{
uni.showToast({
title: res.data.message,
icon: 'none',
});
n(res)
}
}
},
fail: function (err) {