Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
unknown
9 years ago
Commit
d274e201a60e53a852eff235e6ee4ff1d968e3fa
2 parents
7360d65d
436070c6
Merge branch 'feature/web' of
http://git.dev.yoho.cn/web/yohobuy
into feature/web
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
701 additions
and
979 deletions
compile/www.yohobuy.com/0.0.1/0c37c169d1f1f989c1e931e2a3a1bbb5.php
compile/www.yohobuy.com/0.0.1/5c2ef6235970755c7871eb72ac395ae4.php
template/www.yohobuy.com/partials/layout/page-footer.phtml
template/www.yohobuy.com/partials/layout/page-header.phtml
template/www.yohobuy.com/partials/layout/use.phtml
web-static/js/header.js
web-static/sass/_footer.scss
web-static/sass/_header.scss
yohobuy/www.yohobuy.com/application/controllers/Boys.php
compile/www.yohobuy.com/0.0.1/0c37c169d1f1f989c1e931e2a3a1bbb5.php
deleted
100644 → 0
View file @
7360d65
<?php
return
function
(
$in
,
$debugopt
=
1
)
{
$cx
=
array
(
'flags'
=>
array
(
'jstrue'
=>
false
,
'jsobj'
=>
false
,
'spvar'
=>
true
,
'prop'
=>
false
,
'method'
=>
false
,
'mustlok'
=>
true
,
'echo'
=>
false
,
'debug'
=>
$debugopt
,
),
'constants'
=>
array
(),
'helpers'
=>
array
(),
'blockhelpers'
=>
array
(),
'hbhelpers'
=>
array
(),
'partials'
=>
array
(),
'scopes'
=>
array
(),
'sp_vars'
=>
array
(
'root'
=>
$in
),
'lcrun'
=>
'Plugin\LCRun3'
,
);
return
''
.
'<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta name="renderer" content="webkit">
<link rel="shortcut icon" href="http://www.yohobuy.com/favicon.ico" type="image/x-icon" />
<meta name="keywords" content="'
.
Plugin\LCRun3
::
debug
(
'[keywords]'
,
'encq'
,
$cx
,
Plugin\LCRun3
::
debug
(
'[keywords]'
,
'v'
,
$cx
,
$in
,
array
(
'keywords'
)))
.
'">
<meta name="description" content="'
.
Plugin\LCRun3
::
debug
(
'[description]'
,
'encq'
,
$cx
,
Plugin\LCRun3
::
debug
(
'[description]'
,
'v'
,
$cx
,
$in
,
array
(
'description'
)))
.
'">
<title>'
.
Plugin\LCRun3
::
debug
(
'[title]'
,
'encq'
,
$cx
,
Plugin\LCRun3
::
debug
(
'[title]'
,
'v'
,
$cx
,
$in
,
array
(
'title'
)))
.
'</title>
<!-- [if (gte IE 6)&(lte IE 8)>
<script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" href="http://webstatic.dev.yohobuy.com/css/index.css">
</head>
<body>
'
.
'<div class="header-page yoho-page">
<div class="header-topwrapper clearfix">
<div class="header-top">
<div class="leftpart float-left">
<span class="icon-hamburger"></span>
<a href="" class="header-yoho" >YOHO!有货</a>
<ul class="yohoproducts-list">
<li class="yohoproducts-item">
<a href="" class="yohogroup" en="YOHO!" cn="集团官网">YOHO!</a>
</li>
<li class="yohoproducts-item">
<a href="" class="yohogroup" en="YOHO!BOYS" cn="男生潮流">YOHO!BOYS</a>
</li>
<li class="yohoproducts-item">
<a href="" class="yohogroup" en="YOHO!GIRLS" cn="女生潮流">YOHO!GIRLS</a>
</li>
<li class="yohoproducts-item">
<a href="" class="yohogroup" en="YOHO!SHOW" cn="物趣分享">YOHO!SHOW</a>
</li>
<li class="yohoproducts-item">
<a href="" class="yohogroup" en="YO\'HOOD" cn="潮流嘉年华">YO\'HOOD</a>
</li>
</ul>
</div>
<div class="rightpart">
<div id="loginBox" class="float-left">
<span class="hi">Hi~</span>
<a href="" class="loginbar">[请登录]</a>
<a href="" class="registbar">[免费注册]</a>
</div>
<div class="tag-list-wrapper">
<ul class="tag-list">
<li class="tag-item myyoho" id="myYohoBox">
<span class="tag-seprate"></span>
<a href="">MY有货</a>
<span class="icon-bottomarrow"></span>
<div class="myyoho-info"></div>
</li>
<li class="tag-item myorder">
<span class="tag-seprate"></span>
<span class="icon-papers"></span>
<a href="">我的订单</a>
</li>
<li class="tag-item mycollect">
<span class="tag-seprate"></span>
<span class="icon-heart"></span>
<a href="">我的收藏</a>
</li>
<li class="tag-item message">
<span class="tag-seprate"></span>
<span class="icon-mail"></span>
<a href="">消息</a>
</li>
<li class="tag-item phone">
<span class="tag-seprate"></span>
<span class="icon-iphone"></span>
<a href="">手机版</a>
<div class="qr">
<div class="qr-img"></div>
<h3 class="qr-words">扫描二维码</h3>
<h3 class="qr-words">下载有货手机客户端</h3>
<h3 class="qr-more">更多客户端下载</h3>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="header-navwrapper clearfix">
<div class="header-navcontent">
<ul class="first-nav-list float-left">
'
.
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'
)))
.
'">
<h3 class="name-cn">
<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>
</h3>
<h3 class="name-en">
<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>
</h3>
<div class=\'sub-nav-wrapper\'>
<ul class="sub-nav-list">
'
.
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">
<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>
<div class="third-nav-wrapper">
<div class="third-nav">
<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'
)))
.
'">
<div class="category">
'
.
Plugin\LCRun3
::
debug
(
'[thirdnav]'
,
'sec'
,
$cx
,
Plugin\LCRun3
::
debug
(
'[thirdnav]'
,
'v'
,
$cx
,
$in
,
array
(
'thirdnav'
)),
$in
,
false
,
function
(
$cx
,
$in
)
{
return
' <div class="thirdnavlist">
<h1 class="category-title thirdnavbar">'
.
Plugin\LCRun3
::
debug
(
'[title]'
,
'encq'
,
$cx
,
Plugin\LCRun3
::
debug
(
'[title]'
,
'v'
,
$cx
,
$in
,
array
(
'title'
)))
.
'</h1>
<ul class="category-list">
'
.
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">
<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>
</li>
'
;})
.
' </ul>
</div>
'
;})
.
' </div>
</div>
<div class="showdetail" data-code="220eec926e0d2c48b2f7e36fb9c42b83"><a href="http://list.yohobuy.com/?gender=1,3&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&msort=8">热门小物优选</a></div>
</div>
</div>
</li>
'
;})
.
' </ul>
</div>
</li>
'
;})
.
' </ul>
<div class="icon-logo"></div>
<div class="header-tool float-right">
<div class="search float-left '
.
Plugin\LCRun3
::
debug
(
'[searchcate]'
,
'encq'
,
$cx
,
Plugin\LCRun3
::
debug
(
'[searchcate]'
,
'v'
,
$cx
,
$in
,
array
(
'searchcate'
)))
.
'" >
<form action="http://search.yohobuy.com" method="get" id="searchForm">
<span class="searchspan">
<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>
<a class="icon-search" href="javascript:submitSearch();"></a>
<ul class="search-list"></ul>
</form>
</div>
<div class="gobuy float-left '
.
Plugin\LCRun3
::
debug
(
'[gobytype]'
,
'encq'
,
$cx
,
Plugin\LCRun3
::
debug
(
'[gobytype]'
,
'v'
,
$cx
,
$in
,
array
(
'gobytype'
)))
.
'" id="miniCartBox">
'
.
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>
<div class="gobuy-wrapper"></div>
'
;})
.
' </div>
</div>
</div>
</div>
</div>
<div id="goodcartempwarpper">
<script type="text/html" id="mini-cart-tpl">
<div class="gobuy-notempty">
<div class="goods-list-wrapper">
<ul class="goods-list">
%L~it.cartData.main_goods :v:index%R
<li class="goods-item">
<a href="%L=v.product_url%R">
<img src="%L=v.default_img%R" alt="" class="goods-img" />
</a>
<div class="goods-detail float-left">
<h3 class="content"><a href="%L=v.product_url%R">%L=v.product_name%R</a></h3>
<h3 class="style">
颜色:
<span class="color">%L=v.color_name%R</span>
尺码:
<span class="size">%L=v.size_name%R</span>
</h3>
</div>
<div class="goods-price float-left">
<h3 class="priceandnum">
<span class="price">%L=v.show_price%R</span>
x
<span class="num">%L=v.buy_number%R</span>
</h3>
<a href="javascript:void(0)" class="delete" onclick="delCartGoods(%L=v.goods_incart_id%R,%L=v.is_cheapest_free%R);">删除</a>
</div>
</li>
%L~%R
%L~it.cartData.advance_goods :v:index%R
<li class="goods-item">
<a href="%L=v.product_url%R">
<img src="%L=v.default_img%R" alt="" class="goods-img"></a>
<div class="goods-detail float-left">
<h3 class="content"><a href="%L=v.product_url%R">%L=v.product_name%R</a></h3>
<h3 class="style">
颜色:
<span class="color">%L=v.color_name%R</span>
尺码:
<span class="size">%L=v.size_name%R</span>
</h3>
</div>
<div class="goods-price float-left">
<h3 class="priceandnum">
¥
<span class="price">%L=v.show_price%R</span>
x
<span class="num">%L=v.buy_number%R</span>
</h3>
<a href="javascript:void(0)" class="delete" onclick="delCartGoods(%L=v.goods_incart_id%R,%L=v.is_cheapest_free%R);">删除</a>
</div>
</li>
%L~%R
%L~it.cartData.outlet_goods :v:index%R
<li class="goods-item">
<a href="%L=v.product_url%R">
<img src="%L=v.default_img%R" alt="" class="goods-img"></a>
<div class="goods-detail float-left">
<h3 class="content"><a href="%L=v.product_url%R">%L=v.product_name%R</a></h3>
<h3 class="style">
颜色:
<span class="color">%L=v.color_name%R</span>
尺码:
<span class="size">%L=v.size_name%R</span>
</h3>
</div>
<div class="goods-price float-left">
<h3 class="priceandnum">
¥
<span class="price">%L=v.show_price%R</span>
x
<span class="num">%L=v.buy_number%R</span>
</h3>
<a href="javascript:void(0)" class="delete" onclick="delCartGoods(%L=v.goods_incart_id%R,%L=v.is_cheapest_free%R);">删除</a>
</div>
</li>
%L~%R
%L~it.cartData.gift_goods :v:index%R
<li class="goods-item">
<a href="%L=v.product_url%R">
<img src="%L=v.default_img%R" alt="" class="goods-img"></a>
<div class="goods-detail float-left">
<h3 class="content"><a href="%L=v.product_url%R">%L=v.product_name%R</a></h3>
<h3 class="style">
颜色:
<span class="color">%L=v.color_name%R</span>
尺码:
<span class="size">%L=v.size_name%R</span>
</h3>
</div>
<div class="goods-price float-left">
<h3 class="priceandnum">
¥
<span class="price">%L=v.show_price%R</span>
x
<span class="num">%L=v.buy_number%R</span>
</h3>
<a href="javascript:void(0)" class="delete" onclick="delCartGoods(%L=v.goods_incart_id%R,%L=v.is_cheapest_free%R);">删除</a>
</div>
</li>
%L~%R
%L~it.cartData.need_pay_gifts :v:index%R
<li class="goods-item">
<a href="%L=v.product_url%R">
<img src="%L=v.default_img%R" alt="" class="goods-img"></a>
<div class="goods-detail float-left">
<h3 class="content"><a href="%L=v.product_url%R">%L=v.product_name%R</a></h3>
<h3 class="style">
颜色:
<span class="color">%L=v.color_name%R</span>
尺码:
<span class="size">%L=v.size_name%R</span>
</h3>
</div>
<div class="goods-price float-left">
<h3 class="priceandnum">
¥
<span class="price">%L=v.show_price%R</span>
x
<span class="num">%L=v.buy_number%R</span>
</h3>
<a href="javascript:void(0)" class="delete" onclick="delCartGoods(%L=v.goods_incart_id%R,%L=v.is_cheapest_free%R);">删除</a>
</div>
</li>
%L~%R
</ul>
<ul class="activity-list">
%L? it.cartData.has_promotion == 1%R
<li class="activity-item">
<span class="activity-name">活动</span>
<h3 class="activity-content">
%L? it.cartData.fit_outlet_promotion %R购outlet商品,满¥1999再享9折%L?%R
%L? it.cartData.has_other_promotion == 1 %R<span class="mycart_i_down" title="更多" onclick="dispDom(this, \'mycartmore\');"></span>%L?%R
%L? it.cartData.has_first_promotion == 1 %R%L=it.cartData.first_promotions.promotion_title%R%L?%R
</h3>
</li>
%L?%R
%L? it.cartData.fit_free_shipping == 1%R
<li class="activity-item">
<span class="activity-name">免运费</span>
<h3 class="activity-content">全场满 ¥499免运费</h3>
</li>
%L?%R
</ul>
</div>
<div class="gobuy-notempty-footer">
<h3>
<a href="<?php print QConfigs_Site_Config::$site_url;?>/shopping/cart">去购物车结算</a>
</h3>
</div>
</div>
</script>
<script type="text/html" id="tmpl-my-login-new">
<div class="myyoho-info-header clearfix">
%L? it.head_ico %R
<div class="myyoho-photo" style="display:none;"><img src="" alt="" data-url ="%L=it.head_ico%R"></div>
%L?%R
<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>
<h3 class="user-level">
VIP:
<span class="leveldetail">%L=it.vip.curVipInfo.title%R</span>
</h3>
%L? it.vip.curVipInfo.curLevel < 3%R
<div class="levelinfo">
<div class="levelwrapper float-left">
<div class="levelspan">
<span class="has">%L=it.vip.curYearCost%R</span>
/
<span class="total">%L=it.vip.nextVipInfo.needCost%R</span>
</div>
<p class="%L? it.vip.curYearCostPer !=0%Rintegrate%L?%R" style="width: %L=it.vip.curYearCostPer%R%;"></p>
</div>
<span class="cardcate float-left">%L=it.vip.nextVipInfo.title%R</span>
</div>
%L?%R
</div>
<ul class="myyoho-info-content">
<li class="item">
<span class="itemdetail float-left">
<a href="<?php print QConfigs_Site_Config::$site_url?>/home/orders?t=<?php print microtime(true);?>">待处理的订单</a>
</span>
<span class="itemnum float-right">%L=it.orderCount%R</span>
</li>
<li class="item">
<span class="itemdetail float-left">
<a href="<?php print QConfigs_Site_Config::$site_url?>/home/favorite?t=<?php print microtime(true);?>">我的收藏</a>
</span>
<span class="itemnum float-right"></span>
</li>
<li class="item">
<span class="itemdetail float-left">
<a href="<?php print QConfigs_Site_Config::$site_url?>/home/coupons?t=<?php print microtime(true);?>">我的优惠券</a>
</span>
<span class="itemnum float-right">%L=it.couponCount%R</span>
</li>
<li class="item">
<span class="itemdetail float-left">
<a href="<?php print QConfigs_Site_Config::$site_url?>/home/currency?t=<?php print microtime(true);?>">我的YOHO币</a>
</span>
<span class="itemnum float-right">%L=it.YohocoinCount%R</span>
</li>
<li class="item">
<span class="itemdetail float-left">
<a href="<?php print QConfigs_Site_Config::$site_url?>/home/returns?t=<?php print microtime(true);?>">我的退货换货</a>
</span>
<span class="itemnum float-right">%L=it.refundCount%R</span>
</li>
</ul>
<div class="myyoho-info-footer">
<a href="<?php print QConfigs_Site_Config::$site_url?>/home/user?t=<?php print microtime(true);?>">完善资料</a>
</div>
</script>
<script type="text/html" id="tmpl-nologin">
<span>Hi~</span>[<a href="<?php print QConfigs_Site_Config::$site_url;?>/signin.html" class="list-a login-out">请登录</a>] [<a href="<?php print QConfigs_Site_Config::$site_url;?>/reg.html" class="list-a login-out" onclick="getSource(\'会员部_注册统计\',\'免费注册\',\'homepage_man\');">免费注册</a>]
</script>
<script type="text/html" id="tmpl-login">
<span>Hi~<a href="<?php print QConfigs_Site_Config::$site_url;?>/home?t=<?php print microtime(true);?>">%L=it.user_name%R</a></span> %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>] [<a href="<?php print QConfigs_Site_Config::$site_url;?>/reg.html" onclick="getSource(\'会员部_注册统计\',\'免费注册\',\'homepage_man\');" class="list-a login-out">免费注册</a>]%L?%R
</script>
<script type="text/html" id="tmpl-my-noLogin">
<div class="account-login">
<div><a href="<?php print QConfigs_Site_Config::$site_url?>/signin.html" class="button">立即登录</a></div>
<div><span>新用户?</span><a href="<?php print QConfigs_Site_Config::$site_url?>/reg.html" onclick="getSource(\'会员部_注册统计\',\'免费注册\',\'homepage_man\');">[免费注册]</a></div>
</div>
<ul class="home-layer">
<li class="clear"><a href="<?php print QConfigs_Site_Config::$site_url?>/home/orders?t=<?php print microtime(true);?>" class="left">我的订单</a></li>
<li class="clear"><a href="<?php print QConfigs_Site_Config::$site_url?>/home/favorite?t=<?php print microtime(true);?>" class="left">我的收藏</a></li>
<li class="clear"><a href="<?php print QConfigs_Site_Config::$site_url?>/home/coupons?t=<?php print microtime(true);?>" class="left">我的优惠券</a></li>
<li class="clear"><a href="<?php print QConfigs_Site_Config::$site_url?>/home/currency?t=<?php print microtime(true);?>" class="left">我的YOHO币</a></li>
<li class="clear"><a href="<?php print QConfigs_Site_Config::$site_url?>/home/returns?t=<?php print microtime(true);?>" class="left">我的退换货</a></li>
</ul>
</script>
<script type="text/html" id="tmpl-message">
<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>
</script>
</div>'
.
''
.
'<div class="home-page yoho-page">
I am boys page
</div>
'
.
''
.
' <div class="footer-page yoho-page">
<div class="footertop">
<div class="index-foot">
<dl class="clearfix screen">
<dd>
<div class="foot-panel">
<div class="title relative">
<div class="title-line"></div>
<div class="text">
<span>有货SERVICES</span>
</div>
</div>
<div id="foot-services">
<ul class="clearfix two-dim">
<li class="left">
<div class="">
<a href="javascript:void(0);">
<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>
<p>YOHO!有货</p>
</div>
</li>
<li class="left">
<div class="">
<a href="javascript:void(0);">
<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>
<p>微信</p>
</div>
</li>
<li class="left">
<div class="">
<a href="javascript:void(0);">
<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>
<p>微博</p>
</div>
</li>
</ul>
</div>
</div>
<p class="item-nav center" id="button-services">
<a href="javascript:void(0);" key="0">
<span class="ifont10 cur">O</span>
</a>
</p>
</dd>
<dd>
<div class="foot-panel" id="feedbackBoxList">
<div class="title relative">
<div class="title-line"></div>
<div class="text">
<span>意见反馈</span>
</div>
</div>
<ul class="clearfix vote">
<li style="display:block" key="0">
<form action="#" id="feedbackForm">
<input type="hidden" name="question_id" id="question_id" value="38">
<input type="hidden" name="feedback_id" id="feedback_id" value="5">
<div>您喜欢有货的新版吗?</div>
<div class="vote-item clearfix">
<p>
<input type="radio" name="solution" value="33">非常喜欢</p>
<p>
<input type="radio" name="solution" value="34">喜欢</p>
<p>
<input type="radio" name="solution" value="35">一般般</p>
<p>
<input type="radio" name="solution" value="36">不喜欢</p>
<p>
<input type="radio" name="solution" value="37">非常不喜欢</p>
</div>
<div>
<a href="javascript:void(0);" id="feedbackBtn" class="button">提交</a>
</div>
</form>
</li>
<li style="display:none" key="1">
<form action="#" id="feedbackForm">
<input type="hidden" name="question_id" id="question_id" value="39">
<input type="hidden" name="feedback_id" id="feedback_id" value="5">
<div>您可以方便的找到想查看的内容吗?</div>
<div class="vote-item clearfix">
<p>
<input type="radio" name="solution" value="38">非常方便</p>
<p>
<input type="radio" name="solution" value="39">方便</p>
<p>
<input type="radio" name="solution" value="40">一般般</p>
<p>
<input type="radio" name="solution" value="41">不方便</p>
<p>
<input type="radio" name="solution" value="42">非常不方便</p>
</div>
<div>
<a href="javascript:void(0);" id="feedbackBtn" class="button">提交</a>
</div>
</form>
</li>
<li style="display:none" key="2">
<form action="#" id="feedbackForm">
<input type="hidden" name="question_id" id="question_id" value="37">
<input type="hidden" name="feedback_id" id="feedback_id" value="5">
<div>您对新版还有哪些意见或建议?</div>
<textarea name="answer" id="feedback_answer"></textarea>
<div>
<a href="javascript:void(0);" id="feedbackBtn" class="button">提交</a>
</div>
</form>
</li>
</ul>
</div>
<p class="item-nav center" id="feedbackPage">
<a href="javascript:void(0);">
<span class="ifont10 cur">O</span>
</a>
<a href="javascript:void(0);">
<span class="ifont10 ">o</span>
</a>
<a href="javascript:void(0);">
<span class="ifont10 ">o</span>
</a>
</p>
</dd>
<dd class="last">
<div class="foot-panel">
<div class="title relative">
<div class="title-line"></div>
<div class="text">
<span>更多 YOHO!产品</span>
</div>
</div>
<div id="foot-mobile">
<ul class="clearfix mobile">
<li>
<a href="http://app.yohoshow.com/" target="_blank" titl="">
<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>
</li>
<li>
<a href="http://www.yohoboys.com/" target="_blank" titl="">
<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>
</li>
<li>
<a href="http://www.yohogirls.com/" target="_blank" titl="">
<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>
</li>
</ul>
</div>
</div>
<p class="item-nav center" id="button-mobile">
<a href="javascript:void(0);">
<span class="ifont10 cur">O</span>
</a>
</p>
</dd>
</dl>
</div>
</div>
<div class="footerbottom">
<div class="promise">
<div class="screen clearfix">
<div class="left">
<span class="ifont rgbf">g</span>
<span class="red">100%</span>
<span class="rgbf">品牌授权正品</span>
</div>
<div class="left">
<span class="ifont rgbf">L</span>
<span class="red">7天</span>
<span class="rgbf">无理由退换货</span>
</div>
<div class="left">
<span class="ifont rgbf">p</span>
<span class="rgbf">客服电话:</span>
<span class="red">400-889-9646</span>
<span class="rgb9">08:00-22:30(周一至周日)</span>
<span>
<a href="http://chat80.live800.com/live800/chatClient/chatbox.jsp?companyID=493979&configID=123576&jid=9277320930" target="_blank" style="color:red">在线客服</a>
</span>
</div>
<div class="right subscribe footer-right">
<input class="rgb6 top" name="subscriberBox" id="subscriberBox" value="订阅我们的邮件">
<a href="javascript:void(0);" id="subscriberBtn" class="ifont rgbf">m</a>
<!--<input class="rgb6 top wrong" value="订阅我们的邮件" />
<a href="" class="ifont rgbf done">=</a>
-->
</div>
</div>
</div>
<div class="footer-help">
<div class="screen clearfix">
<div class="left">
<ul class="clearfix">
<li class="left">
<p>
<span>新手指南</span>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=81#help_b00reg" target="_blank">注册登录</a>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=83" target="_blank">选购商品</a>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=103" target="_blank">订单支付</a>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=85" target="_blank">收货退款</a>
</p>
</li>
<li class="left">
<p>
<span>会员中心</span>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=87" target="_blank">YOHO币</a>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=91" target="_blank">会员制度</a>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=89" target="_blank">账户管理</a>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=93" target="_blank">密码管理</a>
</p>
</li>
<li class="left">
<p>
<span>购物指南</span>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=95" target="_blank">全球购专区</a>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=97" target="_blank">尺码选择</a>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=99" target="_blank">发票</a>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=101" target="_blank">商品咨询</a>
</p>
</li>
<li class="left">
<p>
<span>支付方式</span>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=105" target="_blank">在线支付</a>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=107" target="_blank">货到付款</a>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=109" target="_blank">优惠券</a>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=111" target="_blank">YOHO币支付</a>
</p>
</li>
<li class="left">
<p>
<span>配送方式</span>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=113" target="_blank">配送时间</a>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=115" target="_blank">配送范围</a>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=119" target="_blank">顺丰速运</a>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=117" target="_blank">商品验收与签收</a>
</p>
</li>
<li class="left">
<p>
<span>售后服务</span>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=121" target="_blank">退换货政策</a>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=123" target="_blank">退换货流程</a>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=125" target="_blank">退款方式与时效</a>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=127" target="_blank">投诉与建议</a>
</p>
</li>
<li class="left">
<p>
<span>APP常见问题</span>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=133" target="_blank">IPhone版</a>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=135" target="_blank">Android版</a>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=137" target="_blank">wap版</a>
</p>
<p>
<a href="http://www.yohobuy.com/help/?category_id=139" target="_blank">IPAD版</a>
</p>
</li>
</ul>
</div>
</div>
</div>
<div class="footer-link">
<div class="screen clearfix">
<div class="left right-flag">
<a href="https://ss.knet.cn/verifyseal.dll?sn=e14021832010046477dka7000000&ct=df&a=1&pa=0.5902942178957805" target="_blank" rel="nofollow">
<img src="http://static.yohobuy.com/images/v3/icon/credit-flag3.png"></a>
<a href="http://www.isc.org.cn/" target="_blank" rel="nofollow">
<img src="http://static.yohobuy.com/images/v3/icon/isc2.png"></a>
</div>
<div class="left about-us">
<p>
<a href="http://www.yohobuy.com">返回首页</a>
<span>|</span>
<a href="http://www.yohobuy.com">YOHO!有货</a>
<span>|</span>
<a href="http://www.yohobuy.com/newpower.html">新力传媒</a>
<span>|</span>
<a href="http://www.yohobuy.com/contact.html">联系我们</a>
<span>|</span>
<a href="http://shop.yohobuy.com/settled">商家入驻</a>
<span>|</span>
<a href="http://www.yohobuy.com/privacy.html">隐私条款</a>
<span>|</span>
<a href="http://www.yohobuy.com/link.html">友情链接</a>
</p>
<p>
CopyRight © 2007-2016 南京新与力文化传播有限公司
<a href="http://www.miibeian.gov.cn/" target="_blank" style="color:#666">苏ICP备09011225号</a>
NewPower Co. 版权所有 经营许可证编号:苏B2-20120395
</p>
</div>
</div>
</div>
</div>
</div>'
.
' <script src="http://localhost:8000/static/js/sea.js?nowrap"></script>
<script>
seajs.config({
base: \'http://localhost:8000/\'
});
</script>
'
.
' <script>
seajs.use(\'js/common\');
seajs.use(\'js/header\');
</script>
'
.
Plugin\LCRun3
::
debug
(
'if [boysHomePage]'
,
'ifv'
,
$cx
,
Plugin\LCRun3
::
debug
(
'[boysHomePage]'
,
'v'
,
$cx
,
$in
,
array
(
'boysHomePage'
)),
$in
,
function
(
$cx
,
$in
)
{
return
' <script>
seajs.use(\'js/home/entrey\', function(h) {
h.set(\'boys\');
});
</script>
'
;})
.
'
'
.
Plugin\LCRun3
::
debug
(
'if [searchListPage]'
,
'ifv'
,
$cx
,
Plugin\LCRun3
::
debug
(
'[searchListPage]'
,
'v'
,
$cx
,
$in
,
array
(
'searchListPage'
)),
$in
,
function
(
$cx
,
$in
)
{
return
' <script>
seajs.use(\'js/product/list\');
</script>
'
;})
.
''
.
' </body>
</html>'
.
''
;
}
?>
\ No newline at end of file
compile/www.yohobuy.com/0.0.1/5c2ef6235970755c7871eb72ac395ae4.php
View file @
d274e20
...
...
@@ -38,7 +38,7 @@
<link rel="stylesheet" href="http://webstatic.dev.yohobuy.com/css/index.css">
</head>
<body>
'
.
''
.
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
">
'
.
''
.
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
">
<div class="header-topwrapper clearfix">
<div class="header-top">
<div class="leftpart float-left">
...
...
@@ -554,7 +554,7 @@
</div>'
.
''
;})
.
''
;})
.
'
</div>
'
.
''
.
' <div class="
footer-page yoho-page
">
'
.
''
.
' <div class="
yoho-footer
">
<div class="footertop">
<div class="index-foot">
<dl class="clearfix screen">
...
...
@@ -912,7 +912,11 @@
</script>
'
.
' <script>
seajs.use(\'js/common\');
seajs.use(\'js/header\');
seajs.use(\'js/header\',function(header) {
if(header) {
header.init();
}
});
</script>
'
.
Plugin\LCRun3
::
debug
(
'if [boysHomePage]'
,
'ifv'
,
$cx
,
Plugin\LCRun3
::
debug
(
'[boysHomePage]'
,
'v'
,
$cx
,
$in
,
array
(
'boysHomePage'
)),
$in
,
function
(
$cx
,
$in
)
{
return
' <script>
...
...
template/www.yohobuy.com/partials/layout/page-footer.phtml
View file @
d274e20
<div class="
footer-page yoho-page
">
<div class="
yoho-footer
">
<div class="footertop">
<div class="index-foot">
<dl class="clearfix screen">
...
...
template/www.yohobuy.com/partials/layout/page-header.phtml
View file @
d274e20
{
{#headerdata
}
}
<div
class=
"
header-page yoho-page
"
>
<div
class=
"
yoho-header
"
>
<div
class=
"header-topwrapper clearfix"
>
<div
class=
"header-top"
>
<div
class=
"leftpart float-left"
>
...
...
template/www.yohobuy.com/partials/layout/use.phtml
View file @
d274e20
<script>
seajs.use('js/common');
seajs.use('js/header');
seajs.use('js/header',function(header) {
if(header) {
header.init();
}
});
</script>
{{!-- 首页 --}}
...
...
web-static/js/header.js
View file @
d274e20
...
...
@@ -5,14 +5,506 @@
*/
var
$
=
require
(
'jquery'
);
var
noticeSuccess
=
false
;
function
JsonPCallBack
(
data
)
{
var
topbanner
;
if
(
+
data
.
code
===
200
)
{
if
(
typeof
data
.
data
===
'object'
)
{
topbanner
=
'<a target="_blank" href="'
+
data
.
data
.
url
+
'" class="page-top-banner"'
+
'style="height:50px;border:none;background-image:url('
+
window
.
unescape
(
data
.
data
.
src
)
+
');'
+
'background-position: center;display:block;background-color:#ff5409;"> </a>'
;
$
(
'body'
).
prepend
(
topbanner
);
}
}
}
function
NoticeCallBack
(
data
)
{
if
(
+
data
.
code
===
200
)
{
noticeSuccess
=
true
;
}
}
window
.
JsonPCallBack
=
JsonPCallBack
;
window
.
NoticeCallBack
=
NoticeCallBack
;
/**
* 检测是否获得公告
* @return {[type]} [description]
*/
function
checkNotice
()
{
var
noticeinner
;
if
(
!
noticeSuccess
)
{
noticeinner
=
'<div class="noticewrapper">'
+
'<div class="noticecontainer">'
+
'<h1 class="noticetitle">关于系统升级的公告</h1>'
+
'<div class="noticecontent">'
+
'<p class="tips">尊敬的顾客:</p>'
+
'<p class="detail">您好!为了向您提供更优质的服务,目前系统正在升级,请耐心等待。</p>'
+
'<p class="detail">'
+
'系统升级期间,部分地区用户体验会有暂时中断,如遇紧急事宜,欢迎垂询客服热线:400-889-9646 09:00-22:30(周一至周日)。稍后系统将恢复正常'
+
'</p>'
+
'<p class="detail">使用,欢迎您继续光顾YOHO!BUY有货!带来不便之处深表歉意,请您谅解!</p>'
+
'</div>'
+
'</div>'
+
'</div>'
;
$
(
'.header-topwrapper'
).
append
(
noticeinner
);
}
}
/**
* 获得banner数据
* @param {[string]} code [banner对应的编码]
* @return {[type]} [description]
*/
function
getBannerData
(
code
)
{
var
script
=
document
.
createElement
(
'script'
);
script
.
src
=
'http://new.yohobuy.com/resource/getbanner?content_code='
+
code
+
'&client_type=web&callback=JsonPCallBack'
;
document
.
getElementsByTagName
(
'head'
)[
0
].
appendChild
(
script
);
}
/**
* 获取公告的jsonp请求
* @param {[type]} code [description]
* @return {[type]} [description]
*/
function
getNoticeData
(
code
)
{
var
script
=
document
.
createElement
(
'script'
);
script
.
src
=
'http://new.yohobuy.com/resource/getbanner?content_code='
+
code
+
'&client_type=web&callback=NoticeCallBack'
;
document
.
getElementsByTagName
(
'head'
)[
0
].
appendChild
(
script
);
window
.
setTimeout
(
checkNotice
,
5000
);
//5s后检测是否成功
}
/**
* 显示和隐藏
* @param {[type]} sourceClass [description]
* @param {[type]} targetClass [description]
* @return {[type]} [description]
*/
function
toggleDisplay
(
sourceClass
,
targetClass
)
{
var
$that
,
targetobj
;
$
(
sourceClass
).
hover
(
function
(
e
)
{
e
.
preventDefault
();
$that
=
$
(
this
);
targetobj
=
$
(
targetClass
)[
0
];
if
(
targetobj
.
style
.
display
===
''
)
{
$that
.
addClass
(
'acttags'
);
targetobj
.
style
.
display
=
'block'
;
}
else
{
$that
.
removeClass
(
'acttags'
);
targetobj
.
style
.
display
=
''
;
}
});
}
/**
* 执行顶部显示和隐藏
* @return {[type]} [description]
*/
function
actionTopTagToggle
()
{
var
tags
=
[{
sourceClass
:
'.myyoho'
,
targetClass
:
'.myyoho-info'
},
{
sourceClass
:
'.phone'
,
targetClass
:
'.qr'
}],
obj
,
i
;
for
(
i
=
0
;
i
<
tags
.
length
;
i
++
)
{
obj
=
tags
[
i
];
toggleDisplay
(
obj
.
sourceClass
,
obj
.
targetClass
);
}
}
/**
* 执行顶部群组鼠标交互
* @return {[type]} [description]
*/
function
actionYoHoGroup
()
{
var
$this
;
$
(
'.yohogroup'
).
mouseenter
(
function
()
{
$this
=
$
(
this
);
$this
.
text
(
$this
.
attr
(
'cn'
));
});
$
(
'.yohogroup'
).
mouseleave
(
function
()
{
$this
=
$
(
this
);
$this
.
text
(
$this
.
attr
(
'en'
));
});
}
/**
* 检测是否支持css3的动画
* @return {Boolean} [description]
*/
function
isSupportCss3Animation
()
{
var
thisFunc
,
prefixList
=
[
'webkit'
,
'moz'
,
'ms'
],
i
;
for
(
i
=
0
;
i
<
prefixList
.
length
;
i
++
)
{
thisFunc
=
prefixList
[
i
]
+
'RequestAnimationFrame'
;
if
(
window
[
thisFunc
])
{
return
true
;
}
else
{
return
false
;
}
}
}
/**
* css3动画
* @param {Array} ) { var thisFunc, prefixList [description]
* @return {[type]} [description]
*/
function
requestFrameCloser
()
{
var
prefixList
=
[
'webkit'
,
'moz'
,
'ms'
];
var
func1
=
prefixList
[
0
]
+
'RequestAnimationFrame'
;
var
func2
=
prefixList
[
1
]
+
'RequestAnimationFrame'
;
var
func3
=
prefixList
[
2
]
+
'RequestAnimationFrame'
;
if
(
window
[
func1
])
{
return
function
(
callback
)
{
window
[
func1
](
callback
);
};
}
if
(
window
[
func2
])
{
return
function
(
callback
)
{
window
[
func2
](
callback
);
};
}
if
(
window
[
func3
])
{
return
function
(
callback
)
{
window
[
func3
](
callback
);
};
}
return
function
(
callback
)
{
window
.
setTimeout
(
callback
,
67
);
};
}
window
.
requestFrame
=
requestFrameCloser
();
window
.
start
=
0
;
window
.
$logotrans
=
$
(
'.icon-logo'
);
window
.
isen
=
true
;
/**
* css3动画
* @return {[type]} [description]
*/
function
tsAnimate
()
{
window
.
start
+=
10
;
window
.
$logotrans
.
css
({
transform
:
'rotateX('
+
window
.
start
+
'deg)'
,
'-webkit-transform'
:
'rotateX('
+
window
.
start
+
'deg)'
,
'-moz-transform'
:
'rotateX('
+
window
.
start
+
'deg)'
});
if
(
window
.
start
/
90
%
2
===
1
)
{
if
(
window
.
isen
)
{
window
.
$logotrans
.
css
(
'background-image'
,
'url(http://static.yohobuy.com/newheader/img/logo1.png)'
);
window
.
isen
=
false
;
}
else
{
window
.
$logotrans
.
css
(
'background-image'
,
'url(http://static.yohobuy.com/newheader/img/logo_e.png)'
);
window
.
isen
=
true
;
}
}
if
(
window
.
start
/
90
%
2
===
0
&&
window
.
start
%
360
!==
0
)
{
window
.
setTimeout
(
tsAnimate
,
3000
);
}
else
{
if
(
window
.
start
%
360
===
0
)
{
window
.
setTimeout
(
tsAnimate
,
1
*
60
*
1000
);
}
else
{
window
.
requestFrame
(
function
()
{
tsAnimate
();
});
}
}
}
window
.
loopdurationtime
=
500
;
window
.
globaltimeout
;
window
.
onetimeoout
;
/**
* 淡出
* @return {[type]} [description]
*/
function
fadeAnimate
()
{
if
(
window
.
globaltimeout
)
{
window
.
clearTimeout
(
window
.
globaltimeout
);
}
window
.
logotrans
.
fadeOut
(
window
.
loopdurationtime
,
function
()
{
window
.
isen
=
false
;
window
.
logotrans
.
css
(
'background-image'
,
'url(http://static.yohobuy.com/newheader/img/logo.png)'
);
window
.
logotrans
.
fadeIn
(
window
.
loopdurationtime
,
function
()
{
window
.
onetimeoout
=
window
.
setTimeout
(
function
()
{
window
.
logotrans
.
fadeOut
(
window
.
loopdurationtime
,
function
()
{
window
.
clearTimeout
(
window
.
onetimeoout
);
window
.
isen
=
true
;
window
.
logotrans
.
css
(
'background-image'
,
'url(http://static.yohobuy.com/newheader/img/logo_e.png)'
);
window
.
logotrans
.
fadeIn
(
window
.
loopdurationtime
,
function
()
{
window
.
globaltimeout
=
window
.
setTimeout
(
fadeAnimate
,
1
*
60
*
1000
);
});
});
},
3000
);
});
});
}
/**
* 执行头部logo动画
* @return {[type]} [description]
*/
function
actionTopLogoAnimate
()
{
if
(
isSupportCss3Animation
())
{
window
.
setTimeout
(
tsAnimate
,
3000
);
}
else
{
window
.
setTimeout
(
fadeAnimate
,
3000
);
}
}
/**
* 回到顶部
* @type {[type]}
* 查询跳转后保留关键字
* @return {[type]} [description]
*/
var
$returnTop
=
$
(
'.return-top'
);
function
actionAddKeyWords
()
{
var
$keywords
=
$
(
'#nav_keyword'
).
text
();
var
defaultsearch
=
'vans'
;
var
$querykey
=
$
(
'#query_key'
);
$returnTop
.
click
(
function
()
{
$
(
'html,body'
).
animate
({
scrollTop
:
0
},
500
);
});
\ No newline at end of file
if
(
$keywords
!==
''
)
{
$querykey
.
css
({
color
:
'#000'
});
$querykey
.
val
(
$keywords
);
}
else
{
$querykey
.
css
({
color
:
'#e0e0e0'
});
$querykey
.
val
(
defaultsearch
);
$querykey
.
on
(
'focus'
,
function
(
e
)
{
$querykey
.
css
({
color
:
'#000'
});
$querykey
.
val
(
''
);
});
}
}
window
.
dataLayer
=
[];
function
getSource
(
column
,
postition
,
event
)
{
try
{
window
.
dataLayer
.
push
({
louceng
:
column
,
weizhi
:
postition
,
event
:
event
});
}
catch
(
e
)
{}
}
/**
* 搜寻的时候过滤非法字符(+-/:等非法字符单独出现)
* @type {RegExp}
*/
window
.
reg
=
/^
[\^\!\+\-\(\)\:\[\]\\\{\}\~\*\?\|\&\;\/\s]{0,}
$/g
;
window
.
keyword
=
''
;
window
.
link
=
''
;
window
.
submitSearch
=
function
()
{
var
$keywordinput
=
$
(
'#query_key'
).
val
();
var
column
=
'Search'
;
var
postition
=
'Head Search'
;
var
event
=
'Search'
;
var
$formatkeyword
,
$formatkeywordinput
;
$formatkeyword
=
$
.
trim
(
window
.
keyword
.
toLowerCase
());
$formatkeywordinput
=
$
.
trim
(
$keywordinput
.
toLowerCase
());
getSource
(
column
,
postition
,
event
);
if
(
window
.
link
!==
''
&&
window
.
keyword
!==
''
&&
$formatkeyword
===
$formatkeywordinput
)
{
location
.
href
=
window
.
link
.
replace
(
'\''
,
''
);
}
else
{
if
(
window
.
reg
.
test
(
$keywordinput
))
{
location
.
href
=
'http://search.yohobuy.com/error?query='
+
$keywordinput
+
'&result=error'
;
}
else
{
$
(
'#searchForm'
).
submit
();
return
false
;
}
}
};
/**
* banner和地址的映射
* @type {Object}
*/
window
.
bannerMap
=
{
listboys
:
'4f78b0f418fc42314d8b6e791cfb7fa8'
,
listgirls
:
'00c1f025a51b6b597dc37925951ea27d'
,
listkids
:
'b02df11184727701ade1b6de9737d08c'
,
listlifestyle
:
'fd35c52dced0c880976ba858346d1fc5'
,
searchboys
:
'9fb8986ea700cc27a8057361c3924394'
,
searchgirls
:
'e3e207a1443ca60c8037fe52a5560c18'
,
searchkids
:
'620fc77f479da8feaeb06f2324e5d0bb'
,
searchlifestyle
:
'a3c93301c6ffaf3ed0f36a4a451be36d'
,
uniquebrandboys
:
'2ebb0810c0d1a67e5229149c9c3aba7d'
,
uniquebrandgirls
:
'99e23385f4ba4b65f406b7e2968ac821'
,
uniquebrandkids
:
'a74ebc9b17840c91b9ea46568111fe6b'
,
uniquebrandlifestyle
:
'0e8c81ead53f56302baa4d0ad967f527'
,
brandsboys
:
'77b352db07129c76a9d532acad149f9f'
,
brandsgirls
:
'bf047f16e52ebc38be5ce9c7623831e6'
,
brandskids
:
'e3ae1ce9b5e13c6d271ef3eccb831652'
,
brandslifestyle
:
'e4ac8029c30f65d7f1af030980d140fe'
,
newboys
:
'869d3c5f3b450fb52101d00a61ce87cb'
,
newgirls
:
'd953b6dfdac02483d1dcce8d96055954'
,
newkids
:
'0874cb6d75df8e0e78f2d475e53ecc08'
,
newlifestyle
:
'43e8fc8e178115c262bbce2bd0012db7'
,
saleboys
:
'c846e3165c994769b4201d8c32f3ae9b'
,
salegirls
:
'52b1d389edcbc62d65de71b80c4d6ad0'
,
salekids
:
'ad8b1703c761ba00973868ab5199cc27'
,
salelifestyle
:
'7acc64905c70ac91846f43fb2cec4bbd'
,
homeboys
:
'b0856a771ef1b59ab1234c74688fa42d'
,
homegirls
:
'2bd61fa12e4933211518f70fe5ce3c48'
,
homekids
:
'895c59e8c64b40399c9533509507320c'
,
homelifestyle
:
'2e037d4e25d2767352ca3e0a4627f7bd'
,
indexboys
:
'0c911d3000f52e8ca7cffb74f5864c29'
,
indexgirls
:
'b645b8980c423ab30485e0a9d08c2ef7'
,
indexkids
:
'17f6d5d5d454d2c507bc5fcbc90f7756'
,
indexlifestyle
:
'735cd393e841762af8793c346abbbc36'
};
/**
* cookie集合
* @type {Object}
*/
window
.
cookieMap
=
{};
function
actionExeCookieMap
()
{
var
cookies
=
document
.
cookie
;
var
cookiearr
=
cookies
.
split
(
';'
);
var
i
;
var
temparr
;
var
key
;
for
(
i
=
0
;
i
<
cookiearr
.
length
;
i
++
)
{
temparr
=
cookiearr
[
i
].
split
(
'='
);
key
=
temparr
[
0
].
replace
(
/
\s
/g
,
''
);
window
.
cookieMap
[
key
]
=
temparr
[
1
];
}
}
/**
* 获得banner & 异常通知
* @return {[type]} [description]
*/
function
actionGetBannerAndNotice
()
{
var
INDEXKIDS
=
'indexkids'
,
INDEXLIFESTYLE
=
'indexlifestyle'
,
INDEXBOYS
=
'indexboys'
,
INDEXWOMAN
=
'indexgirls'
,
UNIQUEBRAND
=
'uniquebrand'
;
var
url
=
window
.
location
.
href
;
var
host
=
window
.
location
.
host
;
var
code
=
''
;
var
firstarea
;
if
(
url
.
indexOf
(
'search'
)
!==
-
1
)
{
code
=
window
.
bannerMap
[
'search'
+
window
.
cookieMap
.
_Channel
];
}
if
(
url
.
indexOf
(
'list'
)
!==
-
1
)
{
code
=
window
.
bannerMap
[
'list'
+
window
.
cookieMap
.
_Channel
];
}
if
(
url
.
indexOf
(
'brands'
)
!==
-
1
)
{
code
=
window
.
bannerMap
[
'brands'
+
window
.
cookieMap
.
_Channel
];
}
if
(
url
.
indexOf
(
'new'
)
!==
-
1
)
{
code
=
window
.
bannerMap
[
'new'
+
window
.
cookieMap
.
_Channel
];
}
if
(
url
.
indexOf
(
'sale'
)
!==
-
1
)
{
code
=
window
.
bannerMap
[
'sale'
+
window
.
cookieMap
.
_Channel
];
}
if
(
url
.
indexOf
(
'home'
)
!==
-
1
)
{
code
=
window
.
bannerMap
[
'home'
+
window
.
cookieMap
.
_Channel
];
}
if
(
url
.
indexOf
(
'kids'
)
!==
-
1
)
{
code
=
window
.
bannerMap
[
INDEXKIDS
];
}
if
(
url
.
indexOf
(
'woman'
)
!==
-
1
)
{
code
=
window
.
bannerMap
[
INDEXWOMAN
];
}
if
(
url
.
indexOf
(
'lifestyle'
)
!==
-
1
)
{
code
=
window
.
bannerMap
[
INDEXLIFESTYLE
];
}
if
(
url
.
indexOf
(
'www.yohobuy.com'
)
!==
-
1
&&
window
.
location
.
pathname
===
'/'
)
{
code
=
window
.
bannerMap
[
INDEXBOYS
];
}
firstarea
=
host
.
split
(
'.'
)[
0
];
if
(
firstarea
!==
'list'
&&
firstarea
!==
'search'
&&
firstarea
!==
'www'
&&
firstarea
!==
'new'
&&
firstarea
!==
'item'
&&
firstarea
!==
'guang'
)
{
code
=
window
.
bannerMap
[
UNIQUEBRAND
+
window
.
cookieMap
.
_Channel
];
}
getBannerData
(
code
);
//获得banner信息
getNoticeData
(
code
);
//获得公告信息
}
function
brandSwitch
(
index
)
{
$
(
'.hot-brands'
).
find
(
'ul'
).
stop
().
animate
({
opacity
:
0
,
'z-index'
:
1
},
200
).
eq
(
index
).
animate
({
opacity
:
1
,
'z-index'
:
2
},
200
);
}
/**
* 品牌左右切换
* @return {[type]} [description]
*/
function
actionBrandChange
()
{
var
activeIndex
=
0
,
swiperLen
;
if
(
$
(
'.hot-brands'
).
size
()
>
0
)
{
swiperLen
=
$
(
'.hot-brands'
).
find
(
'ul'
).
size
();
$
(
'.hot-brands'
).
find
(
'ul'
).
eq
(
0
).
css
({
opacity
:
1
,
'z-index'
:
2
});
$
(
'.brands-control'
).
on
(
'click'
,
'.next'
,
function
()
{
if
(
activeIndex
===
swiperLen
-
1
)
{
activeIndex
=
0
;
}
else
{
activeIndex
++
;
}
brandSwitch
(
activeIndex
);
});
$
(
'.brands-control'
).
on
(
'click'
,
'.prev'
,
function
()
{
if
(
activeIndex
===
0
)
{
activeIndex
=
swiperLen
-
1
;
}
else
{
activeIndex
--
;
}
brandSwitch
(
activeIndex
);
});
}
}
/**
* 初始化函数
* @return {[type]} [description]
*/
exports
.
init
=
function
()
{
actionExeCookieMap
();
actionYoHoGroup
();
actionTopTagToggle
();
actionTopLogoAnimate
();
actionGetBannerAndNotice
();
actionBrandChange
();
actionAddKeyWords
();
};
\ No newline at end of file
...
...
web-static/sass/_footer.scss
View file @
d274e20
...
...
@@ -8,7 +8,7 @@
font-weight
:
normal
;
font-style
:
normal
;
}
.
footer-page
{
.
yoho-footer
{
font-size
:
12px
;
/*----文字颜色----*/
.red
{
...
...
@@ -377,7 +377,7 @@
}
}
@media
(
max-width
:
1310px
){
.
footer-page
{
.
yoho-footer
{
.return-top
{
left
:
100%
;
right
:
20px
;
...
...
@@ -388,7 +388,7 @@
}
@media
(
min-width
:
1310px
){
.
footer-page
{
.
yoho-footer
{
.return-top
{
left
:
50%
;
margin-left
:
595px
;
...
...
@@ -396,7 +396,7 @@
}
}
@media
(
max-width
:
1180px
){
.
footer-page
{
.
yoho-footer
{
.screen
{
width
:
990px
;
margin-left
:
auto
;
...
...
@@ -476,7 +476,7 @@
}
}
@media
(
min-width
:
1180px
){
.
footer-page
{
.
yoho-footer
{
.screen
{
width
:
1150px
;
margin-left
:
auto
;
...
...
web-static/sass/_header.scss
View file @
d274e20
.
header-page
{
.
yoho-header
{
.header-topwrapper
{
width
:
100%
;
background-color
:
#f4f4f4
;
...
...
yohobuy/www.yohobuy.com/application/controllers/Boys.php
View file @
d274e20
...
...
@@ -9,210 +9,208 @@ class BoysController extends AbstractAction
public
function
indexAction
()
{
$headerdata
=
array
(
'gobytype'
=>
'gobuyboys'
,
'searchcate'
=>
'searchcateboys'
,
'navbars'
=>
array
(
array
(
'name_cn'
=>
'男生'
,
'name_en'
=>
'BOYS'
,
'link'
=>
''
,
'classname'
=>
'boys'
,
'index_main'
=>
0
,
'subnav'
=>
array
(
array
(
'name'
=>
'男首1'
,
'link'
=>
''
,
'index_sub'
=>
0
,
'thirdnav'
=>
array
(
array
(
'title'
=>
'上装'
,
'branditems'
=>
array
(
array
(
'brandname'
=>
'背心'
,
'link'
=>
''
),
array
(
'brandname'
=>
'T恤'
,
'link'
=>
''
)
)
$headerdata
=
array
(
'gobytype'
=>
'gobuyboys'
,
'searchcate'
=>
'searchcateboys'
,
'navbars'
=>
array
(
array
(
'name_cn'
=>
'男生'
,
'name_en'
=>
'BOYS'
,
'link'
=>
''
,
'classname'
=>
'boys'
,
'index_main'
=>
0
,
'subnav'
=>
array
(
array
(
'name'
=>
'男首1'
,
'link'
=>
''
,
'index_sub'
=>
0
,
'thirdnav'
=>
array
(
array
(
'title'
=>
'上装'
,
'branditems'
=>
array
(
array
(
'brandname'
=>
'背心'
,
'link'
=>
''
),
array
(
'brandname'
=>
'T恤'
,
'link'
=>
''
)
)
)
),
array
(
'name'
=>
'男首2'
,
'link'
=>
''
,
'index_sub'
=>
1
,
'thirdnav'
=>
array
(
array
(
'title'
=>
'上装'
,
'branditems'
=>
array
(
array
(
'brandname'
=>
'背心'
,
'link'
=>
''
),
array
(
'brandname'
=>
'T恤'
,
'link'
=>
''
)
)
)
)
),
array
(
'name'
=>
'男首3'
,
'link'
=>
''
,
'index_sub'
=>
2
,
'thirdnav'
=>
array
(
array
(
'title'
=>
'上装'
,
'branditems'
=>
array
(
array
(
'brandname'
=>
'背心'
,
'link'
=>
''
),
array
(
'brandname'
=>
'T恤'
,
'link'
=>
''
)
)
)
),
array
(
'name'
=>
'男首2'
,
'link'
=>
''
,
'index_sub'
=>
1
,
'thirdnav'
=>
array
(
array
(
'title'
=>
'上装'
,
'branditems'
=>
array
(
array
(
'brandname'
=>
'背心'
,
'link'
=>
''
),
array
(
'brandname'
=>
'T恤'
,
'link'
=>
''
)
)
)
)
),
array
(
'name'
=>
'男首3'
,
'link'
=>
''
,
'index_sub'
=>
2
,
'thirdnav'
=>
array
(
array
(
'title'
=>
'上装'
,
'branditems'
=>
array
(
array
(
'brandname'
=>
'背心'
,
'link'
=>
''
),
array
(
'brandname'
=>
'T恤'
,
'link'
=>
''
)
)
)
)
)
),
array
(
'name_cn'
=>
'女生'
,
'name_en'
=>
'GIRLS'
,
'link'
=>
'http=>//www.baidu.com'
,
'classname'
=>
''
,
'index_main'
=>
0
,
'subnav'
=>
array
(
array
(
'name'
=>
'女生1'
,
'link'
=>
''
,
'index_sub'
=>
0
,
'thirdnav'
=>
array
(
array
(
'title'
=>
'上装'
,
'branditems'
=>
array
(
array
(
'brandname'
=>
'背心'
,
'link'
=>
''
),
array
(
'brandname'
=>
'T恤'
,
'link'
=>
''
)
)
)
)
),
array
(
'name_cn'
=>
'女生'
,
'name_en'
=>
'GIRLS'
,
'link'
=>
'http=>//www.baidu.com'
,
'classname'
=>
''
,
'index_main'
=>
0
,
'subnav'
=>
array
(
array
(
'name'
=>
'女生1'
,
'link'
=>
''
,
'index_sub'
=>
0
,
'thirdnav'
=>
array
(
array
(
'title'
=>
'上装'
,
'branditems'
=>
array
(
array
(
'brandname'
=>
'背心'
,
'link'
=>
''
),
array
(
'brandname'
=>
'T恤'
,
'link'
=>
''
)
)
)
),
array
(
'name'
=>
'女生2'
,
'link'
=>
''
,
'index_sub'
=>
1
,
'thirdnav'
=>
array
(
array
(
'title'
=>
'上装'
,
'branditems'
=>
array
(
array
(
'brandname'
=>
'背心'
,
'link'
=>
''
),
array
(
'brandname'
=>
'T恤'
,
'link'
=>
''
)
)
)
),
array
(
'name'
=>
'女生2'
,
'link'
=>
''
,
'index_sub'
=>
1
,
'thirdnav'
=>
array
(
array
(
'title'
=>
'上装'
,
'branditems'
=>
array
(
array
(
'brandname'
=>
'背心'
,
'link'
=>
''
),
array
(
'brandname'
=>
'T恤'
,
'link'
=>
''
)
)
)
),
array
(
'name'
=>
'女生3'
,
'link'
=>
''
,
'index_sub'
=>
2
,
'thirdnav'
=>
array
(
array
(
'title'
=>
'上装'
,
'branditems'
=>
array
(
array
(
'brandname'
=>
'背心'
,
'link'
=>
''
),
array
(
'brandname'
=>
'T恤'
,
'link'
=>
''
)
)
)
),
array
(
'name'
=>
'女生3'
,
'link'
=>
''
,
'index_sub'
=>
2
,
'thirdnav'
=>
array
(
array
(
'title'
=>
'上装'
,
'branditems'
=>
array
(
array
(
'brandname'
=>
'背心'
,
'link'
=>
''
),
array
(
'brandname'
=>
'T恤'
,
'link'
=>
''
)
)
)
)
)
)
)
),
)
),
'myyoho'
=>
array
(
'email'
=>
'hhh@126.com'
,
'viptype'
=>
'普通会员'
,
'currentscore'
=>
495
,
'totalscore'
=>
600
,
'cardtype'
=>
'银卡'
,
'infolist'
=>
array
(
array
(
'name'
=>
'待处理的订单'
,
'link'
=>
''
,
'num'
=>
'0'
),
array
(
'name'
=>
'我的收藏'
,
'link'
=>
''
,
'num'
=>
'1'
),
array
(
'name'
=>
'我的优惠券'
,
'link'
=>
''
,
'num'
=>
'2'
),
array
(
'name'
=>
'我的YOHO币'
,
'link'
=>
''
,
'num'
=>
'1'
),
array
(
'name'
=>
'我的退货换货'
,
'link'
=>
''
,
'num'
=>
'1'
)
'email'
=>
'hhh@126.com'
,
'viptype'
=>
'普通会员'
,
'currentscore'
=>
495
,
'totalscore'
=>
600
,
'cardtype'
=>
'银卡'
,
'infolist'
=>
array
(
array
(
'name'
=>
'待处理的订单'
,
'link'
=>
''
,
'num'
=>
'0'
),
'updlink'
=>
''
),
'gobuy'
=>
array
(
'gobuynum'
=>
3
),
'breadcrumbnav'
=>
array
(
array
(
'notend'
=>
array
(
'link'
=>
'http=>//www.baidu.com'
,
'name'
=>
'BOYS首页'
)
'name'
=>
'我的收藏'
,
'link'
=>
''
,
'num'
=>
'1'
),
array
(
'notend'
=>
array
(
'link'
=>
'http=>//www.baidu.com'
,
'name'
=>
'上衣'
)
array
(
'name'
=>
'我的优惠券'
,
'link'
=>
''
,
'num'
=>
'2'
),
array
(
'isend'
=>
array
(
'link'
=>
'http=>//www.baidu.com'
,
'name'
=>
'衬衫'
)
array
(
'name'
=>
'我的YOHO币'
,
'link'
=>
''
,
'num'
=>
'1'
),
array
(
'name'
=>
'我的退货换货'
,
'link'
=>
''
,
'num'
=>
'1'
)
),
'updlink'
=>
''
),
'gobuy'
=>
array
(
'gobuynum'
=>
3
),
'breadcrumbnav'
=>
array
(
array
(
'notend'
=>
array
(
'link'
=>
'http=>//www.baidu.com'
,
'name'
=>
'BOYS首页'
)
),
array
(
'notend'
=>
array
(
'link'
=>
'http=>//www.baidu.com'
,
'name'
=>
'上衣'
)
),
array
(
'isend'
=>
array
(
'link'
=>
'http=>//www.baidu.com'
,
'name'
=>
'衬衫'
)
)
)
);
$tpldata
=
array
(
'name'
=>
'潮人配饰 ORNAMENT'
,
...
...
Please
register
or
login
to post a comment