Authored by zhangxiaoru

明星原创

@@ -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) => {
@@ -9,7 +9,6 @@ const helpers = global.yoho.helpers; @@ -9,7 +9,6 @@ const helpers = global.yoho.helpers;
9 const formaData = (data, gender) => { 9 const formaData = (data, gender) => {
10 let build = []; 10 let build = [];
11 11
12 - // console.log(data)  
13 _.forEach(data, function(val) { 12 _.forEach(data, function(val) {
14 // 多张图 13 // 多张图
15 if (val.data[1]) { 14 if (val.data[1]) {
@@ -84,7 +83,7 @@ const getBrandsData = (gender, starBrand, originalBrand, channel, isRecommend) = @@ -84,7 +83,7 @@ const getBrandsData = (gender, starBrand, originalBrand, channel, isRecommend) =
84 plus: result[1] 83 plus: result[1]
85 }; 84 };
86 }); 85 });
87 -} 86 +};
88 87
89 // 新品到着 88 // 新品到着
90 const getNewProduct = (brandId, gender, url) => { 89 const getNewProduct = (brandId, gender, url) => {
@@ -109,7 +108,6 @@ const getNewProduct = (brandId, gender, url) => { @@ -109,7 +108,6 @@ const getNewProduct = (brandId, gender, url) => {
109 let obj = {}; 108 let obj = {};
110 let price; 109 let price;
111 110
112 - // console.log(list)  
113 if (index <= 5) { 111 if (index <= 5) {
114 let tag = []; 112 let tag = [];
115 113