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
石坚
9 years ago
Commit
c963f42b37212bb2436311bd983b86604935b597
1 parent
f3d8d9d5
camel个人中心
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
apps/me/controllers/favorite.js
apps/me/controllers/favorite.js
View file @
c963f42
...
...
@@ -66,9 +66,9 @@ const favorite = {
});
retData
.
categoryList
.
forEach
(
c
=>
{
c
.
categoryId
=
"categoryId"
in
c
?
c
.
categoryId
:
c
.
category_id
;
c
.
categoryId
=
'categoryId'
in
c
?
c
.
categoryId
:
c
.
category_id
;
c
.
checked
=
c
.
categoryId
===
sort
;
c
.
categoryName
=
"categoryName"
in
c
?
c
.
categoryName
:
c
.
category_name
;
c
.
categoryName
=
'categoryName'
in
c
?
c
.
categoryName
:
c
.
category_name
;
});
retData
.
products
=
data
.
product_list
.
filter
(
p
=>
{
...
...
@@ -91,7 +91,7 @@ const favorite = {
ret
.
content
.
banner
=
thumb
;
}
res
.
display
(
'index'
,
ret
);
console
.
log
(
JSON
.
stringify
(
ret
));
res
.
display
(
'index'
,
ret
);
console
.
log
(
JSON
.
stringify
(
ret
));
}).
catch
(
next
);
},
...
...
Please
register
or
login
to post a comment