Authored by unknown

Merge branch 'feature/web' of http://git.dev.yoho.cn/web/yohobuy into feature/web

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 - '.'<div class="header-page yoho-page">  
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>'.''.'<div class="home-page yoho-page">  
401 - I am boys page  
402 -</div>  
403 -'.''.' <div class="footer-page yoho-page">  
404 - <div class="footertop">  
405 - <div class="index-foot">  
406 - <dl class="clearfix screen">  
407 - <dd>  
408 - <div class="foot-panel">  
409 - <div class="title relative">  
410 - <div class="title-line"></div>  
411 - <div class="text">  
412 - <span>有货SERVICES</span>  
413 - </div>  
414 - </div>  
415 - <div id="foot-services">  
416 - <ul class="clearfix two-dim">  
417 - <li class="left">  
418 - <div class="">  
419 - <a href="javascript:void(0);">  
420 - <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>  
421 - <p>YOHO!有货</p>  
422 - </div>  
423 - </li>  
424 - <li class="left">  
425 - <div class="">  
426 - <a href="javascript:void(0);">  
427 - <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>  
428 - <p>微信</p>  
429 - </div>  
430 - </li>  
431 - <li class="left">  
432 - <div class="">  
433 - <a href="javascript:void(0);">  
434 - <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>  
435 - <p>微博</p>  
436 - </div>  
437 - </li>  
438 - </ul>  
439 - </div>  
440 - </div>  
441 - <p class="item-nav center" id="button-services">  
442 - <a href="javascript:void(0);" key="0">  
443 - <span class="ifont10 cur">O</span>  
444 - </a>  
445 - </p>  
446 - </dd>  
447 - <dd>  
448 - <div class="foot-panel" id="feedbackBoxList">  
449 - <div class="title relative">  
450 - <div class="title-line"></div>  
451 - <div class="text">  
452 - <span>意见反馈</span>  
453 - </div>  
454 - </div>  
455 - <ul class="clearfix vote">  
456 - <li style="display:block" key="0">  
457 - <form action="#" id="feedbackForm">  
458 - <input type="hidden" name="question_id" id="question_id" value="38">  
459 - <input type="hidden" name="feedback_id" id="feedback_id" value="5">  
460 - <div>您喜欢有货的新版吗?</div>  
461 - <div class="vote-item clearfix">  
462 - <p>  
463 - <input type="radio" name="solution" value="33">非常喜欢</p>  
464 - <p>  
465 - <input type="radio" name="solution" value="34">喜欢</p>  
466 - <p>  
467 - <input type="radio" name="solution" value="35">一般般</p>  
468 - <p>  
469 - <input type="radio" name="solution" value="36">不喜欢</p>  
470 - <p>  
471 - <input type="radio" name="solution" value="37">非常不喜欢</p>  
472 - </div>  
473 - <div>  
474 - <a href="javascript:void(0);" id="feedbackBtn" class="button">提交</a>  
475 - </div>  
476 - </form>  
477 - </li>  
478 - <li style="display:none" key="1">  
479 - <form action="#" id="feedbackForm">  
480 - <input type="hidden" name="question_id" id="question_id" value="39">  
481 - <input type="hidden" name="feedback_id" id="feedback_id" value="5">  
482 - <div>您可以方便的找到想查看的内容吗?</div>  
483 - <div class="vote-item clearfix">  
484 - <p>  
485 - <input type="radio" name="solution" value="38">非常方便</p>  
486 - <p>  
487 - <input type="radio" name="solution" value="39">方便</p>  
488 - <p>  
489 - <input type="radio" name="solution" value="40">一般般</p>  
490 - <p>  
491 - <input type="radio" name="solution" value="41">不方便</p>  
492 - <p>  
493 - <input type="radio" name="solution" value="42">非常不方便</p>  
494 - </div>  
495 - <div>  
496 - <a href="javascript:void(0);" id="feedbackBtn" class="button">提交</a>  
497 - </div>  
498 - </form>  
499 - </li>  
500 - <li style="display:none" key="2">  
501 - <form action="#" id="feedbackForm">  
502 - <input type="hidden" name="question_id" id="question_id" value="37">  
503 - <input type="hidden" name="feedback_id" id="feedback_id" value="5">  
504 - <div>您对新版还有哪些意见或建议?</div>  
505 - <textarea name="answer" id="feedback_answer"></textarea>  
506 - <div>  
507 - <a href="javascript:void(0);" id="feedbackBtn" class="button">提交</a>  
508 - </div>  
509 - </form>  
510 - </li>  
511 - </ul>  
512 - </div>  
513 - <p class="item-nav center" id="feedbackPage">  
514 - <a href="javascript:void(0);">  
515 - <span class="ifont10 cur">O</span>  
516 - </a>  
517 - <a href="javascript:void(0);">  
518 - <span class="ifont10 ">o</span>  
519 - </a>  
520 - <a href="javascript:void(0);">  
521 - <span class="ifont10 ">o</span>  
522 - </a>  
523 - </p>  
524 - </dd>  
525 - <dd class="last">  
526 - <div class="foot-panel">  
527 - <div class="title relative">  
528 - <div class="title-line"></div>  
529 - <div class="text">  
530 - <span>更多 YOHO!产品</span>  
531 - </div>  
532 - </div>  
533 - <div id="foot-mobile">  
534 - <ul class="clearfix mobile">  
535 - <li>  
536 - <a href="http://app.yohoshow.com/" target="_blank" titl="">  
537 - <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>  
538 - </li>  
539 - <li>  
540 - <a href="http://www.yohoboys.com/" target="_blank" titl="">  
541 - <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>  
542 - </li>  
543 - <li>  
544 - <a href="http://www.yohogirls.com/" target="_blank" titl="">  
545 - <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>  
546 - </li>  
547 - </ul>  
548 - </div>  
549 - </div>  
550 - <p class="item-nav center" id="button-mobile">  
551 - <a href="javascript:void(0);">  
552 - <span class="ifont10 cur">O</span>  
553 - </a>  
554 - </p>  
555 - </dd>  
556 - </dl>  
557 - </div>  
558 - </div>  
559 - <div class="footerbottom">  
560 - <div class="promise">  
561 - <div class="screen clearfix">  
562 - <div class="left">  
563 - <span class="ifont rgbf">g</span>  
564 - <span class="red">100%</span>  
565 - <span class="rgbf">品牌授权正品</span>  
566 - </div>  
567 - <div class="left">  
568 - <span class="ifont rgbf">L</span>  
569 - <span class="red">7天</span>  
570 - <span class="rgbf">无理由退换货</span>  
571 - </div>  
572 - <div class="left">  
573 - <span class="ifont rgbf">p</span>  
574 - <span class="rgbf">客服电话:</span>  
575 - <span class="red">400-889-9646</span>  
576 - &nbsp;&nbsp;  
577 - <span class="rgb9">08:00-22:30(周一至周日)</span>  
578 - &nbsp;&nbsp;  
579 - <span>  
580 - <a href="http://chat80.live800.com/live800/chatClient/chatbox.jsp?companyID=493979&amp;configID=123576&amp;jid=9277320930" target="_blank" style="color:red">在线客服</a>  
581 - </span>  
582 - </div>  
583 - <div class="right subscribe footer-right">  
584 - <input class="rgb6 top" name="subscriberBox" id="subscriberBox" value="订阅我们的邮件">  
585 - <a href="javascript:void(0);" id="subscriberBtn" class="ifont rgbf">m</a>  
586 - <!--<input class="rgb6 top wrong" value="订阅我们的邮件" />  
587 - <a href="" class="ifont rgbf done">=</a>  
588 - -->  
589 - </div>  
590 - </div>  
591 - </div>  
592 - <div class="footer-help">  
593 - <div class="screen clearfix">  
594 - <div class="left">  
595 - <ul class="clearfix">  
596 - <li class="left">  
597 - <p>  
598 - <span>新手指南</span>  
599 - </p>  
600 - <p>  
601 - <a href="http://www.yohobuy.com/help/?category_id=81#help_b00reg" target="_blank">注册登录</a>  
602 - </p>  
603 - <p>  
604 - <a href="http://www.yohobuy.com/help/?category_id=83" target="_blank">选购商品</a>  
605 - </p>  
606 - <p>  
607 - <a href="http://www.yohobuy.com/help/?category_id=103" target="_blank">订单支付</a>  
608 - </p>  
609 - <p>  
610 - <a href="http://www.yohobuy.com/help/?category_id=85" target="_blank">收货退款</a>  
611 - </p>  
612 - </li>  
613 - <li class="left">  
614 - <p>  
615 - <span>会员中心</span>  
616 - </p>  
617 - <p>  
618 - <a href="http://www.yohobuy.com/help/?category_id=87" target="_blank">YOHO币</a>  
619 - </p>  
620 - <p>  
621 - <a href="http://www.yohobuy.com/help/?category_id=91" target="_blank">会员制度</a>  
622 - </p>  
623 - <p>  
624 - <a href="http://www.yohobuy.com/help/?category_id=89" target="_blank">账户管理</a>  
625 - </p>  
626 - <p>  
627 - <a href="http://www.yohobuy.com/help/?category_id=93" target="_blank">密码管理</a>  
628 - </p>  
629 - </li>  
630 - <li class="left">  
631 - <p>  
632 - <span>购物指南</span>  
633 - </p>  
634 - <p>  
635 - <a href="http://www.yohobuy.com/help/?category_id=95" target="_blank">全球购专区</a>  
636 - </p>  
637 - <p>  
638 - <a href="http://www.yohobuy.com/help/?category_id=97" target="_blank">尺码选择</a>  
639 - </p>  
640 - <p>  
641 - <a href="http://www.yohobuy.com/help/?category_id=99" target="_blank">发票</a>  
642 - </p>  
643 - <p>  
644 - <a href="http://www.yohobuy.com/help/?category_id=101" target="_blank">商品咨询</a>  
645 - </p>  
646 - </li>  
647 - <li class="left">  
648 - <p>  
649 - <span>支付方式</span>  
650 - </p>  
651 - <p>  
652 - <a href="http://www.yohobuy.com/help/?category_id=105" target="_blank">在线支付</a>  
653 - </p>  
654 - <p>  
655 - <a href="http://www.yohobuy.com/help/?category_id=107" target="_blank">货到付款</a>  
656 - </p>  
657 - <p>  
658 - <a href="http://www.yohobuy.com/help/?category_id=109" target="_blank">优惠券</a>  
659 - </p>  
660 - <p>  
661 - <a href="http://www.yohobuy.com/help/?category_id=111" target="_blank">YOHO币支付</a>  
662 - </p>  
663 - </li>  
664 - <li class="left">  
665 - <p>  
666 - <span>配送方式</span>  
667 - </p>  
668 - <p>  
669 - <a href="http://www.yohobuy.com/help/?category_id=113" target="_blank">配送时间</a>  
670 - </p>  
671 - <p>  
672 - <a href="http://www.yohobuy.com/help/?category_id=115" target="_blank">配送范围</a>  
673 - </p>  
674 - <p>  
675 - <a href="http://www.yohobuy.com/help/?category_id=119" target="_blank">顺丰速运</a>  
676 - </p>  
677 - <p>  
678 - <a href="http://www.yohobuy.com/help/?category_id=117" target="_blank">商品验收与签收</a>  
679 - </p>  
680 - </li>  
681 - <li class="left">  
682 - <p>  
683 - <span>售后服务</span>  
684 - </p>  
685 - <p>  
686 - <a href="http://www.yohobuy.com/help/?category_id=121" target="_blank">退换货政策</a>  
687 - </p>  
688 - <p>  
689 - <a href="http://www.yohobuy.com/help/?category_id=123" target="_blank">退换货流程</a>  
690 - </p>  
691 - <p>  
692 - <a href="http://www.yohobuy.com/help/?category_id=125" target="_blank">退款方式与时效</a>  
693 - </p>  
694 - <p>  
695 - <a href="http://www.yohobuy.com/help/?category_id=127" target="_blank">投诉与建议</a>  
696 - </p>  
697 - </li>  
698 - <li class="left">  
699 - <p>  
700 - <span>APP常见问题</span>  
701 - </p>  
702 - <p>  
703 - <a href="http://www.yohobuy.com/help/?category_id=133" target="_blank">IPhone版</a>  
704 - </p>  
705 - <p>  
706 - <a href="http://www.yohobuy.com/help/?category_id=135" target="_blank">Android版</a>  
707 - </p>  
708 - <p>  
709 - <a href="http://www.yohobuy.com/help/?category_id=137" target="_blank">wap版</a>  
710 - </p>  
711 - <p>  
712 - <a href="http://www.yohobuy.com/help/?category_id=139" target="_blank">IPAD版</a>  
713 - </p>  
714 - </li>  
715 - </ul>  
716 - </div>  
717 - </div>  
718 - </div>  
719 - <div class="footer-link">  
720 - <div class="screen clearfix">  
721 - <div class="left right-flag">  
722 - <a href="https://ss.knet.cn/verifyseal.dll?sn=e14021832010046477dka7000000&amp;ct=df&amp;a=1&amp;pa=0.5902942178957805" target="_blank" rel="nofollow">  
723 - <img src="http://static.yohobuy.com/images/v3/icon/credit-flag3.png"></a>  
724 - <a href="http://www.isc.org.cn/" target="_blank" rel="nofollow">  
725 - <img src="http://static.yohobuy.com/images/v3/icon/isc2.png"></a>  
726 - </div>  
727 - <div class="left about-us">  
728 - <p>  
729 - <a href="http://www.yohobuy.com">返回首页</a>  
730 - <span>|</span>  
731 - <a href="http://www.yohobuy.com">YOHO!有货</a>  
732 - <span>|</span>  
733 - <a href="http://www.yohobuy.com/newpower.html">新力传媒</a>  
734 - <span>|</span>  
735 - <a href="http://www.yohobuy.com/contact.html">联系我们</a>  
736 - <span>|</span>  
737 - <a href="http://shop.yohobuy.com/settled">商家入驻</a>  
738 - <span>|</span>  
739 - <a href="http://www.yohobuy.com/privacy.html">隐私条款</a>  
740 - <span>|</span>  
741 - <a href="http://www.yohobuy.com/link.html">友情链接</a>  
742 - </p>  
743 - <p>  
744 - CopyRight © 2007-2016 南京新与力文化传播有限公司  
745 - <a href="http://www.miibeian.gov.cn/" target="_blank" style="color:#666">苏ICP备09011225号</a>  
746 - NewPower Co. 版权所有 经营许可证编号:苏B2-20120395  
747 - </p>  
748 - </div>  
749 -  
750 - </div>  
751 - </div>  
752 - </div>  
753 - </div>'.' <script src="http://localhost:8000/static/js/sea.js?nowrap"></script>  
754 - <script>  
755 - seajs.config({  
756 - base: \'http://localhost:8000/\'  
757 - });  
758 - </script>  
759 -'.' <script>  
760 - seajs.use(\'js/common\');  
761 - seajs.use(\'js/header\');  
762 - </script>  
763 -  
764 -'.Plugin\LCRun3::debug('if [boysHomePage]', 'ifv', $cx, Plugin\LCRun3::debug('[boysHomePage]', 'v', $cx, $in, array('boysHomePage')), $in, function($cx, $in) {return ' <script>  
765 - seajs.use(\'js/home/entrey\', function(h) {  
766 - h.set(\'boys\');  
767 - });  
768 - </script>  
769 -';}).'  
770 -'.Plugin\LCRun3::debug('if [searchListPage]', 'ifv', $cx, Plugin\LCRun3::debug('[searchListPage]', 'v', $cx, $in, array('searchListPage')), $in, function($cx, $in) {return ' <script>  
771 - seajs.use(\'js/product/list\');  
772 - </script>  
773 - ';}).''.' </body>  
774 -</html>'.'';  
775 -}  
776 -?>  
@@ -38,7 +38,7 @@ @@ -38,7 +38,7 @@
38 <link rel="stylesheet" href="http://webstatic.dev.yohobuy.com/css/index.css"> 38 <link rel="stylesheet" href="http://webstatic.dev.yohobuy.com/css/index.css">
39 </head> 39 </head>
40 <body> 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="header-page yoho-page"> 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"> 42 <div class="header-topwrapper clearfix">
43 <div class="header-top"> 43 <div class="header-top">
44 <div class="leftpart float-left"> 44 <div class="leftpart float-left">
@@ -554,7 +554,7 @@ @@ -554,7 +554,7 @@
554 </div>'.'';}).'';}).' 554 </div>'.'';}).'';}).'
555 555
556 </div> 556 </div>
557 -'.''.' <div class="footer-page yoho-page"> 557 +'.''.' <div class="yoho-footer">
558 <div class="footertop"> 558 <div class="footertop">
559 <div class="index-foot"> 559 <div class="index-foot">
560 <dl class="clearfix screen"> 560 <dl class="clearfix screen">
@@ -912,7 +912,11 @@ @@ -912,7 +912,11 @@
912 </script> 912 </script>
913 '.' <script> 913 '.' <script>
914 seajs.use(\'js/common\'); 914 seajs.use(\'js/common\');
915 - seajs.use(\'js/header\'); 915 + seajs.use(\'js/header\',function(header) {
  916 + if(header) {
  917 + header.init();
  918 + }
  919 + });
916 </script> 920 </script>
917 921
918 '.Plugin\LCRun3::debug('if [boysHomePage]', 'ifv', $cx, Plugin\LCRun3::debug('[boysHomePage]', 'v', $cx, $in, array('boysHomePage')), $in, function($cx, $in) {return ' <script> 922 '.Plugin\LCRun3::debug('if [boysHomePage]', 'ifv', $cx, Plugin\LCRun3::debug('[boysHomePage]', 'v', $cx, $in, array('boysHomePage')), $in, function($cx, $in) {return ' <script>
1 -<div class="footer-page yoho-page"> 1 +<div class="yoho-footer">
2 <div class="footertop"> 2 <div class="footertop">
3 <div class="index-foot"> 3 <div class="index-foot">
4 <dl class="clearfix screen"> 4 <dl class="clearfix screen">
1 {{#headerdata}} 1 {{#headerdata}}
2 -<div class="header-page yoho-page"> 2 +<div class="yoho-header">
3 <div class="header-topwrapper clearfix"> 3 <div class="header-topwrapper clearfix">
4 <div class="header-top"> 4 <div class="header-top">
5 <div class="leftpart float-left"> 5 <div class="leftpart float-left">
1 <script> 1 <script>
2 seajs.use('js/common'); 2 seajs.use('js/common');
3 - seajs.use('js/header'); 3 + seajs.use('js/header',function(header) {
  4 + if(header) {
  5 + header.init();
  6 + }
  7 + });
4 </script> 8 </script>
5 9
6 {{!-- 首页 --}} 10 {{!-- 首页 --}}
@@ -5,14 +5,506 @@ @@ -5,14 +5,506 @@
5 */ 5 */
6 6
7 var $ = require('jquery'); 7 var $ = require('jquery');
  8 +
  9 +
  10 +var noticeSuccess = false;
  11 +
  12 +function JsonPCallBack(data) {
  13 + var topbanner;
  14 +
  15 + if (+data.code === 200) {
  16 + if (typeof data.data === 'object') {
  17 + topbanner = '<a target="_blank" href="' + data.data.url + '" class="page-top-banner"' +
  18 + 'style="height:50px;border:none;background-image:url(' + window.unescape(data.data.src) + ');' +
  19 + 'background-position: center;display:block;background-color:#ff5409;">&nbsp;</a>';
  20 + $('body').prepend(topbanner);
  21 + }
  22 + }
  23 +}
  24 +
  25 +function NoticeCallBack(data) {
  26 + if (+data.code === 200) {
  27 + noticeSuccess = true;
  28 + }
  29 +}
  30 +window.JsonPCallBack = JsonPCallBack;
  31 +
  32 +window.NoticeCallBack = NoticeCallBack;
  33 +/**
  34 + * 检测是否获得公告
  35 + * @return {[type]} [description]
  36 + */
  37 +function checkNotice() {
  38 + var noticeinner;
  39 +
  40 + if (!noticeSuccess) {
  41 + noticeinner = '<div class="noticewrapper">' +
  42 + '<div class="noticecontainer">' +
  43 + '<h1 class="noticetitle">关于系统升级的公告</h1>' +
  44 + '<div class="noticecontent">' +
  45 + '<p class="tips">尊敬的顾客:</p>' +
  46 + '<p class="detail">您好!为了向您提供更优质的服务,目前系统正在升级,请耐心等待。</p>' +
  47 + '<p class="detail">' +
  48 + '系统升级期间,部分地区用户体验会有暂时中断,如遇紧急事宜,欢迎垂询客服热线:400-889-9646 09:00-22:30(周一至周日)。稍后系统将恢复正常' +
  49 + '</p>' +
  50 + '<p class="detail">使用,欢迎您继续光顾YOHO!BUY有货!带来不便之处深表歉意,请您谅解!</p>' +
  51 + '</div>' +
  52 + '</div>' +
  53 + '</div>';
  54 + $('.header-topwrapper').append(noticeinner);
  55 + }
  56 +}
  57 +/**
  58 + * 获得banner数据
  59 + * @param {[string]} code [banner对应的编码]
  60 + * @return {[type]} [description]
  61 + */
  62 +function getBannerData(code) {
  63 + var script = document.createElement('script');
  64 +
  65 + script.src = 'http://new.yohobuy.com/resource/getbanner?content_code=' +
  66 + code + '&client_type=web&callback=JsonPCallBack';
  67 + document.getElementsByTagName('head')[0].appendChild(script);
  68 +}
  69 +/**
  70 + * 获取公告的jsonp请求
  71 + * @param {[type]} code [description]
  72 + * @return {[type]} [description]
  73 + */
  74 +function getNoticeData(code) {
  75 + var script = document.createElement('script');
  76 +
  77 + script.src = 'http://new.yohobuy.com/resource/getbanner?content_code=' +
  78 + code + '&client_type=web&callback=NoticeCallBack';
  79 + document.getElementsByTagName('head')[0].appendChild(script);
  80 + window.setTimeout(checkNotice, 5000); //5s后检测是否成功
  81 +}
  82 +/**
  83 + * 显示和隐藏
  84 + * @param {[type]} sourceClass [description]
  85 + * @param {[type]} targetClass [description]
  86 + * @return {[type]} [description]
  87 + */
  88 +function toggleDisplay(sourceClass, targetClass) {
  89 + var $that,
  90 + targetobj;
  91 +
  92 + $(sourceClass).hover(function(e) {
  93 + e.preventDefault();
  94 + $that = $(this);
  95 + targetobj = $(targetClass)[0];
  96 + if (targetobj.style.display === '') {
  97 + $that.addClass('acttags');
  98 + targetobj.style.display = 'block';
  99 + } else {
  100 + $that.removeClass('acttags');
  101 + targetobj.style.display = '';
  102 + }
  103 + });
  104 +}
  105 +
  106 +/**
  107 + * 执行顶部显示和隐藏
  108 + * @return {[type]} [description]
  109 + */
  110 +function actionTopTagToggle() {
  111 + var tags = [{
  112 + sourceClass: '.myyoho',
  113 + targetClass: '.myyoho-info'
  114 + }, {
  115 + sourceClass: '.phone',
  116 + targetClass: '.qr'
  117 + }],
  118 + obj,
  119 + i;
  120 +
  121 + for (i = 0; i < tags.length; i++) {
  122 + obj = tags[i];
  123 + toggleDisplay(obj.sourceClass, obj.targetClass);
  124 + }
  125 +}
  126 +/**
  127 + * 执行顶部群组鼠标交互
  128 + * @return {[type]} [description]
  129 + */
  130 +function actionYoHoGroup() {
  131 + var $this;
  132 +
  133 + $('.yohogroup').mouseenter(function() {
  134 + $this = $(this);
  135 + $this.text($this.attr('cn'));
  136 + });
  137 + $('.yohogroup').mouseleave(function() {
  138 + $this = $(this);
  139 + $this.text($this.attr('en'));
  140 + });
  141 +}
  142 +
  143 +/**
  144 + * 检测是否支持css3的动画
  145 + * @return {Boolean} [description]
  146 + */
  147 +function isSupportCss3Animation() {
  148 + var thisFunc,
  149 + prefixList = ['webkit', 'moz', 'ms'],
  150 + i;
  151 +
  152 + for (i = 0; i < prefixList.length; i++) {
  153 + thisFunc = prefixList[i] + 'RequestAnimationFrame';
  154 + if (window[thisFunc]) {
  155 + return true;
  156 + } else {
  157 + return false;
  158 + }
  159 + }
  160 +
  161 +}
  162 +/**
  163 + * css3动画
  164 + * @param {Array} ) { var thisFunc, prefixList [description]
  165 + * @return {[type]} [description]
  166 + */
  167 +function requestFrameCloser() {
  168 + var prefixList = ['webkit', 'moz', 'ms'];
  169 + var func1 = prefixList[0] + 'RequestAnimationFrame';
  170 + var func2 = prefixList[1] + 'RequestAnimationFrame';
  171 + var func3 = prefixList[2] + 'RequestAnimationFrame';
  172 +
  173 + if (window[func1]) {
  174 + return function(callback) {
  175 + window[func1](callback);
  176 + };
  177 + }
  178 + if (window[func2]) {
  179 + return function(callback) {
  180 + window[func2](callback);
  181 + };
  182 + }
  183 + if (window[func3]) {
  184 + return function(callback) {
  185 + window[func3](callback);
  186 + };
  187 + }
  188 + return function(callback) {
  189 + window.setTimeout(callback, 67);
  190 + };
  191 +}
  192 +
  193 +
  194 +window.requestFrame = requestFrameCloser();
  195 +window.start = 0;
  196 +window.$logotrans = $('.icon-logo');
  197 +window.isen = true;
  198 +
  199 +/**
  200 + * css3动画
  201 + * @return {[type]} [description]
  202 + */
  203 +
  204 +function tsAnimate() {
  205 + window.start += 10;
  206 + window.$logotrans.css({
  207 + transform: 'rotateX(' + window.start + 'deg)',
  208 + '-webkit-transform': 'rotateX(' + window.start + 'deg)',
  209 + '-moz-transform': 'rotateX(' + window.start + 'deg)'
  210 + });
  211 + if (window.start / 90 % 2 === 1) {
  212 + if (window.isen) {
  213 + window.$logotrans.css('background-image', 'url(http://static.yohobuy.com/newheader/img/logo1.png)');
  214 + window.isen = false;
  215 + } else {
  216 + window.$logotrans.css('background-image', 'url(http://static.yohobuy.com/newheader/img/logo_e.png)');
  217 + window.isen = true;
  218 + }
  219 + }
  220 + if (window.start / 90 % 2 === 0 && window.start % 360 !== 0) {
  221 + window.setTimeout(tsAnimate, 3000);
  222 + } else {
  223 + if (window.start % 360 === 0) {
  224 + window.setTimeout(tsAnimate, 1 * 60 * 1000);
  225 + } else {
  226 + window.requestFrame(function() {
  227 + tsAnimate();
  228 + });
  229 + }
  230 + }
  231 +}
  232 +
  233 +window.loopdurationtime = 500;
  234 +window.globaltimeout;
  235 +window.onetimeoout;
  236 +/**
  237 + * 淡出
  238 + * @return {[type]} [description]
  239 + */
  240 +function fadeAnimate() {
  241 + if (window.globaltimeout) {
  242 + window.clearTimeout(window.globaltimeout);
  243 + }
  244 + window.logotrans.fadeOut(window.loopdurationtime, function() {
  245 + window.isen = false;
  246 + window.logotrans.css('background-image', 'url(http://static.yohobuy.com/newheader/img/logo.png)');
  247 + window.logotrans.fadeIn(window.loopdurationtime, function() {
  248 + window.onetimeoout = window.setTimeout(function() {
  249 + window.logotrans.fadeOut(window.loopdurationtime, function() {
  250 + window.clearTimeout(window.onetimeoout);
  251 + window.isen = true;
  252 + window.logotrans.css('background-image', 'url(http://static.yohobuy.com/newheader/img/logo_e.png)');
  253 + window.logotrans.fadeIn(window.loopdurationtime, function() {
  254 + window.globaltimeout = window.setTimeout(fadeAnimate, 1 * 60 * 1000);
  255 + });
  256 + });
  257 + }, 3000);
  258 + });
  259 + });
  260 +}
  261 +/**
  262 + * 执行头部logo动画
  263 + * @return {[type]} [description]
  264 + */
  265 +function actionTopLogoAnimate() {
  266 + if (isSupportCss3Animation()) {
  267 + window.setTimeout(tsAnimate, 3000);
  268 + } else {
  269 + window.setTimeout(fadeAnimate, 3000);
  270 + }
  271 +}
8 /** 272 /**
9 - * 回到顶部  
10 - * @type {[type]} 273 + * 查询跳转后保留关键字
  274 + * @return {[type]} [description]
11 */ 275 */
12 -var $returnTop = $('.return-top'); 276 +function actionAddKeyWords() {
  277 + var $keywords = $('#nav_keyword').text();
  278 + var defaultsearch = 'vans';
  279 + var $querykey = $('#query_key');
13 280
14 -$returnTop.click(function() {  
15 - $('html,body').animate({  
16 - scrollTop: 0  
17 - }, 500);  
18 -});  
  281 + if ($keywords !== '') {
  282 + $querykey.css({
  283 + color: '#000'
  284 + });
  285 + $querykey.val($keywords);
  286 + } else {
  287 + $querykey.css({
  288 + color: '#e0e0e0'
  289 + });
  290 + $querykey.val(defaultsearch);
  291 + $querykey.on('focus', function(e) {
  292 + $querykey.css({
  293 + color: '#000'
  294 + });
  295 + $querykey.val('');
  296 + });
  297 + }
  298 +}
  299 +window.dataLayer = [];
  300 +
  301 +function getSource(column, postition, event) {
  302 + try {
  303 + window.dataLayer.push({
  304 + louceng: column,
  305 + weizhi: postition,
  306 + event: event
  307 + });
  308 + } catch (e) {}
  309 +}
  310 +/**
  311 + * 搜寻的时候过滤非法字符(+-/:等非法字符单独出现)
  312 + * @type {RegExp}
  313 + */
  314 +window.reg = /^[\^\!\+\-\(\)\:\[\]\\\{\}\~\*\?\|\&\;\/\s]{0,}$/g;
  315 +window.keyword = '';
  316 +window.link = '';
  317 +
  318 +window.submitSearch = function() {
  319 + var $keywordinput = $('#query_key').val();
  320 + var column = 'Search';
  321 + var postition = 'Head Search';
  322 + var event = 'Search';
  323 + var $formatkeyword,
  324 + $formatkeywordinput;
  325 +
  326 + $formatkeyword = $.trim(window.keyword.toLowerCase());
  327 + $formatkeywordinput = $.trim($keywordinput.toLowerCase());
  328 + getSource(column, postition, event);
  329 + if (window.link !== '' && window.keyword !== '' && $formatkeyword === $formatkeywordinput) {
  330 + location.href = window.link.replace('\'', '');
  331 + } else {
  332 + if (window.reg.test($keywordinput)) {
  333 + location.href = 'http://search.yohobuy.com/error?query=' + $keywordinput + '&result=error';
  334 + } else {
  335 + $('#searchForm').submit();
  336 + return false;
  337 + }
  338 + }
  339 +};
  340 +/**
  341 + * banner和地址的映射
  342 + * @type {Object}
  343 + */
  344 +window.bannerMap = {
  345 + listboys: '4f78b0f418fc42314d8b6e791cfb7fa8',
  346 + listgirls: '00c1f025a51b6b597dc37925951ea27d',
  347 + listkids: 'b02df11184727701ade1b6de9737d08c',
  348 + listlifestyle: 'fd35c52dced0c880976ba858346d1fc5',
  349 + searchboys: '9fb8986ea700cc27a8057361c3924394',
  350 + searchgirls: 'e3e207a1443ca60c8037fe52a5560c18',
  351 + searchkids: '620fc77f479da8feaeb06f2324e5d0bb',
  352 + searchlifestyle: 'a3c93301c6ffaf3ed0f36a4a451be36d',
  353 + uniquebrandboys: '2ebb0810c0d1a67e5229149c9c3aba7d',
  354 + uniquebrandgirls: '99e23385f4ba4b65f406b7e2968ac821',
  355 + uniquebrandkids: 'a74ebc9b17840c91b9ea46568111fe6b',
  356 + uniquebrandlifestyle: '0e8c81ead53f56302baa4d0ad967f527',
  357 + brandsboys: '77b352db07129c76a9d532acad149f9f',
  358 + brandsgirls: 'bf047f16e52ebc38be5ce9c7623831e6',
  359 + brandskids: 'e3ae1ce9b5e13c6d271ef3eccb831652',
  360 + brandslifestyle: 'e4ac8029c30f65d7f1af030980d140fe',
  361 + newboys: '869d3c5f3b450fb52101d00a61ce87cb',
  362 + newgirls: 'd953b6dfdac02483d1dcce8d96055954',
  363 + newkids: '0874cb6d75df8e0e78f2d475e53ecc08',
  364 + newlifestyle: '43e8fc8e178115c262bbce2bd0012db7',
  365 + saleboys: 'c846e3165c994769b4201d8c32f3ae9b',
  366 + salegirls: '52b1d389edcbc62d65de71b80c4d6ad0',
  367 + salekids: 'ad8b1703c761ba00973868ab5199cc27',
  368 + salelifestyle: '7acc64905c70ac91846f43fb2cec4bbd',
  369 + homeboys: 'b0856a771ef1b59ab1234c74688fa42d',
  370 + homegirls: '2bd61fa12e4933211518f70fe5ce3c48',
  371 + homekids: '895c59e8c64b40399c9533509507320c',
  372 + homelifestyle: '2e037d4e25d2767352ca3e0a4627f7bd',
  373 + indexboys: '0c911d3000f52e8ca7cffb74f5864c29',
  374 + indexgirls: 'b645b8980c423ab30485e0a9d08c2ef7',
  375 + indexkids: '17f6d5d5d454d2c507bc5fcbc90f7756',
  376 + indexlifestyle: '735cd393e841762af8793c346abbbc36'
  377 +};
  378 +/**
  379 + * cookie集合
  380 + * @type {Object}
  381 + */
  382 +window.cookieMap = {};
  383 +
  384 +function actionExeCookieMap() {
  385 + var cookies = document.cookie;
  386 + var cookiearr = cookies.split(';');
  387 + var i;
  388 + var temparr;
  389 + var key;
  390 +
  391 + for (i = 0; i < cookiearr.length; i++) {
  392 + temparr = cookiearr[i].split('=');
  393 + key = temparr[0].replace(/\s/g, '');
  394 + window.cookieMap[key] = temparr[1];
  395 + }
  396 +}
  397 +
  398 +
  399 +/**
  400 + * 获得banner & 异常通知
  401 + * @return {[type]} [description]
  402 + */
  403 +function actionGetBannerAndNotice() {
  404 + var INDEXKIDS = 'indexkids',
  405 + INDEXLIFESTYLE = 'indexlifestyle',
  406 + INDEXBOYS = 'indexboys',
  407 + INDEXWOMAN = 'indexgirls',
  408 + UNIQUEBRAND = 'uniquebrand';
  409 + var url = window.location.href;
  410 + var host = window.location.host;
  411 + var code = '';
  412 + var firstarea;
  413 +
  414 + if (url.indexOf('search') !== -1) {
  415 + code = window.bannerMap['search' + window.cookieMap._Channel];
  416 + }
  417 + if (url.indexOf('list') !== -1) {
  418 + code = window.bannerMap['list' + window.cookieMap._Channel];
  419 + }
  420 + if (url.indexOf('brands') !== -1) {
  421 + code = window.bannerMap['brands' + window.cookieMap._Channel];
  422 + }
  423 + if (url.indexOf('new') !== -1) {
  424 + code = window.bannerMap['new' + window.cookieMap._Channel];
  425 + }
  426 + if (url.indexOf('sale') !== -1) {
  427 + code = window.bannerMap['sale' + window.cookieMap._Channel];
  428 + }
  429 + if (url.indexOf('home') !== -1) {
  430 + code = window.bannerMap['home' + window.cookieMap._Channel];
  431 + }
  432 + if (url.indexOf('kids') !== -1) {
  433 + code = window.bannerMap[INDEXKIDS];
  434 + }
  435 + if (url.indexOf('woman') !== -1) {
  436 + code = window.bannerMap[INDEXWOMAN];
  437 + }
  438 + if (url.indexOf('lifestyle') !== -1) {
  439 + code = window.bannerMap[INDEXLIFESTYLE];
  440 + }
  441 + if (url.indexOf('www.yohobuy.com') !== -1 && window.location.pathname === '/') {
  442 + code = window.bannerMap[INDEXBOYS];
  443 + }
  444 + firstarea = host.split('.')[0];
  445 + if (firstarea !== 'list' && firstarea !== 'search' && firstarea !== 'www' &&
  446 + firstarea !== 'new' && firstarea !== 'item' && firstarea !== 'guang') {
  447 + code = window.bannerMap[UNIQUEBRAND + window.cookieMap._Channel];
  448 + }
  449 +
  450 + getBannerData(code); //获得banner信息
  451 + getNoticeData(code); //获得公告信息
  452 +
  453 +}
  454 +
  455 +function brandSwitch(index) {
  456 + $('.hot-brands').find('ul').stop().animate({
  457 + opacity: 0,
  458 + 'z-index': 1
  459 + }, 200).eq(index).animate({
  460 + opacity: 1,
  461 + 'z-index': 2
  462 + }, 200);
  463 +}
  464 +/**
  465 + * 品牌左右切换
  466 + * @return {[type]} [description]
  467 + */
  468 +function actionBrandChange() {
  469 + var activeIndex = 0,
  470 + swiperLen;
  471 +
  472 + if ($('.hot-brands').size() > 0) {
  473 + swiperLen = $('.hot-brands').find('ul').size();
  474 + $('.hot-brands').find('ul').eq(0).css({
  475 + opacity: 1,
  476 + 'z-index': 2
  477 + });
  478 + $('.brands-control').on('click', '.next', function() {
  479 + if (activeIndex === swiperLen - 1) {
  480 + activeIndex = 0;
  481 + } else {
  482 + activeIndex++;
  483 + }
  484 + brandSwitch(activeIndex);
  485 + });
  486 + $('.brands-control').on('click', '.prev', function() {
  487 + if (activeIndex === 0) {
  488 + activeIndex = swiperLen - 1;
  489 + } else {
  490 + activeIndex--;
  491 + }
  492 + brandSwitch(activeIndex);
  493 + });
  494 +
  495 +
  496 + }
  497 +}
  498 +/**
  499 + * 初始化函数
  500 + * @return {[type]} [description]
  501 + */
  502 +exports.init = function() {
  503 + actionExeCookieMap();
  504 + actionYoHoGroup();
  505 + actionTopTagToggle();
  506 + actionTopLogoAnimate();
  507 + actionGetBannerAndNotice();
  508 + actionBrandChange();
  509 + actionAddKeyWords();
  510 +};
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 font-weight: normal; 8 font-weight: normal;
9 font-style: normal; 9 font-style: normal;
10 } 10 }
11 -.footer-page { 11 +.yoho-footer {
12 font-size: 12px; 12 font-size: 12px;
13 /*----文字颜色----*/ 13 /*----文字颜色----*/
14 .red{ 14 .red{
@@ -377,7 +377,7 @@ @@ -377,7 +377,7 @@
377 } 377 }
378 } 378 }
379 @media (max-width:1310px){ 379 @media (max-width:1310px){
380 - .footer-page{ 380 + .yoho-footer{
381 .return-top{ 381 .return-top{
382 left: 100%; 382 left: 100%;
383 right: 20px; 383 right: 20px;
@@ -388,7 +388,7 @@ @@ -388,7 +388,7 @@
388 } 388 }
389 389
390 @media (min-width:1310px){ 390 @media (min-width:1310px){
391 - .footer-page{ 391 + .yoho-footer{
392 .return-top{ 392 .return-top{
393 left: 50%; 393 left: 50%;
394 margin-left: 595px; 394 margin-left: 595px;
@@ -396,7 +396,7 @@ @@ -396,7 +396,7 @@
396 } 396 }
397 } 397 }
398 @media (max-width:1180px){ 398 @media (max-width:1180px){
399 - .footer-page { 399 + .yoho-footer {
400 .screen{ 400 .screen{
401 width: 990px; 401 width: 990px;
402 margin-left: auto; 402 margin-left: auto;
@@ -476,7 +476,7 @@ @@ -476,7 +476,7 @@
476 } 476 }
477 } 477 }
478 @media (min-width:1180px){ 478 @media (min-width:1180px){
479 - .footer-page{ 479 + .yoho-footer{
480 .screen{ 480 .screen{
481 width: 1150px; 481 width: 1150px;
482 margin-left: auto; 482 margin-left: auto;
1 -.header-page { 1 +.yoho-header {
2 .header-topwrapper { 2 .header-topwrapper {
3 width: 100%; 3 width: 100%;
4 background-color: #f4f4f4; 4 background-color: #f4f4f4;
@@ -9,210 +9,208 @@ class BoysController extends AbstractAction @@ -9,210 +9,208 @@ class BoysController extends AbstractAction
9 public function indexAction() 9 public function indexAction()
10 { 10 {
11 11
12 - $headerdata = array(  
13 - 'gobytype' =>'gobuyboys',  
14 - 'searchcate'=> 'searchcateboys',  
15 - 'navbars' => array(  
16 - array(  
17 - 'name_cn'=>'男生',  
18 - 'name_en'=>'BOYS',  
19 - 'link' => '',  
20 - 'classname' => 'boys',  
21 - 'index_main' => 0,  
22 - 'subnav' => array(  
23 - array(  
24 - 'name'=>'男首1',  
25 - 'link'=>'',  
26 - 'index_sub'=>0,  
27 - 'thirdnav' => array(  
28 - array(  
29 - 'title' =>'上装',  
30 - 'branditems'=> array(  
31 - array(  
32 - 'brandname'=>'背心',  
33 - 'link'=>''  
34 - ),  
35 - array(  
36 - 'brandname'=>'T恤',  
37 - 'link'=>''  
38 - )  
39 - )  
40 - 12 + $headerdata = array(
  13 + 'gobytype' =>'gobuyboys',
  14 + 'searchcate'=> 'searchcateboys',
  15 + 'navbars' => array(
  16 + array(
  17 + 'name_cn'=>'男生',
  18 + 'name_en'=>'BOYS',
  19 + 'link' => '',
  20 + 'classname' => 'boys',
  21 + 'index_main' => 0,
  22 + 'subnav' => array(
  23 + array(
  24 + 'name'=>'男首1',
  25 + 'link'=>'',
  26 + 'index_sub'=>0,
  27 + 'thirdnav' => array(
  28 + array(
  29 + 'title' =>'上装',
  30 + 'branditems'=> array(
  31 + array(
  32 + 'brandname'=>'背心',
  33 + 'link'=>''
  34 + ),
  35 + array(
  36 + 'brandname'=>'T恤',
  37 + 'link'=>''
  38 + )
41 ) 39 )
42 - )  
43 - ),  
44 - array(  
45 - 'name'=>'男首2',  
46 - 'link'=>'',  
47 - 'index_sub'=>1,  
48 - 'thirdnav' => array(  
49 - array(  
50 - 'title' =>'上装',  
51 - 'branditems'=> array(  
52 - array(  
53 - 'brandname'=>'背心',  
54 - 'link'=>''  
55 - ),  
56 - array(  
57 - 'brandname'=>'T恤',  
58 - 'link'=>''  
59 - )  
60 - )  
61 40
62 - )  
63 ) 41 )
64 - ),  
65 - array(  
66 - 'name'=>'男首3',  
67 - 'link'=>'',  
68 - 'index_sub'=>2,  
69 - 'thirdnav' => array(  
70 - array(  
71 - 'title' =>'上装',  
72 - 'branditems'=> array(  
73 - array(  
74 - 'brandname'=>'背心',  
75 - 'link'=>''  
76 - ),  
77 - array(  
78 - 'brandname'=>'T恤',  
79 - 'link'=>''  
80 - )  
81 - )  
82 - 42 + )
  43 + ),
  44 + array(
  45 + 'name'=>'男首2',
  46 + 'link'=>'',
  47 + 'index_sub'=>1,
  48 + 'thirdnav' => array(
  49 + array(
  50 + 'title' =>'上装',
  51 + 'branditems'=> array(
  52 + array(
  53 + 'brandname'=>'背心',
  54 + 'link'=>''
  55 + ),
  56 + array(
  57 + 'brandname'=>'T恤',
  58 + 'link'=>''
  59 + )
  60 + )
  61 + )
  62 + )
  63 + ),
  64 + array(
  65 + 'name'=>'男首3',
  66 + 'link'=>'',
  67 + 'index_sub'=>2,
  68 + 'thirdnav' => array(
  69 + array(
  70 + 'title' =>'上装',
  71 + 'branditems'=> array(
  72 + array(
  73 + 'brandname'=>'背心',
  74 + 'link'=>''
  75 + ),
  76 + array(
  77 + 'brandname'=>'T恤',
  78 + 'link'=>''
  79 + )
83 ) 80 )
84 ) 81 )
85 ) 82 )
86 - )  
87 - ),  
88 - array(  
89 - 'name_cn'=>'女生',  
90 - 'name_en'=>'GIRLS',  
91 - 'link' => 'http=>//www.baidu.com',  
92 - 'classname' => '',  
93 - 'index_main' => 0,  
94 - 'subnav' => array(  
95 - array(  
96 - 'name'=>'女生1',  
97 - 'link'=>'',  
98 - 'index_sub'=>0,  
99 - 'thirdnav' => array(  
100 - array(  
101 - 'title' =>'上装',  
102 - 'branditems'=> array(  
103 - array(  
104 - 'brandname'=>'背心',  
105 - 'link'=>''  
106 - ),  
107 - array(  
108 - 'brandname'=>'T恤',  
109 - 'link'=>''  
110 - )  
111 - )  
112 - 83 + )
  84 + )
  85 + ),
  86 + array(
  87 + 'name_cn'=>'女生',
  88 + 'name_en'=>'GIRLS',
  89 + 'link' => 'http=>//www.baidu.com',
  90 + 'classname' => '',
  91 + 'index_main' => 0,
  92 + 'subnav' => array(
  93 + array(
  94 + 'name'=>'女生1',
  95 + 'link'=>'',
  96 + 'index_sub'=>0,
  97 + 'thirdnav' => array(
  98 + array(
  99 + 'title' =>'上装',
  100 + 'branditems'=> array(
  101 + array(
  102 + 'brandname'=>'背心',
  103 + 'link'=>''
  104 + ),
  105 + array(
  106 + 'brandname'=>'T恤',
  107 + 'link'=>''
  108 + )
113 ) 109 )
114 ) 110 )
115 - ),  
116 - array(  
117 - 'name'=>'女生2',  
118 - 'link'=>'',  
119 - 'index_sub'=>1,  
120 - 'thirdnav' => array(  
121 - array(  
122 - 'title' =>'上装',  
123 - 'branditems'=> array(  
124 - array(  
125 - 'brandname'=>'背心',  
126 - 'link'=>''  
127 - ),  
128 - array(  
129 - 'brandname'=>'T恤',  
130 - 'link'=>''  
131 - )  
132 - )  
133 - 111 + )
  112 + ),
  113 + array(
  114 + 'name'=>'女生2',
  115 + 'link'=>'',
  116 + 'index_sub'=>1,
  117 + 'thirdnav' => array(
  118 + array(
  119 + 'title' =>'上装',
  120 + 'branditems'=> array(
  121 + array(
  122 + 'brandname'=>'背心',
  123 + 'link'=>''
  124 + ),
  125 + array(
  126 + 'brandname'=>'T恤',
  127 + 'link'=>''
  128 + )
134 ) 129 )
135 ) 130 )
136 - ),  
137 - array(  
138 - 'name'=>'女生3',  
139 - 'link'=>'',  
140 - 'index_sub'=>2,  
141 - 'thirdnav' => array(  
142 - array(  
143 - 'title' =>'上装',  
144 - 'branditems'=> array(  
145 - array(  
146 - 'brandname'=>'背心',  
147 - 'link'=>''  
148 - ),  
149 - array(  
150 - 'brandname'=>'T恤',  
151 - 'link'=>''  
152 - )  
153 - )  
154 - 131 + )
  132 + ),
  133 + array(
  134 + 'name'=>'女生3',
  135 + 'link'=>'',
  136 + 'index_sub'=>2,
  137 + 'thirdnav' => array(
  138 + array(
  139 + 'title' =>'上装',
  140 + 'branditems'=> array(
  141 + array(
  142 + 'brandname'=>'背心',
  143 + 'link'=>''
  144 + ),
  145 + array(
  146 + 'brandname'=>'T恤',
  147 + 'link'=>''
  148 + )
155 ) 149 )
156 ) 150 )
157 ) 151 )
158 - ) 152 + )
159 ) 153 )
160 - ), 154 + )
  155 + ),
161 'myyoho' => array( 156 'myyoho' => array(
162 - 'email'=>'hhh@126.com',  
163 - 'viptype'=>'普通会员',  
164 - 'currentscore' => 495,  
165 - 'totalscore' => 600,  
166 - 'cardtype' => '银卡',  
167 - 'infolist' => array(  
168 - array(  
169 - 'name' =>'待处理的订单',  
170 - 'link' =>'',  
171 - 'num' => '0'  
172 - ),  
173 - array(  
174 - 'name' =>'我的收藏',  
175 - 'link' =>'',  
176 - 'num' => '1'  
177 - ),array(  
178 - 'name' =>'我的优惠券',  
179 - 'link' =>'',  
180 - 'num' => '2'  
181 - ),array(  
182 - 'name' =>'我的YOHO币',  
183 - 'link' =>'',  
184 - 'num' => '1'  
185 - ),array(  
186 - 'name' =>'我的退货换货',  
187 - 'link' =>'',  
188 - 'num' => '1'  
189 - ) 157 + 'email'=>'hhh@126.com',
  158 + 'viptype'=>'普通会员',
  159 + 'currentscore' => 495,
  160 + 'totalscore' => 600,
  161 + 'cardtype' => '银卡',
  162 + 'infolist' => array(
  163 + array(
  164 + 'name' =>'待处理的订单',
  165 + 'link' =>'',
  166 + 'num' => '0'
190 ), 167 ),
191 - 'updlink' => ''  
192 - ),  
193 - 'gobuy'=> array(  
194 - 'gobuynum' =>3  
195 - ),  
196 - 'breadcrumbnav'=> array(  
197 array( 168 array(
198 - 'notend'=>array(  
199 - 'link' => 'http=>//www.baidu.com',  
200 - 'name' => 'BOYS首页'  
201 - ) 169 + 'name' =>'我的收藏',
  170 + 'link' =>'',
  171 + 'num' => '1'
202 ), 172 ),
203 - array(  
204 - 'notend'=>array(  
205 - 'link' => 'http=>//www.baidu.com',  
206 - 'name' => '上衣'  
207 - ) 173 + array(
  174 + 'name' =>'我的优惠券',
  175 + 'link' =>'',
  176 + 'num' => '2'
208 ), 177 ),
209 - array(  
210 - 'isend'=>array(  
211 - 'link' => 'http=>//www.baidu.com',  
212 - 'name' => '衬衫'  
213 - ) 178 + array(
  179 + 'name' =>'我的YOHO币',
  180 + 'link' =>'',
  181 + 'num' => '1'
  182 + ),
  183 + array(
  184 + 'name' =>'我的退货换货',
  185 + 'link' =>'',
  186 + 'num' => '1'
214 ) 187 )
  188 + ),
  189 + 'updlink' => ''
  190 + ),
  191 + 'gobuy'=> array(
  192 + 'gobuynum' =>3
  193 + ),
  194 + 'breadcrumbnav'=> array(
  195 + array(
  196 + 'notend'=>array(
  197 + 'link' => 'http=>//www.baidu.com',
  198 + 'name' => 'BOYS首页'
  199 + )
  200 + ),
  201 + array(
  202 + 'notend'=>array(
  203 + 'link' => 'http=>//www.baidu.com',
  204 + 'name' => '上衣'
  205 + )
  206 + ),
  207 + array(
  208 + 'isend'=>array(
  209 + 'link' => 'http=>//www.baidu.com',
  210 + 'name' => '衬衫'
  211 + )
215 ) 212 )
  213 + )
216 ); 214 );
217 $tpldata = array( 215 $tpldata = array(
218 'name'=>'潮人配饰 ORNAMENT', 216 'name'=>'潮人配饰 ORNAMENT',