Showing
10 changed files
with
7 additions
and
106 deletions
@@ -42,7 +42,7 @@ | @@ -42,7 +42,7 @@ | ||
42 | {{! 优选品牌}} | 42 | {{! 优选品牌}} |
43 | {{# preferenceBrands}} | 43 | {{# preferenceBrands}} |
44 | <div class="preference-brand"> | 44 | <div class="preference-brand"> |
45 | - {{> index/floor-header}} | 45 | + {{> floor-header}} |
46 | <div class="img-brand"> | 46 | <div class="img-brand"> |
47 | <ul class="img-list imgopacity clearfix"> | 47 | <ul class="img-list imgopacity clearfix"> |
48 | {{# imgBrand}} | 48 | {{# imgBrand}} |
@@ -68,7 +68,7 @@ | @@ -68,7 +68,7 @@ | ||
68 | 68 | ||
69 | {{! 单品/广告}} | 69 | {{! 单品/广告}} |
70 | {{# singlehot}} | 70 | {{# singlehot}} |
71 | - {{> index/boy-singlehot}} | 71 | + {{> boy-singlehot}} |
72 | {{/ singlehot}} | 72 | {{/ singlehot}} |
73 | 73 | ||
74 | {{! 广告}} | 74 | {{! 广告}} |
@@ -80,13 +80,13 @@ | @@ -80,13 +80,13 @@ | ||
80 | 80 | ||
81 | {{! 品类推荐}} | 81 | {{! 品类推荐}} |
82 | {{# recommend}} | 82 | {{# recommend}} |
83 | - {{> index/boy-recommend}} | 83 | + {{> boy-recommend}} |
84 | {{/ recommend}} | 84 | {{/ recommend}} |
85 | 85 | ||
86 | 86 | ||
87 | {{! 新品上架}} | 87 | {{! 新品上架}} |
88 | {{# newArrivls}} | 88 | {{# newArrivls}} |
89 | - {{> index/commodity}} | 89 | + {{> commodity}} |
90 | {{/ newArrivls}} | 90 | {{/ newArrivls}} |
91 | {{/ channel}} | 91 | {{/ channel}} |
92 | </div> | 92 | </div> |
1 | {{# tplrecommend}} | 1 | {{# tplrecommend}} |
2 | <div class="tpl-recommend clearfix"> | 2 | <div class="tpl-recommend clearfix"> |
3 | - {{> index/floor-header}} | 3 | + {{> floor-header}} |
4 | <div class="tpl-body clearfix"> | 4 | <div class="tpl-body clearfix"> |
5 | <div class="tpl-nav"> | 5 | <div class="tpl-nav"> |
6 | <div class="tpl-keywords"> | 6 | <div class="tpl-keywords"> |
1 | <div class="singlehot clearfix"> | 1 | <div class="singlehot clearfix"> |
2 | - {{> index/floor-header}} | 2 | + {{> floor-header}} |
3 | <ul class="g-list imgopacity"> | 3 | <ul class="g-list imgopacity"> |
4 | - {{#each imgHot}} | 4 | + {{#each imgHot}} |
5 | {{#if @last}} | 5 | {{#if @last}} |
6 | <li><a class="impo{{@index}}" href="{{href}}" target= "_blank"><img class="lazy" src="{{image img 378 248}}"/></a></li> | 6 | <li><a class="impo{{@index}}" href="{{href}}" target= "_blank"><img class="lazy" src="{{image img 378 248}}"/></a></li> |
7 | {{^}} | 7 | {{^}} |
apps/index/controllers/index.js
deleted
100644 → 0
1 | -/** | ||
2 | - * index controller | ||
3 | - * @author: 赵彪<bill.zhao@yoho.cn> | ||
4 | - * @date: 2016/05/03 | ||
5 | - */ | ||
6 | - | ||
7 | -'use strict'; | ||
8 | - | ||
9 | -const headerModel = require('../../../doraemon/models/header'); | ||
10 | - | ||
11 | -exports.index = (req, res) => { | ||
12 | - headerModel.requestHeaderData() | ||
13 | - .then(response => { | ||
14 | - let data = headerModel.setHeaderData(response.data, 'boys'); | ||
15 | - | ||
16 | - data.module = 'index'; | ||
17 | - data.page = 'index'; | ||
18 | - data.footerTop = true; | ||
19 | - | ||
20 | - res.render('index', data); | ||
21 | - }) | ||
22 | - .catch(() => { | ||
23 | - res.render('index', {devEnv: true, pageErr: true}); | ||
24 | - }); | ||
25 | -}; |
apps/index/index.js
deleted
100644 → 0
1 | -/** | ||
2 | - * sub app index | ||
3 | - * @author: yyqing<yanqing.yang@yoho.cn> | ||
4 | - * @date: 2016/05/03 | ||
5 | - */ | ||
6 | - | ||
7 | -var express = require('express'), | ||
8 | - path = require('path'), | ||
9 | - hbs = require('express-handlebars'); | ||
10 | - | ||
11 | -var app = express(); | ||
12 | - | ||
13 | -// set view engin | ||
14 | -var doraemon = path.join(__dirname, '../../doraemon/views'); // parent view root | ||
15 | - | ||
16 | -app.set('views', path.join(__dirname, 'views/action')); | ||
17 | -app.engine('.hbs', hbs({ | ||
18 | - extname: '.hbs', | ||
19 | - defaultLayout: 'layout', | ||
20 | - layoutsDir: doraemon, | ||
21 | - partialsDir: ['./views/partial', `${doraemon}/partial`], | ||
22 | - helpers: 'helpers' | ||
23 | -})); | ||
24 | - | ||
25 | -// router | ||
26 | -app.use(require('./router')); | ||
27 | - | ||
28 | -module.exports = app; |
apps/index/router.js
deleted
100644 → 0
1 | -/** | ||
2 | - * router of sub app index | ||
3 | - * @author: yyqing<yanqing.yang@yoho.cn> | ||
4 | - * @date: 2016/05/03 | ||
5 | - */ | ||
6 | - | ||
7 | -'use strict'; | ||
8 | - | ||
9 | -const express = require('express'); | ||
10 | -const router = express.Router(); // eslint-disable-line | ||
11 | -const cRoot = './controllers'; | ||
12 | - | ||
13 | -const homeController = require(`${cRoot}/index`); | ||
14 | - | ||
15 | -// Your controller here | ||
16 | -router.get('/', homeController.index); | ||
17 | - | ||
18 | -module.exports = router; |
apps/index/views/action/index.hbs
deleted
100644 → 0
public/js/index/index.page.js
deleted
100644 → 0
1 | -require('../common'); |
-
Please register or login to post a comment