修复-关闭捐款模态窗
This commit is contained in:
parent
19e2865e2e
commit
d9c0d1d4e4
|
|
@ -92,7 +92,11 @@
|
||||||
<view class="donation">
|
<view class="donation">
|
||||||
<view class="title-row">
|
<view class="title-row">
|
||||||
<view class="title">为寺庙建设捐出</view>
|
<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>
|
||||||
|
|
||||||
<view class="donation-tip">
|
<view class="donation-tip">
|
||||||
|
|
@ -165,7 +169,7 @@ export default {
|
||||||
donationList: [1, 5, 10],
|
donationList: [1, 5, 10],
|
||||||
selectedIndex: 0,
|
selectedIndex: 0,
|
||||||
customAmount: "",
|
customAmount: "",
|
||||||
payAmount: "",
|
payAmount: "100",
|
||||||
formedId: null, // 添加 formedId 到 data 中
|
formedId: null, // 添加 formedId 到 data 中
|
||||||
|
|
||||||
projectDetails: {
|
projectDetails: {
|
||||||
|
|
@ -341,7 +345,21 @@ export default {
|
||||||
payAmount: this.payAmount,
|
payAmount: this.payAmount,
|
||||||
formedId: this.formedId,
|
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);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// 封装打开支付链接的方法
|
// 封装打开支付链接的方法
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user