Showing
2 changed files
with
8 additions
and
4 deletions
@@ -50,12 +50,14 @@ const _formatOrderGoods = (orderGoods, count, haveLink, tickets) => { | @@ -50,12 +50,14 @@ const _formatOrderGoods = (orderGoods, count, haveLink, tickets) => { | ||
50 | if (value.goods_type === 'gift') { | 50 | if (value.goods_type === 'gift') { |
51 | Object.assign(goods, { | 51 | Object.assign(goods, { |
52 | gift: true, | 52 | gift: true, |
53 | - salePrice: transPrice(value.sales_price) | 53 | + salePrice: transPrice(value.sales_price), |
54 | + payPrice: value.goods_price | ||
54 | }); | 55 | }); |
55 | } else if (value.goods_type === 'price_gift') { | 56 | } else if (value.goods_type === 'price_gift') { |
56 | Object.assign(goods, { | 57 | Object.assign(goods, { |
57 | advanceBuy: true, | 58 | advanceBuy: true, |
58 | - salePrice: transPrice(value.sales_price) | 59 | + salePrice: transPrice(value.sales_price), |
60 | + payPrice: value.goods_price | ||
59 | }); | 61 | }); |
60 | } | 62 | } |
61 | 63 |
@@ -198,12 +198,14 @@ const orderDetailData = (uid, orderCode) => { | @@ -198,12 +198,14 @@ const orderDetailData = (uid, orderCode) => { | ||
198 | if (data.goodsType === 'gift') { | 198 | if (data.goodsType === 'gift') { |
199 | obj = _.assign(obj, { | 199 | obj = _.assign(obj, { |
200 | gift: true, | 200 | gift: true, |
201 | - salePrice: parseFloat(data.salesPrice).toFixed(2) | 201 | + salePrice: parseFloat(data.salesPrice).toFixed(2), |
202 | + payPrice: data.goodsPrice | ||
202 | }); | 203 | }); |
203 | } else if (data.goodsType === 'priceGift') { | 204 | } else if (data.goodsType === 'priceGift') { |
204 | obj = _.assign(obj, { | 205 | obj = _.assign(obj, { |
205 | advanceBuy: true, | 206 | advanceBuy: true, |
206 | - salePrice: parseFloat(data.salesPrice).toFixed(2) | 207 | + salePrice: parseFloat(data.salesPrice).toFixed(2), |
208 | + payPrice: data.goodsPrice | ||
207 | }); | 209 | }); |
208 | } | 210 | } |
209 | 211 |
-
Please register or login to post a comment