| | |
| | | "quickapp" : {}, |
| | | /* 快应用特有相关 */ |
| | | "mp-weixin" : { |
| | | "appid" : "wx6d0ecc4e18710458", |
| | | "appid" : "wx1441324401626290", |
| | | "setting" : { |
| | | "urlCheck" : false, |
| | | "es6" : true, |
| | |
| | | }) |
| | | } else if (res.data.code === '3000' || res.data && res.data.code && |
| | | res.data.code.startsWith('3000')) { |
| | | let validmsg = '' |
| | | if (Array.isArray(res.data.data)) { |
| | | if (res.data.data.length > 0 && res.data.data[0] |
| | | .msg) { |
| | | message.showToast(res.data.data[0].msg) |
| | | validmsg = res.data.data[0].msg |
| | | // message.showToast(res.data.data[0].msg) |
| | | } |
| | | } else if (res.data && res.data.msg) { |
| | | message.showToast(res.data.msg) |
| | | validmsg = res.data.msg |
| | | // message.showToast(res.data.msg) |
| | | } else if (res.data.data && typeof res.data.data === 'string') { |
| | | validmsg = res.data.msg |
| | | message.showToast(res.data.data) |
| | | } |
| | | if(validmsg){ |
| | | //兼容安卓手机提醒过快问题 |
| | | setTimeout(() => { |
| | | message.showToast(validmsg) |
| | | }, 200) |
| | | } |
| | | |
| | | |
| | | |
| | | reject({ |
| | | data: null, |
| | | code: parseInt(res.data.code), |
| | |
| | | code: 502, |
| | | msg: '服务更新升级中,请稍等一分钟左右' |
| | | }) |
| | | }else { |
| | | } else { |
| | | message.showToast('其他错误') |
| | | reject({ |
| | | data: null, |