苹果内购+订单结算页面条件编译

This commit is contained in:
@fawn-nine
2024-07-09 14:26:26 +08:00
parent 05edf730c9
commit 545fd9cc75
12 changed files with 391 additions and 118 deletions

View File

@@ -1078,16 +1078,11 @@ export default {
} else if (payItem.paymentMethod == 3) {
// 苹果充值
console.log("苹果二次支付");
if (this.isAndorid) {
uni.showModal({
title: "提示",
showCancel: false,
content:
"很抱歉,当前订单属于苹果系统内购订单,安卓系统无法完成支付操作,您可切换到苹果系统进行支付,也可以取消该订单,并重新下单",
});
} else {
this.iphonepay(payItem);
}
uni.showModal({
content:'apple内购订单不支持继续支付请重新发起支付申请并完成支付',
confirmText:'好的',
showCancel:false
})
}
},

View File

@@ -897,7 +897,7 @@ export default {
},
})
.then((res) => {
console.log(res, "内容获取成功");
// console.log(res, "内容获取成功");
that.pagination.total = res.data.total;
if (res.data.total == 0) {
this.isLoadingHide = true;
@@ -947,8 +947,7 @@ export default {
}
);
} else if (payItem.paymentMethod == 1) {
console.log("微信支付");
// console.log(this.isAndorid)
console.log("微信支付");
if (this.isAndorid == false) {
uni.showModal({
title: "提示",
@@ -986,19 +985,24 @@ export default {
}
});
}
} else if (payItem.paymentMethod == 3) {
} else if (payItem.paymentMethod == 3 && this.ordersListTab == 0 ) {
// 苹果充值
console.log("苹果二次支付");
if (this.isAndorid) {
uni.showModal({
title: "提示",
showCancel: false,
content:
"很抱歉,当前订单属于苹果系统内购订单,安卓系统无法完成支付操作,您可切换到苹果系统进行支付,也可以取消该订单,并重新下单",
});
} else {
this.iphonepay(payItem);
}
uni.showModal({
content:'apple内购订单不支持继续支付请重新发起支付申请并完成支付',
confirmText:'好的',
showCancel:false
})
// if (this.isAndorid) {
// uni.showModal({
// title: "提示",
// showCancel: false,
// content:
// "很抱歉,当前订单属于苹果系统内购订单,安卓系统无法完成支付操作,您可切换到苹果系统进行支付,也可以取消该订单,并重新下单",
// });
// } else {
// this.iphonepay(payItem);
// }
}else if (payItem.paymentMethod == 4){
console.log('天医币二次支付')
}