优化支付防抖

This commit is contained in:
duan
2024-05-27 13:55:36 +08:00
parent af720a1bab
commit 2ea1f162b0
3 changed files with 10 additions and 5 deletions

View File

@@ -171,7 +171,7 @@
以优惠¥{{emitorderfoodform.couponsPrice}}
</view>
</view>
<view class="fixedview_tow" @click="showpopupclick">
<view class="fixedview_tow" @click="shopEvent">
立即付款
</view>
</view>
@@ -336,6 +336,10 @@
orderId: this.listinfoid
})
},
// 防抖去结算
shopEvent(){
uni.$u.throttle(this.showpopupclick, 500)
},
// 去结算
showpopupclick() {
if (this.numValue == 0) {
@@ -365,7 +369,6 @@
},
async showpopupclickdd(i) {
console.log(this.radiovalue1, '调试121')
if (this.radiovalue1 == 1) {
let res = await this.api.payorderPay({