Authored by 陈峰

Merge branch 'hotfix/barnd' into 'gray'

brand channel can unset



See merge request !77
... ... @@ -27,7 +27,7 @@ module.exports = {
getBrandList: (req, res, next) => {
brandModel.getBrandListData({
channel: req.query.channel || req.cookies._Channel || 'men'
channel: req.query.channel
}).then(result => {
res.json(result);
}).catch(next);
... ...
... ... @@ -28,7 +28,7 @@ module.exports = {
getBrandListOriginData(params) {
return api.get('', {
method: 'app.brand.allBrandList',
yh_channel: yhChannel[params.channel].channel
yh_channel: params.channel ? yhChannel[params.channel].channel : ''
}, {
code: 200,
cache: true
... ...
... ... @@ -22,7 +22,7 @@
data() {
return {
page: 'brand',
channel: detaultChannel,
channel: qs.channel,
contentCode: contentCode.brand[detaultChannel]
};
},
... ...