Authored by Rock Zhang

去除一些无用的数据

@@ -64,6 +64,12 @@ class NewSaleProcess @@ -64,6 +64,12 @@ class NewSaleProcess
64 return $result; 64 return $result;
65 } 65 }
66 66
  67 + /**
  68 + * 筛选出来的商品数据处理
  69 + *
  70 + * @param array $data 筛选出来的原数据
  71 + * @return array 处理之后的数据
  72 + */
67 public static function selectData($data) 73 public static function selectData($data)
68 { 74 {
69 $result = array('goods'=>array()); 75 $result = array('goods'=>array());
@@ -35,195 +35,6 @@ class NewsaleController extends AbstractAction @@ -35,195 +35,6 @@ class NewsaleController extends AbstractAction
35 /*echo '<pre>'; 35 /*echo '<pre>';
36 print_r($data);exit;*/ 36 print_r($data);exit;*/
37 37
38 - /*$data = array(  
39 - 'headerBanner' => array(  
40 - 'list' => array(  
41 - array(  
42 - 'url' => '',  
43 - 'img' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',  
44 - )  
45 - )  
46 - ),  
47 - 'tabs' => array(  
48 - array(  
49 - 'title' => '10月15日',  
50 - 'focus' => true  
51 - ),  
52 - array(  
53 - 'title' => '本周上新'  
54 - ),  
55 - array(  
56 - 'title' => '销量'  
57 - )  
58 - ),  
59 - 'goodsContainer' => array(  
60 - array(  
61 - 'show' => 'true',  
62 - 'goods' => array(  
63 - array(  
64 - 'id' => '',  
65 - 'thumb' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',  
66 - 'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',  
67 - 'isLike' => false,  
68 - 'price' => 1268,  
69 - 'salePrice' => 589,  
70 - 'isSale' => true,  
71 - 'isFew' => true,  
72 - 'isNew' => false,  
73 - 'url' => ''  
74 - ),  
75 - array(  
76 - 'id' => '',  
77 - 'thumb' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',  
78 - 'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',  
79 - 'isLike' => false,  
80 - 'price' => 1268,  
81 - 'salePrice' => 589,  
82 - 'isSale' => true,  
83 - 'isFew' => true,  
84 - 'isNew' => false,  
85 - 'url' => ''  
86 - ),  
87 - array(  
88 - 'id' => '',  
89 - 'thumb' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',  
90 - 'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',  
91 - 'isLike' => false,  
92 - 'price' => 1268,  
93 - 'salePrice' => 589,  
94 - 'isSale' => true,  
95 - 'isFew' => true,  
96 - 'isNew' => false,  
97 - 'url' => ''  
98 - ),  
99 - array(  
100 - 'id' => '',  
101 - 'thumb' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',  
102 - 'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',  
103 - 'isLike' => false,  
104 - 'price' => 1268,  
105 - 'salePrice' => 589,  
106 - 'isSale' => true,  
107 - 'isFew' => true,  
108 - 'isNew' => false,  
109 - 'url' => ''  
110 - )  
111 -  
112 - )  
113 - ),  
114 - array(  
115 - 'goods' => array(  
116 - array(  
117 - 'id' => '',  
118 - 'thumb' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',  
119 - 'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',  
120 - 'isLike' => false,  
121 - 'price' => 1268,  
122 - 'salePrice' => 589,  
123 - 'isSale' => true,  
124 - 'isFew' => true,  
125 - 'isNew' => false,  
126 - 'url' => ''  
127 - ),  
128 - array(  
129 - 'id' => '',  
130 - 'thumb' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',  
131 - 'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',  
132 - 'isLike' => false,  
133 - 'price' => 1268,  
134 - 'salePrice' => 589,  
135 - 'isSale' => true,  
136 - 'isFew' => true,  
137 - 'isNew' => false,  
138 - 'url' => ''  
139 - ),  
140 - array(  
141 - 'id' => '',  
142 - 'thumb' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',  
143 - 'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',  
144 - 'isLike' => false,  
145 - 'price' => 1268,  
146 - 'salePrice' => 589,  
147 - 'isSale' => true,  
148 - 'isFew' => true,  
149 - 'isNew' => false,  
150 - 'url' => ''  
151 - ),  
152 - array(  
153 - 'id' => '',  
154 - 'thumb' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',  
155 - 'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',  
156 - 'isLike' => false,  
157 - 'price' => 1268,  
158 - 'salePrice' => 589,  
159 - 'isSale' => true,  
160 - 'isFew' => true,  
161 - 'isNew' => false,  
162 - 'url' => ''  
163 - )  
164 -  
165 - )  
166 -  
167 - ),  
168 - array(  
169 - 'goods' => array(  
170 - array(  
171 - 'id' => '',  
172 - 'thumb' => 'http://img11.static.yhbimg.com/yhb-img01/2015/09/17/09/015e14c53a41c7adf0bd039f6493b5a700.jpg?imageView/2/w/140/h/140',  
173 - 'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',  
174 - 'isLike' => false,  
175 - 'price' => 1268,  
176 - 'salePrice' => 589,  
177 - 'isSale' => true,  
178 - 'isFew' => true,  
179 - 'isNew' => false,  
180 - 'url' => ''  
181 - ),  
182 - array(  
183 - 'id' => '',  
184 - 'thumb' => 'http://img11.static.yhbimg.com/yhb-img01/2015/09/17/09/015e14c53a41c7adf0bd039f6493b5a700.jpg?imageView/2/w/140/h/140',  
185 - 'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',  
186 - 'isLike' => false,  
187 - 'price' => 1268,  
188 - 'salePrice' => 589,  
189 - 'isSale' => true,  
190 - 'isFew' => true,  
191 - 'isNew' => false,  
192 - 'url' => ''  
193 - ),  
194 - array(  
195 - 'id' => '',  
196 - 'thumb' => 'http://img11.static.yhbimg.com/yhb-img01/2015/09/17/09/015e14c53a41c7adf0bd039f6493b5a700.jpg?imageView/2/w/140/h/140',  
197 - 'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',  
198 - 'isLike' => false,  
199 - 'price' => 1268,  
200 - 'salePrice' => 589,  
201 - 'isSale' => true,  
202 - 'isFew' => true,  
203 - 'isNew' => false,  
204 - 'url' => ''  
205 - ),  
206 - array(  
207 - 'id' => '',  
208 - 'thumb' => 'http://img11.static.yhbimg.com/yhb-img01/2015/09/17/09/015e14c53a41c7adf0bd039f6493b5a700.jpg?imageView/2/w/140/h/140',  
209 - 'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',  
210 - 'isLike' => false,  
211 - 'price' => 1268,  
212 - 'salePrice' => 589,  
213 - 'isSale' => true,  
214 - 'isFew' => true,  
215 - 'isNew' => false,  
216 - 'url' => ''  
217 - )  
218 -  
219 - )  
220 -  
221 -  
222 - )  
223 -  
224 - )  
225 - );*/  
226 -  
227 $this->_view->assign('title', '新品到着'); 38 $this->_view->assign('title', '新品到着');
228 $this->_view->display('new', $data); 39 $this->_view->display('new', $data);
229 } 40 }
@@ -263,66 +74,6 @@ class NewsaleController extends AbstractAction @@ -263,66 +74,6 @@ class NewsaleController extends AbstractAction
263 */ 74 */
264 public function discountAction() 75 public function discountAction()
265 { 76 {
266 -  
267 - /*$data = array(  
268 - 'header' => array(  
269 - 'title' => 'SALE'  
270 - ),  
271 -  
272 - 'goodsContainer' => array(  
273 - 'goods' => array(  
274 - array(  
275 - 'id' => '',  
276 - 'thumb' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',  
277 - 'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',  
278 - 'isLike' => false,  
279 - 'price' => 1268,  
280 - 'salePrice' => 589,  
281 - 'isSale' => true,  
282 - 'isFew' => true,  
283 - 'isNew' => false,  
284 - 'url' => ''  
285 - ),  
286 - array(  
287 - 'id' => '',  
288 - 'thumb' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',  
289 - 'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',  
290 - 'isLike' => false,  
291 - 'price' => 1268,  
292 - 'salePrice' => 589,  
293 - 'isSale' => true,  
294 - 'isFew' => true,  
295 - 'isNew' => false,  
296 - 'url' => ''  
297 - ),  
298 - array(  
299 - 'id' => '',  
300 - 'thumb' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',  
301 - 'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',  
302 - 'isLike' => false,  
303 - 'price' => 1268,  
304 - 'salePrice' => 589,  
305 - 'isSale' => true,  
306 - 'isFew' => true,  
307 - 'isNew' => false,  
308 - 'url' => ''  
309 - ),  
310 - array(  
311 - 'id' => '',  
312 - 'thumb' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',  
313 - 'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',  
314 - 'isLike' => false,  
315 - 'price' => 1268,  
316 - 'salePrice' => 589,  
317 - 'isSale' => true,  
318 - 'isFew' => true,  
319 - 'isNew' => false,  
320 - 'url' => ''  
321 - )  
322 - )  
323 - )  
324 - );*/  
325 -  
326 $data = array( 77 $data = array(
327 'discount' => true, 78 'discount' => true,
328 'header' => array( 79 'header' => array(
@@ -356,8 +107,8 @@ class NewsaleController extends AbstractAction @@ -356,8 +107,8 @@ class NewsaleController extends AbstractAction
356 // 添加商品数据 107 // 添加商品数据
357 $data += NewSaleProcess::newSaleData($focus, $products); 108 $data += NewSaleProcess::newSaleData($focus, $products);
358 109
359 - echo '<pre>';  
360 - print_r($data);exit; 110 + /*echo '<pre>';
  111 + print_r($data);exit;*/
361 112
362 $this->_view->assign('title', '折扣专区'); 113 $this->_view->assign('title', '折扣专区');
363 $this->_view->display('sale', $data); 114 $this->_view->display('sale', $data);