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
Email Patches
Plain Diff
Browse Files
Authored by
周少峰
8 years ago
Commit
cadf2cdb5a2f0ee607ee0e6c6bc68b5c0b276739
1 parent
ebb8feeb
global block
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
apps/cart/models/cart-helper.js
apps/cart/models/cart-helper.js
View file @
cadf2cd
...
...
@@ -619,8 +619,10 @@ const formatCart = (cartDataRet, uid, shoppingKey, cartDelList) => {
}
// promotionInfos, gifts, priceGifts 放一起展示
let
hasGifts
=
_
.
get
(
result
,
'ordinaryCart.gifts'
)
&&
_
.
get
(
result
,
'ordinaryCart.gifts'
).
length
;
let
hasPrices
=
_
.
get
(
result
,
'ordinaryCart.priceGifts'
)
&&
_
.
get
(
result
,
'ordinaryCart.priceGifts'
).
length
;
let
hasGifts
=
_
.
get
(
result
,
'ordinaryCart.giftsPromotionInfos'
)
&&
_
.
get
(
result
,
'ordinaryCart.giftsPromotionInfos'
).
length
;
let
hasPrices
=
_
.
get
(
result
,
'ordinaryCart.priceGiftsPromotionInfos'
)
&&
_
.
get
(
result
,
'ordinaryCart.priceGiftsPromotionInfos'
).
length
;
let
hasPromo
=
_
.
get
(
result
,
'ordinaryCart.promotionInfos'
)
&&
_
.
get
(
result
,
'ordinaryCart.promotionInfos'
).
length
;
let
orderAmount
=
(
parseFloat
(
_
.
get
(
advStat
,
'orderAmount'
,
0
))
+
parseFloat
(
_
.
get
(
ordStat
,
'orderAmount'
,
0
))).
toFixed
(
2
);
...
...
Please
register
or
login
to post a comment