Authored by 郭成尧

'brandId'

@@ -69,7 +69,7 @@ const handleBrandList = origin => { @@ -69,7 +69,7 @@ const handleBrandList = origin => {
69 69
70 // 如果有数字,单独处理 70 // 如果有数字,单独处理
71 if (hasNum) { 71 if (hasNum) {
72 - let brands = {}; 72 + let brands = [];
73 73
74 _.forEach(numTemp, (subValue) => { 74 _.forEach(numTemp, (subValue) => {
75 brands.push({ 75 brands.push({
@@ -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 });