From 4dad4c8429964763648d89e6f03b7b126d13320b Mon Sep 17 00:00:00 2001 From: WXD-SEASON\season Date: Wed, 22 Dec 2021 15:55:41 +0800 Subject: [PATCH] 券值判断 --- pages/cart/cart2/cart2.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pages/cart/cart2/cart2.js b/pages/cart/cart2/cart2.js index c16c5c0..c8aceb8 100644 --- a/pages/cart/cart2/cart2.js +++ b/pages/cart/cart2/cart2.js @@ -2575,7 +2575,10 @@ Page({ goods.offline_cut = (g_item.goods_price - g_item.offline_price).toFixed(2); goods.pricing_type = g_item.pricing_type; } - + if(g_item.quan_num){ + goods.quan_num=g_item.quan_num; + goods.quan_no=g_item.quan_no; + } //--判断活动的类型-- switch (g_item.prom_type) { case 1: @@ -4042,7 +4045,7 @@ Page({ //进行对商品的平摊g_item是单个商品,you_item是这个商品分多少优惠券的钱,goods是商品列表 split_set_goods_quanprice:async function (you_item,t_item) { - var coupon_price=t_item.coupon_price; + var coupon_price=you_item.WareCashSum; var goods=t_item.goods; var arr=[]; //判断是不是有goods_id重复 -- libgit2 0.21.4