Authored by zhangxiaoru

editorial

@@ -35,7 +35,6 @@ const _processNavData = (list, type) => { @@ -35,7 +35,6 @@ const _processNavData = (list, type) => {
35 35
36 formatData.push(data); 36 formatData.push(data);
37 }); 37 });
38 - console.log(formatData);  
39 38
40 return formatData; 39 return formatData;
41 }; 40 };
@@ -387,8 +386,9 @@ const _getRelateBrand = (id) => { @@ -387,8 +386,9 @@ const _getRelateBrand = (id) => {
387 386
388 _.forEach(result.data, function(data) { 387 _.forEach(result.data, function(data) {
389 let domain = data.url; 388 let domain = data.url;
390 - domain = domain.substring(domain.indexOf('/')+2, domain.indexOf('.'))  
391 - console.log(domain) 389 +
  390 + domain = domain.substring(domain.indexOf('/') + 2, domain.indexOf('.'));
  391 + console.log(domain);
392 data.url = `${config.siteUrl}/product/shop/${domain}`; 392 data.url = `${config.siteUrl}/product/shop/${domain}`;
393 }); 393 });
394 return camelCase(result.data); 394 return camelCase(result.data);
@@ -32,13 +32,14 @@ $('#prise-btn').click(function() { @@ -32,13 +32,14 @@ $('#prise-btn').click(function() {
32 } 32 }
33 33
34 if ($this.hasClass('liked')) { 34 if ($this.hasClass('liked')) {
35 - url = '/editorial/info/cancelPraise'; 35 + url = '/editorial/info/cancelPraise';
  36 +
36 // 点赞 37 // 点赞
37 - 38 +
38 } else { 39 } else {
39 40
40 // 取消点赞 41 // 取消点赞
41 - url = '/editorial/info/praise'; 42 + url = '/editorial/info/praise';
42 } 43 }
43 prising = true; 44 prising = true;
44 $.ajax({ 45 $.ajax({