Authored by 郭成尧

一个商品多个店铺关联

@@ -166,6 +166,11 @@ class DetailModel @@ -166,6 +166,11 @@ class DetailModel
166 'storeName' => $baseInfo['brand']['brandName'], 166 'storeName' => $baseInfo['brand']['brandName'],
167 'url' => Helpers::url('', array(), $baseInfo['brand']['brandDomain']) 167 'url' => Helpers::url('', array(), $baseInfo['brand']['brandDomain'])
168 ); 168 );
  169 +// foreach ($baseInfo['brand'] as $key => $brand) {
  170 +// $result['enterStore'][$key]['img'] = Helpers::getImageUrl($brand['brandIco'], 47, 47);
  171 +// $result['enterStore'][$key]['storeName'] = $brand['brandName'];
  172 +// $result['enterStore'][$key]['url'] = Helpers::url('', array(), $brand['brandDomain']);
  173 +// }
169 // 为你优选的链接 174 // 为你优选的链接
170 $result['preferenceUrl'] = Helpers::url('/product/detail/preference', array('productSkn' => $baseInfo['erpProductId'], 'brandId' => $baseInfo['brand']['id']), ''); 175 $result['preferenceUrl'] = Helpers::url('/product/detail/preference', array('productSkn' => $baseInfo['erpProductId'], 'brandId' => $baseInfo['brand']['id']), '');
171 } 176 }