修复-关闭捐款模态窗

This commit is contained in:
WindowBird 2025-09-16 10:00:20 +08:00
parent 19e2865e2e
commit d9c0d1d4e4

View File

@ -92,7 +92,11 @@
<view class="donation">
<view class="title-row">
<view class="title">为寺庙建设捐出</view>
<u-icon class="close-icon" name="close"></u-icon>
<u-icon
class="close-icon"
name="close"
@click="show = false"
></u-icon>
</view>
<view class="donation-tip">
@ -165,7 +169,7 @@ export default {
donationList: [1, 5, 10],
selectedIndex: 0,
customAmount: "",
payAmount: "",
payAmount: "100",
formedId: null, // formedId data
projectDetails: {
@ -341,7 +345,21 @@ export default {
payAmount: this.payAmount,
formedId: this.formedId,
});
this.openPaymentUrl(res.data.payParams.payUrl);
if (res.code === 200) {
this.openPaymentUrl(res.data.payParams.payUrl);
} else if (res.code === 10001) {
uni.showModal({
title: "去实名",
content: "需要实名",
showCancel: true,
confirmText: "yes",
cancelText: "no",
success: function () {
uni.navigateTo({ url: "/pages/realName/realName" });
},
});
console.log("10001", res.msg);
}
},
//