清除定时器

This commit is contained in:
zhouxinyu1029 2024-04-12 21:41:50 +08:00
parent db279e7a13
commit 9d2318d68f
3 changed files with 78 additions and 60 deletions

View File

@ -341,6 +341,10 @@
// send_status 1发放中2全部成功 3全部失败4部分失败 5未领取
self.popMsg = self.goods.send_status === 2 || self.goods.send_status === 3 || self.goods.send_status === 4 ? true : false;
if (self.goods.send_status === 2 || self.goods.send_status === 3) {
clearInterval(self.timeGet);
self.timeGet = null;
}
// 部分失败
if (self.goods.send_status === 4) {
let all_product_voucher = [];
@ -351,6 +355,8 @@
let is_err_length = all_product_voucher.filter(item => item.status === 9).length;
self.isOKLength = all_product_voucher.length - is_err_length;
self.isErrLength = is_err_length;
clearInterval(self.timeGet);
self.timeGet = null;
}
// 1.发放中 轮循

View File

@ -341,6 +341,10 @@
// send_status 1发放中2全部成功 3全部失败4部分失败 5未领取
self.popMsg = self.goods.send_status === 2 || self.goods.send_status === 3 || self.goods.send_status === 4 ? true : false;
if (self.goods.send_status === 2 || self.goods.send_status === 3) {
clearInterval(self.timeGet);
self.timeGet = null;
}
// 部分失败
if (self.goods.send_status === 4) {
let all_product_voucher = [];
@ -351,6 +355,8 @@
let is_err_length = all_product_voucher.filter(item => item.status === 9).length;
self.isOKLength = all_product_voucher.length - is_err_length;
self.isErrLength = is_err_length;
clearInterval(self.timeGet);
self.timeGet = null;
}
// 1.发放中 轮循

View File

@ -340,6 +340,10 @@
// send_status 1发放中2全部成功 3全部失败4部分失败 5未领取
self.popMsg = self.goods.send_status === 2 || self.goods.send_status === 3 || self.goods.send_status === 4 ? true : false;
if (self.goods.send_status === 2 || self.goods.send_status === 3) {
clearInterval(self.timeGet);
self.timeGet = null;
}
// 部分失败
if (self.goods.send_status === 4) {
let all_product_voucher = [];
@ -350,6 +354,8 @@
let is_err_length = all_product_voucher.filter(item => item.status === 9).length;
self.isOKLength = all_product_voucher.length - is_err_length;
self.isErrLength = is_err_length;
clearInterval(self.timeGet);
self.timeGet = null;
}
// 1.发放中 轮循