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
htoooth
8 years ago
Commit
e8effa347d60621ecce5935e7670de29083dee82
1 parent
0b693fb1
add version
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
apps/home/controllers/Favorite.js
apps/home/models/favorite-service.js
doraemon/views/layout.hbs
apps/home/controllers/Favorite.js
View file @
e8effa3
...
...
@@ -92,12 +92,13 @@ const newProduct = (req, res, next) => {
};
const
reduction
=
(
req
,
res
,
next
)
=>
{
let
uid
=
req
.
user
.
uid
;
let
page
=
+
req
.
query
.
page
||
1
;
let
type
=
req
.
query
.
type
||
''
;
let
limit
=
10
;
favoriteService
.
reduction
().
then
((
result
)
=>
{
return
res
.
render
(
'reduction'
,
result
);
favoriteService
.
reduction
(
uid
,
page
,
limit
,
type
,
0
,
'Y'
).
then
((
result
)
=>
{
return
res
.
render
(
'home/favorite/reduction'
,
result
);
}).
catch
(
next
);
};
...
...
apps/home/models/favorite-service.js
View file @
e8effa3
...
...
@@ -305,6 +305,10 @@ const newProductAsync = (uid, page, limit, id) => {
})();
};
const
reduction
=
(
uid
,
page
,
limit
,
type
)
=>
{
}
module
.
exports
=
{
getFavoriteTabs
,
favoriteBrandListAsync
,
...
...
doraemon/views/layout.hbs
View file @
e8effa3
...
...
@@ -41,5 +41,6 @@
{{>
analysis
}}
{{/if}}
<script>
window.cdn='
{{
cdn
}}
'
;
</script>
<script>
window._version='
{{
version
}}
'
;
</script>
</body>
</html>
...
...
Please
register
or
login
to post a comment