From f9cb4bf1585d8f5399b9e56acb14470f75b249e8 Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Thu, 7 Mar 2024 10:56:35 +0800 Subject: [PATCH] 预售尾款,非实收的订单促销不能参与~~ --- packageC/pages/presell/cart/cart.js | 7 +++++++ 1 file changed, 7 insertions(+), 0 deletions(-) diff --git a/packageC/pages/presell/cart/cart.js b/packageC/pages/presell/cart/cart.js index 6ec4ec6..e41700a 100644 --- a/packageC/pages/presell/cart/cart.js +++ b/packageC/pages/presell/cart/cart.js @@ -1972,6 +1972,10 @@ Page({ }).then(res => { if (res.data.code == 0) { var data = res.data.data; + + //如果订单促销的取价不是实收,清空订单促销 + if(data && data.discount_field>0) data=null; + th.data.order_prom[pick] = data; } else { th.data.order_prom[pick] = null; @@ -2439,6 +2443,9 @@ Page({ }).then(res => { if (res.data.code == 0) { ord_prom = res.data.data; + + //如果订单促销的取价不是实收,清空订单促销 + if(ord_prom && ord_prom.discount_field>0) ord_prom=null; } }) } -- libgit2 0.21.4