...
|
...
|
@@ -36,21 +36,25 @@ const index = (req, res) => { |
|
|
{
|
|
|
typeId: '0',
|
|
|
isActive: true,
|
|
|
href: '#',
|
|
|
type: '最新'
|
|
|
},
|
|
|
{
|
|
|
typeId: '1',
|
|
|
isActive: false,
|
|
|
href: '#',
|
|
|
type: '话题'
|
|
|
},
|
|
|
{
|
|
|
typeId: '2',
|
|
|
isActive: false,
|
|
|
href: '#',
|
|
|
type: '搭配'
|
|
|
},
|
|
|
{
|
|
|
typeId: '3',
|
|
|
isActive: false,
|
|
|
href: '#',
|
|
|
type: '潮人'
|
|
|
},
|
|
|
{
|
...
|
...
|
@@ -61,6 +65,7 @@ const index = (req, res) => { |
|
|
],
|
|
|
msg: [
|
|
|
{
|
|
|
id: '1',
|
|
|
msgLeft: '潮品',
|
|
|
msgTitle: '很到位和范围的恢复文件和的减肥了晚餐费',
|
|
|
img: '',
|
...
|
...
|
@@ -70,6 +75,7 @@ const index = (req, res) => { |
|
|
like: '8'
|
|
|
},
|
|
|
{
|
|
|
id: '2',
|
|
|
msgLeft: '潮品',
|
|
|
msgTitle: '很到位和范围的恢复文件和的减肥了晚餐费',
|
|
|
img: '',
|
...
|
...
|
@@ -93,6 +99,70 @@ const index = (req, res) => { |
|
|
});
|
|
|
};
|
|
|
|
|
|
const list = (req, res) => {
|
|
|
var pageNum = req.query.page || 1;
|
|
|
|
|
|
res.display('list', {
|
|
|
module: 'editorial',
|
|
|
page: 'list',
|
|
|
title: '资讯列表',
|
|
|
editorialList: {
|
|
|
nav: [
|
|
|
{
|
|
|
link: '//guang.yohobuy.com/index/index?type=0',
|
|
|
pathTitle: '首页',
|
|
|
name: 'MEN首页'
|
|
|
},
|
|
|
{
|
|
|
link: '/',
|
|
|
pathTitle: '资讯',
|
|
|
name: '咨询'
|
|
|
},
|
|
|
{
|
|
|
link: '/',
|
|
|
pathTitle: '资讯',
|
|
|
name: '咨询'
|
|
|
}
|
|
|
],
|
|
|
pathTitle: '户外',
|
|
|
msg: [
|
|
|
{
|
|
|
id: '1',
|
|
|
msgLeft: '潮品',
|
|
|
msgTitle: '很到位和范围的恢复文件和的减肥了晚餐费',
|
|
|
img: '',
|
|
|
msgContent: '鞋款定价回复即可老地方了服务',
|
|
|
time: '2016/05/25 19:36',
|
|
|
liked: true,
|
|
|
like: '8'
|
|
|
},
|
|
|
{
|
|
|
id: '2',
|
|
|
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
|
|
|
pagination: require('../../../doraemon/components/pagination/pagination').createPagination
|
|
|
}
|
|
|
|
|
|
});
|
|
|
};
|
|
|
|
|
|
module.exports = {
|
|
|
index // 组件demo页
|
|
|
index, // 组件demo页
|
|
|
list
|
|
|
}; |
...
|
...
|
|