...
|
...
|
@@ -647,10 +647,10 @@ const getBrandLogoByDomain = (domain) => { |
|
|
|
|
|
return {
|
|
|
id: formatData.id,
|
|
|
url: helpers.urlFormat('', null, formatData.brandDomain),
|
|
|
thumb: helpers.image(formatData.brandIco, 75, 40),
|
|
|
url: helpers.urlFormat('', null, formatData.brand_domain),
|
|
|
thumb: helpers.image(formatData.brand_ico, 75, 40),
|
|
|
name: formatData.brand_name,
|
|
|
shopId: formatData.shop_id ? formatData.shop_id : 0, // 店铺id
|
|
|
shopId: formatData.id ? formatData.id : 0, // 店铺id
|
|
|
type: formatData.type ? formatData.type : 0
|
|
|
};
|
|
|
} else {
|
...
|
...
|
@@ -672,10 +672,10 @@ const getBrandShops = (brandId) => { |
|
|
code: 200,
|
|
|
cache: true
|
|
|
}).then(result => {
|
|
|
if (result.data) {
|
|
|
if (_.isArray(result.data)) {
|
|
|
return _processBrandShops(result.data);
|
|
|
} else {
|
|
|
return {};
|
|
|
return [];
|
|
|
}
|
|
|
});
|
|
|
};
|
...
|
...
|
|