Authored by yyq

Merge branch 'release/1.0' of git.yoho.cn:fe/yoho-blk into release/1.0

const model = require('../models');
const Cookies = require('cookies');
exports.index = (req, res) => {
const channelType = req.path.substring(1) || 'men';
model.getContent(channelType).then(result => {
const cookies = new Cookies(req, res);
// 设置当前频道
cookies.set('_Channel', channelType);
res.cookie('_Channel', channelType, {
domain: '.yohoblk.com'
});
req.yoho.channel = channelType;
res.display('index', Object.assign({
... ...
... ... @@ -37,7 +37,6 @@
"connect-memcached": "^0.2.0",
"connect-multiparty": "^2.0.0",
"cookie-parser": "^1.4.3",
"cookies": "^0.6.1",
"express": "^4.13.1",
"express-handlebars": "^3.0.0",
"express-session": "^1.13.0",
... ...