修复:支付合并后 会员卡微信支付报错导致不能使用微信支付

This commit is contained in:
wuhui_zzw 2024-06-26 15:18:14 +08:00
parent 6161f5c2d3
commit a2e68daf8f
2 changed files with 16 additions and 6 deletions

View File

@ -354,6 +354,19 @@
},
//
createMemberCard(type) {
if (type == 'weixin') {
// #ifdef H5
type = _this.$wechat.isWeixin() ? 'weixin' : 'h5'
// #endif
// #ifdef MP
type = 'routine'
// #endif
// #ifdef APP-PLUS
type = 'weixin'
// #endif
}
uni.showLoading({
title: '正在加载…'
});
@ -419,7 +432,7 @@
jsConfig = res.data.result.config,
goPages = '/pages/users/user_coupon/index';
// console.log('', status)
console.log('支付成功', status)
switch (status) {
case 'ORDER_EXIST':
case 'EXTEND_ORDER':
@ -436,10 +449,7 @@
that.payClose();
that.getMemberCard();
return that.$util.Tips({
title: res.message,
icon: 'success'
});
that.$util.tips({ content: res.message});
break;
case 'alipay':
case "alipayQr":