...
|
...
|
@@ -26,7 +26,6 @@ class ShopProcess |
|
|
}
|
|
|
self::$key($val);
|
|
|
}
|
|
|
// exit;
|
|
|
return self::$shopData;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -59,6 +58,8 @@ class ShopProcess |
|
|
{
|
|
|
self::$shopData['logoImg'] = Images::getImageUrl($data['data']['shop_logo'], 500, 500, 'shopLogo');
|
|
|
self::$shopData['storeName'] = $data['data']['shop_name'];
|
|
|
//用户是否收藏店铺
|
|
|
self::$shopData['favorite'] = $data['data']['is_favorite'] == 'Y' ? true : false;
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -101,14 +102,17 @@ class ShopProcess |
|
|
*/
|
|
|
private static function brandBrowse($data)
|
|
|
{
|
|
|
// print_r($data); exit;
|
|
|
foreach ($data as $val) {
|
|
|
self::$shopData['multiList'][] = array(
|
|
|
self::$shopData['brandList']['list'] = array(
|
|
|
'url' => Helpers::url('', '', $val['brandDomain']),
|
|
|
'img' => Images::getImageUrl($val['brandIco'], 640, 400),
|
|
|
'brandName' => $val['brandName']
|
|
|
);
|
|
|
}
|
|
|
if (count($data) > 5) {
|
|
|
//TODO
|
|
|
self::$shopData['brandList']['url'] = Helpers::url('brandList');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -149,10 +153,9 @@ class ShopProcess |
|
|
*/
|
|
|
private static function hotProducts($data)
|
|
|
{
|
|
|
// print_r($data);
|
|
|
foreach ($data as $val) {
|
|
|
self::$shopData['hotList'][] = array(
|
|
|
'url' => $val['url'],
|
|
|
'url' => Helpers::getUrlBySkc($val['product_id'], $val['goods_id'], $val['cn_alphabet']),
|
|
|
'img' => Helpers::getImageUrl($val['src'], 235, 314),
|
|
|
'productName' => $val['productName'],
|
|
|
'salesPrice' => '¥'.$val['salesPrice'],
|
...
|
...
|
|