提交 e86259b6 作者: 王进

调整支付失败提示方式

上级 33742153
......@@ -135,7 +135,7 @@ class WechatSDK {
title: '登录异常',
content: sdkLoginData.msg,
showCancel: false,
success: function() {
success: function () {
_selt.exitApp();
}
}
......@@ -248,7 +248,14 @@ class WechatSDK {
msg = '用户操作系统支付状态异常';
break;
}
if (showSDKAlert) _selt.sdkAlert(msg);
if (showSDKAlert) {
const params = {
title: '支付提示',
content: msg,
showCancel: false
}
_selt.showModal(params);
}
resolve(err.errCode);
}
}));
......@@ -270,7 +277,14 @@ class WechatSDK {
return 3023;
} else { // 输出订单失败消息
const errmsg = res.msg || '支付失败..'
if (showSDKAlert) _selt.sdkAlert(errmsg);
if (showSDKAlert) {
const params = {
title: '支付提示',
content: errmsg,
showCancel: false
}
_selt.showModal(params);
}
return 0;
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论