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
hongweigao
8 years ago
Commit
339789dd8ac8e088dfdc5092afa1e538f029a3a4
1 parent
eeb7d8bf
加cashe加分页
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
apps/brands/models/brands-service.js
apps/brands/models/brands-service.js
View file @
339789d
...
...
@@ -117,9 +117,9 @@ exports.plusstarList = (channel, req) => {
brands
=
[],
pageList
=
{};
brandIds
=
plustarList
.
brandsIds
.
slice
((
page
-
1
)
*
limit
,
page
*
limit
);
brandIds
=
plustarList
.
brandsIds
.
slice
((
page
-
1
)
*
limit
,
page
*
limit
);
if
(
plustarList
.
brandsIds
.
length
>
limit
)
{
pageList
=
pager
(
Math
.
ceil
(
plustarList
.
brandsIds
.
length
/
limit
),
{
pageList
=
pager
(
Math
.
ceil
(
plustarList
.
brandsIds
.
length
/
limit
),
{
page
:
page
,
id
:
id
});
...
...
@@ -142,7 +142,7 @@ exports.plusstarList = (channel, req) => {
brandsHomePage
:
true
,
brands
:
{
items
:
brands
,
tabs
:
items
,
tabs
:
items
}
};
...
...
Please
register
or
login
to post a comment