Authored by zhangxiaoru

exchange

@@ -229,7 +229,7 @@ const _getRelatedData = (idList) => { @@ -229,7 +229,7 @@ const _getRelatedData = (idList) => {
229 cnAlphabet: data.cn_alphabet 229 cnAlphabet: data.cn_alphabet
230 }); 230 });
231 }); 231 });
232 - console.log(productList) 232 + console.log(productList);
233 return productList; 233 return productList;
234 } else { 234 } else {
235 logger.error('推荐商品 cood 不是 200'); 235 logger.error('推荐商品 cood 不是 200');
@@ -246,7 +246,7 @@ const _getRelatedData = (idList) => { @@ -246,7 +246,7 @@ const _getRelatedData = (idList) => {
246 const _processContentData = (list) => { 246 const _processContentData = (list) => {
247 list = list || []; 247 list = list || [];
248 list = camelCase(list); 248 list = camelCase(list);
249 - console.log(list) 249 + console.log(list);
250 250
251 let contentData = { 251 let contentData = {
252 contents: [] 252 contents: []
@@ -282,7 +282,7 @@ const _processContentData = (list) => { @@ -282,7 +282,7 @@ const _processContentData = (list) => {
282 if (value.goods) { 282 if (value.goods) {
283 283
284 _.forEach(value.goods.data, function(data) { 284 _.forEach(value.goods.data, function(data) {
285 - console.log(data) 285 + console.log(data);
286 286
287 idList += data.id + ','; 287 idList += data.id + ',';
288 related.relatedReco.push(data); 288 related.relatedReco.push(data);
@@ -310,8 +310,9 @@ const _processContentData = (list) => { @@ -310,8 +310,9 @@ const _processContentData = (list) => {
310 if (related.relatedReco) { 310 if (related.relatedReco) {
311 _.forEach(related.relatedReco, function(data, index) { 311 _.forEach(related.relatedReco, function(data, index) {
312 data = _.assign(data, { 312 data = _.assign(data, {
313 - //link: `${config.siteUrl}/product/list/pro_${result[index].id}_data.${data.productSkc}`  
314 - }) 313 +
  314 + // link: `${config.siteUrl}/product/list/pro_${result[index].id}_data.${data.productSkc}`
  315 + });
315 data = _.assign(data, result[index]); 316 data = _.assign(data, result[index]);
316 }); 317 });
317 result.splice(0, recoLength.length); 318 result.splice(0, recoLength.length);
@@ -87,7 +87,7 @@ const favorite = { @@ -87,7 +87,7 @@ const favorite = {
87 87
88 ret.content.favorite.data = retData; 88 ret.content.favorite.data = retData;
89 ret.content.banner = thumb; 89 ret.content.banner = thumb;
90 - console.log(retData) 90 + console.log(retData);
91 } 91 }
92 92
93 res.display('index', ret); 93 res.display('index', ret);
@@ -33,7 +33,7 @@ $('.editorial-index-page').on('click', '.like-icon', function() { @@ -33,7 +33,7 @@ $('.editorial-index-page').on('click', '.like-icon', function() {
33 }).then(function(data) { 33 }).then(function(data) {
34 if (data.code === 200) { 34 if (data.code === 200) {
35 $this.next('b').html(data.data); 35 $this.next('b').html(data.data);
36 - $this.toggleClass('liked'); 36 + $this.toggleClass('liked');
37 } else { 37 } else {
38 new _alert(data.message).show(); 38 new _alert(data.message).show();
39 } 39 }
@@ -281,7 +281,7 @@ $(function() { @@ -281,7 +281,7 @@ $(function() {
281 281
282 } 282 }
283 }); 283 });
284 - 284 +
285 }); 285 });
286 286
287 287