Merge branch 'feature/homeFloor' into 'gray'
'首屏楼层数量' See merge request !1222
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -40,7 +40,7 @@ let _channelPage = (req, res, data) => { | @@ -40,7 +40,7 @@ let _channelPage = (req, res, data) => { | ||
40 | } | 40 | } |
41 | 41 | ||
42 | if (result && result.content && result.content.length) { | 42 | if (result && result.content && result.content.length) { |
43 | - result.content.length = 6; // 首屏先获取前6个楼层,其余用ajax获取 | 43 | + result.content.length = 8; // 首屏先获取前8个楼层,其余用ajax获取 |
44 | } | 44 | } |
45 | 45 | ||
46 | // result.content = [{ | 46 | // result.content = [{ |
@@ -82,7 +82,7 @@ exports.getResourceContent = (req, res, next) => { | @@ -82,7 +82,7 @@ exports.getResourceContent = (req, res, next) => { | ||
82 | }).then(result => { | 82 | }).then(result => { |
83 | 83 | ||
84 | if (result.length) { | 84 | if (result.length) { |
85 | - result = result.slice(6); | 85 | + result = result.slice(8); |
86 | } | 86 | } |
87 | 87 | ||
88 | res.render('channel-resource', { | 88 | res.render('channel-resource', { |
-
Please register or login to post a comment