...
|
...
|
@@ -8,9 +8,9 @@ |
|
|
|
|
|
|
|
|
const index = (req, res) => {
|
|
|
// var pageNum = req.query.page || 1;
|
|
|
var pageNum = req.query.page || 1;
|
|
|
|
|
|
res.render('index', {
|
|
|
res.display('index', {
|
|
|
module: 'editorial',
|
|
|
page: 'index',
|
|
|
title: '资讯',
|
...
|
...
|
@@ -59,17 +59,31 @@ const index = (req, res) => { |
|
|
type: '潮品'
|
|
|
}
|
|
|
],
|
|
|
mags: [
|
|
|
msg: [
|
|
|
{
|
|
|
msgLeft: '潮品',
|
|
|
msgTitle: '很到位和范围的恢复文件和',
|
|
|
msgTitle: '很到位和范围的恢复文件和的减肥了晚餐费',
|
|
|
img: '',
|
|
|
msgContent: '鞋款定价回复即可老地方了服务',
|
|
|
time: '2016/05/25 19:36',
|
|
|
liked: true,
|
|
|
like: '8'
|
|
|
},
|
|
|
{
|
|
|
msgLeft: '潮品',
|
|
|
msgTitle: '很到位和范围的恢复文件和的减肥了晚餐费',
|
|
|
img: '',
|
|
|
msgContent: '鞋款定价回复即可老地方了服务',
|
|
|
time: '2016/05/25 19:36',
|
|
|
liked: true,
|
|
|
like: '8'
|
|
|
}
|
|
|
]
|
|
|
],
|
|
|
paginationOpts: {
|
|
|
page: pageNum, // current page: http://host/?page=2
|
|
|
limit: 10, // per_page records' number
|
|
|
totalRows: 100 // total page number
|
|
|
}
|
|
|
},
|
|
|
helpers: {
|
|
|
// import component, path depends on your project
|
...
|
...
|
|