Authored by 周少峰

add shop index shopInfo

@@ -71,7 +71,7 @@ class ListData @@ -71,7 +71,7 @@ class ListData
71 $param['client_secret'] = Sign::getSign($param); 71 $param['client_secret'] = Sign::getSign($param);
72 //TODO 72 //TODO
73 // return Yohobuy::get(Yohobuy::API_URL, $param); 73 // return Yohobuy::get(Yohobuy::API_URL, $param);
74 - return Yohobuy::get('http://192.168.102.218:8080/gateway/', $param, $cache); 74 + return Yohobuy::get('http://192.168.102.218:8080/gateway/', $param, 0);
75 } 75 }
76 76
77 /** 77 /**
@@ -25,8 +25,8 @@ class ShopProcess @@ -25,8 +25,8 @@ class ShopProcess
25 } 25 }
26 self::$key($val); 26 self::$key($val);
27 } 27 }
28 - print_r($data);  
29 - exit; 28 +// print_r($data);
  29 +// exit;
30 return self::$shopData; 30 return self::$shopData;
31 } 31 }
32 32
@@ -51,6 +51,17 @@ class ShopProcess @@ -51,6 +51,17 @@ class ShopProcess
51 } 51 }
52 52
53 /** 53 /**
  54 + * 店铺基本信息
  55 + * @param $data
  56 + */
  57 + private static function shopInfo($data)
  58 + {
  59 +
  60 + self::$shopData['shopName'] = '';
  61 + self::$shopData['logo'] = '';
  62 + }
  63 +
  64 + /**
54 * 店铺Banner 65 * 店铺Banner
55 * @param array $data 66 * @param array $data
56 * @author sefon 2016-4-27 08:40:05 67 * @author sefon 2016-4-27 08:40:05
@@ -69,13 +80,14 @@ class ShopProcess @@ -69,13 +80,14 @@ class ShopProcess
69 */ 80 */
70 private static function oneRowTwoColImages_APP($data) 81 private static function oneRowTwoColImages_APP($data)
71 { 82 {
  83 +// print_r($data); exit;
72 foreach ($data as $key => $val) { 84 foreach ($data as $key => $val) {
73 if (empty($val['data'])) { 85 if (empty($val['data'])) {
74 continue; 86 continue;
75 } 87 }
76 self::$shopData['spring'][$key] = array( 88 self::$shopData['spring'][$key] = array(
77 - 'url' => $val[0]['url'],  
78 - 'springType' => $val[0]['src'] 89 + 'url' => $val['data'][0]['url'],
  90 + 'springType' => $val['data'][0]['src']
79 ); 91 );
80 } 92 }
81 return $data; 93 return $data;
@@ -99,7 +111,7 @@ class ShopProcess @@ -99,7 +111,7 @@ class ShopProcess
99 } 111 }
100 112
101 /** 113 /**
102 - * 114 + * 资源位大图幻灯
103 * @param $data 115 * @param $data
104 * @author sefon 2016-4-27 16:50:01 116 * @author sefon 2016-4-27 16:50:01
105 */ 117 */
@@ -123,8 +135,9 @@ class ShopProcess @@ -123,8 +135,9 @@ class ShopProcess
123 */ 135 */
124 private static function recommend($data) 136 private static function recommend($data)
125 { 137 {
  138 + self::$shopData['hotCategory']['name'] = '热门品类';
126 foreach ($data as $cate) { 139 foreach ($data as $cate) {
127 - self::$shopData['hotCategory']['list'][] = array('url' => $cate['url'], 'img' => $cate['img']); 140 + self::$shopData['hotCategory']['list'][] = array('url' => $cate['url'], 'img' => $cate['src']);
128 } 141 }
129 return $data; 142 return $data;
130 } 143 }
@@ -410,10 +410,10 @@ class ListModel @@ -410,10 +410,10 @@ class ListModel
410 410
411 } 411 }
412 //店铺信息 412 //店铺信息
413 -// $data['shopInfo'] = ListData::getShopInfo($shopId); 413 + $data['shopInfo'] = ListData::getShopInfo($shopId);
414 //店铺装修资源数据 414 //店铺装修资源数据
415 $data['decorator'] = ListData::getShopDecorator($shopId); 415 $data['decorator'] = ListData::getShopDecorator($shopId);
416 - print_r($data); exit; 416 +// print_r($data); exit;
417 //品牌一览 417 //品牌一览
418 //$data['shopBrands'] = ListData::getShopBrands($shopId); 418 //$data['shopBrands'] = ListData::getShopBrands($shopId);
419 //商品列表 419 //商品列表