Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郝肖肖
7 years ago
Commit
052d05bcdbcd1f0e7a4267b082331d2ef636e9ed
1 parent
be025468
'首屏楼层数量'
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
apps/channel/controllers/index.js
apps/channel/controllers/index.js
View file @
052d05b
...
...
@@ -40,7 +40,7 @@ let _channelPage = (req, res, data) => {
}
if
(
result
&&
result
.
content
&&
result
.
content
.
length
)
{
result
.
content
.
length
=
6
;
// 首屏先获取前6
个楼层,其余用ajax获取
result
.
content
.
length
=
8
;
// 首屏先获取前8
个楼层,其余用ajax获取
}
// result.content = [{
...
...
@@ -82,7 +82,7 @@ exports.getResourceContent = (req, res, next) => {
}).
then
(
result
=>
{
if
(
result
.
length
)
{
result
=
result
.
slice
(
6
);
result
=
result
.
slice
(
8
);
}
res
.
render
(
'channel-resource'
,
{
...
...
Please
register
or
login
to post a comment