form shop index brandlist
Showing
1 changed file
with
8 additions
and
7 deletions
@@ -3,6 +3,7 @@ | @@ -3,6 +3,7 @@ | ||
3 | namespace Plugin\DataProcess; | 3 | namespace Plugin\DataProcess; |
4 | 4 | ||
5 | use Plugin\Helpers; | 5 | use Plugin\Helpers; |
6 | +use Plugin\Images; | ||
6 | 7 | ||
7 | /** | 8 | /** |
8 | * 店铺楼层数据处理类 | 9 | * 店铺楼层数据处理类 |
@@ -56,9 +57,8 @@ class ShopProcess | @@ -56,9 +57,8 @@ class ShopProcess | ||
56 | */ | 57 | */ |
57 | private static function shopInfo($data) | 58 | private static function shopInfo($data) |
58 | { | 59 | { |
59 | - | ||
60 | - self::$shopData['shopName'] = ''; | ||
61 | - self::$shopData['logo'] = ''; | 60 | + self::$shopData['logoImg'] = Images::getImageUrl($data['data']['shop_logo'], 500, 500, 'shop'); |
61 | + self::$shopData['storeName'] = $data['data']['shop_name']; | ||
62 | } | 62 | } |
63 | 63 | ||
64 | /** | 64 | /** |
@@ -101,10 +101,11 @@ class ShopProcess | @@ -101,10 +101,11 @@ class ShopProcess | ||
101 | */ | 101 | */ |
102 | private static function brandBrowse($data) | 102 | private static function brandBrowse($data) |
103 | { | 103 | { |
104 | +// print_r($data); exit; | ||
104 | foreach ($data as $val) { | 105 | foreach ($data as $val) { |
105 | - self::$shopData['multi-list'][] = array( | ||
106 | - 'url' => '', | ||
107 | - 'img' => $val['brandIco'], | 106 | + self::$shopData['multiList'][] = array( |
107 | + 'url' => Helpers::url('', '', $val['brandDomain']), | ||
108 | + 'img' => Images::getImageUrl($val['brandIco'], 640, 400), | ||
108 | 'brandName' => $val['brandName'] | 109 | 'brandName' => $val['brandName'] |
109 | ); | 110 | ); |
110 | } | 111 | } |
@@ -154,7 +155,7 @@ class ShopProcess | @@ -154,7 +155,7 @@ class ShopProcess | ||
154 | foreach ($data as $val) { | 155 | foreach ($data as $val) { |
155 | self::$shopData['hotList'][] = array( | 156 | self::$shopData['hotList'][] = array( |
156 | 'url' => $val['url'], | 157 | 'url' => $val['url'], |
157 | - 'img' => $val['src'], | 158 | + 'img' => Helpers::getImageUrl($val['src'], 235, 314), |
158 | 'productName' => $val['productName'], | 159 | 'productName' => $val['productName'], |
159 | 'salesPrice' => '¥'.$val['salesPrice'], | 160 | 'salesPrice' => '¥'.$val['salesPrice'], |
160 | 'presentPrice' => '¥'.$val['salesPrice'] | 161 | 'presentPrice' => '¥'.$val['salesPrice'] |
-
Please register or login to post a comment