From f14d17cf953aac27ae6fa547bd962ec2ca126143 Mon Sep 17 00:00:00 2001 From: zhangds Date: Wed, 10 Apr 2024 23:31:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wx-combining.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/wx-combining.html b/wx-combining.html index ead1215..eeaf2df 100644 --- a/wx-combining.html +++ b/wx-combining.html @@ -342,12 +342,13 @@ // 部分失败 if (self.goods.send_status === 4) { - let all_product_length = res.data.product.length; - let is_err_length = res.data.product.filter(item => item.voucher.status === 9).length; - self.isOKLength = all_product_length - is_err_length; + let all_product_voucher = res.data.product.filter(item => item.voucher); + console.log("all_product_voucher =>", all_product_voucher); + + let is_err_length = all_product_voucher.filter(item => item.voucher.status === 9).length; + self.isOKLength = all_product_voucher.length - is_err_length; self.isErrLength = is_err_length; } - // 1.发放中 轮循 if (res.data.send_status === 1) { // 2.发放中才有 轮播