init plus+star list page
Showing
8 changed files
with
19 additions
and
4 deletions
1 | var yohobuyMobile; | 1 | var yohobuyMobile; |
2 | 2 | ||
3 | require('./public/js/saunter'); | 3 | require('./public/js/saunter'); |
4 | +require('./public/js/saunter-home'); | ||
4 | require('./public/js/tag'); | 5 | require('./public/js/tag'); |
6 | +require('./public/js/ps-list'); | ||
5 | require('./public/js/ps'); | 7 | require('./public/js/ps'); |
6 | require('./public/js/template'); | 8 | require('./public/js/template'); |
7 | 9 | ||
8 | -require('./public/js/saunter-home'); | ||
9 | module.exports = yohobuyMobile; | 10 | module.exports = yohobuyMobile; |
@@ -466,6 +466,9 @@ module.exports = function(flag) { | @@ -466,6 +466,9 @@ module.exports = function(flag) { | ||
466 | } | 466 | } |
467 | ] | 467 | ] |
468 | } | 468 | } |
469 | + //plus+star列表页数据 | ||
470 | + case 'ps-list': | ||
471 | + return ; | ||
469 | //plus+star页模拟数据 | 472 | //plus+star页模拟数据 |
470 | case 'ps': | 473 | case 'ps': |
471 | return { | 474 | return { |
mobile/public/js/ps-list.js
0 → 100644
1 | -@import "common/common", "module/saunter", "module/tag", "module/ps", "module/template", "error/error", "module/saunter-home"; | 1 | +@import "common/common", "module/saunter", "module/tag", "module/ps", "module/ps-list", "module/template", "error/error", "module/saunter-home"; |
2 | 2 | ||
3 | //恢复样式覆盖 | 3 | //恢复样式覆盖 |
4 | b { | 4 | b { |
mobile/public/sass/module/_ps-list.scss
0 → 100644
@@ -19,6 +19,7 @@ module.exports = function(app) { | @@ -19,6 +19,7 @@ module.exports = function(app) { | ||
19 | app.get('/tags/get', tag.loadMatchs); //异步加载搭配内容 | 19 | app.get('/tags/get', tag.loadMatchs); //异步加载搭配内容 |
20 | app.get('/editor', editor.show); //编辑页 | 20 | app.get('/editor', editor.show); //编辑页 |
21 | 21 | ||
22 | + app.get('/ps/list', ps.list); //plus + star page list | ||
22 | app.get('/ps', ps.show); //plus + star | 23 | app.get('/ps', ps.show); //plus + star |
23 | 24 | ||
24 | app.get('/tpl', template.show); //模板页 | 25 | app.get('/tpl', template.show); //模板页 |
@@ -3,14 +3,16 @@ | @@ -3,14 +3,16 @@ | ||
3 | * @author: xuqi(qi.xu@yoho.cn) | 3 | * @author: xuqi(qi.xu@yoho.cn) |
4 | * @date: 2015/4/15 | 4 | * @date: 2015/4/15 |
5 | */ | 5 | */ |
6 | -var data = require('../../public/js/data')('ps'), | 6 | +var data = require('../../public/js/data'), |
7 | + ps = data('ps'), | ||
8 | + list = data('ps-list'), | ||
7 | path = require('path'), | 9 | path = require('path'), |
8 | fs = require('fs'), | 10 | fs = require('fs'), |
9 | tplPath = path.normalize(path.join(__dirname, '../partials/ps/info-item.html')); | 11 | tplPath = path.normalize(path.join(__dirname, '../partials/ps/info-item.html')); |
10 | 12 | ||
11 | exports.show = function(req, res) { | 13 | exports.show = function(req, res) { |
12 | res.render('pages/ps', { | 14 | res.render('pages/ps', { |
13 | - data: data, | 15 | + data: ps, |
14 | layout: '../layouts/layout', | 16 | layout: '../layouts/layout', |
15 | isPs: true, | 17 | isPs: true, |
16 | isLogin: 'Y' | 18 | isLogin: 'Y' |
@@ -33,4 +35,12 @@ exports.readTpl = function(req, res) { | @@ -33,4 +35,12 @@ exports.readTpl = function(req, res) { | ||
33 | res.send(data); | 35 | res.send(data); |
34 | }); | 36 | }); |
35 | }); | 37 | }); |
38 | +}; | ||
39 | + | ||
40 | +exports.list = function(req, res) { | ||
41 | + res.render('pages/ps-list', { | ||
42 | + data: list, | ||
43 | + layout: '../layouts/layout', | ||
44 | + isPsList: true | ||
45 | + }); | ||
36 | }; | 46 | }; |
mobile/views/pages/ps-list.html
0 → 100644
-
Please register or login to post a comment