支付金额为0的情况下,微信阻止支付

This commit is contained in:
GaoHao 2024-08-05 09:47:04 +08:00
parent fc9da59f26
commit 62cbad9029
1 changed files with 9 additions and 0 deletions

View File

@ -404,6 +404,13 @@
*/
showpopupclickdd() {
console.log(this.radiovalue)
if ( this.radiovalue == 2 && this.listinfo.payAmount <= 0 ) {
uni.showToast({
title: "支付金额必须大于0",
icon: 'none'
})
return;
}
uni.showLoading({
title: '加载中',
mask: true
@ -433,6 +440,8 @@
* 微信支付
*/
async showpopupclickdds() {
console.log(this.listinfoid)
let res = await this.api.payorderPay({
orderId: this.listinfoid