Merge branch 'feature/GFRS-2350【前端-待完成】修改卡单支付分享时效' into dev

This commit is contained in:
pangxingyue
2021-03-29 22:17:50 +08:00
2 changed files with 26 additions and 25 deletions

View File

@@ -204,15 +204,27 @@ service.interceptors.response.use(
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'
let isWeixin = this.$utils.device().isWeixin //判断环境
if (isWeixin) {
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)
}