优化支付防抖
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user