feat: 兼容处理
This commit is contained in:
@@ -298,6 +298,7 @@ const handlePayClick = ThrottleUtils.createThrottle(async (goodsData) => {
|
||||
// 在发起微信支付前关闭 loading(避免与原生支付 UI 冲突)
|
||||
uni.hideLoading();
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
// 调用微信支付
|
||||
uni.requestPayment({
|
||||
provider: "wxpay",
|
||||
@@ -322,6 +323,15 @@ const handlePayClick = ThrottleUtils.createThrottle(async (goodsData) => {
|
||||
uni.showToast({ title: "支付失败,请重试", icon: "none" });
|
||||
},
|
||||
});
|
||||
// #endif
|
||||
|
||||
// #ifdef APP-PLUS
|
||||
uni.showModal({
|
||||
title: "提示",
|
||||
content: "支付功能开发中",
|
||||
showCancel: false,
|
||||
});
|
||||
// #endif
|
||||
}, 1000);
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user