Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
jinhu.tung
9 years ago
Commit
d79b2f932b7b00e76e408f4b1c46393e3f500afc
1 parent
d079dae3
cart doest not group by brand
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
apps/shopping/models/cart.js
apps/shopping/models/cart.js
View file @
d79b2f9
...
...
@@ -297,7 +297,7 @@ const filterCartData = (result, uid) => {
// _.groupBy(_.concat(advancedGoods, advancedSoldOutGoods), 'brand_id')
return
_
.
merge
(
resData
,
{
hasGoods
:
advancedGoods
.
length
||
ordinaryGoods
.
length
||
invalidGoods
.
length
,
preSalePros
:
(
advancedSoldOutGoods
.
length
||
advancedGoods
.
length
)
?
preSalePros
:
(
advancedSoldOutGoods
.
length
||
advancedGoods
.
length
)
?
_
.
concat
(
advancedGoods
,
advancedSoldOutGoods
)
:
[],
commonPros
:
(
ordinarySoldOutGoods
.
length
||
ordinaryGoods
.
length
)
?
_
.
concat
(
ordinaryGoods
,
ordinarySoldOutGoods
)
:
[],
...
...
Please
register
or
login
to post a comment