...
|
...
|
@@ -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 |
...
|
...
|
|