支付金额为0的情况下,微信阻止支付
This commit is contained in:
@@ -404,6 +404,13 @@
|
|||||||
*/
|
*/
|
||||||
showpopupclickdd() {
|
showpopupclickdd() {
|
||||||
console.log(this.radiovalue)
|
console.log(this.radiovalue)
|
||||||
|
if ( this.radiovalue == 2 && this.listinfo.payAmount <= 0 ) {
|
||||||
|
uni.showToast({
|
||||||
|
title: "支付金额必须大于0",
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
return;
|
||||||
|
}
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '加载中',
|
title: '加载中',
|
||||||
mask: true
|
mask: true
|
||||||
@@ -433,6 +440,8 @@
|
|||||||
* 微信支付
|
* 微信支付
|
||||||
*/
|
*/
|
||||||
async showpopupclickdds() {
|
async showpopupclickdds() {
|
||||||
|
|
||||||
|
|
||||||
console.log(this.listinfoid)
|
console.log(this.listinfoid)
|
||||||
let res = await this.api.payorderPay({
|
let res = await this.api.payorderPay({
|
||||||
orderId: this.listinfoid
|
orderId: this.listinfoid
|
||||||
|
|||||||
Reference in New Issue
Block a user