Authored by zhangxiaoru

editorial

... ... @@ -35,7 +35,6 @@ const _processNavData = (list, type) => {
formatData.push(data);
});
console.log(formatData);
return formatData;
};
... ... @@ -387,8 +386,9 @@ const _getRelateBrand = (id) => {
_.forEach(result.data, function(data) {
let domain = data.url;
domain = domain.substring(domain.indexOf('/')+2, domain.indexOf('.'))
console.log(domain)
domain = domain.substring(domain.indexOf('/') + 2, domain.indexOf('.'));
console.log(domain);
data.url = `${config.siteUrl}/product/shop/${domain}`;
});
return camelCase(result.data);
... ...
... ... @@ -32,13 +32,14 @@ $('#prise-btn').click(function() {
}
if ($this.hasClass('liked')) {
url = '/editorial/info/cancelPraise';
url = '/editorial/info/cancelPraise';
// 点赞
} else {
// 取消点赞
url = '/editorial/info/praise';
url = '/editorial/info/praise';
}
prising = true;
$.ajax({
... ...