From 616a786c9fff96fc4dc5fa95cc1c4e849388159a Mon Sep 17 00:00:00 2001 From: zhangds Date: Wed, 10 Apr 2024 23:34:19 +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 --- packkey/wx-combining.html | 7 ++++++- wx-combining.html | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/packkey/wx-combining.html b/packkey/wx-combining.html index 1b2c037..e51a442 100644 --- a/packkey/wx-combining.html +++ b/packkey/wx-combining.html @@ -343,7 +343,12 @@ // 部分失败 if (self.goods.send_status === 4) { - let all_product_voucher = res.data.product.filter(item => item.voucher); + let all_product_voucher = []; + + new_data.product.forEach(item => { + all_product_voucher.concat(item.voucher) + }) + console.log("all_product_voucher =>", all_product_voucher); let is_err_length = all_product_voucher.filter(item => item.voucher.status === 9).length; diff --git a/wx-combining.html b/wx-combining.html index eeaf2df..2093af6 100644 --- a/wx-combining.html +++ b/wx-combining.html @@ -342,7 +342,12 @@ // 部分失败 if (self.goods.send_status === 4) { - let all_product_voucher = res.data.product.filter(item => item.voucher); + let all_product_voucher = []; + + new_data.product.forEach(item => { + all_product_voucher.concat(item.voucher) + }) + console.log("all_product_voucher =>", all_product_voucher); let is_err_length = all_product_voucher.filter(item => item.voucher.status === 9).length;