Authored by xuqi

init plus+star list page

var yohobuyMobile;
require('./public/js/saunter');
require('./public/js/saunter-home');
require('./public/js/tag');
require('./public/js/ps-list');
require('./public/js/ps');
require('./public/js/template');
require('./public/js/saunter-home');
module.exports = yohobuyMobile;
... ...
... ... @@ -466,6 +466,9 @@ module.exports = function(flag) {
}
]
}
//plus+star列表页数据
case 'ps-list':
return ;
//plus+star页模拟数据
case 'ps':
return {
... ...
@import "common/common", "module/saunter", "module/tag", "module/ps", "module/template", "error/error", "module/saunter-home";
@import "common/common", "module/saunter", "module/tag", "module/ps", "module/ps-list", "module/template", "error/error", "module/saunter-home";
//恢复样式覆盖
b {
... ...
... ... @@ -19,6 +19,7 @@ module.exports = function(app) {
app.get('/tags/get', tag.loadMatchs); //异步加载搭配内容
app.get('/editor', editor.show); //编辑页
app.get('/ps/list', ps.list); //plus + star page list
app.get('/ps', ps.show); //plus + star
app.get('/tpl', template.show); //模板页
... ...
... ... @@ -3,14 +3,16 @@
* @author: xuqi(qi.xu@yoho.cn)
* @date: 2015/4/15
*/
var data = require('../../public/js/data')('ps'),
var data = require('../../public/js/data'),
ps = data('ps'),
list = data('ps-list'),
path = require('path'),
fs = require('fs'),
tplPath = path.normalize(path.join(__dirname, '../partials/ps/info-item.html'));
exports.show = function(req, res) {
res.render('pages/ps', {
data: data,
data: ps,
layout: '../layouts/layout',
isPs: true,
isLogin: 'Y'
... ... @@ -33,4 +35,12 @@ exports.readTpl = function(req, res) {
res.send(data);
});
});
};
exports.list = function(req, res) {
res.render('pages/ps-list', {
data: list,
layout: '../layouts/layout',
isPsList: true
});
};
\ No newline at end of file
... ...