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
周少峰
9 years ago
Commit
5c963b91e62bd465f8c33e4c325a080be78d5e69
1 parent
6076c073
index and channel data
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
apps/product/models/outlets-handler.js
apps/product/models/outlets.js
apps/product/models/outlets-handler.js
View file @
5c963b9
...
...
@@ -63,11 +63,9 @@ const handleOutletsGoodsMenuData = (origin, params) => {
misort
:
[]
};
var
oldParam
=
_
.
cloneDeep
(
params
);
_
.
forEach
(
origin
,
subValue
=>
{
let
oldParam
=
_
.
cloneDeep
(
params
);
let
goodsmenu
=
{};
let
urlSuffix
=
{};
goodsmenu
.
name
=
subValue
.
categoryName
;
...
...
@@ -77,7 +75,8 @@ const handleOutletsGoodsMenuData = (origin, params) => {
if
(
!
_
.
isEmpty
(
urlSuffix
.
msort
)
&&
urlSuffix
.
msort
===
oldParam
.
msort
&&
urlSuffix
.
misort
===
oldParam
.
misort
)
{
goodsmenu
.
cur
=
true
;
}
delete
oldParam
.
msort
;
delete
oldParam
.
misort
;
if
(
urlSuffix
.
msort
)
{
Object
.
assign
(
oldParam
,
{
msort
:
urlSuffix
.
msort
});
dest
.
msort
.
push
(
urlSuffix
.
msort
);
...
...
apps/product/models/outlets.js
View file @
5c963b9
...
...
@@ -85,9 +85,9 @@ exports.getOutletsIndexData = (params, channel) => {
return
finalResult
;
}
// 获取底部商品数据
if
(
!
params
.
msort
||
!
params
.
misort
)
{
if
(
!
params
.
msort
&&
!
params
.
misort
)
{
Object
.
assign
(
params
,
{
msort
:
_
.
uniq
(
finalResult
.
goodsBoard
.
goodsMenu
.
msort
).
join
()}
...
...
Please
register
or
login
to post a comment