Authored by 郭成尧

'品牌店铺首页基本框架'

/**
* Created by PhpStorm.
* User: Targaryen
* Date: 2016/7/19
* Time: 10:03
*/
'use strict';
const _ = require('lodash');
const helpers = global.yoho.helpers;
/**
* 频道选择页
*/
const component = {
brand: (req, res, next) => {
res.render('brand/index', {
module: 'brand',
page: 'index'
});
}
};
module.exports = component;
\ No newline at end of file
... ...
... ... @@ -6,7 +6,7 @@
'use strict';
const _ = require('lodash');
const helpers = global.yoho.helpers;
const brand = require('./brand');
/**
* 频道选择页
*/
... ... @@ -19,4 +19,4 @@ const component = {
}
};
module.exports = component;
module.exports = Object.assign(component,brand);
... ...
... ... @@ -13,5 +13,6 @@ const channel = require(cRoot);
const router = expressRouter();
router.get('/', channel.index); // 首页
router.get('/brand', channel.brand); // 店铺首页
module.exports = router;
... ...
<div class="brand-top-box">
</div>
\ No newline at end of file
... ...
/**
* Created by PhpStorm.
* User: Targaryen
* Date: 2016/7/19
* Time: 10:16
*/
console.log('ddd');
\ No newline at end of file
... ...
.brand-top-box{
height: 200px;
width: 100%;
background-color: #000;
}
\ No newline at end of file
... ...
@import "brand";
\ No newline at end of file
... ...
@charset "utf-8";
@import "common/index";
@import "example/index";
@import "brand/index";
... ...