...
|
...
|
@@ -100,7 +100,7 @@ const getBrandViewTop = channel => { |
|
|
brandAds.push({
|
|
|
name: subValue.name,
|
|
|
src: helpers.image(subValue.src, 80, 50, 3),
|
|
|
url: helpers.urlFormat(subValue.url)
|
|
|
url: subValue.url
|
|
|
});
|
|
|
});
|
|
|
}
|
...
|
...
|
@@ -120,7 +120,7 @@ const getBrandViewTop = channel => { |
|
|
brandLogos.push({
|
|
|
name: subValue.title,
|
|
|
src: srcUrl,
|
|
|
url: helpers.urlFormat(subValue.url)
|
|
|
url: subValue.url
|
|
|
});
|
|
|
});
|
|
|
}
|
...
|
...
|
@@ -162,11 +162,11 @@ const getBrandViewList = (channel, start, length) => { |
|
|
let href;
|
|
|
|
|
|
if (switchParams.channelType === 1) {
|
|
|
href = helpers.urlFormat(ssubValue.brand_domain) + '?gender=1,3';
|
|
|
href = helpers.urlFormat('', {gender: '1,3'}, ssubValue.brand_domain);
|
|
|
} else if (switchParams.channelType === 2) {
|
|
|
href = helpers.urlFormat(ssubValue.brand_domain) + '?gender=2,3';
|
|
|
href = helpers.urlFormat('', {gender: '2,3'}, ssubValue.brand_domain);
|
|
|
} else {
|
|
|
href = helpers.urlFormat(ssubValue.brand_domain);
|
|
|
href = helpers.urlFormat('', '', ssubValue.brand_domain);
|
|
|
}
|
|
|
let brandItem = {
|
|
|
name: ssubValue.brand_name,
|
...
|
...
|
@@ -260,7 +260,7 @@ const getBrandInfoByIds = (brandIds) => { |
|
|
if (data.data && data.code === 200) {
|
|
|
_.forEach(data.data, (subValue, k) => {
|
|
|
subValue.desc = _.trim(subValue.brand_intro.replace('/[\r\n\t ]/g', ''));
|
|
|
subValue.url = helpers.urlFormat(subValue.brand_domain);
|
|
|
subValue.url = subValue.brand_domain;
|
|
|
delete subValue.brand_intro;
|
|
|
brandsInfo[k] = subValue;
|
|
|
});
|
...
|
...
|
@@ -287,7 +287,7 @@ const getPlusstarBrandListItem = (channel) => { |
|
|
let items = [];
|
|
|
|
|
|
if (resource.data && resource.code === 200) {
|
|
|
items[0] = {name: '所有品牌', src: '', url: helpers.urlFormat('/brands'), brandType: ''};
|
|
|
items[0] = {name: '所有品牌', src: '', url: helpers.urlFormat('/brands', ''), brandType: ''};
|
|
|
items[1] = {name: '设计新潮', src: '', url: '', brandType: 4};
|
|
|
items[2] = {name: '潮流经典', src: '', url: '', brandType: 1};
|
|
|
items[3] = {name: '明星潮牌', src: '', url: '', brandType: 2};
|
...
|
...
|
@@ -302,7 +302,7 @@ const getPlusstarBrandListItem = (channel) => { |
|
|
}
|
|
|
|
|
|
if (pos in resourceData[0].data) {
|
|
|
subValue.url = helpers.urlFormat(resourceData[0].data[pos].url);
|
|
|
subValue.url = resourceData[0].data[pos].url;
|
|
|
subValue.src = helpers.image(resourceData[0].data[pos].src, 222, 180, 1);
|
|
|
subValue.name = resourceData[0].data[pos].title;
|
|
|
}
|
...
|
...
|
|