Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
郝肖肖
8 years ago
Commit
48e59cc08bdc710f6eca219319fd48b899de4b94
2 parents
8cd6b877
d785c0c8
master
...
baidu_ocpcapi
develop
feature/canbuy
feature/channelDataMap
feature/company-profile
feature/contact
feature/detail-link
feature/home-optimize
feature/overseas-edition
feature/payment
feature/pcurl
feature/reduce
feature/refactor_alert
feature/shoppingPay
feature/virtualOrder
hotfix/11
hotfix/cart
hotfix/changeappversion
hotfix/gift
hotfix/im
hotfix/link
hotfix/ocpc
hotfix/shop
hotfix/upload
hotfix/yohobi
release/6.9.0
release/6.9.2
2019-12-5
all
Merge branch 'feature/cartPromotionTip' into release/5.7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
apps/cart/models/cart-helper.js
apps/cart/models/cart-helper.js
View file @
48e59cc
...
...
@@ -265,7 +265,7 @@ const formatPromotionInfos = (infoList) => {
return
{
cutdownAmount
:
it
.
cutdown_amount
,
promotionId
:
it
.
promotion_id
,
promotionDesc
:
identIconReplace
(
it
.
promotion_
desc
),
promotionDesc
:
identIconReplace
(
it
.
promotion_
title
),
promotionType
:
it
.
promotion_type
,
tag
:
PROMOTION_TYPE_TAG_MAP
[
it
.
promotion_type
]
};
...
...
@@ -376,16 +376,15 @@ const checkGoodsIsSel = (goodsList, promotionId, selectedGiftsList) => {
*/
const
formatPromotion
=
(
it
,
selectedGiftsList
)
=>
{
// "status": 0, // 状态 0 未满足 10 已满足 [20 售光 30 更换 ]
let
status
=
parseInt
(
it
.
status
,
10
);
let
info
=
{
status
:
status
,
// "status": 0, // 状态 0 未满足 10 已满足 [20 售光 30 更换 ]
conditionUnit
:
it
.
condition_unit
,
// 0满足,1 件,2金额
conditionValue
:
it
.
condition_value
,
giftPrice
:
it
.
gift_price
,
// 赠品或加价购商品价格
giftGoodsList
:
formatCartGoods
(
it
.
gift_goods_List
),
// 可供选择的赠品或加价购商品列表
promotionId
:
it
.
promotion_id
,
// 促销id
promotionId
:
it
.
ts_promotion_ids
.
join
(
','
)
,
// 促销id
promotionDesc
:
identIconReplace
(
it
.
promotion_desc
),
promotionType
:
it
.
promotion_type
,
// 促销类型
// list.yohobuy.com?psp_id=10408
...
...
Please
register
or
login
to post a comment