|
@@ -151,8 +151,17 @@ const getBrandShopGoodsData = params => { |
|
@@ -151,8 +151,17 @@ const getBrandShopGoodsData = params => { |
151
|
return shopApi.getBrandInfoByDomain({
|
151
|
return shopApi.getBrandInfoByDomain({
|
152
|
domain: params.domain
|
152
|
domain: params.domain
|
153
|
}).then(result => {
|
153
|
}).then(result => {
|
154
|
- if (result.data && result.data.shop_id) {
|
|
|
155
|
- Object.assign(params, {shopId: result.data.shop_id});
|
154
|
+ if (result.data) {
|
|
|
155
|
+ if (result.data.shop_id) {
|
|
|
156
|
+ Object.assign(params, {
|
|
|
157
|
+ shopId: result.data.shop_id
|
|
|
158
|
+ });
|
|
|
159
|
+ }
|
|
|
160
|
+ if (result.data.id) {
|
|
|
161
|
+ Object.assign(params, {
|
|
|
162
|
+ brand: result.data.id
|
|
|
163
|
+ });
|
|
|
164
|
+ }
|
156
|
}
|
165
|
}
|
157
|
return _getGoodsList(params);
|
166
|
return _getGoodsList(params);
|
158
|
});
|
167
|
});
|