Commit a1592499 by 张立顺

添加提交防抖

1 parent db6cf45a
......@@ -199,9 +199,20 @@ Component({
})
},
confirm(e) {
let { orderType, outTradeNo, payVoucherList, textareaValue, orderTypeList } = this.data
let { orderType, outTradeNo, payVoucherList, textareaValue, orderTypeList, confirmStatus } = this.data
// debugger
console.log(wx.$router)
// console.log(wx.$router)
// 做防抖
if (confirmStatus) return
this.setData({
confirmStatus: true
})
setTimeout(()=>{
this.setData({
confirmStatus: false
})
},1000)
console.log(thisPage,'thisPage');
let thisPage = wx.$router.getPageInstance()
if (orderType == 2) {
if (payVoucherList.length && outTradeNo) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!