Authored by 陈峰

Merge branch 'gray' into 'master'

Gray



See merge request !78
@@ -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
1 { 1 {
2 "name": "yohoblk-wap", 2 "name": "yohoblk-wap",
3 - "version": "2.0.37", 3 + "version": "2.0.38",
4 "private": true, 4 "private": true,
5 "description": "A New Yohobuy Project With Express", 5 "description": "A New Yohobuy Project With Express",
6 "repository": { 6 "repository": {
@@ -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 },