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
ded80518e5ef53ed068b9b05bde202e1f9d47593
1 parent
cdd109fd
m
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
apps/cart/models/cart-helper.js
apps/cart/views/action/cart.hbs
apps/cart/models/cart-helper.js
View file @
ded8051
...
...
@@ -385,13 +385,13 @@ const formatSubPromotionPools = (pools, selectedGiftsList, isAdvance) => {
let
goodsList
=
pool
.
goodsList
;
if
(
goodsList
&&
goodsList
.
length
)
{
return
_
.
map
(
goodsList
,
g
=>
{
pool
.
goodsList
=
_
.
map
(
goodsList
,
g
=>
{
g
.
promotionInfos
=
pool
.
promotionInfos
;
return
g
;
});
}
return
[]
;
return
pool
;
});
// [ [goods, goods], [goods, ..], [] ] => [goods, goods ]
...
...
@@ -410,6 +410,7 @@ const formatPromotionPools = (pools, selectedGiftsList, isAdvance) => {
let
pool
=
{
poolTitle
:
p
.
pool_title
,
poolType
:
p
.
pool_type
,
isBrandGroup
:
Number
(
p
.
pool_type
)
===
1
,
goodsList
:
formatCartGoods
(
p
.
goods_list
,
isAdvance
),
promotionInfos
:
formatPoolPromotionInfos
(
p
.
promotion_list
,
selectedGiftsList
)
};
...
...
apps/cart/views/action/cart.hbs
View file @
ded8051
...
...
@@ -146,8 +146,8 @@
{{#if
subs
}}
<div
class=
"cart-table"
>
{{#
each
subs
}}
<ul
class=
"table table-group"
>
{{#
each
.
}}
<ul
class=
"table
{{#
isBrandGroup
}}
table-group
{{/
isBrandGroup
}}
"
>
{{#
each
goodsList
}}
{{>
cart-item
}}
{{/
each
}}
</ul>
...
...
@@ -156,7 +156,7 @@
{{/if}}
{{#if
goodsList
}}
<div
class=
"cart-table"
>
<ul
class=
"table"
>
<ul
class=
"table
{{#
isBrandGroup
}}
table-group
{{/
isBrandGroup
}}
"
>
{{#
goodsList
}}
{{>
cart-item
}}
{{/
goodsList
}}
...
...
Please
register
or
login
to post a comment