更改防抖 更改购物车

This commit is contained in:
魏啾
2024-05-28 14:06:16 +08:00
parent e8ad1ccc8d
commit 36ef5bd613
4 changed files with 26 additions and 36 deletions

View File

@@ -171,7 +171,7 @@
以优惠¥{{emitorderfoodform.couponsPrice}}
</view>
</view>
<view class="fixedview_tow" @click="shopEvent">
<view class="fixedview_tow" @tap="$u.debounce(showpopupclick, 1000)">
立即付款
</view>
</view>
@@ -336,10 +336,6 @@
orderId: this.listinfoid
})
},
// 防抖去结算
shopEvent(){
uni.$u.throttle(this.showpopupclick, 500)
},
// 去结算
showpopupclick() {
if (this.numValue == 0) {