Merge branch 'develop' into beta
Showing
23 changed files
with
598 additions
and
340 deletions
@@ -867,7 +867,6 @@ class Process | @@ -867,7 +867,6 @@ class Process | ||
867 | $cacheKey = sprintf("%s_%s", CacheConfig::KEY_INDEX_BRANDS_LIST_DATA, $type_key); | 867 | $cacheKey = sprintf("%s_%s", CacheConfig::KEY_INDEX_BRANDS_LIST_DATA, $type_key); |
868 | Cache::set($cacheKey, $floor, 7200); | 868 | Cache::set($cacheKey, $floor, 7200); |
869 | $result['hotBrands']['brandUrl'] = '/common/getIndexResourceBrand?type=' . $type_key; | 869 | $result['hotBrands']['brandUrl'] = '/common/getIndexResourceBrand?type=' . $type_key; |
870 | - //print_r($result['hotBrands']['brandUrl']); | ||
871 | } | 870 | } |
872 | return $result; | 871 | return $result; |
873 | } | 872 | } |
@@ -29,20 +29,7 @@ var brandsData, | @@ -29,20 +29,7 @@ var brandsData, | ||
29 | 29 | ||
30 | loading.showLoadingMask(); | 30 | loading.showLoadingMask(); |
31 | 31 | ||
32 | -//热门品牌滑动 | ||
33 | -hotBrandsSwiper = new Swiper('.brands-swiper', { | ||
34 | - grabCursor: true, | ||
35 | - slidesPerView: 'auto', | ||
36 | - wrapperClass: 'brands-list', | ||
37 | - slideElement: 'li' | ||
38 | -}); | ||
39 | 32 | ||
40 | -swiper = new Swiper('.swiper-container', { | ||
41 | - lazyLoading: true, | ||
42 | - loop: true, | ||
43 | - autoplay: 3000, | ||
44 | - pagination: '.swiper-pagination .pagination-inner' | ||
45 | -}); | ||
46 | 33 | ||
47 | lazyLoad($('img.lazy')); | 34 | lazyLoad($('img.lazy')); |
48 | $('.yoho-header').css({ | 35 | $('.yoho-header').css({ |
@@ -58,6 +45,22 @@ $('.yoho-header').css({ | @@ -58,6 +45,22 @@ $('.yoho-header').css({ | ||
58 | 45 | ||
59 | $('.hide-when-loading').show(); | 46 | $('.hide-when-loading').show(); |
60 | loading.hideLoadingMask(); | 47 | loading.hideLoadingMask(); |
48 | + | ||
49 | + //banner滑动 | ||
50 | + swiper = new Swiper('.swiper-container', { | ||
51 | + lazyLoading: true, | ||
52 | + loop: true, | ||
53 | + autoplay: 3000, | ||
54 | + pagination: '.swiper-pagination .pagination-inner' | ||
55 | + }); | ||
56 | + | ||
57 | + //热门品牌滑动 | ||
58 | + hotBrandsSwiper = new Swiper('.brands-swiper', { | ||
59 | + grabCursor: true, | ||
60 | + slidesPerView: 'auto', | ||
61 | + wrapperClass: 'brands-list', | ||
62 | + slideElement: 'li' | ||
63 | +}); | ||
61 | })(); | 64 | })(); |
62 | 65 | ||
63 | $fixTitleBar = $('<div class="title-bar fixed-title-bar"><h2></h2></div>'); | 66 | $fixTitleBar = $('<div class="title-bar fixed-title-bar"><h2></h2></div>'); |
@@ -33,7 +33,9 @@ module.exports = function(specificGender) { | @@ -33,7 +33,9 @@ module.exports = function(specificGender) { | ||
33 | if (kidsType) { | 33 | if (kidsType) { |
34 | url = '/product/recom/maylikekids'; | 34 | url = '/product/recom/maylikekids'; |
35 | } else if (lifestyleType) { | 35 | } else if (lifestyleType) { |
36 | - url = '/product/recom/maylikelife'; | 36 | + |
37 | + //有货币页面加载男生首页的数据 | ||
38 | + url = specificGender ? '/product/recom/maylike?gender=1,3' : '/product/recom/maylikelife'; | ||
37 | } else { | 39 | } else { |
38 | gender = (specificGender === 'boys' || $('.mobile-wrap').hasClass('boys-wrap')) ? | 40 | gender = (specificGender === 'boys' || $('.mobile-wrap').hasClass('boys-wrap')) ? |
39 | '1,3' : '2,3', | 41 | '1,3' : '2,3', |
@@ -202,8 +202,9 @@ | @@ -202,8 +202,9 @@ | ||
202 | li:before { | 202 | li:before { |
203 | content: ""; | 203 | content: ""; |
204 | display: inline-block; | 204 | display: inline-block; |
205 | - width: 4px; | ||
206 | - height: 4px; | 205 | + margin-right: 20rem / $pxConvertRem; |
206 | + width: 8rem / $pxConvertRem; | ||
207 | + height: 8rem / $pxConvertRem; | ||
207 | background-color: #000; | 208 | background-color: #000; |
208 | border-radius: 50%; | 209 | border-radius: 50%; |
209 | position: relative; | 210 | position: relative; |
1 | +<div class="home-page"> | ||
2 | + {{#sale-category}} | ||
3 | + <div class="floor-header clearfix"> | ||
4 | + <h2 class="floor-title">{{title}}</h2> | ||
5 | + </div> | ||
6 | + <ul class="sale-nav"> | ||
7 | + {{#navItem}} | ||
8 | + <li class="{{#vip}}green{{/vip}} {{#incompleteSize}}yellow{{/incompleteSize}} {{#newDiscount}}red{{/newDiscount}} {{#if @first}}active first{{/if}} {{#if @last}}last{{/if}}" data-url='{{url}}'>aa</li> | ||
9 | + {{/navItem}} | ||
10 | + </ul> | ||
11 | + <div class="commodity-list"> | ||
12 | + <ul class="clearfix"> | ||
13 | + {{#each saleImage}} | ||
14 | + <li class="commodity-item"> | ||
15 | + <a href="{{href}}" target= "_blank"><div class="commodity-img"> | ||
16 | + <img class="lazy" data-original="{{img}}"/></div> | ||
17 | + <div class="commodity-content {{#if @last}}hide{{/if}}"> | ||
18 | + <p class="commodity-name">{{name}}</p> | ||
19 | + <p class="commodity-price"> | ||
20 | + <span class="origin">¥{{originPrice}}</span> | ||
21 | + <span>¥{{price}}</span> | ||
22 | + {{#vip}}<span class="vip-tag">VIP</span><strong>更优惠</strong>{{/vip}} | ||
23 | + </p> | ||
24 | + </div> | ||
25 | + </a> | ||
26 | + </li> | ||
27 | + {{/each}} | ||
28 | + </ul> | ||
29 | + </div> | ||
30 | + {{/sale-category}} | ||
31 | +</div> |
1.15 KB
web-static/img/sale/navactive-green-last.png
0 → 100755
1.19 KB
1.35 KB
web-static/img/sale/navactive-red-first.png
0 → 100755
1.16 KB
web-static/img/sale/navactive-red-last.png
0 → 100755
1.19 KB
web-static/img/sale/navactive-red-middle.png
0 → 100755
1.35 KB
1.16 KB
1.19 KB
1.35 KB
web-static/img/sale/vip.png
0 → 100644
1003 Bytes
web-static/js/sale/entry.js
0 → 100644
@@ -5,9 +5,15 @@ | @@ -5,9 +5,15 @@ | ||
5 | */ | 5 | */ |
6 | 6 | ||
7 | var $ = require('yoho.jquery'), | 7 | var $ = require('yoho.jquery'), |
8 | + $navItem = $('.sale-nav li'), | ||
8 | lazyLoad = require('yoho.lazyload'); | 9 | lazyLoad = require('yoho.lazyload'); |
9 | 10 | ||
10 | require('../common/slider'); | 11 | require('../common/slider'); |
11 | 12 | ||
12 | lazyLoad($('img.lazy')); | 13 | lazyLoad($('img.lazy')); |
13 | $('.slide-container').slider(); | 14 | $('.slide-container').slider(); |
15 | + | ||
16 | +$navItem.on('click', function() { | ||
17 | + $(this).siblings('.active').removeClass('active'); | ||
18 | + $(this).addClass('active'); | ||
19 | +}); |
@@ -137,4 +137,198 @@ | @@ -137,4 +137,198 @@ | ||
137 | } | 137 | } |
138 | } | 138 | } |
139 | } | 139 | } |
140 | + | ||
141 | + .sale-nav li { | ||
142 | + float: left; | ||
143 | + width: 20%; | ||
144 | + height: 40px; | ||
145 | + line-height: 40px; | ||
146 | + background-color: #e0e0e0; | ||
147 | + text-align: center; | ||
148 | + background-color: #f5f5f5; | ||
149 | + color: #6d6d6d; | ||
150 | + margin-bottom: 10px; | ||
151 | + } | ||
152 | + .sale-nav li.active { | ||
153 | + color: #fff; | ||
154 | + background-repeat: no-repeat; | ||
155 | + background-size: 100% 100%; | ||
156 | + } | ||
157 | + | ||
158 | + .sale-nav li.green.active { | ||
159 | + color: #fff; | ||
160 | + background-image: image-url('sale/navactive-green-middle.png'); | ||
161 | + background-repeat: no-repeat; | ||
162 | + background-size: 100% 100%; | ||
163 | + } | ||
164 | + | ||
165 | + .sale-nav li.green.first.active { | ||
166 | + background-image: image-url('sale/navactive-green-first.png'); | ||
167 | + } | ||
168 | + | ||
169 | + .sale-nav li.green.last.active { | ||
170 | + background-image: image-url('sale/navactive-green-last.png'); | ||
171 | + } | ||
172 | + | ||
173 | + .sale-nav li.yellow.active { | ||
174 | + color: #fff; | ||
175 | + background-image: image-url('sale/navactive-yellow-middle.png'); | ||
176 | + background-repeat: no-repeat; | ||
177 | + background-size: 100% 100%; | ||
178 | + } | ||
179 | + | ||
180 | + .sale-nav li.yellow.first.active { | ||
181 | + background-image: image-url('sale/navactive-yellow-first.png'); | ||
182 | + } | ||
183 | + | ||
184 | + .sale-nav li.yellow.last.active { | ||
185 | + background-image: image-url('sale/navactive-yellow-last.png'); | ||
186 | + } | ||
187 | + | ||
188 | + .sale-nav li.red.active { | ||
189 | + color: #fff; | ||
190 | + background-image: image-url('sale/navactive-red-middle.png'); | ||
191 | + background-repeat: no-repeat; | ||
192 | + background-size: 100% 100%; | ||
193 | + } | ||
194 | + | ||
195 | + .sale-nav li.red.first.active { | ||
196 | + background-image: image-url('sale/navactive-red-first.png'); | ||
197 | + } | ||
198 | + | ||
199 | + .sale-nav li.red.last.active { | ||
200 | + background-image: image-url('sale/navactive-red-last.png'); | ||
201 | + } | ||
202 | + | ||
203 | + @media screen and (min-width: 1150px) { | ||
204 | + .floor-header { | ||
205 | + margin:80px 0 40px | ||
206 | + } | ||
207 | + | ||
208 | + .floor-header .header-navs li { | ||
209 | + padding: 1px 15px | ||
210 | + } | ||
211 | + } | ||
212 | + | ||
213 | + .commodity-list ul { | ||
214 | + width: 1004px | ||
215 | + } | ||
216 | + | ||
217 | + .commodity-item { | ||
218 | + float: left; | ||
219 | + width: 241px; | ||
220 | + margin: 0 10px 0 0 | ||
221 | + } | ||
222 | + .commodity-img { | ||
223 | + position: relative; | ||
224 | + height: 323px; | ||
225 | + text-align: center | ||
226 | + } | ||
227 | + | ||
228 | + .commodity-img img { | ||
229 | + width: 100%; | ||
230 | + height: 100%; | ||
231 | + vertical-align: middle | ||
232 | + } | ||
233 | + | ||
234 | + .commodity-img .top-tag { | ||
235 | + position: absolute; | ||
236 | + width: 60px; | ||
237 | + height: 60px; | ||
238 | + top: 10px; | ||
239 | + right: 10px; | ||
240 | + line-height: 60px; | ||
241 | + background: url('../assets/images/furniture/top-tag-bg.png?1450667948'); | ||
242 | + font-size: 20px; | ||
243 | + color: #fff | ||
244 | + } | ||
245 | + | ||
246 | + .commodity-img .few-tag { | ||
247 | + position: absolute; | ||
248 | + bottom: 0; | ||
249 | + width: 100%; | ||
250 | + height: 20px; | ||
251 | + background: #ffac5b; | ||
252 | + color: #fff; | ||
253 | + line-height: 20px; | ||
254 | + text-align: center; | ||
255 | + font-size: 12px | ||
256 | + } | ||
257 | + | ||
258 | + .commodity-content { | ||
259 | + padding: 10px 0 0 0; | ||
260 | + height: 69px; | ||
261 | + overflow: hidden | ||
262 | + } | ||
263 | + | ||
264 | + .commodity-content .commodity-name { | ||
265 | + font-size: 12px; | ||
266 | + color: #000; | ||
267 | + line-height: 18px; | ||
268 | + text-align: center | ||
269 | + } | ||
270 | + | ||
271 | + .commodity-content .commodity-price { | ||
272 | + position: relative; | ||
273 | + margin: 3px 0 0 0; | ||
274 | + text-align: center; | ||
275 | + line-height: 20px; | ||
276 | + color: #000 | ||
277 | + } | ||
278 | + | ||
279 | + .commodity-content .commodity-price span { | ||
280 | + display: inline-block; | ||
281 | + *display: inline; | ||
282 | + *zoom: 1; | ||
283 | + font-size: 12px; | ||
284 | + padding: 0 15px; | ||
285 | + } | ||
286 | + | ||
287 | + .commodity-content .commodity-price span.origin { | ||
288 | + text-decoration: line-through; | ||
289 | + } | ||
290 | + | ||
291 | + .commodity-content .commodity-price strong { | ||
292 | + font-weight: normal; | ||
293 | + color: #565656; | ||
294 | + font-size: 13px; | ||
295 | + } | ||
296 | + | ||
297 | + .commodity-content .commodity-price span.vip-tag { | ||
298 | + background-image: image-url('sale/vip.png'); | ||
299 | + background-repeat: no-repeat; | ||
300 | + background-size: 100% 90%; | ||
301 | + color: #fff; | ||
302 | + font-style: italic; | ||
303 | + margin-right: 5px; | ||
304 | + } | ||
305 | + | ||
306 | + .commodity-content .commodity-price .price-sale { | ||
307 | + margin-left: 10px; | ||
308 | + padding-left: 10px; | ||
309 | + width: 36px; | ||
310 | + height: 20px; | ||
311 | + line-height: 20px; | ||
312 | + background: url('../assets/images/furniture/sale-tag-bg.png?1450667948'); | ||
313 | + color: #fff | ||
314 | + } | ||
315 | + | ||
316 | + @media screen and (min-width: 1150px) { | ||
317 | + .commodity-list ul { | ||
318 | + width:1160px | ||
319 | + } | ||
320 | + | ||
321 | + .commodity-item { | ||
322 | + width: 280px | ||
323 | + } | ||
324 | + | ||
325 | + .commodity-img { | ||
326 | + height: 374px | ||
327 | + } | ||
328 | + | ||
329 | + .commodity-content { | ||
330 | + padding: 14px 0 0 0; | ||
331 | + height: 77px | ||
332 | + } | ||
333 | + } | ||
140 | } | 334 | } |
@@ -3,8 +3,6 @@ namespace product; | @@ -3,8 +3,6 @@ namespace product; | ||
3 | 3 | ||
4 | use Plugin\Images; | 4 | use Plugin\Images; |
5 | use Api\Yohobuy; | 5 | use Api\Yohobuy; |
6 | -//use Plugin\Helpers; | ||
7 | -//use LibModels\Web\Home\IndexData; | ||
8 | use \LibModels\Web\Product\HotrankData; | 6 | use \LibModels\Web\Product\HotrankData; |
9 | use \LibModels\Web\Product\SearchData; | 7 | use \LibModels\Web\Product\SearchData; |
10 | 8 | ||
@@ -15,16 +13,18 @@ class HotrankModel { | @@ -15,16 +13,18 @@ class HotrankModel { | ||
15 | */ | 13 | */ |
16 | static public function getSearchData($param,$page,$ajax) | 14 | static public function getSearchData($param,$page,$ajax) |
17 | { | 15 | { |
18 | - // 调用接口查询商品数据 | 16 | + // 调用接口查询商品数据 |
19 | $result = SearchData::searchElasticByCondition($param); | 17 | $result = SearchData::searchElasticByCondition($param); |
20 | - //print_r($result); | ||
21 | 18 | ||
22 | - if(!empty($result)){ | 19 | + if(!empty($result)) |
20 | + { | ||
23 | $res = self::getProductList($result,$page,$ajax); | 21 | $res = self::getProductList($result,$page,$ajax); |
24 | - if(!empty($res['popular'])){ | 22 | + if(!empty($res['popular'])) |
23 | + { | ||
25 | $data['popular'] = $res['popular']; | 24 | $data['popular'] = $res['popular']; |
26 | } | 25 | } |
27 | - if(!empty($res['hotWeek'])){ | 26 | + if(!empty($res['hotWeek'])) |
27 | + { | ||
28 | $data['hotWeek'] = $res['hotWeek']; | 28 | $data['hotWeek'] = $res['hotWeek']; |
29 | } | 29 | } |
30 | } | 30 | } |
@@ -40,8 +40,10 @@ class HotrankModel { | @@ -40,8 +40,10 @@ class HotrankModel { | ||
40 | { | 40 | { |
41 | $list = \LibModels\Web\Product\HotrankData::getHotranktag($client_type,$channel,$is_concurrent); | 41 | $list = \LibModels\Web\Product\HotrankData::getHotranktag($client_type,$channel,$is_concurrent); |
42 | $nav = array(); | 42 | $nav = array(); |
43 | - if(!empty($list['data']['list'])){ | ||
44 | - foreach($list['data']['list'] as $li=>$lt){ | 43 | + if(!empty($list['data']['list'])) |
44 | + { | ||
45 | + foreach($list['data']['list'] as $li=>$lt) | ||
46 | + { | ||
45 | $nav[$li]['sid'] = $lt['id']; | 47 | $nav[$li]['sid'] = $lt['id']; |
46 | $nav[$li]['textCn'] = $lt['tag_name']; | 48 | $nav[$li]['textCn'] = $lt['tag_name']; |
47 | } | 49 | } |
@@ -57,57 +59,58 @@ class HotrankModel { | @@ -57,57 +59,58 @@ class HotrankModel { | ||
57 | { | 59 | { |
58 | // 调用发起请求 | 60 | // 调用发起请求 |
59 | Yohobuy::yarConcurrentLoop(); | 61 | Yohobuy::yarConcurrentLoop(); |
60 | - /*----product start---------*/ | ||
61 | - if(empty($result) || empty($result['data']) || empty($result['data']['product_list'])){ | ||
62 | - return; | 62 | + |
63 | + if(empty($result) || empty($result['data']) || empty($result['data']['product_list'])) | ||
64 | + { | ||
65 | + return; | ||
63 | } | 66 | } |
64 | $data = $result['data']['product_list']; | 67 | $data = $result['data']['product_list']; |
65 | - | ||
66 | $popular = array(); | 68 | $popular = array(); |
67 | $hotWeek = array(); | 69 | $hotWeek = array(); |
68 | - foreach($data as $key=>$val){ | ||
69 | - if(empty($val['goods_list'])){ | 70 | + foreach($data as $key=>$val) |
71 | + { | ||
72 | + if(empty($val['goods_list'])) | ||
73 | + { | ||
70 | continue; | 74 | continue; |
71 | } | 75 | } |
72 | $defaultGoodsId = 0; | 76 | $defaultGoodsId = 0; |
73 | - foreach ($val['goods_list'] as $v){ | ||
74 | - if($v['is_default'] == 'Y'){ | 77 | + foreach ($val['goods_list'] as $v) |
78 | + { | ||
79 | + if($v['is_default'] == 'Y') | ||
80 | + { | ||
75 | $defaultGoodsId = $v['goods_id']; | 81 | $defaultGoodsId = $v['goods_id']; |
76 | } | 82 | } |
77 | } | 83 | } |
78 | - if(empty($defaultGoodsId)){ | 84 | + if(empty($defaultGoodsId)) |
85 | + { | ||
79 | $defaultGoodsId = $val['goods_list'][0]['goods_id']; | 86 | $defaultGoodsId = $val['goods_list'][0]['goods_id']; |
80 | } | 87 | } |
81 | 88 | ||
82 | $product_id = empty($val['product_id']) ? '' : $val['product_id']; | 89 | $product_id = empty($val['product_id']) ? '' : $val['product_id']; |
83 | - $re['url'] = 'http://item.yohobuy.com/product/pro_'.$product_id.'_'.$defaultGoodsId.'.html'; | ||
84 | - | ||
85 | $re['name'] = $val['product_name']; | 90 | $re['name'] = $val['product_name']; |
86 | - if($key <= 9 && $page == 1 && $ajax == 0){ | ||
87 | - $re['rank'] = $key + 1; | ||
88 | - if($key <= 5){ | ||
89 | - $re['price'] = (int)$val['market_price'] == (int)$val['sales_price'] ? '' : '¥'.$val['market_price']; | ||
90 | - $re['sPrice'] = empty($val['sales_price']) ? '' : '¥'.$val['sales_price']; | ||
91 | - $re['img'] = empty($val['default_images']) ? '' : Images::getImageUrl($val['default_images'], 378, 504, 2); | ||
92 | - $popular['list'][] = $re; | ||
93 | - }else{ | ||
94 | - $re['price'] = (int)$val['market_price'] == (int)$val['sales_price'] ? '' : '¥'.$val['market_price']; | ||
95 | - $re['sPrice'] = empty($val['sales_price']) ? '' : '¥'.$val['sales_price']; | ||
96 | - $re['img'] = empty($val['default_images']) ? '' : Images::getImageUrl($val['default_images'], 280, 373, 2); | ||
97 | - $popular['list'][] = $re; | ||
98 | - } | ||
99 | - }else if ($ajax == 1){ | ||
100 | - $re['marketPrice'] = (int)$val['market_price'] == (int)$val['sales_price'] ? '' : '¥'.$val['market_price']; | ||
101 | - $re['salePrice'] = empty($val['sales_price']) ? '' : '¥'.$val['sales_price']; | ||
102 | - $re['rank'] = ''; | 91 | + if($key <= 9 && $page == 1 && $ajax == 0) |
92 | + { | ||
93 | + //人气单品 | ||
94 | + $re['rank'] = $key + 1; | ||
95 | + $re['href'] = 'http://item.yohobuy.com/product/pro_'.$product_id.'_'.$defaultGoodsId.'.html'; | ||
96 | + $re['price'] = (int)$val['market_price'] == (int)$val['sales_price'] ? '' : $val['market_price']; | ||
97 | + $re['sPrice'] = empty($val['sales_price']) ? '' : $val['sales_price']; | ||
98 | + if($key <= 5) | ||
99 | + { | ||
100 | + $re['img'] = empty($val['default_images']) ? '' : Images::getImageUrl($val['default_images'], 378, 504, 2); | ||
101 | + $popular['list'][] = $re; | ||
102 | + }else{ | ||
103 | $re['img'] = empty($val['default_images']) ? '' : Images::getImageUrl($val['default_images'], 280, 373, 2); | 103 | $re['img'] = empty($val['default_images']) ? '' : Images::getImageUrl($val['default_images'], 280, 373, 2); |
104 | - $hot[] = $re; | ||
105 | - }else{ | ||
106 | - $re['marketPrice'] = (int)$val['market_price'] == (int)$val['sales_price'] ? '' : '¥'.$val['market_price']; | ||
107 | - $re['salePrice'] = empty($val['sales_price']) ? '' : '¥'.$val['sales_price']; | ||
108 | - $re['rank'] = ''; | ||
109 | - $re['thumb'] = empty($val['default_images']) ? '' : Images::getImageUrl($val['default_images'], 280, 373, 2); | ||
110 | - $hot[] = $re; | 104 | + $popular['list'][] = $re; |
105 | + } | ||
106 | + }else{ | ||
107 | + //一周热卖 | ||
108 | + $re['url'] = 'http://item.yohobuy.com/product/pro_'.$product_id.'_'.$defaultGoodsId.'.html'; | ||
109 | + $re['marketPrice'] = (int)$val['market_price'] == (int)$val['sales_price'] ? '' : $val['market_price']; | ||
110 | + $re['salePrice'] = empty($val['sales_price']) ? '' : $val['sales_price']; | ||
111 | + $re['rank'] = ''; | ||
112 | + $re['thumb'] = empty($val['default_images']) ? '' : Images::getImageUrl($val['default_images'], 280, 373, 2); | ||
113 | + $hot[] = $re; | ||
111 | } | 114 | } |
112 | } | 115 | } |
113 | $popular['name'] = '人气单品'; | 116 | $popular['name'] = '人气单品'; |
@@ -17,10 +17,6 @@ class LoginController extends WebAction | @@ -17,10 +17,6 @@ class LoginController extends WebAction | ||
17 | // 设置登录有效时间30分钟, 防机器刷 | 17 | // 设置登录有效时间30分钟, 防机器刷 |
18 | $this->setSession('_LOGIN_EXPIRE', time() + 1800); | 18 | $this->setSession('_LOGIN_EXPIRE', time() + 1800); |
19 | 19 | ||
20 | - // 清除客户端 | ||
21 | - $this->setCookie('_UID', ''); | ||
22 | - $this->setCookie('_TOKEN', ''); | ||
23 | - | ||
24 | //登录后跳转页面 | 20 | //登录后跳转页面 |
25 | $refer = empty($_SERVER["HTTP_REFERER"]) ? '' : $_SERVER["HTTP_REFERER"]; | 21 | $refer = empty($_SERVER["HTTP_REFERER"]) ? '' : $_SERVER["HTTP_REFERER"]; |
26 | if (!empty($refer)) { | 22 | if (!empty($refer)) { |
@@ -56,241 +56,36 @@ class IndexController extends WebAction | @@ -56,241 +56,36 @@ class IndexController extends WebAction | ||
56 | $this->_view->display('list',$data); | 56 | $this->_view->display('list',$data); |
57 | } | 57 | } |
58 | 58 | ||
59 | - public function hotrankAction() { | ||
60 | - | ||
61 | - $data = array( | ||
62 | - 'hotrankPage' => true, | ||
63 | - 'hotrank' => array( | ||
64 | - array( | ||
65 | - 'slide' => array( | ||
66 | - 'list' => array( | ||
67 | - array( | ||
68 | - 'href' => '/?gender=1,3', | ||
69 | - 'img' => 'http://img10.static.yhbimg.com/taobaocms/2015/11/26/12/01c3b99f554ad50d9e5a9900719715c94c.jpg' | ||
70 | - ), | ||
71 | - array( | ||
72 | - 'href' => '/?gender=1,3', | ||
73 | - 'img' => 'http://img12.static.yhbimg.com/taobaocms/2015/11/27/09/02a4f1c10e1e81574520e5c0239741a076.jpg' | ||
74 | - ), | ||
75 | - array( | ||
76 | - 'href' => '/?gender=1,3', | ||
77 | - 'img' => 'http://img10.static.yhbimg.com/taobaocms/2015/11/26/12/01c3b99f554ad50d9e5a9900719715c94c.jpg' | ||
78 | - ), | ||
79 | - array( | ||
80 | - 'href' => '/?gender=1,3', | ||
81 | - 'img' => 'http://img12.static.yhbimg.com/taobaocms/2015/11/27/09/02a4f1c10e1e81574520e5c0239741a076.jpg' | ||
82 | - ), | ||
83 | - array( | ||
84 | - 'href' => '/?gender=1,3', | ||
85 | - 'img' => 'http://img10.static.yhbimg.com/taobaocms/2015/11/26/12/01c3b99f554ad50d9e5a9900719715c94c.jpg' | ||
86 | - ), | ||
87 | - array( | ||
88 | - 'href' => '/?gender=1,3', | ||
89 | - 'img' => 'http://img12.static.yhbimg.com/taobaocms/2015/11/27/09/02a4f1c10e1e81574520e5c0239741a076.jpg' | ||
90 | - ), | ||
91 | - array( | ||
92 | - 'href' => '/?gender=1,3', | ||
93 | - 'img' => 'http://img10.static.yhbimg.com/taobaocms/2015/11/26/12/01c3b99f554ad50d9e5a9900719715c94c.jpg' | ||
94 | - ), | ||
95 | - array( | ||
96 | - 'href' => '/?gender=1,3', | ||
97 | - 'img' => 'http://img12.static.yhbimg.com/taobaocms/2015/11/27/09/02a4f1c10e1e81574520e5c0239741a076.jpg' | ||
98 | - ) | ||
99 | - ) | ||
100 | - ) | ||
101 | - ), | ||
102 | - array( | ||
103 | - 'popular' => array( | ||
104 | - 'name' => '人气单品', | ||
105 | - 'list' => array( | ||
106 | - array( | ||
107 | - 'href' => '', | ||
108 | - 'img' => 'http://img13.static.yhbimg.com/goodsimg/2014/09/16/07/027e03e45e3e88db0adbf6255671546a0b.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90', | ||
109 | - 'title' => 'YYYOHOOD 黄伟文Wyman X yohood联名商品 圆领卫衣', | ||
110 | - 'price' => '399', | ||
111 | - 'sPrice' => '199', | ||
112 | - 'rank' => '1' | ||
113 | - ), | ||
114 | - array( | ||
115 | - 'href' => '', | ||
116 | - 'img' => 'http://img13.static.yhbimg.com/goodsimg/2014/09/16/07/027e03e45e3e88db0adbf6255671546a0b.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90', | ||
117 | - 'title' => 'YYYOHOOD 黄伟文Wyman X yohood联名商品 圆领卫衣', | ||
118 | - 'price' => '399', | ||
119 | - 'sPrice' => '199', | ||
120 | - 'rank' => '2' | ||
121 | - ), | ||
122 | - array( | ||
123 | - 'href' => '', | ||
124 | - 'img' => 'http://img13.static.yhbimg.com/goodsimg/2014/09/16/07/027e03e45e3e88db0adbf6255671546a0b.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90', | ||
125 | - 'title' => 'YYYOHOOD 黄伟文Wyman X yohood联名商品 圆领卫衣', | ||
126 | - 'price' => '399', | ||
127 | - 'sPrice' => '199', | ||
128 | - 'rank' => '3' | ||
129 | - ), | ||
130 | - array( | ||
131 | - 'href' => '', | ||
132 | - 'img' => 'http://img13.static.yhbimg.com/goodsimg/2014/09/16/07/027e03e45e3e88db0adbf6255671546a0b.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90', | ||
133 | - 'title' => 'YYYOHOOD 黄伟文Wyman X yohood联名商品 圆领卫衣', | ||
134 | - 'price' => '399', | ||
135 | - 'sPrice' => '199', | ||
136 | - 'rank' => '4' | ||
137 | - ), | ||
138 | - array( | ||
139 | - 'href' => '', | ||
140 | - 'img' => 'http://img13.static.yhbimg.com/goodsimg/2014/09/16/07/027e03e45e3e88db0adbf6255671546a0b.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90', | ||
141 | - 'title' => 'YYYOHOOD 黄伟文Wyman X yohood联名商品 圆领卫衣', | ||
142 | - 'price' => '399', | ||
143 | - 'sPrice' => '199', | ||
144 | - 'rank' => '5' | ||
145 | - ), | ||
146 | - array( | ||
147 | - 'href' => '', | ||
148 | - 'img' => 'http://img13.static.yhbimg.com/goodsimg/2014/09/16/07/027e03e45e3e88db0adbf6255671546a0b.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90', | ||
149 | - 'title' => 'YYYOHOOD 黄伟文Wyman X yohood联名商品 圆领卫衣', | ||
150 | - 'price' => '399', | ||
151 | - 'sPrice' => '199', | ||
152 | - 'rank' => '6' | ||
153 | - ), | ||
154 | - array( | ||
155 | - 'href' => '', | ||
156 | - 'img' => 'http://img13.static.yhbimg.com/goodsimg/2014/09/16/07/027e03e45e3e88db0adbf6255671546a0b.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90', | ||
157 | - 'title' => 'YYYOHOOD 黄伟文Wyman X yohood联名商品 圆领卫衣', | ||
158 | - 'price' => '399', | ||
159 | - 'sPrice' => '199', | ||
160 | - 'rank' => '7' | ||
161 | - ), | ||
162 | - array( | ||
163 | - 'href' => '', | ||
164 | - 'img' => 'http://img13.static.yhbimg.com/goodsimg/2014/09/16/07/027e03e45e3e88db0adbf6255671546a0b.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90', | ||
165 | - 'title' => 'YYYOHOOD 黄伟文Wyman X yohood联名商品 圆领卫衣', | ||
166 | - 'price' => '399', | ||
167 | - 'sPrice' => '199', | ||
168 | - 'rank' => '8' | ||
169 | - ), | ||
170 | - array( | ||
171 | - 'href' => '', | ||
172 | - 'img' => 'http://img13.static.yhbimg.com/goodsimg/2014/09/16/07/027e03e45e3e88db0adbf6255671546a0b.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90', | ||
173 | - 'title' => 'YYYOHOOD 黄伟文Wyman X yohood联名商品 圆领卫衣', | ||
174 | - 'price' => '399', | ||
175 | - 'sPrice' => '199', | ||
176 | - 'rank' => '9' | ||
177 | - ), | ||
178 | - array( | ||
179 | - 'href' => '', | ||
180 | - 'img' => 'http://img13.static.yhbimg.com/goodsimg/2014/09/16/07/027e03e45e3e88db0adbf6255671546a0b.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90', | ||
181 | - 'title' => 'YYYOHOOD 黄伟文Wyman X yohood联名商品 圆领卫衣', | ||
182 | - 'price' => '399', | ||
183 | - 'sPrice' => '199', | ||
184 | - 'rank' => '10' | ||
185 | - ) | ||
186 | - ) | ||
187 | - | ||
188 | - ) | ||
189 | - ), | ||
190 | - array( | ||
191 | - 'hotBrands' => array( | ||
192 | - 'name' => '热门品牌', | ||
193 | - ) | ||
194 | - ), | ||
195 | - array( | ||
196 | - 'hotWeek' => array( | ||
197 | - 'name' => '一周热卖', | ||
198 | - 'nav' => array( | ||
199 | - array( | ||
200 | - 'textCn' => 'TOP100', | ||
201 | - 'url' => '', | ||
202 | - 'sid' => 1 | ||
203 | - ), | ||
204 | - array( | ||
205 | - 'textCn' => '上装', | ||
206 | - 'url' => '', | ||
207 | - 'sid' => 2 | ||
208 | - ), | ||
209 | - array( | ||
210 | - 'textCn' => '男生测试', | ||
211 | - 'url' => '', | ||
212 | - 'sid' => 3 | ||
213 | - ), | ||
214 | - array( | ||
215 | - 'textCn' => '配饰', | ||
216 | - 'url' => '', | ||
217 | - 'sid' => 4 | ||
218 | - ) | ||
219 | - ), | ||
220 | - 'list' => array( | ||
221 | - array( | ||
222 | - 'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2015/11/24/10/020dce58a189f3fbfc071b3d5dc7ccc4e9.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90', | ||
223 | - 'url' => 'http://item.yohobuy.com/product/pro_294497_377385.html', | ||
224 | - 'name' => 'MARtube马克图布 暖手宝移动电源萌兔', | ||
225 | - 'marketPrice' => '109', | ||
226 | - 'salePrice' => '129' | ||
227 | - ), | ||
228 | - array( | ||
229 | - 'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2015/11/24/10/020dce58a189f3fbfc071b3d5dc7ccc4e9.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90', | ||
230 | - 'url' => 'http://item.yohobuy.com/product/pro_294497_377385.html', | ||
231 | - 'name' => 'MARtube马克图布 暖手宝移动电源萌兔', | ||
232 | - 'marketPrice' => '109', | ||
233 | - 'salePrice' => '129' | ||
234 | - ), | ||
235 | - array( | ||
236 | - 'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2015/11/24/10/020dce58a189f3fbfc071b3d5dc7ccc4e9.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90', | ||
237 | - 'url' => 'http://item.yohobuy.com/product/pro_294497_377385.html', | ||
238 | - 'name' => 'MARtube马克图布 暖手宝移动电源萌兔', | ||
239 | - 'marketPrice' => '109', | ||
240 | - 'salePrice' => '129' | ||
241 | - ), | ||
242 | - array( | ||
243 | - 'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2015/11/24/10/020dce58a189f3fbfc071b3d5dc7ccc4e9.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90', | ||
244 | - 'url' => 'http://item.yohobuy.com/product/pro_294497_377385.html', | ||
245 | - 'name' => 'MARtube马克图布 暖手宝移动电源萌兔', | ||
246 | - 'marketPrice' => '109', | ||
247 | - 'salePrice' => '129' | ||
248 | - ), | ||
249 | - array( | ||
250 | - 'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2015/11/24/10/020dce58a189f3fbfc071b3d5dc7ccc4e9.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90', | ||
251 | - 'url' => 'http://item.yohobuy.com/product/pro_294497_377385.html', | ||
252 | - 'name' => 'MARtube马克图布 暖手宝移动电源萌兔', | ||
253 | - 'marketPrice' => '109', | ||
254 | - 'salePrice' => '129' | ||
255 | - ), | ||
256 | - array( | ||
257 | - 'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2015/11/24/10/020dce58a189f3fbfc071b3d5dc7ccc4e9.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90', | ||
258 | - 'url' => 'http://item.yohobuy.com/product/pro_294497_377385.html', | ||
259 | - 'name' => 'MARtube马克图布 暖手宝移动电源萌兔', | ||
260 | - 'marketPrice' => '109', | ||
261 | - 'salePrice' => '129' | ||
262 | - ), | ||
263 | - ) | ||
264 | - ) | ||
265 | - ) | ||
266 | - ) | ||
267 | - ); | ||
268 | - | ||
269 | - | 59 | + /** |
60 | + * 热销排行 | ||
61 | + */ | ||
62 | + public function hotrankAction() | ||
63 | + { | ||
64 | + //获取频道 | ||
270 | $cookie = $this->getCookie('_Channel'); | 65 | $cookie = $this->getCookie('_Channel'); |
271 | - $cookie = 'lifestyle'; | ||
272 | $this->channel = isset($cookie) ? $cookie : 'boys'; | 66 | $this->channel = isset($cookie) ? $cookie : 'boys'; |
273 | - switch ($this->channel){ | ||
274 | - case 'boys' : | ||
275 | - $this->gender = '1,3'; | ||
276 | - $this->road = 1; | ||
277 | - $this->code = '80d772d8dff25300a2a2e4c97165330c'; | ||
278 | - break; | ||
279 | - case 'girls' : | ||
280 | - $this->gender = '2,3'; | ||
281 | - $this->road = 2; | ||
282 | - $this->code = '8df64e505e94edb9881fd1e7efb702e9'; | ||
283 | - break; | ||
284 | - case 'lifestyle' : | ||
285 | - $this->gender = ''; | ||
286 | - $this->road = 4; | ||
287 | - $this->code = 'd131aba83a84a6977eee3a7403a713de'; | ||
288 | - break; | ||
289 | - case 'kids' : | ||
290 | - $this->gender = ''; | ||
291 | - $this->road = 3; | ||
292 | - $this->code = 'bd6a06a08f8ca9b0db762f78e0bc5b68'; | ||
293 | - break; | 67 | + switch ($this->channel) |
68 | + { | ||
69 | + case 'boys' : | ||
70 | + $this->gender = '1,3'; | ||
71 | + $this->road = 1; | ||
72 | + $this->code = '80d772d8dff25300a2a2e4c97165330c'; | ||
73 | + break; | ||
74 | + case 'girls' : | ||
75 | + $this->gender = '2,3'; | ||
76 | + $this->road = 2; | ||
77 | + $this->code = '8df64e505e94edb9881fd1e7efb702e9'; | ||
78 | + break; | ||
79 | + case 'lifestyle' : | ||
80 | + $this->gender = ''; | ||
81 | + $this->road = 4; | ||
82 | + $this->code = 'd131aba83a84a6977eee3a7403a713de'; | ||
83 | + break; | ||
84 | + case 'kids' : | ||
85 | + $this->gender = ''; | ||
86 | + $this->road = 3; | ||
87 | + $this->code = 'bd6a06a08f8ca9b0db762f78e0bc5b68'; | ||
88 | + break; | ||
294 | 89 | ||
295 | } | 90 | } |
296 | $this->setWebNavHeader(\Index\HomeModel::$this->channel); | 91 | $this->setWebNavHeader(\Index\HomeModel::$this->channel); |
@@ -298,6 +93,7 @@ class IndexController extends WebAction | @@ -298,6 +93,7 @@ class IndexController extends WebAction | ||
298 | 'footerTop'=> true, | 93 | 'footerTop'=> true, |
299 | 'hotrank' => array() | 94 | 'hotrank' => array() |
300 | ); | 95 | ); |
96 | + | ||
301 | //焦点图 热门品牌 | 97 | //焦点图 热门品牌 |
302 | $focus = \Index\HomeModel::getChannelResource($this->channel, $this->code); | 98 | $focus = \Index\HomeModel::getChannelResource($this->channel, $this->code); |
303 | $data['hotrank']['slide'] = $focus[0]['slide']; | 99 | $data['hotrank']['slide'] = $focus[0]['slide']; |
@@ -308,13 +104,15 @@ class IndexController extends WebAction | @@ -308,13 +104,15 @@ class IndexController extends WebAction | ||
308 | $sort_id = $this->get('sid',0); | 104 | $sort_id = $this->get('sid',0); |
309 | $viewNum = 60; | 105 | $viewNum = 60; |
310 | $param = array('order'=>'s_n_desc','viewNum'=>$viewNum,'page'=>$page,'stocknumber'=>1,'status'=>1,'gender'=>$this->gender,'attribute_not'=>2); | 106 | $param = array('order'=>'s_n_desc','viewNum'=>$viewNum,'page'=>$page,'stocknumber'=>1,'status'=>1,'gender'=>$this->gender,'attribute_not'=>2); |
311 | - if($sort_id != 0){ | ||
312 | - $param['sort'] = $sort_id; | 107 | + if($sort_id != 0) |
108 | + { | ||
109 | + $param['sort'] = $sort_id; | ||
313 | } | 110 | } |
314 | - if($this->road == 3){ | ||
315 | - $param['msort'] = 365; | 111 | + if($this->road == 3) |
112 | + { | ||
113 | + $param['msort'] = 365; | ||
316 | }elseif($this->road == 4){ | 114 | }elseif($this->road == 4){ |
317 | - $param['msort'] = 10; | 115 | + $param['msort'] = 10; |
318 | }else{ | 116 | }else{ |
319 | $param['not_maxSortId'] = '10,365'; | 117 | $param['not_maxSortId'] = '10,365'; |
320 | } | 118 | } |
@@ -352,10 +150,9 @@ class IndexController extends WebAction | @@ -352,10 +150,9 @@ class IndexController extends WebAction | ||
352 | $sort = $info['data']['category_id']; | 150 | $sort = $info['data']['category_id']; |
353 | } | 151 | } |
354 | } | 152 | } |
355 | - $viewNum = 60; | ||
356 | - //过滤掉赠品 | ||
357 | - $param = array('order'=>'s_n_desc','viewNum'=>$viewNum,'page'=>$page,'sort'=>$sort,'stocknumber'=>1,'status'=>1,'gender'=>$this->gender, | ||
358 | - 'attribute_not'=>2); | 153 | + $viewNum = 60; |
154 | + $param = array('order'=>'s_n_desc','viewNum'=>$viewNum,'page'=>$page,'sort'=>$sort,'stocknumber'=>1,'status'=>1, | ||
155 | + 'gender'=>$this->gender,'attribute_not'=>2); | ||
359 | if(empty($param['sort'])) | 156 | if(empty($param['sort'])) |
360 | { | 157 | { |
361 | if($this->road == 3) | 158 | if($this->road == 3) |
@@ -367,7 +164,7 @@ class IndexController extends WebAction | @@ -367,7 +164,7 @@ class IndexController extends WebAction | ||
367 | $param['not_maxSortId'] = '10,365'; | 164 | $param['not_maxSortId'] = '10,365'; |
368 | } | 165 | } |
369 | } | 166 | } |
370 | - | 167 | + //一周热卖 |
371 | $list = \product\HotrankModel::getSearchData($param, $page, 1); | 168 | $list = \product\HotrankModel::getSearchData($param, $page, 1); |
372 | $lister = $list['hotWeek']['list']; | 169 | $lister = $list['hotWeek']['list']; |
373 | $lister = array_values($lister); | 170 | $lister = array_values($lister); |
@@ -377,12 +174,8 @@ class IndexController extends WebAction | @@ -377,12 +174,8 @@ class IndexController extends WebAction | ||
377 | }else{ | 174 | }else{ |
378 | $lister = array_slice($lister, 0, 50); | 175 | $lister = array_slice($lister, 0, 50); |
379 | } | 176 | } |
380 | - $data = array( | ||
381 | - 'code'=>200, | ||
382 | - 'data'=>$lister, | ||
383 | - ); | 177 | + $data = array( 'code'=>200, 'data'=>$lister,); |
384 | echo json_encode($data); | 178 | echo json_encode($data); |
385 | exit; | 179 | exit; |
386 | } | 180 | } |
387 | -} | ||
388 | -?> | ||
181 | +} |
@@ -152,47 +152,269 @@ class Sale1Controller extends WebAction | @@ -152,47 +152,269 @@ class Sale1Controller extends WebAction | ||
152 | 'title' => '2015春夏海量大促!' | 152 | 'title' => '2015春夏海量大促!' |
153 | ) | 153 | ) |
154 | ) | 154 | ) |
155 | - ) | ||
156 | - ); | ||
157 | - $this->setWebNavHeader(); | ||
158 | - $this->_view->display('index', $data); | ||
159 | - } | 155 | + ), |
156 | + 'sale-category' => array( | ||
157 | + array( | ||
158 | + 'title' => 'VIP会员专享 ', | ||
159 | + 'vip' => true, | ||
160 | + 'navItem' => array( | ||
161 | + array( | ||
162 | + 'name' => '12', | ||
163 | + 'url' => 'xxx' | ||
164 | + ), | ||
165 | + array( | ||
166 | + 'name' => '12', | ||
167 | + 'url' => 'xxx' | ||
168 | + ), | ||
169 | + array( | ||
170 | + 'name' => '12', | ||
171 | + 'url' => 'xxx' | ||
172 | + ), | ||
173 | + array( | ||
174 | + 'name' => '12', | ||
175 | + 'url' => 'xxx' | ||
176 | + ), | ||
177 | + array( | ||
178 | + 'name' => '12', | ||
179 | + 'url' => 'xxx' | ||
180 | + ), | ||
181 | + ), | ||
182 | + 'saleImage'=> array( | ||
183 | + array( | ||
184 | + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids', | ||
185 | + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90", | ||
186 | + 'name' => '短发上课就犯困啦圣诞节', | ||
187 | + 'price' => '888', | ||
188 | + 'originPrice' => '1000' | ||
189 | + ), | ||
190 | + array( | ||
191 | + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids', | ||
192 | + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90", | ||
193 | + 'name' => '短发上课就犯困啦圣诞节', | ||
194 | + 'price' => '888', | ||
195 | + 'originPrice' => '1000' | ||
196 | + ), | ||
197 | + array( | ||
198 | + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids', | ||
199 | + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90", | ||
200 | + 'name' => '短发上课就犯困啦圣诞节', | ||
201 | + 'price' => '888', | ||
202 | + 'originPrice' => '1000' | ||
203 | + ), | ||
204 | + array( | ||
205 | + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids', | ||
206 | + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90", | ||
207 | + 'price' => '888', | ||
208 | + 'name' => '短发上课就犯困啦圣诞节', | ||
209 | + 'originPrice' => '1000' | ||
210 | + ), | ||
211 | + array( | ||
212 | + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids', | ||
213 | + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90", | ||
214 | + 'name' => 'test', | ||
215 | + 'price' => '888', | ||
216 | + 'originPrice' => '1000' | ||
217 | + ), | ||
218 | + array( | ||
219 | + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids', | ||
220 | + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90", | ||
221 | + 'name' => 'test', | ||
222 | + 'price' => '888', | ||
223 | + 'originPrice' => '1000' | ||
224 | + ), | ||
225 | + array( | ||
226 | + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids', | ||
227 | + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90", | ||
228 | + 'name' => 'test', | ||
229 | + 'price' => '888', | ||
230 | + 'originPrice' => '1000' | ||
231 | + ), | ||
232 | + array( | ||
233 | + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids', | ||
234 | + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90", | ||
235 | + 'name' => 'test', | ||
236 | + 'price' => '888', | ||
237 | + 'originPrice' => '1000' | ||
238 | + ) | ||
160 | 239 | ||
161 | - //列表页 | ||
162 | - public function saleListAction() | ||
163 | - { | ||
164 | - $data = array( | ||
165 | - 'saleListPage' => true, | ||
166 | - 'saleList' => array( | ||
167 | - 'saleBanner' => array( | ||
168 | - 'bannerHeight' => 350, | ||
169 | - 'list' => array( | 240 | + ) |
241 | + ), | ||
242 | + array( | ||
243 | + 'title' => '断码区域', | ||
244 | + 'incompleteSize' => true, | ||
245 | + 'navItem' => array( | ||
246 | + array( | ||
247 | + 'name' => '12', | ||
248 | + ), | ||
249 | + array( | ||
250 | + 'name' => '12', | ||
251 | + ), | ||
252 | + array( | ||
253 | + 'name' => '12', | ||
254 | + ), | ||
255 | + array( | ||
256 | + 'name' => '12', | ||
257 | + ), | ||
258 | + array( | ||
259 | + 'name' => '12', | ||
260 | + ), | ||
261 | + ), | ||
262 | + 'saleImage'=> array( | ||
263 | + array( | ||
264 | + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids', | ||
265 | + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90", | ||
266 | + 'name' => 'test', | ||
267 | + 'price' => '888', | ||
268 | + 'originPrice' => '1000' | ||
269 | + ), | ||
170 | array( | 270 | array( |
171 | - 'bannerHeight' => 350, | ||
172 | - 'img' => 'http://img12.static.yhbimg.com/couponImg/2015/12/10/08/02d4c26f19ca2e44359d69d5cff86167fb.jpg' | 271 | + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids', |
272 | + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90", | ||
273 | + 'name' => 'test', | ||
274 | + 'price' => '888', | ||
275 | + 'originPrice' => '1000' | ||
173 | ), | 276 | ), |
174 | array( | 277 | array( |
175 | - 'bannerHeight' => 350, | ||
176 | - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/01/06/05/02062366574a01418596caa38a773f6beb.jpg?imageView/1/w/1150/h/450' | 278 | + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids', |
279 | + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90", | ||
280 | + 'name' => 'test', | ||
281 | + 'price' => '888', | ||
282 | + 'originPrice' => '1000' | ||
177 | ), | 283 | ), |
178 | array( | 284 | array( |
179 | - 'bannerHeight' => 350, | ||
180 | - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/01/06/05/013341a0632177cc3425c3c6082845be57.jpg?imageView/1/w/1150/h/450' | 285 | + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids', |
286 | + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90", | ||
287 | + 'name' => 'test', | ||
288 | + 'price' => '888', | ||
289 | + 'originPrice' => '1000' | ||
181 | ), | 290 | ), |
182 | array( | 291 | array( |
183 | - 'bannerHeight' => 350, | ||
184 | - 'img' => 'http://img12.static.yhbimg.com/couponImg/2015/12/10/08/02d4c26f19ca2e44359d69d5cff86167fb.jpg' | 292 | + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids', |
293 | + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90", | ||
294 | + 'name' => 'test', | ||
295 | + 'price' => '888', | ||
296 | + 'originPrice' => '1000' | ||
185 | ), | 297 | ), |
186 | array( | 298 | array( |
187 | - 'bannerHeight' => 350, | ||
188 | - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/01/06/05/02062366574a01418596caa38a773f6beb.jpg?imageView/1/w/1150/h/450' | 299 | + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids', |
300 | + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90", | ||
301 | + 'name' => 'test', | ||
302 | + 'price' => '888', | ||
303 | + 'originPrice' => '1000' | ||
189 | ), | 304 | ), |
190 | array( | 305 | array( |
191 | - 'bannerHeight' => 350, | ||
192 | - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/01/06/05/013341a0632177cc3425c3c6082845be57.jpg?imageView/1/w/1150/h/450' | 306 | + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids', |
307 | + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90", | ||
308 | + 'name' => 'test', | ||
309 | + 'price' => '888', | ||
310 | + 'originPrice' => '1000' | ||
311 | + ), | ||
312 | + array( | ||
313 | + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids', | ||
314 | + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90", | ||
315 | + 'name' => 'test', | ||
316 | + 'price' => '888', | ||
317 | + 'originPrice' => '1000' | ||
193 | ) | 318 | ) |
319 | + | ||
194 | ) | 320 | ) |
195 | ), | 321 | ), |
322 | + array( | ||
323 | + 'title' => '最新降价', | ||
324 | + 'newDiscount' => true, | ||
325 | + 'navItem' => array( | ||
326 | + array( | ||
327 | + 'name' => '12', | ||
328 | + ), | ||
329 | + array( | ||
330 | + 'name' => '12', | ||
331 | + ), | ||
332 | + array( | ||
333 | + 'name' => '12', | ||
334 | + ), | ||
335 | + array( | ||
336 | + 'name' => '12', | ||
337 | + ), | ||
338 | + array( | ||
339 | + 'name' => '12', | ||
340 | + ), | ||
341 | + ), | ||
342 | + 'saleImage'=> array( | ||
343 | + array( | ||
344 | + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids', | ||
345 | + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90", | ||
346 | + 'name' => 'test', | ||
347 | + 'price' => '888', | ||
348 | + 'originPrice' => '1000' | ||
349 | + ), | ||
350 | + array( | ||
351 | + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids', | ||
352 | + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90", | ||
353 | + 'name' => 'test', | ||
354 | + 'price' => '888', | ||
355 | + 'originPrice' => '1000' | ||
356 | + ), | ||
357 | + array( | ||
358 | + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids', | ||
359 | + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90", | ||
360 | + 'name' => 'test', | ||
361 | + 'price' => '888', | ||
362 | + 'originPrice' => '1000' | ||
363 | + ), | ||
364 | + array( | ||
365 | + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids', | ||
366 | + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90", | ||
367 | + 'name' => 'test', | ||
368 | + 'price' => '888', | ||
369 | + 'originPrice' => '1000' | ||
370 | + ), | ||
371 | + array( | ||
372 | + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids', | ||
373 | + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90", | ||
374 | + 'name' => 'test', | ||
375 | + 'price' => '888', | ||
376 | + 'originPrice' => '1000' | ||
377 | + ), | ||
378 | + array( | ||
379 | + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids', | ||
380 | + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90", | ||
381 | + 'name' => 'test', | ||
382 | + 'price' => '888', | ||
383 | + 'originPrice' => '1000' | ||
384 | + ), | ||
385 | + array( | ||
386 | + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids', | ||
387 | + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90", | ||
388 | + 'name' => 'test', | ||
389 | + 'price' => '888', | ||
390 | + 'originPrice' => '1000' | ||
391 | + ), | ||
392 | + array( | ||
393 | + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids', | ||
394 | + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90", | ||
395 | + 'name' => 'test', | ||
396 | + 'price' => '888', | ||
397 | + 'originPrice' => '1000' | ||
398 | + ) | ||
399 | + | ||
400 | + ) | ||
401 | + ) | ||
402 | + ) | ||
403 | + ); | ||
404 | + $this->setWebNavHeader(); | ||
405 | + $this->_view->display('index', $data); | ||
406 | + } | ||
407 | + | ||
408 | + //列表页 | ||
409 | + public function saleListAction() | ||
410 | + { | ||
411 | + $data = array( | ||
412 | + 'saleListPage' => true, | ||
413 | + 'saleList' => array( | ||
414 | + 'saleBanner' => array( | ||
415 | + 'bannerHeight' => 350, | ||
416 | + 'img' => 'http://img12.static.yhbimg.com/couponImg/2015/12/10/08/02d4c26f19ca2e44359d69d5cff86167fb.jpg' | ||
417 | + ), | ||
196 | 'saleTitle' => array( | 418 | 'saleTitle' => array( |
197 | 'name' => '全部商品', | 419 | 'name' => '全部商品', |
198 | 'count' => 540 | 420 | 'count' => 540 |
-
Please register or login to post a comment