Authored by wangqing

头部js

1 -<?php return function ($in, $debugopt = 1) {  
2 - $cx = array(  
3 - 'flags' => array(  
4 - 'jstrue' => false,  
5 - 'jsobj' => false,  
6 - 'spvar' => true,  
7 - 'prop' => false,  
8 - 'method' => false,  
9 - 'mustlok' => true,  
10 - 'echo' => false,  
11 - 'debug' => $debugopt,  
12 - ),  
13 - 'constants' => array(),  
14 - 'helpers' => array(),  
15 - 'blockhelpers' => array(),  
16 - 'hbhelpers' => array(),  
17 - 'partials' => array(),  
18 - 'scopes' => array(),  
19 - 'sp_vars' => array('root' => $in),  
20 - 'lcrun' => 'Plugin\LCRun3',  
21 -  
22 - );  
23 -  
24 - return ''.'<!DOCTYPE html>  
25 -<html>  
26 - <head>  
27 - <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />  
28 - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
29 - <meta http-equiv="Cache-Control" content="no-siteapp" />  
30 - <meta name="renderer" content="webkit">  
31 - <link rel="shortcut icon" href="http://www.yohobuy.com/favicon.ico" type="image/x-icon" />  
32 - <meta name="keywords" content="'.Plugin\LCRun3::debug('[keywords]', 'encq', $cx, Plugin\LCRun3::debug('[keywords]', 'v', $cx, $in, array('keywords'))).'">  
33 - <meta name="description" content="'.Plugin\LCRun3::debug('[description]', 'encq', $cx, Plugin\LCRun3::debug('[description]', 'v', $cx, $in, array('description'))).'">  
34 - <title>'.Plugin\LCRun3::debug('[title]', 'encq', $cx, Plugin\LCRun3::debug('[title]', 'v', $cx, $in, array('title'))).'</title>  
35 - <!-- [if (gte IE 6)&(lte IE 8)>  
36 - <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>  
37 - <![endif]-->  
38 - <link rel="stylesheet" href="http://webstatic.dev.yohobuy.com/css/index.css">  
39 - </head>  
40 - <body>  
41 - '.''.Plugin\LCRun3::debug('[headerdata]', 'sec', $cx, Plugin\LCRun3::debug('[headerdata]', 'v', $cx, $in, array('headerdata')), $in, false, function($cx, $in) {return '<div class="yoho-header">  
42 - <div class="header-topwrapper clearfix">  
43 - <div class="header-top">  
44 - <div class="leftpart float-left">  
45 - <span class="icon-hamburger"></span>  
46 - <a href="" class="header-yoho" >YOHO!有货</a>  
47 - <ul class="yohoproducts-list">  
48 - <li class="yohoproducts-item">  
49 - <a href="" class="yohogroup" en="YOHO!" cn="集团官网">YOHO!</a>  
50 - </li>  
51 - <li class="yohoproducts-item">  
52 - <a href="" class="yohogroup" en="YOHO!BOYS" cn="男生潮流">YOHO!BOYS</a>  
53 - </li>  
54 - <li class="yohoproducts-item">  
55 - <a href="" class="yohogroup" en="YOHO!GIRLS" cn="女生潮流">YOHO!GIRLS</a>  
56 - </li>  
57 - <li class="yohoproducts-item">  
58 - <a href="" class="yohogroup" en="YOHO!SHOW" cn="物趣分享">YOHO!SHOW</a>  
59 - </li>  
60 - <li class="yohoproducts-item">  
61 - <a href="" class="yohogroup" en="YO\'HOOD" cn="潮流嘉年华">YO\'HOOD</a>  
62 - </li>  
63 - </ul>  
64 - </div>  
65 - <div class="rightpart">  
66 - <div id="loginBox" class="float-left">  
67 - <span class="hi">Hi~</span>  
68 - <a href="" class="loginbar">[请登录]</a>  
69 - <a href="" class="registbar">[免费注册]</a>  
70 - </div>  
71 - <div class="tag-list-wrapper">  
72 - <ul class="tag-list">  
73 - <li class="tag-item myyoho" id="myYohoBox">  
74 - <span class="tag-seprate"></span>  
75 - <a href="">MY有货</a>  
76 - <span class="icon-bottomarrow"></span>  
77 - <div class="myyoho-info"></div>  
78 - </li>  
79 - <li class="tag-item myorder">  
80 - <span class="tag-seprate"></span>  
81 - <span class="icon-papers"></span>  
82 - <a href="">我的订单</a>  
83 - </li>  
84 - <li class="tag-item mycollect">  
85 - <span class="tag-seprate"></span>  
86 - <span class="icon-heart"></span>  
87 - <a href="">我的收藏</a>  
88 - </li>  
89 - <li class="tag-item message">  
90 - <span class="tag-seprate"></span>  
91 - <span class="icon-mail"></span>  
92 - <a href="">消息</a>  
93 - </li>  
94 - <li class="tag-item phone">  
95 - <span class="tag-seprate"></span>  
96 - <span class="icon-iphone"></span>  
97 - <a href="">手机版</a>  
98 - <div class="qr">  
99 - <div class="qr-img"></div>  
100 - <h3 class="qr-words">扫描二维码</h3>  
101 - <h3 class="qr-words">下载有货手机客户端</h3>  
102 - <h3 class="qr-more">更多客户端下载</h3>  
103 - </div>  
104 - </li>  
105 - </ul>  
106 - </div>  
107 - </div>  
108 - </div>  
109 - </div>  
110 - <div class="header-navwrapper clearfix">  
111 - <div class="header-navcontent">  
112 - <ul class="first-nav-list float-left">  
113 -'.Plugin\LCRun3::debug('[navbars]', 'sec', $cx, Plugin\LCRun3::debug('[navbars]', 'v', $cx, $in, array('navbars')), $in, false, function($cx, $in) {return ' <li class="first-nav-item '.Plugin\LCRun3::debug('[classname]', 'encq', $cx, Plugin\LCRun3::debug('[classname]', 'v', $cx, $in, array('classname'))).'">  
114 - <h3 class="name-cn">  
115 - <a href="'.Plugin\LCRun3::debug('[link]', 'encq', $cx, Plugin\LCRun3::debug('[link]', 'v', $cx, $in, array('link'))).'">'.Plugin\LCRun3::debug('[name_cn]', 'encq', $cx, Plugin\LCRun3::debug('[name_cn]', 'v', $cx, $in, array('name_cn'))).'</a>  
116 - </h3>  
117 - <h3 class="name-en">  
118 - <a href="'.Plugin\LCRun3::debug('[link]', 'encq', $cx, Plugin\LCRun3::debug('[link]', 'v', $cx, $in, array('link'))).'">'.Plugin\LCRun3::debug('[name_en]', 'encq', $cx, Plugin\LCRun3::debug('[name_en]', 'v', $cx, $in, array('name_en'))).'</a>  
119 - </h3>  
120 - <div class=\'sub-nav-wrapper\'>  
121 - <ul class="sub-nav-list">  
122 -'.Plugin\LCRun3::debug('[subnav]', 'sec', $cx, Plugin\LCRun3::debug('[subnav]', 'v', $cx, $in, array('subnav')), $in, false, function($cx, $in) {return ' <li class="sub-nav-item">  
123 - <a href="'.Plugin\LCRun3::debug('[link]', 'encq', $cx, Plugin\LCRun3::debug('[link]', 'v', $cx, $in, array('link'))).'">'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'</a>  
124 - <div class="third-nav-wrapper">  
125 - <div class="third-nav">  
126 - <div class="categorywrapper" id="category'.Plugin\LCRun3::debug('../[index_main]', 'encq', $cx, Plugin\LCRun3::debug('../[index_main]', 'v', $cx, $cx['scopes'][count($cx['scopes'])-1], array('index_main'))).''.Plugin\LCRun3::debug('[index_sub]', 'encq', $cx, Plugin\LCRun3::debug('[index_sub]', 'v', $cx, $in, array('index_sub'))).'">  
127 - <div class="category">  
128 -'.Plugin\LCRun3::debug('[thirdnav]', 'sec', $cx, Plugin\LCRun3::debug('[thirdnav]', 'v', $cx, $in, array('thirdnav')), $in, false, function($cx, $in) {return ' <div class="thirdnavlist">  
129 - <h1 class="category-title thirdnavbar">'.Plugin\LCRun3::debug('[title]', 'encq', $cx, Plugin\LCRun3::debug('[title]', 'v', $cx, $in, array('title'))).'</h1>  
130 - <ul class="category-list">  
131 -'.Plugin\LCRun3::debug('[branditems]', 'sec', $cx, Plugin\LCRun3::debug('[branditems]', 'v', $cx, $in, array('branditems')), $in, false, function($cx, $in) {return ' <li class="category-item thirdnavbar">  
132 - <a href="" hot='.Plugin\LCRun3::debug('[hot]', 'encq', $cx, Plugin\LCRun3::debug('[hot]', 'v', $cx, $in, array('hot'))).'>'.Plugin\LCRun3::debug('[brandname]', 'encq', $cx, Plugin\LCRun3::debug('[brandname]', 'v', $cx, $in, array('brandname'))).'</a>  
133 - </li>  
134 -';}).' </ul>  
135 - </div>  
136 -';}).' </div>  
137 - </div>  
138 - <div class="showdetail" data-code="220eec926e0d2c48b2f7e36fb9c42b83"><a href="http://list.yohobuy.com/?gender=1,3&amp;msort=8"><img src="http://img12.static.yhbimg.com/yhb-img01/2015/10/30/06/02af834d146e3f00b1f5fcc8388f641922.jpg?imageView/1/w/337/h/250" alt="" style=""></a><a class="title" href="http://list.yohobuy.com/?gender=1,3&amp;msort=8">热门小物优选</a></div>  
139 - </div>  
140 - </div>  
141 - </li>  
142 -';}).' </ul>  
143 - </div>  
144 - </li>  
145 -';}).' </ul>  
146 - <div class="icon-logo"></div>  
147 - <div class="header-tool float-right">  
148 - <div class="search float-left '.Plugin\LCRun3::debug('[searchcate]', 'encq', $cx, Plugin\LCRun3::debug('[searchcate]', 'v', $cx, $in, array('searchcate'))).'" >  
149 - <form action="http://search.yohobuy.com" method="get" id="searchForm">  
150 - <span class="searchspan">  
151 - <input class="searchinput" type="text" name="keyword" id="query_key" autocomplete="off" x-webkit-speech="" lang="zh-CN" x-webkit-grammar="builtin:translate" value="" onfocus="if(this.value==this.defaultValue){this.value=\'\';this.style.color=\'#333\'}" onblur="if(this.value==\'\'){this.value=this.defaultValue;this.style.color=\'#999\'}" maxlength="30"></span>  
152 - <a class="icon-search" href="javascript:submitSearch();"></a>  
153 - <ul class="search-list"></ul>  
154 - </form>  
155 - </div>  
156 - <div class="gobuy float-left '.Plugin\LCRun3::debug('[gobytype]', 'encq', $cx, Plugin\LCRun3::debug('[gobytype]', 'v', $cx, $in, array('gobytype'))).'" id="miniCartBox">  
157 -'.Plugin\LCRun3::debug('[gobuy]', 'sec', $cx, Plugin\LCRun3::debug('[gobuy]', 'v', $cx, $in, array('gobuy')), $in, false, function($cx, $in) {return ' <span class="ic-infomation">'.Plugin\LCRun3::debug('[gobuynum]', 'encq', $cx, Plugin\LCRun3::debug('[gobuynum]', 'v', $cx, $in, array('gobuynum'))).'</span>  
158 - <div class="gobuy-wrapper"></div>  
159 -';}).' </div>  
160 - </div>  
161 - </div>  
162 - </div>  
163 -</div>  
164 -<div id="goodcartempwarpper">  
165 - <script type="text/html" id="mini-cart-tpl">  
166 -<div class="gobuy-notempty">  
167 - <div class="goods-list-wrapper">  
168 - <ul class="goods-list">  
169 - %L~it.cartData.main_goods :v:index%R  
170 - <li class="goods-item">  
171 - <a href="%L=v.product_url%R">  
172 - <img src="%L=v.default_img%R" alt="" class="goods-img" />  
173 - </a>  
174 - <div class="goods-detail float-left">  
175 - <h3 class="content"><a href="%L=v.product_url%R">%L=v.product_name%R</a></h3>  
176 - <h3 class="style">  
177 - 颜色:  
178 - <span class="color">%L=v.color_name%R</span>  
179 - 尺码:  
180 - <span class="size">%L=v.size_name%R</span>  
181 - </h3>  
182 - </div>  
183 - <div class="goods-price float-left">  
184 - <h3 class="priceandnum">  
185 - <span class="price">%L=v.show_price%R</span>  
186 - x  
187 - <span class="num">%L=v.buy_number%R</span>  
188 - </h3>  
189 - <a href="javascript:void(0)" class="delete" onclick="delCartGoods(%L=v.goods_incart_id%R,%L=v.is_cheapest_free%R);">删除</a>  
190 - </div>  
191 - </li>  
192 - %L~%R  
193 - %L~it.cartData.advance_goods :v:index%R  
194 - <li class="goods-item">  
195 - <a href="%L=v.product_url%R">  
196 - <img src="%L=v.default_img%R" alt="" class="goods-img"></a>  
197 - <div class="goods-detail float-left">  
198 - <h3 class="content"><a href="%L=v.product_url%R">%L=v.product_name%R</a></h3>  
199 - <h3 class="style">  
200 - 颜色:  
201 - <span class="color">%L=v.color_name%R</span>  
202 - 尺码:  
203 - <span class="size">%L=v.size_name%R</span>  
204 - </h3>  
205 - </div>  
206 - <div class="goods-price float-left">  
207 - <h3 class="priceandnum">  
208 -  
209 - <span class="price">%L=v.show_price%R</span>  
210 - x  
211 - <span class="num">%L=v.buy_number%R</span>  
212 - </h3>  
213 - <a href="javascript:void(0)" class="delete" onclick="delCartGoods(%L=v.goods_incart_id%R,%L=v.is_cheapest_free%R);">删除</a>  
214 - </div>  
215 - </li>  
216 - %L~%R  
217 - %L~it.cartData.outlet_goods :v:index%R  
218 - <li class="goods-item">  
219 - <a href="%L=v.product_url%R">  
220 - <img src="%L=v.default_img%R" alt="" class="goods-img"></a>  
221 - <div class="goods-detail float-left">  
222 - <h3 class="content"><a href="%L=v.product_url%R">%L=v.product_name%R</a></h3>  
223 - <h3 class="style">  
224 - 颜色:  
225 - <span class="color">%L=v.color_name%R</span>  
226 - 尺码:  
227 - <span class="size">%L=v.size_name%R</span>  
228 - </h3>  
229 - </div>  
230 - <div class="goods-price float-left">  
231 - <h3 class="priceandnum">  
232 -  
233 - <span class="price">%L=v.show_price%R</span>  
234 - x  
235 - <span class="num">%L=v.buy_number%R</span>  
236 - </h3>  
237 - <a href="javascript:void(0)" class="delete" onclick="delCartGoods(%L=v.goods_incart_id%R,%L=v.is_cheapest_free%R);">删除</a>  
238 - </div>  
239 - </li>  
240 - %L~%R  
241 - %L~it.cartData.gift_goods :v:index%R  
242 - <li class="goods-item">  
243 - <a href="%L=v.product_url%R">  
244 - <img src="%L=v.default_img%R" alt="" class="goods-img"></a>  
245 - <div class="goods-detail float-left">  
246 - <h3 class="content"><a href="%L=v.product_url%R">%L=v.product_name%R</a></h3>  
247 - <h3 class="style">  
248 - 颜色:  
249 - <span class="color">%L=v.color_name%R</span>  
250 - 尺码:  
251 - <span class="size">%L=v.size_name%R</span>  
252 - </h3>  
253 - </div>  
254 - <div class="goods-price float-left">  
255 - <h3 class="priceandnum">  
256 -  
257 - <span class="price">%L=v.show_price%R</span>  
258 - x  
259 - <span class="num">%L=v.buy_number%R</span>  
260 - </h3>  
261 - <a href="javascript:void(0)" class="delete" onclick="delCartGoods(%L=v.goods_incart_id%R,%L=v.is_cheapest_free%R);">删除</a>  
262 - </div>  
263 - </li>  
264 - %L~%R  
265 - %L~it.cartData.need_pay_gifts :v:index%R  
266 - <li class="goods-item">  
267 - <a href="%L=v.product_url%R">  
268 - <img src="%L=v.default_img%R" alt="" class="goods-img"></a>  
269 - <div class="goods-detail float-left">  
270 - <h3 class="content"><a href="%L=v.product_url%R">%L=v.product_name%R</a></h3>  
271 - <h3 class="style">  
272 - 颜色:  
273 - <span class="color">%L=v.color_name%R</span>  
274 - 尺码:  
275 - <span class="size">%L=v.size_name%R</span>  
276 - </h3>  
277 - </div>  
278 - <div class="goods-price float-left">  
279 - <h3 class="priceandnum">  
280 -  
281 - <span class="price">%L=v.show_price%R</span>  
282 - x  
283 - <span class="num">%L=v.buy_number%R</span>  
284 - </h3>  
285 - <a href="javascript:void(0)" class="delete" onclick="delCartGoods(%L=v.goods_incart_id%R,%L=v.is_cheapest_free%R);">删除</a>  
286 - </div>  
287 - </li>  
288 - %L~%R  
289 - </ul>  
290 -  
291 - <ul class="activity-list">  
292 - %L? it.cartData.has_promotion == 1%R  
293 - <li class="activity-item">  
294 - <span class="activity-name">活动</span>  
295 - <h3 class="activity-content">  
296 - %L? it.cartData.fit_outlet_promotion %R购outlet商品,满¥1999再享9折%L?%R  
297 - %L? it.cartData.has_other_promotion == 1 %R<span class="mycart_i_down" title="更多" onclick="dispDom(this, \'mycartmore\');"></span>%L?%R  
298 - %L? it.cartData.has_first_promotion == 1 %R%L=it.cartData.first_promotions.promotion_title%R%L?%R  
299 - </h3>  
300 - </li>  
301 - %L?%R  
302 - %L? it.cartData.fit_free_shipping == 1%R  
303 - <li class="activity-item">  
304 - <span class="activity-name">免运费</span>  
305 - <h3 class="activity-content">全场满 ¥499免运费</h3>  
306 - </li>  
307 - %L?%R  
308 - </ul>  
309 - </div>  
310 -  
311 - <div class="gobuy-notempty-footer">  
312 - <h3>  
313 - <a href="<?php print QConfigs_Site_Config::$site_url;?>/shopping/cart">去购物车结算</a>  
314 - </h3>  
315 - </div>  
316 -</div>  
317 -</script>  
318 - <script type="text/html" id="tmpl-my-login-new">  
319 -<div class="myyoho-info-header clearfix">  
320 - %L? it.head_ico %R  
321 - <div class="myyoho-photo" style="display:none;"><img src="" alt="" data-url ="%L=it.head_ico%R"></div>  
322 - %L?%R  
323 - <h3 class="user-email"><a href="<?php print QConfigs_Site_Config::$site_url?>/home?t=%L=it.random%R">%L=it.profile_name%R</a></h3>  
324 - <h3 class="user-level">  
325 - VIP:  
326 - <span class="leveldetail">%L=it.vip.curVipInfo.title%R</span>  
327 - </h3>  
328 - %L? it.vip.curVipInfo.curLevel < 3%R  
329 - <div class="levelinfo">  
330 - <div class="levelwrapper float-left">  
331 - <div class="levelspan">  
332 - <span class="has">%L=it.vip.curYearCost%R</span>  
333 - /  
334 - <span class="total">%L=it.vip.nextVipInfo.needCost%R</span>  
335 - </div>  
336 - <p class="%L? it.vip.curYearCostPer !=0%Rintegrate%L?%R" style="width: %L=it.vip.curYearCostPer%R%;"></p>  
337 - </div>  
338 - <span class="cardcate float-left">%L=it.vip.nextVipInfo.title%R</span>  
339 - </div>  
340 - %L?%R  
341 -</div>  
342 -<ul class="myyoho-info-content">  
343 - <li class="item">  
344 - <span class="itemdetail float-left">  
345 - <a href="<?php print QConfigs_Site_Config::$site_url?>/home/orders?t=<?php print microtime(true);?>">待处理的订单</a>  
346 - </span>  
347 - <span class="itemnum float-right">%L=it.orderCount%R</span>  
348 - </li>  
349 - <li class="item">  
350 - <span class="itemdetail float-left">  
351 - <a href="<?php print QConfigs_Site_Config::$site_url?>/home/favorite?t=<?php print microtime(true);?>">我的收藏</a>  
352 - </span>  
353 - <span class="itemnum float-right"></span>  
354 - </li>  
355 - <li class="item">  
356 - <span class="itemdetail float-left">  
357 - <a href="<?php print QConfigs_Site_Config::$site_url?>/home/coupons?t=<?php print microtime(true);?>">我的优惠券</a>  
358 - </span>  
359 - <span class="itemnum float-right">%L=it.couponCount%R</span>  
360 - </li>  
361 - <li class="item">  
362 - <span class="itemdetail float-left">  
363 - <a href="<?php print QConfigs_Site_Config::$site_url?>/home/currency?t=<?php print microtime(true);?>">我的YOHO币</a>  
364 - </span>  
365 - <span class="itemnum float-right">%L=it.YohocoinCount%R</span>  
366 - </li>  
367 - <li class="item">  
368 - <span class="itemdetail float-left">  
369 - <a href="<?php print QConfigs_Site_Config::$site_url?>/home/returns?t=<?php print microtime(true);?>">我的退货换货</a>  
370 - </span>  
371 - <span class="itemnum float-right">%L=it.refundCount%R</span>  
372 - </li>  
373 -</ul>  
374 -<div class="myyoho-info-footer">  
375 - <a href="<?php print QConfigs_Site_Config::$site_url?>/home/user?t=<?php print microtime(true);?>">完善资料</a>  
376 -</div>  
377 -</script>  
378 - <script type="text/html" id="tmpl-nologin">  
379 -<span>Hi~</span>[<a href="<?php print QConfigs_Site_Config::$site_url;?>/signin.html" class="list-a login-out">请登录</a>]&nbsp;[<a href="<?php print QConfigs_Site_Config::$site_url;?>/reg.html" class="list-a login-out" onclick="getSource(\'会员部_注册统计\',\'免费注册\',\'homepage_man\');">免费注册</a>]  
380 -</script>  
381 - <script type="text/html" id="tmpl-login">  
382 -<span>Hi~<a href="<?php print QConfigs_Site_Config::$site_url;?>/home?t=<?php print microtime(true);?>">%L=it.user_name%R</a></span>&nbsp;%L? it.is_login == 1%R[<a href="%L=it.logout%R" class="list-a login-out">退出</a>]%L??%R[<a href="<?php print QConfigs_Site_Config::$site_url;?>/signin.html" class="list-a login-out">请登录</a>]&nbsp;[<a href="<?php print QConfigs_Site_Config::$site_url;?>/reg.html" onclick="getSource(\'会员部_注册统计\',\'免费注册\',\'homepage_man\');" class="list-a login-out">免费注册</a>]%L?%R  
383 -</script>  
384 - <script type="text/html" id="tmpl-my-noLogin">  
385 -<div class="account-login">  
386 - <div><a href="<?php print QConfigs_Site_Config::$site_url?>/signin.html" class="button">立即登录</a></div>  
387 - <div><span>新用户?</span><a href="<?php print QConfigs_Site_Config::$site_url?>/reg.html" onclick="getSource(\'会员部_注册统计\',\'免费注册\',\'homepage_man\');">[免费注册]</a></div>  
388 -</div>  
389 -<ul class="home-layer">  
390 - <li class="clear"><a href="<?php print QConfigs_Site_Config::$site_url?>/home/orders?t=<?php print microtime(true);?>" class="left">我的订单</a></li>  
391 - <li class="clear"><a href="<?php print QConfigs_Site_Config::$site_url?>/home/favorite?t=<?php print microtime(true);?>" class="left">我的收藏</a></li>  
392 - <li class="clear"><a href="<?php print QConfigs_Site_Config::$site_url?>/home/coupons?t=<?php print microtime(true);?>" class="left">我的优惠券</a></li>  
393 - <li class="clear"><a href="<?php print QConfigs_Site_Config::$site_url?>/home/currency?t=<?php print microtime(true);?>" class="left">我的YOHO币</a></li>  
394 - <li class="clear"><a href="<?php print QConfigs_Site_Config::$site_url?>/home/returns?t=<?php print microtime(true);?>" class="left">我的退换货</a></li>  
395 -</ul>  
396 -</script>  
397 - <script type="text/html" id="tmpl-message">  
398 -<ul>%L~ it :v:index%R<li><a href="<?php print QConfigs_Site_Config::$site_url;?>/home/message/content?id=%L=v.id%R">%L=v.title%R</a></li>%L~%R</ul>  
399 -</script>  
400 -</div>  
401 -';}).''.''.'<div class="home-page yoho-page">  
402 -'.Plugin\LCRun3::debug('[boy]', 'sec', $cx, Plugin\LCRun3::debug('[boy]', 'v', $cx, $in, array('boy')), $in, false, function($cx, $in) {return ' <div class="slide-container">  
403 -'.Plugin\LCRun3::debug('if [bigSlide]', 'ifv', $cx, Plugin\LCRun3::debug('[bigSlide]', 'v', $cx, $in, array('bigSlide')), $in, function($cx, $in) {return ' <div class="big-slide">  
404 - <ul>  
405 -'.Plugin\LCRun3::debug('[bigSlide]', 'sec', $cx, Plugin\LCRun3::debug('[bigSlide]', 'v', $cx, $in, array('bigSlide')), $in, false, function($cx, $in) {return ' <li>  
406 - <a href="'.Plugin\LCRun3::debug('[href]', 'encq', $cx, Plugin\LCRun3::debug('[href]', 'v', $cx, $in, array('href'))).'">  
407 - <img src="'.Plugin\LCRun3::debug('[img]', 'encq', $cx, Plugin\LCRun3::debug('[img]', 'v', $cx, $in, array('img'))).'" alt="">  
408 - </a>  
409 - </li>  
410 -';}).' </ul>  
411 - <div class="slide-switch">  
412 - <a class="prev" href="javascript:;">  
413 - <span class="iconfont">&#xe60c;</span>  
414 - </a>  
415 - <a class="next" href="javascript:;">  
416 - <span class="iconfont">&#xe60b;</span>  
417 - </a>  
418 - </div>  
419 - </div>  
420 -';}).'  
421 -'.Plugin\LCRun3::debug('if [smallSlide]', 'ifv', $cx, Plugin\LCRun3::debug('[smallSlide]', 'v', $cx, $in, array('smallSlide')), $in, function($cx, $in) {return ' <div class="small-slide">  
422 - <ul class="clearfix">  
423 -'.Plugin\LCRun3::debug('[smallSlide]', 'sec', $cx, Plugin\LCRun3::debug('[smallSlide]', 'v', $cx, $in, array('smallSlide')), $in, false, function($cx, $in) {return ' <li>  
424 - <a href="'.Plugin\LCRun3::debug('[href]', 'encq', $cx, Plugin\LCRun3::debug('[href]', 'v', $cx, $in, array('href'))).'"></a>  
425 - <img src="'.Plugin\LCRun3::debug('[img]', 'encq', $cx, Plugin\LCRun3::debug('[img]', 'v', $cx, $in, array('img'))).'" alt="">  
426 - </li>  
427 -';}).' </ul>  
428 - </div>  
429 -';}).' </div>  
430 -'.Plugin\LCRun3::debug('[newReport]', 'sec', $cx, Plugin\LCRun3::debug('[newReport]', 'v', $cx, $in, array('newReport')), $in, false, function($cx, $in) {return ' <div class="new-report clearfix">  
431 -'.' <div class="floor-header clearfix">  
432 - <h2 class="floor-title">'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'</h2>  
433 -'.Plugin\LCRun3::debug('if [navs]', 'ifv', $cx, Plugin\LCRun3::debug('[navs]', 'v', $cx, $in, array('navs')), $in, function($cx, $in) {return ' <ul class="header-navs">  
434 -'.Plugin\LCRun3::debug('[navs]', 'sec', $cx, Plugin\LCRun3::debug('[navs]', 'v', $cx, $in, array('navs')), $in, false, function($cx, $in) {return ' <li data-classify="'.Plugin\LCRun3::debug('[id]', 'encq', $cx, Plugin\LCRun3::debug('[id]', 'v', $cx, $in, array('id'))).'">  
435 - <a target="_blank" href="'.Plugin\LCRun3::debug('[href]', 'encq', $cx, Plugin\LCRun3::debug('[href]', 'v', $cx, $in, array('href'))).'">'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'</a>  
436 - </li>  
437 -';}).' </ul>  
438 -';}).' </div>'.'  
439 - <ul class="report-list clearfix">  
440 -'.Plugin\LCRun3::debug('[list]', 'sec', $cx, Plugin\LCRun3::debug('[list]', 'v', $cx, $in, array('list')), $in, false, function($cx, $in) {return ''.Plugin\LCRun3::debug('unless @[last]', 'unl', $cx, Plugin\LCRun3::debug('@[last]', 'v', $cx, $cx['sp_vars'], array('last')), $in, function($cx, $in) {return ' <li>  
441 - <a href="'.Plugin\LCRun3::debug('[href]', 'encq', $cx, Plugin\LCRun3::debug('[href]', 'v', $cx, $in, array('href'))).'">  
442 - <img src="'.Plugin\LCRun3::debug('[img]', 'encq', $cx, Plugin\LCRun3::debug('[img]', 'v', $cx, $in, array('img'))).'" alt="">  
443 - </a>  
444 - </li>  
445 -';}).'';}).' </ul>  
446 -  
447 -'.Plugin\LCRun3::debug('[list]', 'sec', $cx, Plugin\LCRun3::debug('[list]', 'v', $cx, $in, array('list')), $in, false, function($cx, $in) {return ''.Plugin\LCRun3::debug('if @[last]', 'ifv', $cx, Plugin\LCRun3::debug('@[last]', 'v', $cx, $cx['sp_vars'], array('last')), $in, function($cx, $in) {return ' <div class="last-item">  
448 - <a href="'.Plugin\LCRun3::debug('[href]', 'encq', $cx, Plugin\LCRun3::debug('[href]', 'v', $cx, $in, array('href'))).'">  
449 - <img src="'.Plugin\LCRun3::debug('[img]', 'encq', $cx, Plugin\LCRun3::debug('[img]', 'v', $cx, $in, array('img'))).'" alt="">  
450 - </a>  
451 - </div>  
452 -';}).'';}).' </div>  
453 -';}).''.Plugin\LCRun3::debug('[preferenceBrand]', 'sec', $cx, Plugin\LCRun3::debug('[preferenceBrand]', 'v', $cx, $in, array('preferenceBrand')), $in, false, function($cx, $in) {return ' <div class="preference-brand">  
454 -'.' <div class="floor-header clearfix">  
455 - <h2 class="floor-title">'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'</h2>  
456 -'.Plugin\LCRun3::debug('if [navs]', 'ifv', $cx, Plugin\LCRun3::debug('[navs]', 'v', $cx, $in, array('navs')), $in, function($cx, $in) {return ' <ul class="header-navs">  
457 -'.Plugin\LCRun3::debug('[navs]', 'sec', $cx, Plugin\LCRun3::debug('[navs]', 'v', $cx, $in, array('navs')), $in, false, function($cx, $in) {return ' <li data-classify="'.Plugin\LCRun3::debug('[id]', 'encq', $cx, Plugin\LCRun3::debug('[id]', 'v', $cx, $in, array('id'))).'">  
458 - <a target="_blank" href="'.Plugin\LCRun3::debug('[href]', 'encq', $cx, Plugin\LCRun3::debug('[href]', 'v', $cx, $in, array('href'))).'">'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'</a>  
459 - </li>  
460 -';}).' </ul>  
461 -';}).' </div>'.' <div class="img-brand">  
462 - <ul class="img-list clearfix">  
463 -'.Plugin\LCRun3::debug('[imgBrand]', 'sec', $cx, Plugin\LCRun3::debug('[imgBrand]', 'v', $cx, $in, array('imgBrand')), $in, false, function($cx, $in) {return ' <li class="img-item">  
464 - <a href="'.Plugin\LCRun3::debug('[href]', 'encq', $cx, Plugin\LCRun3::debug('[href]', 'v', $cx, $in, array('href'))).'">  
465 - <img src="'.Plugin\LCRun3::debug('[img]', 'encq', $cx, Plugin\LCRun3::debug('[img]', 'v', $cx, $in, array('img'))).'" alt="">  
466 - </a>  
467 - </li>  
468 -';}).' </ul>  
469 - <div class="img-brand-switch">  
470 - <a class="prev" href="javascript:;">  
471 - <span class="iconfont">&#xe60c;</span>  
472 - </a>  
473 - <a class="next" href="javascript:;">  
474 - <span class="iconfont">&#xe60b;</span>  
475 - </a>  
476 - </div>  
477 - </div>  
478 - <div class="logo-brand">  
479 - <ul class="clearfix">  
480 -'.Plugin\LCRun3::debug('[logoBrand]', 'sec', $cx, Plugin\LCRun3::debug('[logoBrand]', 'v', $cx, $in, array('logoBrand')), $in, false, function($cx, $in) {return ''.Plugin\LCRun3::debug('if [switch]', 'ifv', $cx, Plugin\LCRun3::debug('[switch]', 'v', $cx, $in, array('switch')), $in, function($cx, $in) {return ' <li class="logo-brand-switch">  
481 - <a class="prev iconfont" href="javascript:;">&#xe60f;</a>  
482 - <a class="next iconfont" href="javascript:;">&#xe60e;</a>  
483 - </li>  
484 -';}, function($cx, $in) {return ''.Plugin\LCRun3::debug('if [more]', 'ifv', $cx, Plugin\LCRun3::debug('[more]', 'v', $cx, $in, array('more')), $in, function($cx, $in) {return ' <li class="brand-more">  
485 - <a href="'.Plugin\LCRun3::debug('[href]', 'encq', $cx, Plugin\LCRun3::debug('[href]', 'v', $cx, $in, array('href'))).'">MORE ></a>  
486 - </li>  
487 -';}, function($cx, $in) {return ' <li>  
488 - <a href="'.Plugin\LCRun3::debug('[href]', 'encq', $cx, Plugin\LCRun3::debug('[href]', 'v', $cx, $in, array('href'))).'">  
489 - <img src="'.Plugin\LCRun3::debug('[img]', 'encq', $cx, Plugin\LCRun3::debug('[img]', 'v', $cx, $in, array('img'))).'" alt="">  
490 - </a>  
491 - </li>  
492 -';}).'';}).'';}).' </ul>  
493 - </div>  
494 - </div>  
495 -';}).'  
496 -'.Plugin\LCRun3::debug('each [recommend]', 'sec', $cx, Plugin\LCRun3::debug('[recommend]', 'v', $cx, $in, array('recommend')), $in, true, function($cx, $in) {return ''.''.Plugin\LCRun3::debug('[tplrecommend]', 'sec', $cx, Plugin\LCRun3::debug('[tplrecommend]', 'v', $cx, $in, array('tplrecommend')), $in, false, function($cx, $in) {return ''.' <div class="floor-header clearfix">  
497 - <h2 class="floor-title">'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'</h2>  
498 -'.Plugin\LCRun3::debug('if [navs]', 'ifv', $cx, Plugin\LCRun3::debug('[navs]', 'v', $cx, $in, array('navs')), $in, function($cx, $in) {return ' <ul class="header-navs">  
499 -'.Plugin\LCRun3::debug('[navs]', 'sec', $cx, Plugin\LCRun3::debug('[navs]', 'v', $cx, $in, array('navs')), $in, false, function($cx, $in) {return ' <li data-classify="'.Plugin\LCRun3::debug('[id]', 'encq', $cx, Plugin\LCRun3::debug('[id]', 'v', $cx, $in, array('id'))).'">  
500 - <a target="_blank" href="'.Plugin\LCRun3::debug('[href]', 'encq', $cx, Plugin\LCRun3::debug('[href]', 'v', $cx, $in, array('href'))).'">'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'</a>  
501 - </li>  
502 -';}).' </ul>  
503 -';}).' </div>'.' <div class="tpl-recommend clearfix">  
504 - <div class="tpl-body clearfix">  
505 - <div class="tpl-nav">  
506 - <div class="tpl-keywords">  
507 -'.Plugin\LCRun3::debug('each [keyword]', 'sec', $cx, Plugin\LCRun3::debug('[keyword]', 'v', $cx, $in, array('keyword')), $in, true, function($cx, $in) {return ' <a class="keywords'.Plugin\LCRun3::debug('@[index]', 'encq', $cx, Plugin\LCRun3::debug('@[index]', 'v', $cx, $cx['sp_vars'], array('index'))).'" title="'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'" href="'.Plugin\LCRun3::debug('[url]', 'encq', $cx, Plugin\LCRun3::debug('[url]', 'v', $cx, $in, array('url'))).'"><img class="lazy" data-original="'.Plugin\LCRun3::debug('[img]', 'encq', $cx, Plugin\LCRun3::debug('[img]', 'v', $cx, $in, array('img'))).'"/></a>  
508 -';}).' </div>  
509 - <div class="tpl-category clearfix">  
510 -'.Plugin\LCRun3::debug('each [category]', 'sec', $cx, Plugin\LCRun3::debug('[category]', 'v', $cx, $in, array('category')), $in, true, function($cx, $in) {return ' <a href="'.Plugin\LCRun3::debug('[url]', 'encq', $cx, Plugin\LCRun3::debug('[url]', 'v', $cx, $in, array('url'))).'">'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'</a>  
511 -';}).' </div>  
512 - </div>  
513 - <div class="tpl-brands clearfix">  
514 - <ul>  
515 -'.Plugin\LCRun3::debug('each [brands]', 'sec', $cx, Plugin\LCRun3::debug('[brands]', 'v', $cx, $in, array('brands')), $in, true, function($cx, $in) {return ' <li><a title="'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'" href="'.Plugin\LCRun3::debug('[url]', 'encq', $cx, Plugin\LCRun3::debug('[url]', 'v', $cx, $in, array('url'))).'"><img class="lazy" data-original="'.Plugin\LCRun3::debug('[img]', 'encq', $cx, Plugin\LCRun3::debug('[img]', 'v', $cx, $in, array('img'))).'"/></a></li>  
516 -';}).' </ul>  
517 - </div>  
518 - <div class="tpl-types clearfix">  
519 - <ul>  
520 -'.Plugin\LCRun3::debug('each [types]', 'sec', $cx, Plugin\LCRun3::debug('[types]', 'v', $cx, $in, array('types')), $in, true, function($cx, $in) {return ' <li><a title="'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'" href="'.Plugin\LCRun3::debug('[url]', 'encq', $cx, Plugin\LCRun3::debug('[url]', 'v', $cx, $in, array('url'))).'"><img class="lazy" data-original="'.Plugin\LCRun3::debug('[img]', 'encq', $cx, Plugin\LCRun3::debug('[img]', 'v', $cx, $in, array('img'))).'"/></a></li>  
521 -';}).' </ul>  
522 - </div>  
523 - </div>  
524 - <div class="tpl-products clearfix">  
525 - <ul>  
526 -'.Plugin\LCRun3::debug('each [products]', 'sec', $cx, Plugin\LCRun3::debug('[products]', 'v', $cx, $in, array('products')), $in, true, function($cx, $in) {return ' <li><a href="'.Plugin\LCRun3::debug('[url]', 'encq', $cx, Plugin\LCRun3::debug('[url]', 'v', $cx, $in, array('url'))).'" title="'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'"><img class="lazy" data-original="'.Plugin\LCRun3::debug('[img]', 'encq', $cx, Plugin\LCRun3::debug('[img]', 'v', $cx, $in, array('img'))).'"/></a></li>  
527 -';}).' </ul>  
528 - </div>  
529 - </div>  
530 -';}).'  
531 -  
532 -'.'';}).'  
533 -'.Plugin\LCRun3::debug('[newArrivls]', 'sec', $cx, Plugin\LCRun3::debug('[newArrivls]', 'v', $cx, $in, array('newArrivls')), $in, false, function($cx, $in) {return ''.''.' <div class="floor-header clearfix">  
534 - <h2 class="floor-title">'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'</h2>  
535 -'.Plugin\LCRun3::debug('if [navs]', 'ifv', $cx, Plugin\LCRun3::debug('[navs]', 'v', $cx, $in, array('navs')), $in, function($cx, $in) {return ' <ul class="header-navs">  
536 -'.Plugin\LCRun3::debug('[navs]', 'sec', $cx, Plugin\LCRun3::debug('[navs]', 'v', $cx, $in, array('navs')), $in, false, function($cx, $in) {return ' <li data-classify="'.Plugin\LCRun3::debug('[id]', 'encq', $cx, Plugin\LCRun3::debug('[id]', 'v', $cx, $in, array('id'))).'">  
537 - <a target="_blank" href="'.Plugin\LCRun3::debug('[href]', 'encq', $cx, Plugin\LCRun3::debug('[href]', 'v', $cx, $in, array('href'))).'">'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'</a>  
538 - </li>  
539 -';}).' </ul>  
540 -';}).' </div>'.' <div class="commodity">  
541 -  
542 - <ul class="clearfix">  
543 -'.Plugin\LCRun3::debug('each [commodity]', 'sec', $cx, Plugin\LCRun3::debug('[commodity]', 'v', $cx, $in, array('commodity')), $in, true, function($cx, $in) {return ' <li>  
544 -'.Plugin\LCRun3::debug('[state]', 'sec', $cx, Plugin\LCRun3::debug('[state]', 'v', $cx, $in, array('state')), $in, false, function($cx, $in) {return ' <i class="commodity-tag'.Plugin\LCRun3::debug('this', 'encq', $cx, $in).'"></i>  
545 -';}).' <a href="'.Plugin\LCRun3::debug('[url]', 'encq', $cx, Plugin\LCRun3::debug('[url]', 'v', $cx, $in, array('url'))).'"><div class="commodity-img"><img class="lazy" data-original="'.Plugin\LCRun3::debug('[img]', 'encq', $cx, Plugin\LCRun3::debug('[img]', 'v', $cx, $in, array('img'))).'"/></div>  
546 - <p class="commodity-name">'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'</p>  
547 - <p class="commodity-price"><span>¥'.Plugin\LCRun3::debug('[price]', 'encq', $cx, Plugin\LCRun3::debug('[price]', 'v', $cx, $in, array('price'))).'</span></p>  
548 - </a>  
549 - </li>  
550 -';}).' </ul>  
551 - <div class="loading">  
552 - <p>Loading...</p>  
553 - </div>  
554 - </div>'.'';}).'';}).'  
555 -  
556 -</div>  
557 -'.''.' <div class="yoho-footer">  
558 - <div class="footertop">  
559 - <div class="index-foot">  
560 - <dl class="clearfix screen">  
561 - <dd>  
562 - <div class="foot-panel">  
563 - <div class="title relative">  
564 - <div class="title-line"></div>  
565 - <div class="text">  
566 - <span>有货SERVICES</span>  
567 - </div>  
568 - </div>  
569 - <div id="foot-services">  
570 - <ul class="clearfix two-dim">  
571 - <li class="left">  
572 - <div class="">  
573 - <a href="javascript:void(0);">  
574 - <img class="dim-img lazy" data-original="http://img11.static.yhbimg.com/adpic/2014/03/20/16/01863b297051f11c2be833785566cf11d1.png" src="http://img11.static.yhbimg.com/adpic/2014/03/20/16/01863b297051f11c2be833785566cf11d1.png" style=""></a>  
575 - <p>YOHO!有货</p>  
576 - </div>  
577 - </li>  
578 - <li class="left">  
579 - <div class="">  
580 - <a href="javascript:void(0);">  
581 - <img class="dim-img lazy" data-original="http://img12.static.yhbimg.com/adpic/2014/04/11/14/022ddc2b6d6b2fcabee8cdc03735e5687e.jpg" src="http://img12.static.yhbimg.com/adpic/2014/04/11/14/022ddc2b6d6b2fcabee8cdc03735e5687e.jpg" style=""></a>  
582 - <p>微信</p>  
583 - </div>  
584 - </li>  
585 - <li class="left">  
586 - <div class="">  
587 - <a href="javascript:void(0);">  
588 - <img class="dim-img lazy" data-original="http://img13.static.yhbimg.com/adpic/2014/03/20/16/02e69d0afa222cf173d17411fd04be380e.png" src="http://img13.static.yhbimg.com/adpic/2014/03/20/16/02e69d0afa222cf173d17411fd04be380e.png" style="display: inline;"></a>  
589 - <p>微博</p>  
590 - </div>  
591 - </li>  
592 - </ul>  
593 - </div>  
594 - </div>  
595 - <p class="item-nav center" id="button-services">  
596 - <a href="javascript:void(0);" key="0">  
597 - <span class="ifont10 cur">O</span>  
598 - </a>  
599 - </p>  
600 - </dd>  
601 - <dd>  
602 - <div class="foot-panel" id="feedbackBoxList">  
603 - <div class="title relative">  
604 - <div class="title-line"></div>  
605 - <div class="text">  
606 - <span>意见反馈</span>  
607 - </div>  
608 - </div>  
609 - <ul class="clearfix vote">  
610 - <li style="display:block" key="0">  
611 - <form action="#" id="feedbackForm">  
612 - <input type="hidden" name="question_id" id="question_id" value="38">  
613 - <input type="hidden" name="feedback_id" id="feedback_id" value="5">  
614 - <div>您喜欢有货的新版吗?</div>  
615 - <div class="vote-item clearfix">  
616 - <p>  
617 - <input type="radio" name="solution" value="33">非常喜欢</p>  
618 - <p>  
619 - <input type="radio" name="solution" value="34">喜欢</p>  
620 - <p>  
621 - <input type="radio" name="solution" value="35">一般般</p>  
622 - <p>  
623 - <input type="radio" name="solution" value="36">不喜欢</p>  
624 - <p>  
625 - <input type="radio" name="solution" value="37">非常不喜欢</p>  
626 - </div>  
627 - <div>  
628 - <a href="javascript:void(0);" id="feedbackBtn" class="button">提交</a>  
629 - </div>  
630 - </form>  
631 - </li>  
632 - <li style="display:none" key="1">  
633 - <form action="#" id="feedbackForm">  
634 - <input type="hidden" name="question_id" id="question_id" value="39">  
635 - <input type="hidden" name="feedback_id" id="feedback_id" value="5">  
636 - <div>您可以方便的找到想查看的内容吗?</div>  
637 - <div class="vote-item clearfix">  
638 - <p>  
639 - <input type="radio" name="solution" value="38">非常方便</p>  
640 - <p>  
641 - <input type="radio" name="solution" value="39">方便</p>  
642 - <p>  
643 - <input type="radio" name="solution" value="40">一般般</p>  
644 - <p>  
645 - <input type="radio" name="solution" value="41">不方便</p>  
646 - <p>  
647 - <input type="radio" name="solution" value="42">非常不方便</p>  
648 - </div>  
649 - <div>  
650 - <a href="javascript:void(0);" id="feedbackBtn" class="button">提交</a>  
651 - </div>  
652 - </form>  
653 - </li>  
654 - <li style="display:none" key="2">  
655 - <form action="#" id="feedbackForm">  
656 - <input type="hidden" name="question_id" id="question_id" value="37">  
657 - <input type="hidden" name="feedback_id" id="feedback_id" value="5">  
658 - <div>您对新版还有哪些意见或建议?</div>  
659 - <textarea name="answer" id="feedback_answer"></textarea>  
660 - <div>  
661 - <a href="javascript:void(0);" id="feedbackBtn" class="button">提交</a>  
662 - </div>  
663 - </form>  
664 - </li>  
665 - </ul>  
666 - </div>  
667 - <p class="item-nav center" id="feedbackPage">  
668 - <a href="javascript:void(0);">  
669 - <span class="ifont10 cur">O</span>  
670 - </a>  
671 - <a href="javascript:void(0);">  
672 - <span class="ifont10 ">o</span>  
673 - </a>  
674 - <a href="javascript:void(0);">  
675 - <span class="ifont10 ">o</span>  
676 - </a>  
677 - </p>  
678 - </dd>  
679 - <dd class="last">  
680 - <div class="foot-panel">  
681 - <div class="title relative">  
682 - <div class="title-line"></div>  
683 - <div class="text">  
684 - <span>更多 YOHO!产品</span>  
685 - </div>  
686 - </div>  
687 - <div id="foot-mobile">  
688 - <ul class="clearfix mobile">  
689 - <li>  
690 - <a href="http://app.yohoshow.com/" target="_blank" titl="">  
691 - <img alt="" data-original="http://img13.static.yhbimg.com/adpic/2014/07/21/15/02d5e1cbc15ab59856f4a758fa860462ed.jpg" class="lazy" src="http://img13.static.yhbimg.com/adpic/2014/07/21/15/02d5e1cbc15ab59856f4a758fa860462ed.jpg" style=""></a>  
692 - </li>  
693 - <li>  
694 - <a href="http://www.yohoboys.com/" target="_blank" titl="">  
695 - <img alt="" data-original="http://img13.static.yhbimg.com/adpic/2014/07/21/15/0210a3490eae2aad6ef8bf3b8133a49ca9.jpg" class="lazy" src="http://img13.static.yhbimg.com/adpic/2014/07/21/15/0210a3490eae2aad6ef8bf3b8133a49ca9.jpg" style=""></a>  
696 - </li>  
697 - <li>  
698 - <a href="http://www.yohogirls.com/" target="_blank" titl="">  
699 - <img alt="" data-original="http://img11.static.yhbimg.com/adpic/2014/07/21/15/018be2a193424658b5201240ef8c7729e6.jpg" class="lazy" src="http://img11.static.yhbimg.com/adpic/2014/07/21/15/018be2a193424658b5201240ef8c7729e6.jpg" style=""></a>  
700 - </li>  
701 - </ul>  
702 - </div>  
703 - </div>  
704 - <p class="item-nav center" id="button-mobile">  
705 - <a href="javascript:void(0);">  
706 - <span class="ifont10 cur">O</span>  
707 - </a>  
708 - </p>  
709 - </dd>  
710 - </dl>  
711 - </div>  
712 - </div>  
713 - <div class="footerbottom">  
714 - <div class="promise">  
715 - <div class="screen clearfix">  
716 - <div class="left">  
717 - <span class="ifont rgbf">g</span>  
718 - <span class="red">100%</span>  
719 - <span class="rgbf">品牌授权正品</span>  
720 - </div>  
721 - <div class="left">  
722 - <span class="ifont rgbf">L</span>  
723 - <span class="red">7天</span>  
724 - <span class="rgbf">无理由退换货</span>  
725 - </div>  
726 - <div class="left">  
727 - <span class="ifont rgbf">p</span>  
728 - <span class="rgbf">客服电话:</span>  
729 - <span class="red">400-889-9646</span>  
730 - &nbsp;&nbsp;  
731 - <span class="rgb9">08:00-22:30(周一至周日)</span>  
732 - &nbsp;&nbsp;  
733 - <span>  
734 - <a href="http://chat80.live800.com/live800/chatClient/chatbox.jsp?companyID=493979&amp;configID=123576&amp;jid=9277320930" target="_blank" style="color:red">在线客服</a>  
735 - </span>  
736 - </div>  
737 - <div class="right subscribe footer-right">  
738 - <input class="rgb6 top" name="subscriberBox" id="subscriberBox" value="订阅我们的邮件">  
739 - <a href="javascript:void(0);" id="subscriberBtn" class="ifont rgbf">m</a>  
740 - <!--<input class="rgb6 top wrong" value="订阅我们的邮件" />  
741 - <a href="" class="ifont rgbf done">=</a>  
742 - -->  
743 - </div>  
744 - </div>  
745 - </div>  
746 - <div class="footer-help">  
747 - <div class="screen clearfix">  
748 - <div class="left">  
749 - <ul class="clearfix">  
750 - <li class="left">  
751 - <p>  
752 - <span>新手指南</span>  
753 - </p>  
754 - <p>  
755 - <a href="http://www.yohobuy.com/help/?category_id=81#help_b00reg" target="_blank">注册登录</a>  
756 - </p>  
757 - <p>  
758 - <a href="http://www.yohobuy.com/help/?category_id=83" target="_blank">选购商品</a>  
759 - </p>  
760 - <p>  
761 - <a href="http://www.yohobuy.com/help/?category_id=103" target="_blank">订单支付</a>  
762 - </p>  
763 - <p>  
764 - <a href="http://www.yohobuy.com/help/?category_id=85" target="_blank">收货退款</a>  
765 - </p>  
766 - </li>  
767 - <li class="left">  
768 - <p>  
769 - <span>会员中心</span>  
770 - </p>  
771 - <p>  
772 - <a href="http://www.yohobuy.com/help/?category_id=87" target="_blank">YOHO币</a>  
773 - </p>  
774 - <p>  
775 - <a href="http://www.yohobuy.com/help/?category_id=91" target="_blank">会员制度</a>  
776 - </p>  
777 - <p>  
778 - <a href="http://www.yohobuy.com/help/?category_id=89" target="_blank">账户管理</a>  
779 - </p>  
780 - <p>  
781 - <a href="http://www.yohobuy.com/help/?category_id=93" target="_blank">密码管理</a>  
782 - </p>  
783 - </li>  
784 - <li class="left">  
785 - <p>  
786 - <span>购物指南</span>  
787 - </p>  
788 - <p>  
789 - <a href="http://www.yohobuy.com/help/?category_id=95" target="_blank">全球购专区</a>  
790 - </p>  
791 - <p>  
792 - <a href="http://www.yohobuy.com/help/?category_id=97" target="_blank">尺码选择</a>  
793 - </p>  
794 - <p>  
795 - <a href="http://www.yohobuy.com/help/?category_id=99" target="_blank">发票</a>  
796 - </p>  
797 - <p>  
798 - <a href="http://www.yohobuy.com/help/?category_id=101" target="_blank">商品咨询</a>  
799 - </p>  
800 - </li>  
801 - <li class="left">  
802 - <p>  
803 - <span>支付方式</span>  
804 - </p>  
805 - <p>  
806 - <a href="http://www.yohobuy.com/help/?category_id=105" target="_blank">在线支付</a>  
807 - </p>  
808 - <p>  
809 - <a href="http://www.yohobuy.com/help/?category_id=107" target="_blank">货到付款</a>  
810 - </p>  
811 - <p>  
812 - <a href="http://www.yohobuy.com/help/?category_id=109" target="_blank">优惠券</a>  
813 - </p>  
814 - <p>  
815 - <a href="http://www.yohobuy.com/help/?category_id=111" target="_blank">YOHO币支付</a>  
816 - </p>  
817 - </li>  
818 - <li class="left">  
819 - <p>  
820 - <span>配送方式</span>  
821 - </p>  
822 - <p>  
823 - <a href="http://www.yohobuy.com/help/?category_id=113" target="_blank">配送时间</a>  
824 - </p>  
825 - <p>  
826 - <a href="http://www.yohobuy.com/help/?category_id=115" target="_blank">配送范围</a>  
827 - </p>  
828 - <p>  
829 - <a href="http://www.yohobuy.com/help/?category_id=119" target="_blank">顺丰速运</a>  
830 - </p>  
831 - <p>  
832 - <a href="http://www.yohobuy.com/help/?category_id=117" target="_blank">商品验收与签收</a>  
833 - </p>  
834 - </li>  
835 - <li class="left">  
836 - <p>  
837 - <span>售后服务</span>  
838 - </p>  
839 - <p>  
840 - <a href="http://www.yohobuy.com/help/?category_id=121" target="_blank">退换货政策</a>  
841 - </p>  
842 - <p>  
843 - <a href="http://www.yohobuy.com/help/?category_id=123" target="_blank">退换货流程</a>  
844 - </p>  
845 - <p>  
846 - <a href="http://www.yohobuy.com/help/?category_id=125" target="_blank">退款方式与时效</a>  
847 - </p>  
848 - <p>  
849 - <a href="http://www.yohobuy.com/help/?category_id=127" target="_blank">投诉与建议</a>  
850 - </p>  
851 - </li>  
852 - <li class="left">  
853 - <p>  
854 - <span>APP常见问题</span>  
855 - </p>  
856 - <p>  
857 - <a href="http://www.yohobuy.com/help/?category_id=133" target="_blank">IPhone版</a>  
858 - </p>  
859 - <p>  
860 - <a href="http://www.yohobuy.com/help/?category_id=135" target="_blank">Android版</a>  
861 - </p>  
862 - <p>  
863 - <a href="http://www.yohobuy.com/help/?category_id=137" target="_blank">wap版</a>  
864 - </p>  
865 - <p>  
866 - <a href="http://www.yohobuy.com/help/?category_id=139" target="_blank">IPAD版</a>  
867 - </p>  
868 - </li>  
869 - </ul>  
870 - </div>  
871 - </div>  
872 - </div>  
873 - <div class="footer-link">  
874 - <div class="screen clearfix">  
875 - <div class="left right-flag">  
876 - <a href="https://ss.knet.cn/verifyseal.dll?sn=e14021832010046477dka7000000&amp;ct=df&amp;a=1&amp;pa=0.5902942178957805" target="_blank" rel="nofollow">  
877 - <img src="http://static.yohobuy.com/images/v3/icon/credit-flag3.png"></a>  
878 - <a href="http://www.isc.org.cn/" target="_blank" rel="nofollow">  
879 - <img src="http://static.yohobuy.com/images/v3/icon/isc2.png"></a>  
880 - </div>  
881 - <div class="left about-us">  
882 - <p>  
883 - <a href="http://www.yohobuy.com">返回首页</a>  
884 - <span>|</span>  
885 - <a href="http://www.yohobuy.com">YOHO!有货</a>  
886 - <span>|</span>  
887 - <a href="http://www.yohobuy.com/newpower.html">新力传媒</a>  
888 - <span>|</span>  
889 - <a href="http://www.yohobuy.com/contact.html">联系我们</a>  
890 - <span>|</span>  
891 - <a href="http://shop.yohobuy.com/settled">商家入驻</a>  
892 - <span>|</span>  
893 - <a href="http://www.yohobuy.com/privacy.html">隐私条款</a>  
894 - <span>|</span>  
895 - <a href="http://www.yohobuy.com/link.html">友情链接</a>  
896 - </p>  
897 - <p>  
898 - CopyRight © 2007-2016 南京新与力文化传播有限公司  
899 - <a href="http://www.miibeian.gov.cn/" target="_blank" style="color:#666">苏ICP备09011225号</a>  
900 - NewPower Co. 版权所有 经营许可证编号:苏B2-20120395  
901 - </p>  
902 - </div>  
903 -  
904 - </div>  
905 - </div>  
906 - </div>  
907 - </div>'.' <script src="http://localhost:8000/static/js/sea.js?nowrap"></script>  
908 - <script>  
909 - seajs.config({  
910 - base: \'http://localhost:8000/\'  
911 - });  
912 - </script>  
913 -'.' <script>  
914 - seajs.use(\'js/common\');  
915 - seajs.use(\'js/header\',function(header) {  
916 - if(header) {  
917 - header.init();  
918 - }  
919 - });  
920 - </script>  
921 -  
922 -'.Plugin\LCRun3::debug('if [boysHomePage]', 'ifv', $cx, Plugin\LCRun3::debug('[boysHomePage]', 'v', $cx, $in, array('boysHomePage')), $in, function($cx, $in) {return ' <script>  
923 - /*seajs.use(\'js/home/entrey\', function(h) {  
924 - h.set(\'boys\');  
925 - });*/  
926 - seajs.use(\'js/home/home\');  
927 - </script>  
928 -';}).'  
929 -'.Plugin\LCRun3::debug('if [searchListPage]', 'ifv', $cx, Plugin\LCRun3::debug('[searchListPage]', 'v', $cx, $in, array('searchListPage')), $in, function($cx, $in) {return ' <script>  
930 - seajs.use(\'js/product/list\');  
931 - </script>  
932 - ';}).''.' </body>  
933 -</html>'.'';  
934 -}  
935 -?>  
@@ -4,6 +4,47 @@ @@ -4,6 +4,47 @@
4 4
5 ### 商品 5 ### 商品
6 6
  7 +## 男首
  8 +
  9 + {
  10 + boy: [
  11 + //banner大图
  12 + bigSlide: [
  13 + {
  14 + 'href': '',
  15 + 'img': ''
  16 + },
  17 + ...
  18 + ],
  19 + //banner小图
  20 + smallSlide: [
  21 + {
  22 + 'href': '',
  23 + 'img': ''
  24 + },
  25 + ...
  26 + ],
  27 + //最新速报
  28 + newReport: {
  29 + name: '最新速报 NEW!', //楼层标题
  30 + list: [
  31 + {
  32 + 'href': '',
  33 + 'img': ''
  34 + },
  35 + ]
  36 + },
  37 + //优选品牌
  38 + preferenceBrand: {
  39 + name: '优选品牌 BRAND', //楼层标题
  40 + imgBrand: [
  41 + {
  42 +
  43 + }
  44 + ]
  45 + }
  46 + ]
  47 + }
7 48
8 ## 搜索页 49 ## 搜索页
9 50
1 {{> layout/header}} 1 {{> layout/header}}
2 <div class="home-page yoho-page"> 2 <div class="home-page yoho-page">
3 {{# boy}} 3 {{# boy}}
  4 +
  5 + {{! 头部banner}}
  6 + {{# slide}}
4 <div class="slide-container"> 7 <div class="slide-container">
5 - {{#if bigSlide}}  
6 - <div class="big-slide"> 8 + <div class="big-slide">
7 <ul> 9 <ul>
8 {{# bigSlide}} 10 {{# bigSlide}}
9 <li> 11 <li>
10 <a href="{{href}}"> 12 <a href="{{href}}">
11 - <img src="{{img}}" alt=""> 13 + <img class="lazy" data-original="{{img}}" alt="">
12 </a> 14 </a>
13 </li> 15 </li>
14 {{/ bigSlide}} 16 {{/ bigSlide}}
@@ -22,7 +24,6 @@ @@ -22,7 +24,6 @@
22 </a> 24 </a>
23 </div> 25 </div>
24 </div> 26 </div>
25 - {{/if}}  
26 27
27 {{#if smallSlide}} 28 {{#if smallSlide}}
28 <div class="small-slide"> 29 <div class="small-slide">
@@ -37,16 +38,19 @@ @@ -37,16 +38,19 @@
37 </div> 38 </div>
38 {{/if}} 39 {{/if}}
39 </div> 40 </div>
  41 + {{/ slide}}
  42 +
  43 + {{! 新品速报}}
40 {{# newReport}} 44 {{# newReport}}
41 <div class="new-report clearfix"> 45 <div class="new-report clearfix">
42 - {{> index/floor_header}} 46 + {{> index/floor-header}}
43 47
44 <ul class="report-list clearfix"> 48 <ul class="report-list clearfix">
45 {{# list}} 49 {{# list}}
46 {{#unless @last}} 50 {{#unless @last}}
47 <li> 51 <li>
48 <a href="{{href}}"> 52 <a href="{{href}}">
49 - <img src="{{img}}" alt=""> 53 + <img class="lazy" data-original="{{img}}" alt="">
50 </a> 54 </a>
51 </li> 55 </li>
52 {{/unless}} 56 {{/unless}}
@@ -57,16 +61,18 @@ @@ -57,16 +61,18 @@
57 {{#if @last}} 61 {{#if @last}}
58 <div class="last-item"> 62 <div class="last-item">
59 <a href="{{href}}"> 63 <a href="{{href}}">
60 - <img src="{{img}}" alt=""> 64 + <img class="lazy" data-original="{{img}}" alt="">
61 </a> 65 </a>
62 </div> 66 </div>
63 {{/if}} 67 {{/if}}
64 {{/ list}} 68 {{/ list}}
65 </div> 69 </div>
66 {{/ newReport}} 70 {{/ newReport}}
  71 +
  72 + {{! 优选品牌}}
67 {{# preferenceBrand}} 73 {{# preferenceBrand}}
68 <div class="preference-brand"> 74 <div class="preference-brand">
69 - {{> index/floor_header}} 75 + {{> index/floor-header}}
70 <div class="img-brand"> 76 <div class="img-brand">
71 <ul class="img-list clearfix"> 77 <ul class="img-list clearfix">
72 {{# imgBrand}} 78 {{# imgBrand}}
@@ -89,9 +95,21 @@ @@ -89,9 +95,21 @@
89 <div class="logo-brand"></div> 95 <div class="logo-brand"></div>
90 </div> 96 </div>
91 {{/ preferenceBrand}} 97 {{/ preferenceBrand}}
  98 +
  99 + {{! 单品/广告}}
  100 + {{# singlehot}}
  101 + {{> index/singlehot}}
  102 + {{/ singlehot}}
  103 +
  104 + {{! 广告}}
  105 + {{# adbanner}}
  106 + <div class="adbanner">
  107 + <a class="impo{{@index}}" href="{{url}}"><img class="lazy" data-original="{{img}}"/></a>
  108 + </div>
  109 + {{/ adbanner}}
92 110
93 {{! 品类推荐}} 111 {{! 品类推荐}}
94 - {{#each recommend}} 112 + {{# recommend}}
95 {{> index/recommend}} 113 {{> index/recommend}}
96 {{/ recommend}} 114 {{/ recommend}}
97 115
1 -{{> index/floor_header}} 1 +{{> index/floor-header}}
2 <div class="commodity"> 2 <div class="commodity">
3 3
4 <ul class="clearfix"> 4 <ul class="clearfix">
5 5
6 </ul> 6 </ul>
7 <div class="loading"> 7 <div class="loading">
8 - <p>Loading...</p> 8 + <a>Loading...</a>
9 </div> 9 </div>
10 </div> 10 </div>
1 {{# tplrecommend}} 1 {{# tplrecommend}}
2 -{{> index/floor_header}} 2 +{{> index/floor-header}}
3 <div class="tpl-recommend clearfix"> 3 <div class="tpl-recommend clearfix">
4 <div class="tpl-body clearfix"> 4 <div class="tpl-body clearfix">
5 <div class="tpl-nav"> 5 <div class="tpl-nav">
  1 +{{> index/floor_header}}
  2 +<div class="singlehot clearfix">
  3 + <ul>
  4 + {{#each imgHot}}
  5 + <li><a class="impo{{@index}}" href="{{url}}"><img class="lazy" data-original="{{img}}"/></a></li>
  6 + {{/each}}
  7 + </ul>
  8 +</div>
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 * @author: xuqi<qi.xu@yoho.cn> 3 * @author: xuqi<qi.xu@yoho.cn>
4 * @date: 2015/11/23 4 * @date: 2015/11/23
5 */ 5 */
6 -var $ = require('jquery'); 6 +var $ = require('yoho.jquery');
7 7
8 function cookie(name) { 8 function cookie(name) {
9 var cookies = document.cookie, 9 var cookies = document.cookie,
1 1
2 -var $ = require('jquery'); 2 +var $ = require('yoho.jquery');
3 3
4 4
5 function infiniteLoad(options) { 5 function infiniteLoad(options) {
@@ -69,7 +69,7 @@ infiniteLoad.prototype.init = function() { @@ -69,7 +69,7 @@ infiniteLoad.prototype.init = function() {
69 69
70 function __loadMore() { 70 function __loadMore() {
71 71
72 - if (p.isload && g.__directionCalculation()) { 72 + if (p.isrun && p.isload && g.__directionCalculation()) {
73 p.isload = false; 73 p.isload = false;
74 p.index++; 74 p.index++;
75 g.exect('after', p); 75 g.exect('after', p);
@@ -89,14 +89,21 @@ infiniteLoad.prototype.emit = function() { @@ -89,14 +89,21 @@ infiniteLoad.prototype.emit = function() {
89 p.isload = true; 89 p.isload = true;
90 }; 90 };
91 91
  92 +infiniteLoad.prototype.stop = function() {
  93 + var p = this.options;
  94 +
  95 + p.isrun = false;
  96 + p.isload = false;
  97 +};
  98 +
92 infiniteLoad.prototype.__directionCalculation = function() { 99 infiniteLoad.prototype.__directionCalculation = function() {
93 var p = this.options; 100 var p = this.options;
94 101
95 - if (p.offset.height() > 0 && $(window).scrollTop() + $(window).height() >= p.offset.height()) { 102 + if (p.offset.height && p.offset.height() > 0 && $(window).scrollTop() + $(window).height() >= p.offset.height()) {
96 return true; 103 return true;
97 } 104 }
98 105
99 - if (p.offset.width() > 0 && $(window).scrollLeft() + $(window).width() >= p.offset.width()) { 106 + if (p.offset.width && p.offset.width() > 0 && $(window).scrollLeft() + $(window).width() >= p.offset.width()) {
100 return true; 107 return true;
101 } 108 }
102 return false; 109 return false;
1 -var $ = require('jquery'); 1 +var $ = require('yoho.jquery'),
  2 + lazyLoad = require('yoho.lazyload');
2 3
3 (function($) { 4 (function($) {
4 var LinkageSlider = function(element, options) { 5 var LinkageSlider = function(element, options) {
@@ -64,6 +65,11 @@ var $ = require('jquery'); @@ -64,6 +65,11 @@ var $ = require('jquery');
64 this._slideShow(); 65 this._slideShow();
65 }, 66 },
66 _slideShow: function() { 67 _slideShow: function() {
  68 + var $img = this.bigItem.eq(this.index).find('img.lazy');
  69 +
  70 + if ($img.attr('src') !== $img.data('original')) {
  71 + lazyLoad($img.trigger('appear'));
  72 + }
67 this.smallItem.eq(this.index).addClass('focus').siblings().removeClass('focus'); 73 this.smallItem.eq(this.index).addClass('focus').siblings().removeClass('focus');
68 this.bigItem.eq(this.index).fadeIn().siblings().fadeOut(); 74 this.bigItem.eq(this.index).fadeIn().siblings().fadeOut();
69 }, 75 },
1 -var $ = require('jquery'); 1 +var $ = require('yoho.jquery');
2 2
3 //var Lazyload = require('yoho.lazyload'); 3 //var Lazyload = require('yoho.lazyload');
4 var Handlebars = require('yoho.handlebars'); 4 var Handlebars = require('yoho.handlebars');
5 -var InfiniteLoad = require('../common/infiniteLoad'); 5 +var InfiniteLoad = require('../common/infinite-load');
6 6
7 (function($) { 7 (function($) {
8 var $container = $('div.commodity ul'); 8 var $container = $('div.commodity ul');
9 - var $load = $('.loading'); 9 + var $load = $('.loading a');
10 var load = new InfiniteLoad({ 10 var load = new InfiniteLoad({
11 offset: { 11 offset: {
12 height: function() { 12 height: function() {
@@ -40,7 +40,8 @@ var InfiniteLoad = require('../common/infiniteLoad'); @@ -40,7 +40,8 @@ var InfiniteLoad = require('../common/infiniteLoad');
40 load.emit(); 40 load.emit();
41 } else { 41 } else {
42 42
43 - $load.html('END'); 43 + load.stop();
  44 + $load.html('查看更多');
44 } 45 }
45 }, 46 },
46 error: function() { 47 error: function() {
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 * @author: wangqing(robin.wang@yoho.cn) 3 * @author: wangqing(robin.wang@yoho.cn)
4 * @date: 205/7/2 4 * @date: 205/7/2
5 */ 5 */
6 -var $ = require('jquery'); 6 +var $ = require('yoho.jquery');
7 7
8 (function($) { 8 (function($) {
9 $.fn.slider2 = function(options) { 9 $.fn.slider2 = function(options) {
@@ -69,6 +69,7 @@ var $ = require('jquery'); @@ -69,6 +69,7 @@ var $ = require('jquery');
69 _obj = null; 69 _obj = null;
70 70
71 e.preventDefault(); 71 e.preventDefault();
  72 +
72 changePic(3, _width, function() { 73 changePic(3, _width, function() {
73 for (i = 0; i < 3; i++) { 74 for (i = 0; i < 3; i++) {
74 _obj = bannerarr.shift(); 75 _obj = bannerarr.shift();
@@ -83,7 +84,6 @@ var $ = require('jquery'); @@ -83,7 +84,6 @@ var $ = require('jquery');
83 'margin-left': '0' 84 'margin-left': '0'
84 }); 85 });
85 }); 86 });
86 -  
87 }); 87 });
88 $(this).find('.prev').on('click', function(e) { 88 $(this).find('.prev').on('click', function(e) {
89 var i = 0, 89 var i = 0,
@@ -4,10 +4,12 @@ @@ -4,10 +4,12 @@
4 * @date: 2015/12/01 4 * @date: 2015/12/01
5 */ 5 */
6 6
7 -var $ = require('jquery'); 7 +
  8 +var $ = require('yoho.jquery');
8 var $yohocookie = require('../plugin/yohocookie'); 9 var $yohocookie = require('../plugin/yohocookie');
9 var $yohocart = require('../plugin/yohocart'); 10 var $yohocart = require('../plugin/yohocart');
10 var yohodoT = require('../plugin/yohodoT'); 11 var yohodoT = require('../plugin/yohodoT');
  12 +
11 var noticeSuccess = false; 13 var noticeSuccess = false;
12 /** 14 /**
13 * 获取头部banner的回调函数 15 * 获取头部banner的回调函数
@@ -4,14 +4,15 @@ @@ -4,14 +4,15 @@
4 * @date: 2015/11/23 4 * @date: 2015/11/23
5 */ 5 */
6 6
7 -var $ = require('jquery'),  
8 - Handlebars = require('yoho.handlebars'); 7 +var $ = require('yoho.jquery'),
  8 + Handlebars = require('yoho.handlebars'),
  9 + lazyLoad = require('yoho.lazyload');
9 10
10 require('../common/linkage-slider'); 11 require('../common/linkage-slider');
11 require('../common/slider2'); 12 require('../common/slider2');
12 -require('../common/newArrivls');  
13 - 13 +require('../common/new-arrivls');
14 14
  15 +lazyLoad($('img.lazy'));
15 $('.slide-container').linkageSlider(); 16 $('.slide-container').linkageSlider();
16 $('.img-brand').slider2(); 17 $('.img-brand').slider2();
17 18
@@ -24,6 +25,16 @@ $.ajax({ @@ -24,6 +25,16 @@ $.ajax({
24 var brandTpl, 25 var brandTpl,
25 brandHtml; 26 brandHtml;
26 27
  28 + function brandShow(hidePage, showPage) {
  29 + lazyLoad($('li[data-page=' + showPage + ']').find('img.lazy').trigger('appear'));
  30 + $('.logo-brand').find('li[data-page=' + hidePage + ']').find('img').fadeOut('normal', function() {
  31 + $('.logo-brand').find('li').hide();
  32 +
  33 + $('.logo-brand').find('li[data-page=' + showPage + ']').show().find('img').fadeIn();
  34 + });
  35 +
  36 + }
  37 +
27 Handlebars.registerHelper('brandList', function(items, options) { 38 Handlebars.registerHelper('brandList', function(items, options) {
28 var out = '<ul>', 39 var out = '<ul>',
29 i = 0, 40 i = 0,
@@ -55,10 +66,11 @@ $.ajax({ @@ -55,10 +66,11 @@ $.ajax({
55 66
56 }); 67 });
57 brandHtml = '\{{#brandList logoBrand}}' + 68 brandHtml = '\{{#brandList logoBrand}}' +
58 - '<a href="\{{href}}"><img src="\{{img}}" alt=""></a>' + 69 + '<a href="\{{href}}"><img class="lazy" data-original="\{{img}}" alt=""></a>' +
59 '\{{/brandList}}'; 70 '\{{/brandList}}';
60 brandTpl = Handlebars.compile(brandHtml); 71 brandTpl = Handlebars.compile(brandHtml);
61 $('.logo-brand').html(brandTpl(data)); 72 $('.logo-brand').html(brandTpl(data));
  73 + lazyLoad($('.logo-brand').find('img.lazy'));
62 74
63 //品牌翻页 75 //品牌翻页
64 $('.logo-brand').on('click', '.next', function() { 76 $('.logo-brand').on('click', '.next', function() {
@@ -71,10 +83,7 @@ $.ajax({ @@ -71,10 +83,7 @@ $.ajax({
71 } else { 83 } else {
72 nextPage = page + 1; 84 nextPage = page + 1;
73 } 85 }
74 - $('.logo-brand').find('li[data-page=' + page + ']').find('img').fadeOut('normal', function() {  
75 - $('.logo-brand').find('li').hide();  
76 - $('.logo-brand').find('li[data-page=' + nextPage + ']').show().find('img').fadeIn();  
77 - }); 86 + brandShow(page, nextPage);
78 }); 87 });
79 88
80 $('.logo-brand').on('click', '.prev', function() { 89 $('.logo-brand').on('click', '.prev', function() {
@@ -87,10 +96,7 @@ $.ajax({ @@ -87,10 +96,7 @@ $.ajax({
87 } else { 96 } else {
88 prevPage = page - 1; 97 prevPage = page - 1;
89 } 98 }
90 - $('.logo-brand').find('li[data-page=' + page + ']').find('img').fadeOut('normal', function() {  
91 - $('.logo-brand').find('li').hide();  
92 - $('.logo-brand').find('li[data-page=' + prevPage + ']').show().find('img').fadeIn();  
93 - }); 99 + brandShow(page, prevPage);
94 }); 100 });
95 } 101 }
96 }); 102 });
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 * @date: 2015/11/23 4 * @date: 2015/11/23
5 */ 5 */
6 6
7 -var $ = require('jquery'); 7 +var $ = require('yoho.jquery');
8 8
9 var checkUnicode = { 9 var checkUnicode = {
10 unchecked: '&#xe613;', 10 unchecked: '&#xe613;',
@@ -13,9 +13,9 @@ @@ -13,9 +13,9 @@
13 "spm": { 13 "spm": {
14 "main": "index.js", 14 "main": "index.js",
15 "dependencies": { 15 "dependencies": {
16 - "jquery": "1.8.3",  
17 "yoho.lazyload": "1.0.0", 16 "yoho.lazyload": "1.0.0",
18 - "yoho.handlebars": "3.0.3" 17 + "yoho.handlebars": "3.0.3",
  18 + "yoho.jquery": "1.8.3"
19 }, 19 },
20 "devDependencies": { 20 "devDependencies": {
21 "expect.js": "0.3.1" 21 "expect.js": "0.3.1"
@@ -118,6 +118,8 @@ @@ -118,6 +118,8 @@
118 .new-report { 118 .new-report {
119 img { 119 img {
120 display: block; 120 display: block;
  121 + width: 100%;
  122 + height: 100%;
121 } 123 }
122 .report-list { 124 .report-list {
123 float: left; 125 float: left;
@@ -133,6 +135,7 @@ @@ -133,6 +135,7 @@
133 width: 282px; 135 width: 282px;
134 height: 504px; 136 height: 504px;
135 } 137 }
  138 +
136 } 139 }
137 } 140 }
138 141
@@ -339,6 +342,7 @@ @@ -339,6 +342,7 @@
339 342
340 .commodity{ 343 .commodity{
341 margin-left: -10px; 344 margin-left: -10px;
  345 + margin-bottom:80px;
342 position: relative; 346 position: relative;
343 li{ 347 li{
344 float: left; 348 float: left;
@@ -380,11 +384,40 @@ @@ -380,11 +384,40 @@
380 position: absolute; 384 position: absolute;
381 bottom: 0; 385 bottom: 0;
382 width: 100%; 386 width: 100%;
383 - p{  
384 - text-align: center;  
385 - font-size: 20px; 387 + text-align: center;
  388 + font-size: 20px;
  389 + }
  390 + }
  391 +
  392 + .singlehot{
  393 + margin-left:-8px;
  394 + li{
  395 + float: left;
  396 + margin-left:8px;
  397 + margin-bottom:8px;
  398 + }
  399 + a{
  400 + display: block;
  401 + background-color: #f8f8f8;
  402 + img{
  403 + display: block;
  404 + width: 185px;
  405 + height: 284px;
386 } 406 }
387 } 407 }
  408 + .impo1 img,.impo9 img{
  409 + width: 378px;
  410 + }
  411 + }
  412 + .adbanner{
  413 + width: 100%;
  414 + height: 150px;
  415 + margin-top:12px;
  416 + img{
  417 + display: block;
  418 + width: 1150px;
  419 + height: 150px;
  420 + }
388 } 421 }
389 422
390 .floor-header { 423 .floor-header {
@@ -263,125 +263,236 @@ class BoysController extends AbstractAction @@ -263,125 +263,236 @@ class BoysController extends AbstractAction
263 $data = array( 263 $data = array(
264 'headerdata' => $headerdata, 264 'headerdata' => $headerdata,
265 'boysHomePage' => true, 265 'boysHomePage' => true,
266 - 'boy' => array(  
267 - 'bigSlide' => array(  
268 - array(  
269 - 'href' => '/?gender=1,3',  
270 - 'img' => 'http://img10.static.yhbimg.com/taobaocms/2015/11/26/12/01c3b99f554ad50d9e5a9900719715c94c.jpg'  
271 - ),  
272 - array(  
273 - 'href' => '/?gender=1,3',  
274 - 'img' => 'http://img12.static.yhbimg.com/taobaocms/2015/11/27/09/02a4f1c10e1e81574520e5c0239741a076.jpg' 266 + 'boy' => array(
  267 + array(
  268 + 'slide' => array(
  269 + 'bigSlide' => array(
  270 + array(
  271 + 'href' => '/?gender=1,3',
  272 + 'img' => 'http://img10.static.yhbimg.com/taobaocms/2015/11/26/12/01c3b99f554ad50d9e5a9900719715c94c.jpg'
  273 + ),
  274 + array(
  275 + 'href' => '/?gender=1,3',
  276 + 'img' => 'http://img12.static.yhbimg.com/taobaocms/2015/11/27/09/02a4f1c10e1e81574520e5c0239741a076.jpg'
  277 + ),
  278 + array(
  279 + 'href' => '/?gender=1,3',
  280 + 'img' => 'http://img10.static.yhbimg.com/taobaocms/2015/11/26/12/01c3b99f554ad50d9e5a9900719715c94c.jpg'
  281 + ),
  282 + array(
  283 + 'href' => '/?gender=1,3',
  284 + 'img' => 'http://img12.static.yhbimg.com/taobaocms/2015/11/27/09/02a4f1c10e1e81574520e5c0239741a076.jpg'
  285 + ),
  286 + array(
  287 + 'href' => '/?gender=1,3',
  288 + 'img' => 'http://img10.static.yhbimg.com/taobaocms/2015/11/26/12/01c3b99f554ad50d9e5a9900719715c94c.jpg'
  289 + ),
  290 + array(
  291 + 'href' => '/?gender=1,3',
  292 + 'img' => 'http://img12.static.yhbimg.com/taobaocms/2015/11/27/09/02a4f1c10e1e81574520e5c0239741a076.jpg'
  293 + ),
  294 + array(
  295 + 'href' => '/?gender=1,3',
  296 + 'img' => 'http://img10.static.yhbimg.com/taobaocms/2015/11/26/12/01c3b99f554ad50d9e5a9900719715c94c.jpg'
  297 + ),
  298 + array(
  299 + 'href' => '/?gender=1,3',
  300 + 'img' => 'http://img12.static.yhbimg.com/taobaocms/2015/11/27/09/02a4f1c10e1e81574520e5c0239741a076.jpg'
  301 + )
  302 + ),
  303 + 'smallSlide' => array(
  304 + array(
  305 + 'href' => 'http://sale.yohobuy.com/?specialsale_id=13&gender=1,3',
  306 + 'img' => 'http://img13.static.yhbimg.com/taobaocms/2015/11/26/12/024a810cfa89d67569c6c3bacedba8869a.jpg?imageMogr2/thumbnail/138x54/extent/138x54/background/d2hpdGU=/position/center/quality/90'
  307 + ),
  308 + array(
  309 + 'href' => 'http://sale.yohobuy.com/?specialsale_id=13&gender=1,3',
  310 + 'img' => 'http://img10.static.yhbimg.com/taobaocms/2015/11/27/09/015b6a29ee526edeaacd13f4a7c81475f0.jpg?imageMogr2/thumbnail/138x54/extent/138x54/background/d2hpdGU=/position/center/quality/90'
  311 + ),
  312 + array(
  313 + 'href' => 'http://sale.yohobuy.com/?specialsale_id=13&gender=1,3',
  314 + 'img' => 'http://img13.static.yhbimg.com/taobaocms/2015/11/26/12/024a810cfa89d67569c6c3bacedba8869a.jpg?imageMogr2/thumbnail/138x54/extent/138x54/background/d2hpdGU=/position/center/quality/90'
  315 + ),
  316 + array(
  317 + 'href' => 'http://sale.yohobuy.com/?specialsale_id=13&gender=1,3',
  318 + 'img' => 'http://img10.static.yhbimg.com/taobaocms/2015/11/27/09/015b6a29ee526edeaacd13f4a7c81475f0.jpg?imageMogr2/thumbnail/138x54/extent/138x54/background/d2hpdGU=/position/center/quality/90'
  319 + ),
  320 + array(
  321 + 'href' => 'http://sale.yohobuy.com/?specialsale_id=13&gender=1,3',
  322 + 'img' => 'http://img13.static.yhbimg.com/taobaocms/2015/11/26/12/024a810cfa89d67569c6c3bacedba8869a.jpg?imageMogr2/thumbnail/138x54/extent/138x54/background/d2hpdGU=/position/center/quality/90'
  323 + ),
  324 + array(
  325 + 'href' => 'http://sale.yohobuy.com/?specialsale_id=13&gender=1,3',
  326 + 'img' => 'http://img10.static.yhbimg.com/taobaocms/2015/11/27/09/015b6a29ee526edeaacd13f4a7c81475f0.jpg?imageMogr2/thumbnail/138x54/extent/138x54/background/d2hpdGU=/position/center/quality/90'
  327 + ),
  328 + array(
  329 + 'href' => 'http://sale.yohobuy.com/?specialsale_id=13&gender=1,3',
  330 + 'img' => 'http://img13.static.yhbimg.com/taobaocms/2015/11/26/12/024a810cfa89d67569c6c3bacedba8869a.jpg?imageMogr2/thumbnail/138x54/extent/138x54/background/d2hpdGU=/position/center/quality/90'
  331 + ),
  332 + array(
  333 + 'href' => 'http://sale.yohobuy.com/?specialsale_id=13&gender=1,3',
  334 + 'img' => 'http://img10.static.yhbimg.com/taobaocms/2015/11/27/09/015b6a29ee526edeaacd13f4a7c81475f0.jpg?imageMogr2/thumbnail/138x54/extent/138x54/background/d2hpdGU=/position/center/quality/90'
  335 + )
  336 + )
275 ) 337 )
276 ), 338 ),
277 - 'smallSlide' => array(  
278 - array(  
279 - 'href' => 'http://sale.yohobuy.com/?specialsale_id=13&gender=1,3',  
280 - 'img' => 'http://img13.static.yhbimg.com/taobaocms/2015/11/26/12/024a810cfa89d67569c6c3bacedba8869a.jpg?imageMogr2/thumbnail/138x54/extent/138x54/background/d2hpdGU=/position/center/quality/90'  
281 - ),  
282 - array(  
283 - 'href' => 'http://sale.yohobuy.com/?specialsale_id=13&gender=1,3',  
284 - 'img' => 'http://img10.static.yhbimg.com/taobaocms/2015/11/27/09/015b6a29ee526edeaacd13f4a7c81475f0.jpg?imageMogr2/thumbnail/138x54/extent/138x54/background/d2hpdGU=/position/center/quality/90' 339 + array(
  340 + 'newReport' => array(
  341 + 'name' => '最新速报 NEW!',
  342 + 'list' => array(
  343 + array(
  344 + 'href' => '',
  345 + 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/27/03/0140fd98fd1c15c206d198d458e1c8e96f.jpg?imageView/1/w/377/h/504'
  346 + ),
  347 + array(
  348 + 'href' => '',
  349 + 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248'
  350 + ),
  351 + array(
  352 + 'href' => '',
  353 + 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248'
  354 + ),
  355 + array(
  356 + 'href' => '',
  357 + 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248'
  358 + ),
  359 + array(
  360 + 'href' => '',
  361 + 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248'
  362 + ),
  363 + array(
  364 + 'href' => '',
  365 + 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248'
  366 + ),
  367 + array(
  368 + 'href' => '',
  369 + 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248'
  370 + ),
  371 + array(
  372 + 'href' => '',
  373 + 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/27/03/0140fd98fd1c15c206d198d458e1c8e96f.jpg?imageView/1/w/377/h/504'
  374 + )
  375 + )
285 ) 376 )
286 ), 377 ),
287 - 'newReport' => array(  
288 - 'name' => '最新速报 NEW!',  
289 - 'list' => array(  
290 - array(  
291 - 'href' => '',  
292 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/27/03/0140fd98fd1c15c206d198d458e1c8e96f.jpg?imageView/1/w/377/h/504'  
293 - ),  
294 - array(  
295 - 'href' => '',  
296 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248'  
297 - ),  
298 - array(  
299 - 'href' => '',  
300 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248'  
301 - ),  
302 - array(  
303 - 'href' => '',  
304 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248'  
305 - ),  
306 - array(  
307 - 'href' => '',  
308 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248'  
309 - ),  
310 - array(  
311 - 'href' => '',  
312 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248'  
313 - ),  
314 - array(  
315 - 'href' => '',  
316 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248'  
317 - ),  
318 - array(  
319 - 'href' => '',  
320 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/27/03/0140fd98fd1c15c206d198d458e1c8e96f.jpg?imageView/1/w/377/h/504' 378 + array(
  379 + 'preferenceBrand' => array(
  380 + 'name' => '优选品牌 BRAND',
  381 + 'imgBrand' => array(
  382 + array(
  383 + 'href' => '',
  384 + 'img' => 'http://img11.static.yhbimg.com/taobaocms/2015/11/30/01/01ebe6968476da9e79ddddfd28f60496c7.jpg'
  385 + ),
  386 + array(
  387 + 'href' => '',
  388 + 'img' => 'http://img11.static.yhbimg.com/taobaocms/2015/11/30/01/01ebe6968476da9e79ddddfd28f60496c7.jpg'
  389 + ),
  390 + array(
  391 + 'href' => '',
  392 + 'img' => 'http://img11.static.yhbimg.com/taobaocms/2015/11/30/01/01ebe6968476da9e79ddddfd28f60496c7.jpg'
  393 + ),
  394 + array(
  395 + 'href' => '',
  396 + 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/06/0124c4e16548b0d7aff4f0fa4ad7b13481.jpg?imageView/1/w/1150/h/450'
  397 + ),
  398 + array(
  399 + 'href' => '',
  400 + 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/06/0124c4e16548b0d7aff4f0fa4ad7b13481.jpg?imageView/1/w/1150/h/450'
  401 + ),
  402 + array(
  403 + 'href' => '',
  404 + 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/06/0124c4e16548b0d7aff4f0fa4ad7b13481.jpg?imageView/1/w/1150/h/450'
  405 + ),
  406 + array(
  407 + 'href' => '',
  408 + 'img' => 'http://img10.static.yhbimg.com/goodsimg/2015/01/30/05/01524c049077911258735906dafd6a4b45.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90'
  409 + ),
  410 + array(
  411 + 'href' => '',
  412 + 'img' => 'http://img10.static.yhbimg.com/goodsimg/2015/01/30/05/01524c049077911258735906dafd6a4b45.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90'
  413 + ),
  414 + array(
  415 + 'href' => '',
  416 + 'img' => 'http://img10.static.yhbimg.com/goodsimg/2015/01/30/05/01524c049077911258735906dafd6a4b45.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90'
  417 + )
321 ) 418 )
322 ) 419 )
323 ), 420 ),
324 - 'preferenceBrand' => array(  
325 - 'name' => '优选品牌 BRAND',  
326 - 'imgBrand' => array(  
327 - array(  
328 - 'href' => '',  
329 - 'img' => 'http://img11.static.yhbimg.com/taobaocms/2015/11/30/01/01ebe6968476da9e79ddddfd28f60496c7.jpg'  
330 - ),  
331 - array(  
332 - 'href' => '',  
333 - 'img' => 'http://img11.static.yhbimg.com/taobaocms/2015/11/30/01/01ebe6968476da9e79ddddfd28f60496c7.jpg'  
334 - ),  
335 - array(  
336 - 'href' => '',  
337 - 'img' => 'http://img11.static.yhbimg.com/taobaocms/2015/11/30/01/01ebe6968476da9e79ddddfd28f60496c7.jpg'  
338 - ),  
339 - array(  
340 - 'href' => '',  
341 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/06/0124c4e16548b0d7aff4f0fa4ad7b13481.jpg?imageView/1/w/1150/h/450'  
342 - ),  
343 - array(  
344 - 'href' => '',  
345 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/06/0124c4e16548b0d7aff4f0fa4ad7b13481.jpg?imageView/1/w/1150/h/450'  
346 - ),  
347 - array(  
348 - 'href' => '',  
349 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/06/0124c4e16548b0d7aff4f0fa4ad7b13481.jpg?imageView/1/w/1150/h/450'  
350 - ),  
351 - array(  
352 - 'href' => '',  
353 - 'img' => 'http://img10.static.yhbimg.com/goodsimg/2015/01/30/05/01524c049077911258735906dafd6a4b45.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90'  
354 - ),  
355 - array(  
356 - 'href' => '',  
357 - 'img' => 'http://img10.static.yhbimg.com/goodsimg/2015/01/30/05/01524c049077911258735906dafd6a4b45.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90'  
358 - ),  
359 - array(  
360 - 'href' => '',  
361 - 'img' => 'http://img10.static.yhbimg.com/goodsimg/2015/01/30/05/01524c049077911258735906dafd6a4b45.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90' 421 + array(
  422 + 'singlehot'=>array(
  423 + 'name' => '单品 HOT',
  424 + 'imgHot' => array(
  425 + array(
  426 + 'href' => '',
  427 + 'img' => 'http://img10.static.yhbimg.com/goodsimg/2015/01/30/05/01524c049077911258735906dafd6a4b45.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90'
  428 + ),
  429 + array(
  430 + 'href' => '',
  431 + 'img' => 'http://img10.static.yhbimg.com/goodsimg/2015/01/30/05/01524c049077911258735906dafd6a4b45.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90'
  432 + ),
  433 + array(
  434 + 'href' => '',
  435 + 'img' => 'http://img10.static.yhbimg.com/goodsimg/2015/01/30/05/01524c049077911258735906dafd6a4b45.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90'
  436 + ),
  437 + array(
  438 + 'href' => '',
  439 + 'img' => 'http://img10.static.yhbimg.com/goodsimg/2015/01/30/05/01524c049077911258735906dafd6a4b45.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90'
  440 + ),
  441 + array(
  442 + 'href' => '',
  443 + 'img' => 'http://img10.static.yhbimg.com/goodsimg/2015/01/30/05/01524c049077911258735906dafd6a4b45.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90'
  444 + ),
  445 + array(
  446 + 'href' => '',
  447 + 'img' => 'http://img10.static.yhbimg.com/goodsimg/2015/01/30/05/01524c049077911258735906dafd6a4b45.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90'
  448 + ),
  449 + array(
  450 + 'href' => '',
  451 + 'img' => 'http://img10.static.yhbimg.com/goodsimg/2015/01/30/05/01524c049077911258735906dafd6a4b45.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90'
  452 + ),
  453 + array(
  454 + 'href' => '',
  455 + 'img' => 'http://img10.static.yhbimg.com/goodsimg/2015/01/30/05/01524c049077911258735906dafd6a4b45.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90'
  456 + ),
  457 + array(
  458 + 'href' => '',
  459 + 'img' => 'http://img10.static.yhbimg.com/goodsimg/2015/01/30/05/01524c049077911258735906dafd6a4b45.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90'
  460 + ),
  461 + array(
  462 + 'href' => '',
  463 + 'img' => 'http://img10.static.yhbimg.com/goodsimg/2015/01/30/05/01524c049077911258735906dafd6a4b45.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90'
  464 + )
362 ) 465 )
363 ) 466 )
364 ), 467 ),
365 - 'recommend'=>array($tpldata,$tpldata,$tpldata),  
366 - 'newArrivls' => array(  
367 - 'name' => '最新上架 NEW ARRIVALS',  
368 - 'navs' => array(  
369 - array(  
370 - 'id' => '',  
371 - 'href' => '',  
372 - 'name' => 'MORE' 468 + array('adbanner'=>array('href' => '','img'=>'' )),
  469 + array(
  470 + 'recommend'=>$tpldata
  471 + ),
  472 + array(
  473 + 'recommend'=>$tpldata
  474 + ),
  475 + array(
  476 + 'newArrivls' => array(
  477 + 'name' => '最新上架 NEW ARRIVALS',
  478 + 'navs' => array(
  479 + array(
  480 + 'id' => '',
  481 + 'href' => '',
  482 + 'name' => 'MORE'
  483 + )
373 ) 484 )
374 ) 485 )
375 ) 486 )
376 ) 487 )
377 - ); 488 + );
378 $this->_view->display('index', $data); 489 $this->_view->display('index', $data);
379 } 490 }
380 /** 491 /**
381 * 男装首页 新品上架 接口数据 492 * 男装首页 新品上架 接口数据
382 * 493 *
383 - * @param int $pageIndex 当前页数  
384 - * @param int $pageCount 一页显示个数 494 + * @param int pageIndex 当前页数
  495 + * @param int pageCount 一页显示个数
385 * @param string flag 类型(男装/女装等,用于区分) 496 * @param string flag 类型(男装/女装等,用于区分)
386 * @return json 497 * @return json
387 */ 498 */
@@ -394,6 +505,10 @@ class BoysController extends AbstractAction @@ -394,6 +505,10 @@ class BoysController extends AbstractAction
394 if (!$this->isAjax()) { 505 if (!$this->isAjax()) {
395 break; 506 break;
396 } 507 }
  508 + $pageIndex = $this->post('pageIndex');
  509 + if($pageIndex>=3){
  510 + break;
  511 + }
397 512
398 $result=array( 513 $result=array(
399 'code'=>200, 514 'code'=>200,