|
@@ -186,7 +186,7 @@ const post = function (url, data, opts) {
|
|
|
const isOut = code === '10020011' || code === '10020012' || code === '10020013';
|
|
|
if(isOut){
|
|
|
//登录信息失效处理
|
|
|
- unloginPop(res.code);
|
|
|
+ unloginPop(res.msg);
|
|
|
}else{
|
|
|
resolve({
|
|
|
data: res
|
|
@@ -226,13 +226,13 @@ const post = function (url, data, opts) {
|
|
|
};
|
|
|
|
|
|
//登录失效弹窗处理
|
|
|
-function unloginPop(code,callback){
|
|
|
+function unloginPop(msg){
|
|
|
/*const isOut = code === '10020011' || code === '10020012' || code === '10020013';
|
|
|
if(isOut){*/
|
|
|
if(self != top){
|
|
|
const dialogmessage = {
|
|
|
iframemessage: 1,
|
|
|
- data: errorCode.msg
|
|
|
+ data: msg
|
|
|
}
|
|
|
window.parent.postMessage(JSON.stringify(dialogmessage), '*')
|
|
|
}else{
|
|
@@ -246,7 +246,7 @@ function unloginPop(code,callback){
|
|
|
isFather: true,
|
|
|
fatherWrapper: $("#mainBox", parent.document),
|
|
|
sureBtn: false,
|
|
|
- message: errorCode.msg || '登录过期',
|
|
|
+ message: msg || '登录过期',
|
|
|
callback: function () {
|
|
|
window.location.href = 'login.html'
|
|
|
}
|