mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-12 09:06:43 +08:00
feature/GFRS-2301【需求】健康险渠道国富无忧卡金掌桂开发的需求--修改分享链接时效性,修改投保信息投保人与被保人身份证扫描组件修改,修改地址栏组件,修改保障方案金额展示,修改职业类型组件--提交人庞兴月
This commit is contained in:
@@ -188,19 +188,32 @@ service.interceptors.response.use(
|
||||
res = JSON.parse(AESTools.AESDecrypt(res.response, configApp.REQ_PWD))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Toast.clear()
|
||||
if (res.code != 0) {
|
||||
if (res.code == 10001 || res.code == 10002) {
|
||||
Dialog.confirm({
|
||||
confirmButtonText: '重新登录',
|
||||
message: '你已被登出,可以取消继续留在该页面,或者重新登录'
|
||||
}).then(() => {
|
||||
//eslint-disable-next-line
|
||||
EWebBridge.webCallAppInJs('bridge', {
|
||||
flag: 'login'
|
||||
var ua = window.navigator.userAgent.toLowerCase();
|
||||
//通过正则表达式匹配ua中是否含有MicroMessenger字符串
|
||||
if(ua.match(/MicroMessenger/i) == 'micromessenger'){
|
||||
Dialog.alert({
|
||||
title: '提示',
|
||||
confirmButtonText: '退出',
|
||||
message: '当前链接已失效,请您联系业务员获取(重新分享)。',
|
||||
}).then(() => {
|
||||
window.close();
|
||||
WeixinJSBridge.call('closeWindow');
|
||||
});
|
||||
} else {
|
||||
Dialog.confirm({
|
||||
confirmButtonText: '重新登录',
|
||||
message: '你已被登出,可以取消继续留在该页面,或者重新登录'
|
||||
}).then(() => {
|
||||
//eslint-disable-next-line
|
||||
EWebBridge.webCallAppInJs('bridge', {
|
||||
flag: 'login'
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
} else {
|
||||
//Toast.fail(res.msg)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user