|
@@ -19,7 +19,7 @@ let channels = { |
|
@@ -19,7 +19,7 @@ let channels = { |
19
|
let yhChannel = {
|
19
|
let yhChannel = {
|
20
|
boys: 1,
|
20
|
boys: 1,
|
21
|
girl: 2
|
21
|
girl: 2
|
22
|
-}
|
22
|
+};
|
23
|
|
23
|
|
24
|
const getListData = (req, res, next) => {
|
24
|
const getListData = (req, res, next) => {
|
25
|
let gender = req.query.gender || req.cookies._Channel && channels[req.cookies._Channel] || '1,3';
|
25
|
let gender = req.query.gender || req.cookies._Channel && channels[req.cookies._Channel] || '1,3';
|
|
@@ -30,9 +30,8 @@ const getListData = (req, res, next) => { |
|
@@ -30,9 +30,8 @@ const getListData = (req, res, next) => { |
30
|
let isRecommend = '0';
|
30
|
let isRecommend = '0';
|
31
|
let starBrand = '2';
|
31
|
let starBrand = '2';
|
32
|
let originalBrand = '3';
|
32
|
let originalBrand = '3';
|
33
|
- console.log(type)
|
|
|
34
|
|
33
|
|
35
|
- if(type === '2') {
|
34
|
+ if (type === '2') {
|
36
|
plustarModel.getBrandsData(gender, starBrand, originalBrand, channel, isRecommend).then((result) => {
|
35
|
plustarModel.getBrandsData(gender, starBrand, originalBrand, channel, isRecommend).then((result) => {
|
37
|
res.render('plustar/list', {
|
36
|
res.render('plustar/list', {
|
38
|
module: 'guang',
|
37
|
module: 'guang',
|
|
@@ -69,7 +68,7 @@ const getListData = (req, res, next) => { |
|
@@ -69,7 +68,7 @@ const getListData = (req, res, next) => { |
69
|
}
|
68
|
}
|
70
|
});
|
69
|
});
|
71
|
}).catch(next);
|
70
|
}).catch(next);
|
72
|
- }
|
71
|
+ }
|
73
|
};
|
72
|
};
|
74
|
|
73
|
|
75
|
const getDetailData = (req, res, next) => {
|
74
|
const getDetailData = (req, res, next) => {
|