feat: 兼容处理

This commit is contained in:
2026-05-10 13:01:55 +08:00
parent bbca2d14c9
commit 85a61d5bbf
4 changed files with 26 additions and 3 deletions

View File

@@ -111,6 +111,7 @@ const handleButtonClick = DebounceUtils.createDebounce(async (orderData) => {
// 在发起微信支付前关闭 loading避免与原生支付 UI 冲突)
uni.hideLoading();
// #ifdef MP-WEIXIN
// 调用微信支付
uni.requestPayment({
provider: "wxpay",
@@ -133,6 +134,15 @@ const handleButtonClick = DebounceUtils.createDebounce(async (orderData) => {
uni.showToast({ title: "支付失败,请重试", icon: "none" });
},
});
// #endif
// #ifdef APP-PLUS
uni.showModal({
title: "提示",
content: "支付功能开发中",
showCancel: false,
});
// #endif
}
} catch (error) {
console.error("操作失败:", error);