Commit 8eda8d8b authored by 袁玲利's avatar 袁玲利

日常交费点击一次交费后5S才可以点击交费下一次

parent 555634a6
......@@ -337,6 +337,24 @@
})
}
},
// 倒计时5秒
culDown() {
const self = this;
let second = 5;
const timer = setInterval(() => {
second--;
if (second) {
self.mask = true;
uni.showLoading({
title: '加载中'
});
} else {
clearInterval(timer);
uni.hideLoading();
self.mask = false;
}
}, 1000);
},
// 点击缴费下单接口
async clickPay() {
try {
......@@ -360,11 +378,7 @@
return
}
}
this.mask = true;
uni.showLoading({
title: '加载中',
mask: true
});
this.culDown();
let data = await this.$http.post({
url: orderApi + '/order-charge/app/charge/project/createOrder'
}, {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment