Authored by 陈峰

Merge branch 'hotfix/barnd' into 'gray'

brand channel can unset



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