diff --git a/compile/www.yohobuy.com/0.0.1/5c2ef6235970755c7871eb72ac395ae4.php b/compile/www.yohobuy.com/0.0.1/5c2ef6235970755c7871eb72ac395ae4.php new file mode 100644 index 0000000..a259ebe --- /dev/null +++ b/compile/www.yohobuy.com/0.0.1/5c2ef6235970755c7871eb72ac395ae4.php @@ -0,0 +1,931 @@ +<?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> + '.''.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"> + <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"> +'.Plugin\LCRun3::debug('[boy]', 'sec', $cx, Plugin\LCRun3::debug('[boy]', 'v', $cx, $in, array('boy')), $in, false, function($cx, $in) {return ' <div class="slide-container"> +'.Plugin\LCRun3::debug('if [bigSlide]', 'ifv', $cx, Plugin\LCRun3::debug('[bigSlide]', 'v', $cx, $in, array('bigSlide')), $in, function($cx, $in) {return ' <div class="big-slide"> + <ul> +'.Plugin\LCRun3::debug('[bigSlide]', 'sec', $cx, Plugin\LCRun3::debug('[bigSlide]', 'v', $cx, $in, array('bigSlide')), $in, false, function($cx, $in) {return ' <li> + <a href="'.Plugin\LCRun3::debug('[href]', 'encq', $cx, Plugin\LCRun3::debug('[href]', 'v', $cx, $in, array('href'))).'"> + <img src="'.Plugin\LCRun3::debug('[img]', 'encq', $cx, Plugin\LCRun3::debug('[img]', 'v', $cx, $in, array('img'))).'" alt=""> + </a> + </li> +';}).' </ul> + <div class="slide-switch"> + <a class="prev" href="javascript:;"> + <span class="iconfont"></span> + </a> + <a class="next" href="javascript:;"> + <span class="iconfont"></span> + </a> + </div> + </div> +';}).' +'.Plugin\LCRun3::debug('if [smallSlide]', 'ifv', $cx, Plugin\LCRun3::debug('[smallSlide]', 'v', $cx, $in, array('smallSlide')), $in, function($cx, $in) {return ' <div class="small-slide"> + <ul class="clearfix"> +'.Plugin\LCRun3::debug('[smallSlide]', 'sec', $cx, Plugin\LCRun3::debug('[smallSlide]', 'v', $cx, $in, array('smallSlide')), $in, false, function($cx, $in) {return ' <li> + <a href="'.Plugin\LCRun3::debug('[href]', 'encq', $cx, Plugin\LCRun3::debug('[href]', 'v', $cx, $in, array('href'))).'"></a> + <img src="'.Plugin\LCRun3::debug('[img]', 'encq', $cx, Plugin\LCRun3::debug('[img]', 'v', $cx, $in, array('img'))).'" alt=""> + </li> +';}).' </ul> + </div> +';}).' </div> +'.Plugin\LCRun3::debug('[newReport]', 'sec', $cx, Plugin\LCRun3::debug('[newReport]', 'v', $cx, $in, array('newReport')), $in, false, function($cx, $in) {return ' <div class="new-report clearfix"> +'.' <div class="floor-header clearfix"> + <h2 class="floor-title">'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'</h2> +'.Plugin\LCRun3::debug('if [navs]', 'ifv', $cx, Plugin\LCRun3::debug('[navs]', 'v', $cx, $in, array('navs')), $in, function($cx, $in) {return ' <ul class="header-navs"> +'.Plugin\LCRun3::debug('[navs]', 'sec', $cx, Plugin\LCRun3::debug('[navs]', 'v', $cx, $in, array('navs')), $in, false, function($cx, $in) {return ' <li data-classify="'.Plugin\LCRun3::debug('[id]', 'encq', $cx, Plugin\LCRun3::debug('[id]', 'v', $cx, $in, array('id'))).'"> + <a target="_blank" href="'.Plugin\LCRun3::debug('[href]', 'encq', $cx, Plugin\LCRun3::debug('[href]', 'v', $cx, $in, array('href'))).'">'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'</a> + </li> +';}).' </ul> +';}).' </div>'.' + <ul class="report-list clearfix"> +'.Plugin\LCRun3::debug('[list]', 'sec', $cx, Plugin\LCRun3::debug('[list]', 'v', $cx, $in, array('list')), $in, false, function($cx, $in) {return ''.Plugin\LCRun3::debug('unless @[last]', 'unl', $cx, Plugin\LCRun3::debug('@[last]', 'v', $cx, $cx['sp_vars'], array('last')), $in, function($cx, $in) {return ' <li> + <a href="'.Plugin\LCRun3::debug('[href]', 'encq', $cx, Plugin\LCRun3::debug('[href]', 'v', $cx, $in, array('href'))).'"> + <img src="'.Plugin\LCRun3::debug('[img]', 'encq', $cx, Plugin\LCRun3::debug('[img]', 'v', $cx, $in, array('img'))).'" alt=""> + </a> + </li> +';}).'';}).' </ul> + +'.Plugin\LCRun3::debug('[list]', 'sec', $cx, Plugin\LCRun3::debug('[list]', 'v', $cx, $in, array('list')), $in, false, function($cx, $in) {return ''.Plugin\LCRun3::debug('if @[last]', 'ifv', $cx, Plugin\LCRun3::debug('@[last]', 'v', $cx, $cx['sp_vars'], array('last')), $in, function($cx, $in) {return ' <div class="last-item"> + <a href="'.Plugin\LCRun3::debug('[href]', 'encq', $cx, Plugin\LCRun3::debug('[href]', 'v', $cx, $in, array('href'))).'"> + <img src="'.Plugin\LCRun3::debug('[img]', 'encq', $cx, Plugin\LCRun3::debug('[img]', 'v', $cx, $in, array('img'))).'" alt=""> + </a> + </div> +';}).'';}).' </div> +';}).''.Plugin\LCRun3::debug('[preferenceBrand]', 'sec', $cx, Plugin\LCRun3::debug('[preferenceBrand]', 'v', $cx, $in, array('preferenceBrand')), $in, false, function($cx, $in) {return ' <div class="preference-brand"> +'.' <div class="floor-header clearfix"> + <h2 class="floor-title">'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'</h2> +'.Plugin\LCRun3::debug('if [navs]', 'ifv', $cx, Plugin\LCRun3::debug('[navs]', 'v', $cx, $in, array('navs')), $in, function($cx, $in) {return ' <ul class="header-navs"> +'.Plugin\LCRun3::debug('[navs]', 'sec', $cx, Plugin\LCRun3::debug('[navs]', 'v', $cx, $in, array('navs')), $in, false, function($cx, $in) {return ' <li data-classify="'.Plugin\LCRun3::debug('[id]', 'encq', $cx, Plugin\LCRun3::debug('[id]', 'v', $cx, $in, array('id'))).'"> + <a target="_blank" href="'.Plugin\LCRun3::debug('[href]', 'encq', $cx, Plugin\LCRun3::debug('[href]', 'v', $cx, $in, array('href'))).'">'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'</a> + </li> +';}).' </ul> +';}).' </div>'.' <div class="img-brand"> + <ul class="img-list clearfix"> +'.Plugin\LCRun3::debug('[imgBrand]', 'sec', $cx, Plugin\LCRun3::debug('[imgBrand]', 'v', $cx, $in, array('imgBrand')), $in, false, function($cx, $in) {return ' <li class="img-item"> + <a href="'.Plugin\LCRun3::debug('[href]', 'encq', $cx, Plugin\LCRun3::debug('[href]', 'v', $cx, $in, array('href'))).'"> + <img src="'.Plugin\LCRun3::debug('[img]', 'encq', $cx, Plugin\LCRun3::debug('[img]', 'v', $cx, $in, array('img'))).'" alt=""> + </a> + </li> +';}).' </ul> + <div class="img-brand-switch"> + <a class="prev" href="javascript:;"> + <span class="iconfont"></span> + </a> + <a class="next" href="javascript:;"> + <span class="iconfont"></span> + </a> + </div> + </div> + <div class="logo-brand"> + <ul class="clearfix"> +'.Plugin\LCRun3::debug('[logoBrand]', 'sec', $cx, Plugin\LCRun3::debug('[logoBrand]', 'v', $cx, $in, array('logoBrand')), $in, false, function($cx, $in) {return ''.Plugin\LCRun3::debug('if [switch]', 'ifv', $cx, Plugin\LCRun3::debug('[switch]', 'v', $cx, $in, array('switch')), $in, function($cx, $in) {return ' <li class="logo-brand-switch"> + <a class="prev iconfont" href="javascript:;"></a> + <a class="next iconfont" href="javascript:;"></a> + </li> +';}, function($cx, $in) {return ''.Plugin\LCRun3::debug('if [more]', 'ifv', $cx, Plugin\LCRun3::debug('[more]', 'v', $cx, $in, array('more')), $in, function($cx, $in) {return ' <li class="brand-more"> + <a href="'.Plugin\LCRun3::debug('[href]', 'encq', $cx, Plugin\LCRun3::debug('[href]', 'v', $cx, $in, array('href'))).'">MORE ></a> + </li> +';}, function($cx, $in) {return ' <li> + <a href="'.Plugin\LCRun3::debug('[href]', 'encq', $cx, Plugin\LCRun3::debug('[href]', 'v', $cx, $in, array('href'))).'"> + <img src="'.Plugin\LCRun3::debug('[img]', 'encq', $cx, Plugin\LCRun3::debug('[img]', 'v', $cx, $in, array('img'))).'" alt=""> + </a> + </li> +';}).'';}).'';}).' </ul> + </div> + </div> +';}).' +'.Plugin\LCRun3::debug('each [recommend]', 'sec', $cx, Plugin\LCRun3::debug('[recommend]', 'v', $cx, $in, array('recommend')), $in, true, function($cx, $in) {return ''.''.Plugin\LCRun3::debug('[tplrecommend]', 'sec', $cx, Plugin\LCRun3::debug('[tplrecommend]', 'v', $cx, $in, array('tplrecommend')), $in, false, function($cx, $in) {return ''.' <div class="floor-header clearfix"> + <h2 class="floor-title">'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'</h2> +'.Plugin\LCRun3::debug('if [navs]', 'ifv', $cx, Plugin\LCRun3::debug('[navs]', 'v', $cx, $in, array('navs')), $in, function($cx, $in) {return ' <ul class="header-navs"> +'.Plugin\LCRun3::debug('[navs]', 'sec', $cx, Plugin\LCRun3::debug('[navs]', 'v', $cx, $in, array('navs')), $in, false, function($cx, $in) {return ' <li data-classify="'.Plugin\LCRun3::debug('[id]', 'encq', $cx, Plugin\LCRun3::debug('[id]', 'v', $cx, $in, array('id'))).'"> + <a target="_blank" href="'.Plugin\LCRun3::debug('[href]', 'encq', $cx, Plugin\LCRun3::debug('[href]', 'v', $cx, $in, array('href'))).'">'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'</a> + </li> +';}).' </ul> +';}).' </div>'.' <div class="tpl-recommend clearfix"> + <div class="tpl-body clearfix"> + <div class="tpl-nav"> + <div class="tpl-keywords"> +'.Plugin\LCRun3::debug('each [keyword]', 'sec', $cx, Plugin\LCRun3::debug('[keyword]', 'v', $cx, $in, array('keyword')), $in, true, function($cx, $in) {return ' <a class="keywords'.Plugin\LCRun3::debug('@[index]', 'encq', $cx, Plugin\LCRun3::debug('@[index]', 'v', $cx, $cx['sp_vars'], array('index'))).'" title="'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'" href="'.Plugin\LCRun3::debug('[url]', 'encq', $cx, Plugin\LCRun3::debug('[url]', 'v', $cx, $in, array('url'))).'"><img class="lazy" data-original="'.Plugin\LCRun3::debug('[img]', 'encq', $cx, Plugin\LCRun3::debug('[img]', 'v', $cx, $in, array('img'))).'"/></a> +';}).' </div> + <div class="tpl-category clearfix"> +'.Plugin\LCRun3::debug('each [category]', 'sec', $cx, Plugin\LCRun3::debug('[category]', 'v', $cx, $in, array('category')), $in, true, function($cx, $in) {return ' <a href="'.Plugin\LCRun3::debug('[url]', 'encq', $cx, Plugin\LCRun3::debug('[url]', 'v', $cx, $in, array('url'))).'">'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'</a> +';}).' </div> + </div> + <div class="tpl-brands clearfix"> + <ul> +'.Plugin\LCRun3::debug('each [brands]', 'sec', $cx, Plugin\LCRun3::debug('[brands]', 'v', $cx, $in, array('brands')), $in, true, function($cx, $in) {return ' <li><a title="'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'" href="'.Plugin\LCRun3::debug('[url]', 'encq', $cx, Plugin\LCRun3::debug('[url]', 'v', $cx, $in, array('url'))).'"><img class="lazy" data-original="'.Plugin\LCRun3::debug('[img]', 'encq', $cx, Plugin\LCRun3::debug('[img]', 'v', $cx, $in, array('img'))).'"/></a></li> +';}).' </ul> + </div> + <div class="tpl-types clearfix"> + <ul> +'.Plugin\LCRun3::debug('each [types]', 'sec', $cx, Plugin\LCRun3::debug('[types]', 'v', $cx, $in, array('types')), $in, true, function($cx, $in) {return ' <li><a title="'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'" href="'.Plugin\LCRun3::debug('[url]', 'encq', $cx, Plugin\LCRun3::debug('[url]', 'v', $cx, $in, array('url'))).'"><img class="lazy" data-original="'.Plugin\LCRun3::debug('[img]', 'encq', $cx, Plugin\LCRun3::debug('[img]', 'v', $cx, $in, array('img'))).'"/></a></li> +';}).' </ul> + </div> + </div> + <div class="tpl-products clearfix"> + <ul> +'.Plugin\LCRun3::debug('each [products]', 'sec', $cx, Plugin\LCRun3::debug('[products]', 'v', $cx, $in, array('products')), $in, true, function($cx, $in) {return ' <li><a href="'.Plugin\LCRun3::debug('[url]', 'encq', $cx, Plugin\LCRun3::debug('[url]', 'v', $cx, $in, array('url'))).'" title="'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'"><img class="lazy" data-original="'.Plugin\LCRun3::debug('[img]', 'encq', $cx, Plugin\LCRun3::debug('[img]', 'v', $cx, $in, array('img'))).'"/></a></li> +';}).' </ul> + </div> + </div> +';}).' + +'.'';}).' +'.Plugin\LCRun3::debug('[newArrivls]', 'sec', $cx, Plugin\LCRun3::debug('[newArrivls]', 'v', $cx, $in, array('newArrivls')), $in, false, function($cx, $in) {return ''.''.' <div class="floor-header clearfix"> + <h2 class="floor-title">'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'</h2> +'.Plugin\LCRun3::debug('if [navs]', 'ifv', $cx, Plugin\LCRun3::debug('[navs]', 'v', $cx, $in, array('navs')), $in, function($cx, $in) {return ' <ul class="header-navs"> +'.Plugin\LCRun3::debug('[navs]', 'sec', $cx, Plugin\LCRun3::debug('[navs]', 'v', $cx, $in, array('navs')), $in, false, function($cx, $in) {return ' <li data-classify="'.Plugin\LCRun3::debug('[id]', 'encq', $cx, Plugin\LCRun3::debug('[id]', 'v', $cx, $in, array('id'))).'"> + <a target="_blank" href="'.Plugin\LCRun3::debug('[href]', 'encq', $cx, Plugin\LCRun3::debug('[href]', 'v', $cx, $in, array('href'))).'">'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'</a> + </li> +';}).' </ul> +';}).' </div>'.' <div class="commodity"> + + <ul class="clearfix"> +'.Plugin\LCRun3::debug('each [commodity]', 'sec', $cx, Plugin\LCRun3::debug('[commodity]', 'v', $cx, $in, array('commodity')), $in, true, function($cx, $in) {return ' <li> +'.Plugin\LCRun3::debug('[state]', 'sec', $cx, Plugin\LCRun3::debug('[state]', 'v', $cx, $in, array('state')), $in, false, function($cx, $in) {return ' <i class="commodity-tag'.Plugin\LCRun3::debug('this', 'encq', $cx, $in).'"></i> +';}).' <a href="'.Plugin\LCRun3::debug('[url]', 'encq', $cx, Plugin\LCRun3::debug('[url]', 'v', $cx, $in, array('url'))).'"><div class="commodity-img"><img class="lazy" data-original="'.Plugin\LCRun3::debug('[img]', 'encq', $cx, Plugin\LCRun3::debug('[img]', 'v', $cx, $in, array('img'))).'"/></div> + <p class="commodity-name">'.Plugin\LCRun3::debug('[name]', 'encq', $cx, Plugin\LCRun3::debug('[name]', 'v', $cx, $in, array('name'))).'</p> + <p class="commodity-price"><span>¥'.Plugin\LCRun3::debug('[price]', 'encq', $cx, Plugin\LCRun3::debug('[price]', 'v', $cx, $in, array('price'))).'</span></p> + </a> + </li> +';}).' </ul> + <div class="loading"> + <p>Loading...</p> + </div> + </div>'.'';}).'';}).' + +</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\'); + });*/ + seajs.use(\'js/home/home\'); + </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 diff --git a/docs/web-data-structure.md b/docs/web-data-structure.md index aa7edae..f475eec 100644 --- a/docs/web-data-structure.md +++ b/docs/web-data-structure.md @@ -1 +1,195 @@ -# WEB数据结构定义 \ No newline at end of file +# WEB数据结构定义 + +## 公共定义 + +### 商品 + + +## 搜索页 + + { + products: { + //筛选相关 + filters: { + checkedConditions: { + clearUrl: '', //清空筛选链接 + conditions: [ + //正常情况下文字显示 + { + href: '', + name: '暗黑' + }, + //特殊情况下颜色显示 + { + href: '', + 'color': '#f00' + }, + ... + ] + }, + //-- 筛选项数据Start(需要显示就传,不显示不传) -- + channel: [ + { + href: '', + name: 'Boys' + }, + ... + ], + sort: [ + { + name: '上衣', + sub: [ + { + href: '', + name: 'T恤' + }, + ... + ] + }, + ... + ], + brand: { + default: [ + { + href: '', + name: '' + }, + ... + ], + //索引:index为索引键值(字母转化为小写) + brandIndex: [ + { + index: 'all', + name: '全部' + }, + { + index: '0-9', + name: '0 ~ 9' + }, + { + index: 'a', + name: 'A' + }, + ... + ], + brandShow: [ + { + id: 1, + href: '', + index:'0-9', //与brandIndex中索引一致 + name: '5cm', + key: '5cm' //key为品牌关键字,用于搜索和索引,保持小写 + }, + { + id: 2, + href: '', + index: 'k', + name: 'KTZ', + key: 'ktz' + }, + ... + ], + price: [ + { + href: '', + name: '0-239' + }, + ... + ], + color: [ + { + href: '', + name: '黑色', + rgb: '#000' //此处若为彩色和银色,需要传图片路径字符串:url('path/to/img') + }, + ... + ], + size: [ + { + href: '', + name: '' + }, + ... + ], + seniorChose: [ + { + attr: 'style', //查找的键值 + name: '风格', + showMulti: true, //是否显示多选按钮 + sub: [ + { + id: '', + href: '', + name: '' + }, + ... + ] + }, + ... + ] + } + }, + //操作Banner相关 + opts: { + sortType: [ + { + href: '', + name: '默认' + }, + { + active: true, //当前选中 + href: '', + name: '最新', + hasSortOrient: true, //是否有正逆序 + desc: true //逆序排序(默认不传为正序) + }, + { + href: '', + name: '价格', + hasSortOrient: true + }, + { + href: '', + name: '折扣', + hasSortOrient: true + } + ], + checks: [ + { + name: '新品', + checked: true, + href: '' + }, + { + name: '打折', + href: '' + }, + { + name: '限量', + href: '' + } + ], + fivePerLine: true, + sixPerLineHref: '', + //or + sixPerLine: true, + fivePerLineHref: '', + + countPerPage => 120, + pageCounts => [ + { + href: '', + count: 60 + }, + ... + ], + + + curPage: 1, + pageCount: 30, + preHref: '', //若当前为第一页,不传此参数 + nexHref: '' //若当前为最后一页,不传此参数 + }, + //商品列表 + } + } \ No newline at end of file diff --git a/template/www.yohobuy.com/actions/index/boys/index.phtml b/template/www.yohobuy.com/actions/index/boys/index.phtml index 4a40b04..50345e9 100644 --- a/template/www.yohobuy.com/actions/index/boys/index.phtml +++ b/template/www.yohobuy.com/actions/index/boys/index.phtml @@ -1,5 +1,129 @@ {{> layout/header}} <div class="home-page yoho-page"> - I am boys page +{{# boy}} + <div class="slide-container"> + {{#if bigSlide}} + <div class="big-slide"> + <ul> + {{# bigSlide}} + <li> + <a href="{{href}}"> + <img src="{{img}}" alt=""> + </a> + </li> + {{/ bigSlide}} + </ul> + <div class="slide-switch"> + <a class="prev" href="javascript:;"> + <span class="iconfont"></span> + </a> + <a class="next" href="javascript:;"> + <span class="iconfont"></span> + </a> + </div> + </div> + {{/if}} + + {{#if smallSlide}} + <div class="small-slide"> + <ul class="clearfix"> + {{# smallSlide}} + <li> + <a href="{{href}}"></a> + <img src="{{img}}" alt=""> + </li> + {{/ smallSlide}} + </ul> + </div> + {{/if}} + </div> + {{# newReport}} + <div class="new-report clearfix"> + {{> index/floor_header}} + + <ul class="report-list clearfix"> + {{# list}} + {{#unless @last}} + <li> + <a href="{{href}}"> + <img src="{{img}}" alt=""> + </a> + </li> + {{/unless}} + {{/ list}} + </ul> + + {{# list}} + {{#if @last}} + <div class="last-item"> + <a href="{{href}}"> + <img src="{{img}}" alt=""> + </a> + </div> + {{/if}} + {{/ list}} + </div> + {{/ newReport}} + {{# preferenceBrand}} + <div class="preference-brand"> + {{> index/floor_header}} + <div class="img-brand"> + <ul class="img-list clearfix"> + {{# imgBrand}} + <li class="img-item"> + <a href="{{href}}"> + <img src="{{img}}" alt=""> + </a> + </li> + {{/ imgBrand}} + </ul> + <div class="img-brand-switch"> + <a class="prev" href="javascript:;"> + <span class="iconfont"></span> + </a> + <a class="next" href="javascript:;"> + <span class="iconfont"></span> + </a> + </div> + </div> + <div class="logo-brand"> + <ul class="clearfix"> + {{# logoBrand}} + {{#if switch}} + <li class="logo-brand-switch"> + <a class="prev iconfont" href="javascript:;"></a> + <a class="next iconfont" href="javascript:;"></a> + </li> + {{else}} + {{#if more}} + <li class="brand-more"> + <a href="{{href}}">MORE ></a> + </li> + {{else}} + <li> + <a href="{{href}}"> + <img src="{{img}}" alt=""> + </a> + </li> + {{/if}} + {{/if}} + {{/ logoBrand}} + </ul> + </div> + </div> + {{/ preferenceBrand}} + + {{! 品类推荐}} + {{#each recommend}} + {{> index/recommend}} + {{/ recommend}} + + {{! 新品上架}} + {{# newArrivls}} + {{> index/commodity}} + {{/ newArrivls}} +{{/ boy}} + + </div> {{> layout/footer}} \ No newline at end of file diff --git a/template/www.yohobuy.com/actions/product/index/list.phtml b/template/www.yohobuy.com/actions/product/index/list.phtml index 20fc160..ada3671 100644 --- a/template/www.yohobuy.com/actions/product/index/list.phtml +++ b/template/www.yohobuy.com/actions/product/index/list.phtml @@ -1,191 +1,197 @@ {{> layout/header}} <div class="products-page yoho-page"> - <div class="filter-box"> - {{# filters}} - {{# checkedConditons}} - <div class="checked-conditions section"> - <span class="title">已选条件:</span> - - <div class="attr-content clearfix"> - {{#each conditions}} - <a class="tag" href="{{href}}"> - {{#if name}} - {{name}} - {{^}} - <i class="color-block" style="background: {{color}}"></i> - {{/if}} - <i class="close iconfont"></i> - </a> - {{/each}} - - <a class="clear-checked" href="{{clearUrl}}">清空筛选条件</a> - </div> - </div> - {{/ checkedConditons}} + {{# products}} + <div class="filter-box"> + {{# filters}} + {{# checkedConditions}} + <div class="checked-conditions section"> + <span class="title">已选条件:</span> - {{#if channel}} - <div class="channel section"> - <span class="title">频道:</span> + <div class="attr-content clearfix"> + {{#each conditions}} + <a class="tag" href="{{href}}"> + {{#if name}} + {{name}} + {{^}} + <i class="color-block" style="background: {{color}}"></i> + {{/if}} + <i class="close iconfont"></i> + </a> + {{/each}} - <div class="attr-content clearfix"> - {{#each channel}} - <a class="attr" href="{{href}}"> - {{name}} - </a> - {{/each}} + <a class="clear-checked" href="{{clearUrl}}">清空筛选条件</a> + </div> </div> - </div> - {{/if}} + {{/ checkedConditions}} - {{#if sort}} - <div class="sort section"> - <span class="title">分类:</span> + {{#if channel}} + <div class="channel section"> + <span class="title">频道:</span> - <div class="attr-content"> - <ul class="sort-pre clearfix"> - {{#each sort}} - <li> - <span class="attr" data-id="{{id}}"> - {{name}} - </span> - </li> - {{/each}} - </ul> - - <div class="sort-sub-wrap"> - {{#each sort}} - <ul class="sort-sub clearfix hide"> - {{#each sub}} - <li class="attr"> - <a href="{{href}}">{{name}}</a> - </li> - {{/each}} - </ul> + <div class="attr-content clearfix"> + {{#each channel}} + <a class="attr" href="{{href}}"> + {{name}} + </a> {{/each}} </div> </div> - </div> - {{/if}} + {{/if}} - {{# brand}} - <div class="brand section"> - <span class="title">品牌:</span> + {{#if sort}} + <div class="sort section"> + <span class="title">分类:</span> - <div class="attr-content"> - <ul class="default clearfix"> - {{# default}} - <li class="attr"> - <a href="{{href}}" title="{{name}}">{{name}}</a> - </li> - {{/ default}} - </ul> + <div class="attr-content"> + <ul class="sort-pre clearfix"> + {{#each sort}} + <li> + <span class="attr"> + {{name}} + </span> + </li> + {{/each}} + </ul> - <div class="brand-opt"> - <span id="brand-more" class="brand-more"> - <em>更多</em> - <i class="iconfont"></i> - </span> - - <span id="brand-multi" class="multi-select">多选 +</span> + <div class="sort-sub-wrap"> + {{#each sort}} + <ul class="sort-sub clearfix hide"> + {{#each sub}} + <li class="attr"> + <a href="{{href}}">{{name}}</a> + </li> + {{/each}} + </ul> + {{/each}} + </div> </div> + </div> + {{/if}} - <div class="brand-panel hide"> - <div class="panel-head clearfix"> - <p class="brands-index"> - {{#each brandIndex}} - <span data-index="{{index}}">{{name}}</span> - {{/each}} - </p> - - <div class="brand-search"> - <input id="brand-search-input" type="text"> - <span class="btn"> - <i class="iconfont"></i> - </span> - </div> - </div> + {{# brand}} + <div class="brand section"> + <span class="title">品牌:</span> - <ul class="panel-body check-container clearfix"> - {{# brandsShow}} - <li class="attr" data-index="{{index}}" data-key="{{key}}"> - <a href="{{href}}"> - <span class="iconfont checkbox" data-id="{{id}}"></span> - <span title="{{name}}">{{name}}</span> - </a> + <div class="attr-content"> + <ul class="default clearfix"> + {{# default}} + <li class="attr"> + <a href="{{href}}" title="{{name}}">{{name}}</a> </li> - {{/ brandsShow}} + {{/ default}} </ul> - <div class="btns"> - <button id="brand-multi-ok" class="multi-select-ok dis">确定</button> - <button class="multi-select-cancel">取消</button> + <div class="brand-opt"> + <span id="brand-more" class="brand-more"> + <em>更多</em> + <i class="iconfont"></i> + </span> + + <span id="brand-multi" class="multi-select">多选 +</span> + </div> + + <div class="brand-panel hide"> + <div class="panel-head clearfix"> + <p class="brands-index"> + {{#each brandIndex}} + <span data-index="{{index}}">{{name}}</span> + {{/each}} + </p> + + <div class="brand-search"> + <input id="brand-search-input" type="text"> + <span class="btn"> + <i class="iconfont"></i> + </span> + </div> + </div> + + <ul class="panel-body check-container clearfix"> + {{# brandsShow}} + <li class="attr" data-index="{{index}}" data-key="{{key}}"> + <a href="{{href}}"> + <span class="iconfont checkbox" data-id="{{id}}"></span> + <span title="{{name}}">{{name}}</span> + </a> + </li> + {{/ brandsShow}} + </ul> + + <div class="btns"> + <button id="brand-multi-ok" class="multi-select-ok dis">确定</button> + <button class="multi-select-cancel">取消</button> + </div> </div> </div> </div> - </div> - {{/ brand}} + {{/ brand}} - {{#if price}} - <div class="price section"> - <span class="title">价格:</span> + {{#if price}} + <div class="price section"> + <span class="title">价格:</span> - <div class="attr-content clearfix"> - {{# price}} - <a class="attr" href="{{href}}">¥{{name}}</a> - {{/ price}} + <div class="attr-content clearfix"> + {{# price}} + <a class="attr" href="{{href}}">¥{{name}}</a> + {{/ price}} - <div class="ud-price-range"> - ¥ - <input type="text" class="min limit"> - <span class="price-sep">-</span> - <input type="text" class="max limit"> + <div class="ud-price-range"> + ¥ + <input type="text" class="min limit"> + <span class="price-sep">-</span> + <input type="text" class="max limit"> - <button class="price-sure hide">确定</button> + <button class="price-sure hide">确定</button> + </div> </div> </div> - </div> - {{/if}} - - {{#if color}} - <div class="color section"> - <span class="title">颜色:</span> - - <div class="attr-content clearfix"> - {{# color}} - <a class="attr" href="{{href}}"> - <i class="color-block" style="background: {{rgb}}"></i> - {{name}} - </a> - {{/ color}} + {{/if}} + + {{#if color}} + <div class="color section"> + <span class="title">颜色:</span> + + <div class="attr-content clearfix"> + {{# color}} + <a class="attr" href="{{href}}"> + <i class="color-block" style="background: {{rgb}}"></i> + {{name}} + </a> + {{/ color}} + </div> </div> - </div> - {{/if}} + {{/if}} - {{#if size}} - <div class="size section"> - <span class="title">尺码:</span> + {{#if size}} + <div class="size section"> + <span class="title">尺码:</span> - <div class="attr-content clearfix"> - {{# size}} - <a class="attr" href="{{href}}">{{name}}</a> - {{/ size}} + <div class="attr-content clearfix"> + {{# size}} + <a class="attr" href="{{href}}">{{name}}</a> + {{/ size}} + </div> </div> - </div> - {{/if}} + {{/if}} - {{#if seniorChose}} - <div class="senior section"> - <span class="title">高级选项:</span> + {{#if seniorChose}} + <div class="senior section"> + <span class="title">高级选项:</span> - <div class="attr-content"> - <ul class="clearfix senior-attr-wrap"> - {{#each seniorChose}} - <li class="attr"> - {{name}} - <span class="iconfont"></span> + <div class="attr-content"> + <ul class="clearfix senior-attr-wrap"> + {{#each seniorChose}} + <li class="attr"> + {{name}} + <span class="iconfont"></span> - <div class="senior-up-icon"></div> + <div class="senior-up-icon"></div> + </li> + {{/each}} + </ul> + <div class="senior-sub-wrap"> + {{#each seniorChose}} <div class="senior-sub hide" data-attr="{{attr}}"> {{#if showMulti}} <span class="multi-select">多选 +</span> @@ -205,23 +211,128 @@ <button class="multi-select-cancel">取消</button> </div> </div> + {{/each}} + </div> + </div> + </div> + {{/if}} + {{/ filters}} + </div> + + <div class="opt-banner"> + {{# opts}} + {{# sortType}} + <a class="sort-type{{#if active}} active{{/if}}" href="{{href}}"> + {{name}} + {{#if hasSortOrient}} + {{#if active}} + {{#if desc}} + <span class="active-icon iconfont"></span> + {{^}} + <span class="active-icon iconfont"></span> + {{/if}} + {{^}} + <span class="iconfont"></span> + {{/if}} + {{^}} + <span class="iconfont"></span> + {{/if}} + </a> + {{/ sortType}} + + {{# checks}} + <a class="checks{{#if checked}} checked{{/if}}" href="{{href}}"> + {{#if checked}} + <span class="iconfont"></span> + {{^}} + <span class="iconfont"></span> + {{/if}} + {{name}} + </a> + {{/ checks}} + + <div class="pager-wrap"> + {{#if fivePerLine}} + <div class="line-count active"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + <a class="line-count" href="{{sixPerLineHref}}"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </a> + {{^}} + <a class="line-count" href="{{fivePerLineHref}}"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </a> + + <div class="line-count active"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + {{/if}} + + <div class="page-count"> + <span id="count-per-page"> + {{countPerPage}} + <i class="iconfont"></i> + </span> + 每页 + <ul> + {{# pageCounts}} + <li> + <a href="{{href}}">{{count}}</a> </li> - {{/each}} + {{/ pageCounts}} </ul> </div> + + <p class="pager"> + {{#if preHref}} + <a href="{{preHref}}"> + <span class="iconfont"></span> + </a> + {{^}} + <span class="dis-icon iconfont"></span> + {{/if}} + + <span> + <i>{{curPage}}</i>/{{pageCount}} + </span> + + {{#if nextHref}} + <a href="{{nextHref}}"> + <span class="iconfont"></span> + </a> + {{^}} + <span class="dis-icon iconfont"></span> + {{/if}} + </p> </div> - {{/if}} - {{/ filters}} - </div> - - <div class="opt-banner"> - - </div> - - <div class="goods-container"> - {{#each goods}} - {{> product/good}} - {{/each}} - </div> + {{/opts}} + </div> + + <div class="goods-container"> + {{#each goods}} + {{> product/good}} + {{/each}} + </div> + {{/ products}} </div> {{> layout/footer}} \ No newline at end of file diff --git a/template/www.yohobuy.com/partials/index/commodity.phtml b/template/www.yohobuy.com/partials/index/commodity.phtml new file mode 100644 index 0000000..6815999 --- /dev/null +++ b/template/www.yohobuy.com/partials/index/commodity.phtml @@ -0,0 +1,20 @@ +{{> index/floor_header}} +<div class="commodity"> + + <ul class="clearfix"> + {{#each commodity}} + <li> + {{# state}} + <i class="commodity-tag{{.}}"></i> + {{/ state}} + <a href="{{url}}"><div class="commodity-img"><img class="lazy" data-original="{{img}}"/></div> + <p class="commodity-name">{{name}}</p> + <p class="commodity-price"><span>¥{{price}}</span></p> + </a> + </li> + {{/each}} + </ul> + <div class="loading"> + <p>Loading...</p> + </div> +</div> \ No newline at end of file diff --git a/template/www.yohobuy.com/partials/index/floor_header.phtml b/template/www.yohobuy.com/partials/index/floor_header.phtml new file mode 100644 index 0000000..28bf6e9 --- /dev/null +++ b/template/www.yohobuy.com/partials/index/floor_header.phtml @@ -0,0 +1,12 @@ +<div class="floor-header clearfix"> + <h2 class="floor-title">{{name}}</h2> + {{#if navs}} + <ul class="header-navs"> + {{# navs}} + <li data-classify="{{id}}"> + <a target="_blank" href="{{href}}">{{name}}</a> + </li> + {{/ navs}} + </ul> + {{/if}} +</div> \ No newline at end of file diff --git a/template/www.yohobuy.com/partials/index/recommend.phtml b/template/www.yohobuy.com/partials/index/recommend.phtml new file mode 100644 index 0000000..6c0311c --- /dev/null +++ b/template/www.yohobuy.com/partials/index/recommend.phtml @@ -0,0 +1,42 @@ +{{# tplrecommend}} +{{> index/floor_header}} +<div class="tpl-recommend clearfix"> + <div class="tpl-body clearfix"> + <div class="tpl-nav"> + <div class="tpl-keywords"> + {{#each keyword}} + <a class="keywords{{@index}}" title="{{name}}" href="{{url}}"><img class="lazy" data-original="{{img}}"/></a> + {{/ keyword}} + </div> + <div class="tpl-category clearfix"> + {{#each category}} + <a href="{{url}}">{{name}}</a> + {{/ category}} + </div> + </div> + <div class="tpl-brands clearfix"> + <ul> + {{#each brands}} + <li><a title="{{name}}" href="{{url}}"><img class="lazy" data-original="{{img}}"/></a></li> + {{/each}} + </ul> + </div> + <div class="tpl-types clearfix"> + <ul> + {{#each types}} + <li><a title="{{name}}" href="{{url}}"><img class="lazy" data-original="{{img}}"/></a></li> + {{/each}} + </ul> + </div> + </div> + <div class="tpl-products clearfix"> + <ul> + {{#each products}} + <li><a href="{{url}}" title="{{name}}"><img class="lazy" data-original="{{img}}"/></a></li> + {{/each}} + </ul> + </div> +</div> +{{/ tplrecommend}} + + diff --git a/template/www.yohobuy.com/partials/layout/page-header.phtml b/template/www.yohobuy.com/partials/layout/page-header.phtml index 58d8eec..b8be9df 100644 --- a/template/www.yohobuy.com/partials/layout/page-header.phtml +++ b/template/www.yohobuy.com/partials/layout/page-header.phtml @@ -1,3 +1,4 @@ +{{#headerdata}} <div class="header-page yoho-page"> <div class="header-topwrapper clearfix"> <div class="header-top"> @@ -367,4 +368,5 @@ <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> \ No newline at end of file +</div> +{{/headerdata}} \ No newline at end of file diff --git a/template/www.yohobuy.com/partials/layout/use.phtml b/template/www.yohobuy.com/partials/layout/use.phtml index 46d9cc6..de3229a 100644 --- a/template/www.yohobuy.com/partials/layout/use.phtml +++ b/template/www.yohobuy.com/partials/layout/use.phtml @@ -6,9 +6,10 @@ {{!-- 首页 --}} {{#if boysHomePage}} <script> - seajs.use('js/home/entrey', function(h) { + /*seajs.use('js/home/entrey', function(h) { h.set('boys'); - }); + });*/ + seajs.use('js/home/home'); </script> {{/if}} diff --git a/template/www.yohobuy.com/partials/product/good.phtml b/template/www.yohobuy.com/partials/product/good.phtml index 57de85f..26706a2 100644 --- a/template/www.yohobuy.com/partials/product/good.phtml +++ b/template/www.yohobuy.com/partials/product/good.phtml @@ -1,26 +1,26 @@ -<div class="good-info" data-skn="{{skn}}"> +<div class="good-info {{#if goodListLast}}good-list-{{goodListLast}}{{/if}}" data-skn="{{skn}}"> <div class="tag-container clearfix"> {{# tags}} {{# isNew}} - <p class="good-tag new-tag">NEW</p> + <span class="good-tag new-tag">NEW</span> {{/ isNew}} {{# isReNew}} - <p class="good-tag renew-tag">再到着</p> + <span class="good-tag renew-tag">再到着</span> {{/ isReNew}} {{# isSale}} - <p class="good-tag sale-tag">SALE</p> + <span class="good-tag sale-tag">SALE</span> {{/ isSale}} {{# isNewFestival}} - <p class="good-tag new-festival-tag">新品节</p> + <span class="good-tag new-festival-tag">新品节</span> {{/ isNewFestival}} {{# isLimit}} - <p class="good-tag limit-tag">限量商品</p> + <span class="good-tag limit-tag">限量商品</span> {{/ isLimit}} {{# isYearEndPromotion}} - <p class="good-tag yep-tag">年终大促</p> + <span class="good-tag yep-tag">年终大促</span> {{/ isYearEndPromotion}} {{# isYearMidPromotion}} - <p class="good-tag ymp-tag">年中热促</p> + <span class="good-tag ymp-tag">年中热促</span> {{/ isYearMidPromotion}} {{/ tags}} </div> diff --git a/web-static/.spmignore b/web-static/.spmignore new file mode 100644 index 0000000..5bc2cf0 --- /dev/null +++ b/web-static/.spmignore @@ -0,0 +1,10 @@ +dist +_site +sea-modules +spm_modules +node_modules +.git +tests +examples +test +coverage diff --git a/web-static/font/iconfont.eot b/web-static/font/iconfont.eot index d0f1ba7..e5659ac 100644 Binary files a/web-static/font/iconfont.eot and b/web-static/font/iconfont.eot differ diff --git a/web-static/font/iconfont.svg b/web-static/font/iconfont.svg index aae81db..a292b13 100644 --- a/web-static/font/iconfont.svg +++ b/web-static/font/iconfont.svg @@ -2,7 +2,7 @@ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" > <svg xmlns="http://www.w3.org/2000/svg"> <metadata> -Created by FontForge 20120731 at Thu Nov 26 10:18:10 2015 +Created by FontForge 20120731 at Tue Dec 1 11:00:27 2015 By Ads </metadata> <defs> @@ -16,10 +16,10 @@ Created by FontForge 20120731 at Thu Nov 26 10:18:10 2015 ascent="896" descent="-128" x-height="792" - bbox="0 -214 1024 812" + bbox="0 -214 1024 864" underline-thickness="50" underline-position="-100" - unicode-range="U+0078-E613" + unicode-range="U+0078-E615" /> <missing-glyph horiz-adv-x="374" d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" /> @@ -77,5 +77,9 @@ d="M939 -212h-854q-23 0 -42.5 11.5t-31 31t-11.5 42.5v854q0 35 25 60t60 25h854q23 M457 99q-5 -6 -13 -9t-17 -3q-21 0 -30 12l-171 171q-13 10 -13 30q0 18 12.5 30.5t30.5 12.5q10 0 17.5 -3.5t12.5 -9.5l141 -141l311 312q13 12 30 12q18 0 30.5 -12.5t12.5 -29.5q0 -21 -13 -30z" /> <glyph glyph-name="uniE613" unicode="" d="M877 812h-730q-61 0 -104 -43t-43 -104v-730q0 -61 43 -104t104 -43h730q61 0 104 43t43 104v730q0 61 -43 104t-104 43zM939 -65q0 -26 -18 -44t-44 -18h-730q-26 0 -44 18t-18 44v730q0 17 8.5 31t22.5 22.5t31 8.5h730q26 0 44 -18t18 -44v-730z" /> + <glyph glyph-name="uniE614" unicode="" +d="M160 996zM865 247q0 -18 -13 -31l-308 -308q-13 -13 -31 -13t-31 13l-309 308q-13 13 -13 31t13.5 31t30.5 13h617q18 0 31 -13t13 -31zM865 511q0 -18 -13 -31t-31 -13h-617q-18 0 -31 13t-13 31t13 31l309 309q13 13 31 13t31 -13l308 -309q13 -13 13 -31z" /> + <glyph glyph-name="uniE615" unicode="" +d="M704 569l-41 39l-343 -320l343 -320l41 39l-301 281z" /> </font> </defs></svg> diff --git a/web-static/font/iconfont.ttf b/web-static/font/iconfont.ttf index a0d568f..d02cdef 100644 Binary files a/web-static/font/iconfont.ttf and b/web-static/font/iconfont.ttf differ diff --git a/web-static/font/iconfont.woff b/web-static/font/iconfont.woff index 9a2bcf6..85c0060 100644 Binary files a/web-static/font/iconfont.woff and b/web-static/font/iconfont.woff differ diff --git a/web-static/img/index/logo-brand-line.png b/web-static/img/index/logo-brand-line.png new file mode 100644 index 0000000..59b4a0e Binary files /dev/null and b/web-static/img/index/logo-brand-line.png differ diff --git a/web-static/js/common/linkage-slider.js b/web-static/js/common/linkage-slider.js new file mode 100644 index 0000000..091423c --- /dev/null +++ b/web-static/js/common/linkage-slider.js @@ -0,0 +1,97 @@ +var $ = require('jquery'); + +(function($) { + var LinkageSlider = function(element, options) { + this.$element = $(element); + this.options = $.extend({}, $.fn.linkageSlider.defaults, options); + this.bigItem = this.$element.find('.big-slide').find('li'); + this.smallItem = this.$element.find('.small-slide').find('li'); + this.len = this.bigItem.size(); + this.index = 0; + this.timer = null; + this.init(); + }; + + LinkageSlider.prototype = { + init: function() { + this._slideShow(); + if (this.len <= 1) { + this.$element.find('.slide-switch').hide(); + return; + } + this._bindEvent(); + this._autoplay(); + }, + _bindEvent: function() { + var that = this; + + this.$element.find('.slide-switch').on('click', '.next', function() { + that._nextSlide(); + clearInterval(that.timer); + that.timer = setInterval(function() { + that._nextSlide(); + }, that.options.time); + }).on('click', '.prev', function() { + that._prevSlide(); + clearInterval(that.timer); + that.timer = setInterval(function() { + that._nextSlide(); + }, that.options.time); + }); + + this.smallItem.on('mouseenter', function() { + that.index = $(this).index(); + clearInterval(that.timer); + that._slideShow(); + }).on('mouseleave', function() { + that._autoplay(); + }); + }, + _nextSlide: function() { + if (this.index === this.len - 1) { + this.index = 0; + } else { + this.index++; + } + this._slideShow(); + }, + _prevSlide: function() { + if (this.index === 0) { + this.index = this.len - 1; + } else { + this.index--; + } + this._slideShow(); + }, + _slideShow: function() { + this.smallItem.eq(this.index).addClass('focus').siblings().removeClass('focus'); + this.bigItem.eq(this.index).fadeIn().siblings().fadeOut(); + }, + _autoplay: function() { + var that = this; + + clearInterval(this.timer); + this.timer = setInterval(function() { + that._nextSlide(); + }, this.options.time); + } + }; + $.fn.linkageSlider = function(option) { + return this.each(function() { + var $this = $(this), + data = $this.data('linkageSlider'), + options = typeof option === 'object' && option; + + if (!data) { + $this.data('linkageSlider', (data = new LinkageSlider(this, options))); + } + if (typeof option === 'string') { + data[option](); + } + }); + }; + $.fn.linkageSlider.Constructor = LinkageSlider; + $.fn.linkageSlider.defaults = { + time: 5000 + }; +})($); \ No newline at end of file diff --git a/web-static/js/common/slider2.js b/web-static/js/common/slider2.js new file mode 100644 index 0000000..c00be15 --- /dev/null +++ b/web-static/js/common/slider2.js @@ -0,0 +1,115 @@ +/** + * (品牌优选)图片幻灯片插件 + * @author: wangqing(robin.wang@yoho.cn) + * @date: 205/7/2 + */ +var $ = require('jquery'); + +(function($) { + $.fn.slider2 = function(options) { + function autoplay(index, limit, toright) { + if (toright === true) { + $('.next').trigger('click'); + if (index === (limit - 3)) { + autoplayrecycle(--index, limit, false); + } else { + autoplayrecycle(++index, limit, true); + } + } else { + $('.prev').trigger('click'); + if (index === 0) { + autoplayrecycle(++index, limit, true); + } else { + autoplayrecycle(--index, limit, false); + } + } + } + + function autoplayrecycle(index, limit, toright) { + window.setTimeout(autoplay, $.fn.slider2.defaults.delaytime, index, limit, toright); + } + + function changePic(index, width, callback) { + var offersetleft = -(index * width); + + $('.img-list') + .animate({ + 'margin-left': offersetleft + 'px' + }, 'slow', callback); + + } + $.fn.slider2.defaults = { + index: 0, + shownum: 3, + autoplay: false, + delaytime: 3000 + }; + return this.each(function() { + var opts = $.extend({}, $.fn.slider2.defaults, options); + var mr = parseInt($('.img-item').css('margin-right')); + var $banneritems = $('.img-item'); + var bannerarr = []; + var _width = $banneritems.outerWidth() + mr, + _size = $banneritems.length, + j = 0; + + if (_size <= 3) { + return; + } + for (j = 0; j < $banneritems.length; j++) { + bannerarr.push($banneritems[j]); + } + _size = bannerarr.length; + $(this).find('.img-list').css({ + width: (_width * _size) + }); + $(this).find('.next').on('click', function(e) { + var i = 0, + _obj = null; + + e.preventDefault(); + changePic(3, _width, function() { + for (i = 0; i < 3; i++) { + _obj = bannerarr.shift(); + + $('.img-item').parent().append(_obj.outerHTML); + bannerarr.push(_obj); + } + $('.img-item').first().remove(); + $('.img-item').first().remove(); + $('.img-item').first().remove(); + $('.img-list').css({ + 'margin-left': '0' + }); + }); + + }); + $(this).find('.prev').on('click', function(e) { + var i = 0, + _obj = null, + offersetleft = ''; + + e.preventDefault(); + for (i = 0; i < 3; i++) { + _obj = bannerarr.pop(); + + $('.img-item').parent().prepend(_obj.outerHTML); + bannerarr.unshift(_obj); + } + offersetleft = 3 * _width; + $('.img-item').last().remove(); + $('.img-item').last().remove(); + $('.img-item').last().remove(); + $('.img-list').css({ + 'margin-left': -offersetleft + 'px' + }); + changePic(0, _width); + }); + if (opts.autoplay === true) { + autoplayrecycle(opts.index, _size, true); + } + }); + + }; + +}($)); \ No newline at end of file diff --git a/web-static/js/header.js b/web-static/js/header.js index df13bd9..633de47 100644 --- a/web-static/js/header.js +++ b/web-static/js/header.js @@ -4,4 +4,15 @@ * @date: 2015/12/01 */ -var $ = require("jquery"); +var $ = require('jquery'); +/** + * 回到顶部 + * @type {[type]} + */ +var $returnTop = $('.return-top'); + +$returnTop.click(function() { + $('html,body').animate({ + scrollTop: 0 + }, 500); +}); \ No newline at end of file diff --git a/web-static/js/home/home.js b/web-static/js/home/home.js index 7514116..e902b54 100644 --- a/web-static/js/home/home.js +++ b/web-static/js/home/home.js @@ -2,4 +2,12 @@ * 首页 * @author: xuqi<qi.xu@yoho.cn> * @date: 2015/11/23 - */ \ No newline at end of file + */ + +var $ = require('jquery'); + +require('../common/linkage-slider'); +require('../common/slider2'); + +$('.slide-container').linkageSlider(); +$('.img-brand').slider2(); \ No newline at end of file diff --git a/web-static/js/product/list.js b/web-static/js/product/list.js index 0cdd54a..24afd1d 100644 --- a/web-static/js/product/list.js +++ b/web-static/js/product/list.js @@ -24,6 +24,10 @@ var $brandDefault = $('.brand .default'), var $brandMoreTxt, $brandMoreIcon; +//商品相关变量 +var $goodsContainer = $('.goods-container'), + $goodItem = $goodsContainer.find('.good-info'); + //价格相关变量 var $udPrice = $('.ud-price-range'), interReg = /^\d+$/, @@ -32,6 +36,12 @@ var $udPrice = $('.ud-price-range'), //分类相关变量 var $sortSub = $('.sort-sub-wrap'); +//高级选项相关变量 +var $seniorSubWrap = $('.senior-sub-wrap'), + $seniorAttrWrap = $('.senior-attr-wrap'); + +var seniorHoverTime, hoveredIndex; + //清除checkbox选中状态 function clearChecked($checkbox) { $checkbox.removeClass('checked').html(checkUnicode.unchecked); @@ -64,6 +74,13 @@ function uriLoc(attr, val) { window.location.href = newHref; } +//隐藏高级选项面板 +function hideSeniorPanel(index) { + $seniorSubWrap.children('.senior-sub:eq(' + hoveredIndex + ')').addClass('hide'); + $seniorAttrWrap.children('.attr:eq(' + hoveredIndex + ')').removeClass('hover'); + hoveredIndex = -1; +} + //屏蔽筛选项双击文字选中 $('.filter-box').on('selectstart', '.attr, .brands-index span', function() { return false; @@ -241,15 +258,24 @@ if ($udPrice.length > 0) { } //【高级选项】鼠标移入显示子项 -$('.senior-attr-wrap').on('mouseenter', '.attr', function() { - $(this).children('.senior-sub').removeClass('hide'); +$seniorAttrWrap.on('mouseenter', '.attr', function() { + var index = $(this).addClass('hover').index(); + + $seniorSubWrap.children('.senior-sub:eq(' + index + ')').removeClass('hide'); }).on('mouseleave', '.attr', function() { - $(this).children('.senior-sub').addClass('hide'); + var $this = $(this), + index = $this.index(); + + hoveredIndex = index; + + seniorHoverTime = setTimeout(function() { + hideSeniorPanel(); + }, 100); }); //【高级选项】多选 $('.senior-sub').on('click', '.multi-select', function() { - $(this).closest('.sub').addClass('multi'); + $(this).closest('.senior-sub').addClass('multi'); }).on('click', '.multi-select-ok', function() { var $btn = $(this), $sub = $btn.closest('.senior-sub'), @@ -266,4 +292,80 @@ $('.senior-sub').on('click', '.multi-select', function() { }); uriLoc($sub.data('attr'), val); +}).on('mouseenter', function() { + clearTimeout(seniorHoverTime); +}).on('mouseleave', function() { + hideSeniorPanel(); +}); + +//操作栏 +(function() { + var $countPerPage = $('#count-per-page'), + $countChose = $countPerPage.next('ul'); + + var SLIDETIME = 200; + + $(document).click(function(e) { + if ($(e.target).closest('.page-count').length > 0) { + return; + } + + $countChose && $countChose.slideUp(SLIDETIME); + }); + + $countPerPage.click(function() { + if ($countChose.css('display') === 'none') { + $countChose.slideDown(SLIDETIME); + } else { + $countChose.slideUp(SLIDETIME); + } + }); +}()); + + +/* + * Description: 商品列表移入效果 + * Added by wangchenglong at 2015/12/1 + */ + +//todo +$goodItem.hover(function() { + var $cloneStr, + $goodItemWrapper, + activeIndex, + X, + left, + Y, + top, + colNum = 5, + itemW = 222, + itemH = 400, + itemMr = 10, + itemMb = 35; + + $('.good-item-wrapper').remove(); + + activeIndex = $(this).index() + 1; + + X = (activeIndex % colNum) === 0 ? colNum : activeIndex % colNum; + Y = Math.ceil(activeIndex / colNum); + left = (X - 1) * (itemW + itemMr) + 15 - 21; + top = (Y - 1) * (itemH + itemMb) - 19; + + $cloneStr = $(this).clone(); + $goodItemWrapper = + '<div class="good-item-wrapper" style="left:' + left + 'px;top:' + top + 'px;position:absolute;">' + + '<div class="good-select-color">' + + '</div>' + + '</div>'; + + + + $goodsContainer.append($goodItemWrapper); + + $('.good-item-wrapper').prepend($cloneStr); + +}, function() { + + //todo }); \ No newline at end of file diff --git a/web-static/package.json b/web-static/package.json index 637572b..6e6ded1 100644 --- a/web-static/package.json +++ b/web-static/package.json @@ -13,7 +13,7 @@ "spm": { "main": "index.js", "dependencies": { - "jquery": "2.1.4" + "jquery": "1.8.3" }, "devDependencies": { "expect.js": "0.3.1" diff --git a/web-static/sass/home/_index.scss b/web-static/sass/home/_index.scss index e69de29..c38f948 100644 --- a/web-static/sass/home/_index.scss +++ b/web-static/sass/home/_index.scss @@ -0,0 +1,437 @@ + +.home-page { + width: 1150px; + margin: 0 auto; + + .slide-container { + margin: 10px 0 0; + img { + display: block; + } + } + + .big-slide { + position: relative; + height: 450px; + overflow: hidden; + + ul { + position: relative; + height: 100%; + } + + &:hover { + .slide-switch { + display: block; + } + } + + li { + display: none; + position: absolute; + top: 0; + right: 0; + width: 100%; + height: 100%; + + &:first-child { + display: block; + } + } + + .slide-switch { + display: none; + /* @include opacity(0); + @include transition-property(opacity); + @include transition-duration(.2s); + @include transition-timing-function(ease-in); */ + a { + position: absolute; + top: 50%; + margin: -30px 0 0; + width: 60px; + height: 60px; + line-height: 56px; + text-align: center; + z-index: 2; + background: #fff; + @include opacity(0.55); + + &.prev { + left: 0; + } + + &.next { + right: 0; + } + + &:hover{ + @include opacity(0.9); + } + + .iconfont { + font-size: 32px; + color: #59585a; + } + } + } + } + + .small-slide { + margin: 6px 0 0; + padding: 0 0 0 2px; + + li { + position: relative; + float: left; + margin: 0 0 0 6px; + width: 138px; + height: 54px; + + &:first-child { + margin: 0; + } + + &.focus { + a { + @include opacity(0); + } + } + + a { + position: absolute; + left: 0; + right: 0; + bottom: 0; + top: 0; + background: #000; + @include opacity(0.3); + } + + img { + width: 100%; + height: 100%; + } + } + } + + .new-report { + img { + display: block; + } + .report-list { + float: left; + width: 868px; + li { + float: left; + margin: 0 8px 8px 0; + width: 185px; + height: 248px; + overflow: hidden; + &:first-child { + margin-right: 7px; + width: 282px; + height: 504px; + } + } + } + + .last-item { + float: left; + width: 282px; + height: 504px; + overflow: hidden; + } + } + + .img-brand { + position: relative; + width: 100%; + height: 175px; + overflow: hidden; + + &:hover { + .img-brand-switch { + display: block; + } + } + ul { + width: 1158px; + } + li { + float: left; + margin: 0 8px 0 0; + width: 378px; + height: 175px; + line-height: 175px; + overflow: hidden; + font-size: 0; + text-align: center; + + img { + max-width: 100%; + max-height: 100%; + vertical-align: middle; + } + } + .img-brand-switch { + display: none; + a { + position: absolute; + top: 50%; + margin: -20px 0 0; + width: 40px; + height: 40px; + line-height: 40px; + text-align: center; + z-index: 2; + background: #fff; + @include opacity(0.55); + + &.prev { + left: 0; + } + &.next { + right: 0; + } + &:hover { + @include opacity(0.9); + + } + } + } + } + + .logo-brand { + ul { + width: 1158px; + } + li { + float: left; + margin: 8px 8px 0 0; + width: 185px; + height: 86px; + line-height: 86px; + font-size: 0; + text-align: center; + img { + max-width: 100%; + max-height: 100%; + vertical-align: middle; + } + } + .logo-brand-switch { + position: relative; + background: image-url('index/logo-brand-line.png') no-repeat center center; + line-height: normal; + .iconfont { + position: absolute; + left: 50%; + font-size: 32px; + + &.prev { + top: 10px; + + margin: 0 0 0 -48px; + } + &.next { + bottom: 12px; + margin: 0 0 0 20px; + } + } + } + .brand-more { + font-size: 16px; + &:hover { + text-decoration: underline; + } + } + } + + .tpl-recommend{ + a{ + display: block; + background-color: #f8f8f8; + img{display: block;width: 100%;} + } + .tpl-nav{ + float: left; + width: 185px; + height: 512px; + overflow: hidden; + .tpl-keywords{ + .keywords0{ + img{ + height: 152px; + } + margin-bottom: 10px; + } + .keywords1{ + img{ + height: 86px; + } + margin-bottom: 8px; + } + } + .tpl-category{ + padding: 10px 0; + background-color: #f8f8f8; + a{ + float: left; + width: 50%; + height: 38px; + line-height: 38px; + text-align: center; + color: #000; + font-size: 14px; + overflow: hidden; + } + } + } + .tpl-brands{ + float: left; + margin-left: 8px; + width: 378px; + height: 512px; + overflow: hidden; + li{ + margin-bottom: 8px; + img{ + height: 248px; + width: 100%; + } + } + + } + .tpl-types{ + float: left; + width: 579px; + height: 512px; + overflow: hidden; + li{ + float: left; + margin-left: 8px; + margin-bottom: 8px; + img{ + width: 185px; + height:248px; + } + } + } + .tpl-products{ + ul{margin-left:-10px; + li{ + float: left; + margin-left:10px; + img{ + width: 222px; + height: 298px; + } + } + } + } + } + + .commodity{ + margin-left: -10px; + position: relative; + li{ + float: left; + margin-left: 10px; + margin-bottom:28px; + padding-top:20px; + position: relative; + i{ + position: absolute; + top: 0px; + display: block; + width: 64px; + height: 20px; + } + a{ + display: block; + height: 360px; + width: 222px; + .commodity-img{ + img{ + display: block; + height: 298px; + width: 222px; + } + } + p.commodity-name{ + font-size: 12px; + color: #000; + line-height: 40px; + text-align: center; + } + p.commodity-price{ + font-size: 12px; + text-align: center; + } + } + } + .loading{ + position: absolute; + bottom: 0; + width: 100%; + p{ + text-align: center; + font-size: 20px; + } + } + } + + .floor-header { + position: relative; + margin: 50px 0 30px; + + .floor-title { + margin: 0 auto; + width: 298px; + height: 31px; + line-height: 31px; + border: 1px solid #000; + font-size: 16px; + text-align: center; + } + + .header-navs { + position: absolute; + padding: 10px 0; + top: 0; + right: 0; + font-size: 14px; + + li { + float: left; + padding: 1px 10px; + border-left: 1px solid #ccc; + + &:first-child { + border-left: none; + } + + &:hover { + text-decoration: underline; + } + + a { + color: #333; + } + } + } + } + + @media screen and (min-width: 1150px) { + .floor-header { + margin: 80px 0 40px; + + .header-navs { + li { + padding: 1px 15px; + } + } + } + } +} \ No newline at end of file diff --git a/web-static/sass/product/_index.scss b/web-static/sass/product/_index.scss index 698cfe1..d540d14 100644 --- a/web-static/sass/product/_index.scss +++ b/web-static/sass/product/_index.scss @@ -218,18 +218,27 @@ margin-bottom: -6px; margin-right: 5px; } - - .senior-attr-wrap > .attr { + + .senior { + padding-bottom: 6px; + + .attr-content { + position: relative; + } + } + + .senior-attr-wrap { position: relative; - - &:hover { - > .iconfont { - visibility: hidden; - } + } - .senior-up-icon { - display: block; - } + .senior-attr-wrap > .attr:hover, + .senior-attr-wrap > .attr.hover { + > .iconfont { + visibility: hidden; + } + + .senior-up-icon { + visibility: visible; } } @@ -238,7 +247,7 @@ position: absolute; padding: 15px 0; left: 0; - width: 1050px; + right: 0; top: 39px; background: #fff; border: 1px solid #eaeceb; @@ -259,15 +268,14 @@ } .senior-up-icon { - position: absolute; - width: 15px; + width: 100%; height: 9px; z-index: 1; - left: 50%; - margin-left: -18px; - display: none; + margin-left: -11px; + visibility: hidden; background: image-url('product/senior-up.png') no-repeat; + background-position-x: 50%; } .checkbox { @@ -277,4 +285,208 @@ .multi .checkbox { display: inline; } + + /*商品列表 + *added by wangchenglong at 2015.12.1 + */ + .goods-container { + height: auto; + padding: 0 15px; + margin-top: 25px; + position: relative; + + /*测试*/ + width: 1150px; + + .good-info { + height: 400px; //todo + margin-bottom: 35px; + width: 222px; + margin-right: 10px; + float: left; + + &.good-list-five { + margin-right: 0; + } + + /*标签*/ + .tag-container { + font-size: 12px; + height: 22px; + line-height: 22px; + + .good-tag { + padding: 0 7px; + display: block; + float: left; + margin-right: 3px; + + &:nth-last-of-type(1) { + margin-right: 0; + } + + &.new-tag { + background: #78dc7d; + color: #fff; + } + &.yep-tag, .sale-tag { + background: #ff565b; + color: #fff; + } + &.limit-tag { + color: #4e4e4e; + border: 1px solid #4e4e4e; + } + } + } + + /*图片*/ + .good-detail-img { + width: 100%; + height: 300px; + + .good-thumb, img.lazy { + display: block; + overflow: hidden; + width: 100%; + height: 100%; + } + } + + /*文本*/ + .good-detail-text { + color: #222; + font-size: 12px; + text-align: center; + + > a { + margin-top: 16px; + line-height: 1.5; + display: block; + } + + > .price { + margin-top: 10px; + } + } + } + + /*弹层*/ + .good-item-wrapper { + border: 1px solid red; + padding-left: 20px; + padding-top: 18px; + } + } + /*商品列表end*/ + + .opt-banner { + height: 48px; + background: #f5f7f6; + line-height: 48px; + margin: 10px 0; + + .sort-type, + .checks { + color: #ccc; + font-size: 14px; + padding: 0 10px; + + .iconfont { + font-size: 14px; + } + + &.active, + &.checked { + color: #000; + } + } + + .pager-wrap { + float: right; + padding: 15px 0; + } + + .line-count { + float: left; + padding: 3px 1px 3px 3px; + border: 1px solid #ccc; + margin-right: 10px; + + span { + float: left; + width: 5px; + height: 10px; + background: #ccc; + margin-right: 2px; + } + + &.active { + border-color: #222; + span { + background: #222; + } + } + } + + .page-count { + position: relative; + height: 18px; + float: left; + font-size: 12px; + line-height: 18px; + + > span { + float: left; + display: block; + width: 42px; + height: 10px; + line-height: 10px; + padding: 3px; + border: 1px solid #ccc; + color: #222; + cursor: pointer; + margin-right: 10px; + } + + .iconfont { + font-size: 14px; + color: #ccc; + float: right; + } + + > ul { + position: absolute; + display: none; + width: 42px; + padding: 0 3px; + border-left: 1px solid #ccc; + border-right: 1px solid #ccc; + } + + li { + border-bottom: 1px solid #ccc; + } + + a { + display: block; + width: 100%; + } + } + + .pager { + float: left; + font-size: 14px; + line-height: 15px; + margin: 0 20px; + + .dis-icon { + color: #e6e6e6; + } + + i { + color: #f00; + } + } + } } \ No newline at end of file diff --git a/yohobuy/www.yohobuy.com/application/controllers/Boys.php b/yohobuy/www.yohobuy.com/application/controllers/Boys.php index c1c2ba1..119806a 100644 --- a/yohobuy/www.yohobuy.com/application/controllers/Boys.php +++ b/yohobuy/www.yohobuy.com/application/controllers/Boys.php @@ -9,7 +9,7 @@ class BoysController extends AbstractAction public function indexAction() { - $data = array( + $headerdata = array( 'gobytype' =>'gobuyboys', 'searchcate'=> 'searchcateboys', 'navbars' => array( @@ -214,7 +214,281 @@ class BoysController extends AbstractAction ) ) ); - $this->setTitle('男生首页'); - $this->_view->display('index',$data); + $tpldata = array( + 'name'=>'潮人配饰 ORNAMENT', + 'navs' => array( + array( + 'id' => '', + 'href' => '', + 'name' => 'MORE' + ) + ), + 'tplrecommend'=>array( + 'keyword'=>array(array('name'=>'工装短裤','img'=>'','url'=>''),array('name'=>'英伦风','img'=>'','url'=>'')), + 'category'=>array(array('name'=>'衣服','url'=>''),array('name'=>'裤子','url'=>''),array('name'=>'衣服','url'=>''),array('name'=>'裤子','url'=>''),array('name'=>'衣服','url'=>''),array('name'=>'裤子','url'=>''),array('name'=>'衣服','url'=>''),array('name'=>'裤子','url'=>''),array('name'=>'衣服','url'=>''),array('name'=>'裤子','url'=>''),array('name'=>'衣服','url'=>''),array('name'=>'裤子','url'=>'')), + 'brands'=>array(array('name'=>'工装短裤','img'=>'','url'=>''),array('name'=>'英伦风','img'=>'','url'=>'')), + 'types'=>array(array('name'=>'工装短裤','img'=>'','url'=>''),array('name'=>'英伦风','img'=>'','url'=>''),array('name'=>'工装短裤','img'=>'','url'=>''),array('name'=>'英伦风','img'=>'','url'=>''),array('name'=>'工装短裤','img'=>'','url'=>''),array('name'=>'英伦风','img'=>'','url'=>'')), + 'products'=>array( + array( + 'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' , + 'img'=> 'http://img11.static.yhbimg.com/yhb-img01/2015/12/01/02/01c21e6610eefdc5ebd7ad890e49b09c2d.jpg', + 'name'=> '优显led触控台灯', + 'price'=> 168 + ), + array( + 'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' , + 'img'=> 'http://img11.static.yhbimg.com/yhb-img01/2015/12/01/02/01c21e6610eefdc5ebd7ad890e49b09c2d.jpg', + 'name'=> '优显led触控台灯', + 'price'=> 168 + ), + array( + 'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' , + 'img'=> 'http://img11.static.yhbimg.com/yhb-img01/2015/12/01/02/01c21e6610eefdc5ebd7ad890e49b09c2d.jpg', + 'name'=> '优显led触控台灯', + 'price'=> 168 + ), + array( + 'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' , + 'img'=> 'http://img11.static.yhbimg.com/yhb-img01/2015/12/01/02/01c21e6610eefdc5ebd7ad890e49b09c2d.jpg', + 'name'=> '优显led触控台灯', + 'price'=> 168 + ), + array( + 'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' , + 'img'=> 'http://img11.static.yhbimg.com/yhb-img01/2015/12/01/02/01c21e6610eefdc5ebd7ad890e49b09c2d.jpg', + 'name'=> '优显led触控台灯', + 'price'=> 168 + ) + ) + ) + ); + $data = array( + 'headerdata' => array($headerdata), + 'boysHomePage' => true, + 'boy' => array( + 'bigSlide' => array( + array( + 'href' => '/?gender=1,3', + 'img' => 'http://img10.static.yhbimg.com/taobaocms/2015/11/26/12/01c3b99f554ad50d9e5a9900719715c94c.jpg' + ), + array( + 'href' => '/?gender=1,3', + 'img' => 'http://img12.static.yhbimg.com/taobaocms/2015/11/27/09/02a4f1c10e1e81574520e5c0239741a076.jpg' + ) + ), + 'smallSlide' => array( + array( + 'href' => 'http://sale.yohobuy.com/?specialsale_id=13&gender=1,3', + 'img' => 'http://img13.static.yhbimg.com/taobaocms/2015/11/26/12/024a810cfa89d67569c6c3bacedba8869a.jpg?imageMogr2/thumbnail/138x54/extent/138x54/background/d2hpdGU=/position/center/quality/90' + ), + array( + 'href' => 'http://sale.yohobuy.com/?specialsale_id=13&gender=1,3', + 'img' => 'http://img10.static.yhbimg.com/taobaocms/2015/11/27/09/015b6a29ee526edeaacd13f4a7c81475f0.jpg?imageMogr2/thumbnail/138x54/extent/138x54/background/d2hpdGU=/position/center/quality/90' + ) + ), + 'newReport' => array( + 'name' => '最新速报 NEW!', + 'list' => array( + array( + 'href' => '', + 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/27/03/0140fd98fd1c15c206d198d458e1c8e96f.jpg?imageView/1/w/377/h/504' + ), + array( + 'href' => '', + 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248' + ), + array( + 'href' => '', + 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248' + ), + array( + 'href' => '', + 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248' + ), + array( + 'href' => '', + 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248' + ), + array( + 'href' => '', + 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248' + ), + array( + 'href' => '', + 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248' + ), + array( + 'href' => '', + 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/27/03/0140fd98fd1c15c206d198d458e1c8e96f.jpg?imageView/1/w/377/h/504' + ) + ) + ), + 'preferenceBrand' => array( + 'name' => '优选品牌 BRAND', + 'imgBrand' => array( + array( + 'href' => '', + 'img' => 'http://img11.static.yhbimg.com/taobaocms/2015/11/30/01/01ebe6968476da9e79ddddfd28f60496c7.jpg' + ), + array( + 'href' => '', + 'img' => 'http://img11.static.yhbimg.com/taobaocms/2015/11/30/01/01ebe6968476da9e79ddddfd28f60496c7.jpg' + ), + array( + 'href' => '', + 'img' => 'http://img11.static.yhbimg.com/taobaocms/2015/11/30/01/01ebe6968476da9e79ddddfd28f60496c7.jpg' + ), + array( + 'href' => '', + 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/06/0124c4e16548b0d7aff4f0fa4ad7b13481.jpg?imageView/1/w/1150/h/450' + ), + array( + 'href' => '', + 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/06/0124c4e16548b0d7aff4f0fa4ad7b13481.jpg?imageView/1/w/1150/h/450' + ), + array( + 'href' => '', + 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/06/0124c4e16548b0d7aff4f0fa4ad7b13481.jpg?imageView/1/w/1150/h/450' + ), + ), + 'logoBrand' => array( + array( + 'href' => '', + 'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86' + ), + array( + 'href' => '', + 'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86' + ), + array( + 'href' => '', + 'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86' + ), + array( + 'href' => '', + 'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86' + ), + array( + 'href' => '', + 'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86' + ), + array( + 'switch' => true + ), + array( + 'href' => '', + 'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86' + ), + array( + 'href' => '', + 'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86' + ), + array( + 'href' => '', + 'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86' + ), + array( + 'href' => '', + 'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86' + ), + array( + 'href' => '', + 'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86' + ), + array( + 'href' => '', + 'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86' + ), + array( + 'href' => '', + 'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86' + ), + array( + 'href' => '', + 'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86' + ), + array( + 'href' => '', + 'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86' + ), + array( + 'href' => '', + 'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86' + ), + array( + 'href' => '', + 'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86' + ), + array( + 'more' => true, + 'href' => 'http://www.yohobuy.com' + ), + ) + ), + 'recommend'=>array($tpldata,$tpldata,$tpldata), + 'newArrivls' => array( + 'name' => '最新上架 NEW ARRIVALS', + 'navs' => array( + array( + 'id' => '', + 'href' => '', + 'name' => 'MORE' + ) + ), + 'commodity'=>array( + array( + 'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' , + 'img'=> 'http://img11.static.yhbimg.com/yhb-img01/2015/12/01/02/01c21e6610eefdc5ebd7ad890e49b09c2d.jpg', + 'name'=> '优显led触控台灯', + 'price'=> 168, + 'state'=> 1 //状态 + ), + array( + 'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' , + 'img'=> 'http://img11.static.yhbimg.com/yhb-img01/2015/12/01/02/01c21e6610eefdc5ebd7ad890e49b09c2d.jpg', + 'name'=> '优显led触控台灯', + 'price'=> 168, + 'state'=> 1 //状态 + ), + array( + 'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' , + 'img'=> 'http://img11.static.yhbimg.com/yhb-img01/2015/12/01/02/01c21e6610eefdc5ebd7ad890e49b09c2d.jpg', + 'name'=> '优显led触控台灯', + 'price'=> 168, + 'state'=> 1 //状态 + ), + array( + 'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' , + 'img'=> 'http://img11.static.yhbimg.com/yhb-img01/2015/12/01/02/01c21e6610eefdc5ebd7ad890e49b09c2d.jpg', + 'name'=> '优显led触控台灯', + 'price'=> 168, + 'state'=> 1 //状态 + ), + array( + 'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' , + 'img'=> 'http://img11.static.yhbimg.com/yhb-img01/2015/12/01/02/01c21e6610eefdc5ebd7ad890e49b09c2d.jpg', + 'name'=> '优显led触控台灯', + 'price'=> 168, + 'state'=> 1 //状态 + ), + array( + 'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' , + 'img'=> 'http://img11.static.yhbimg.com/yhb-img01/2015/12/01/02/01c21e6610eefdc5ebd7ad890e49b09c2d.jpg', + 'name'=> '优显led触控台灯', + 'price'=> 168, + 'state'=> 1 //状态 + ), + array( + 'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' , + 'img'=> 'http://img11.static.yhbimg.com/yhb-img01/2015/12/01/02/01c21e6610eefdc5ebd7ad890e49b09c2d.jpg', + 'name'=> '优显led触控台灯', + 'price'=> 168, + 'state'=> 1 //状态 + ) + ) + ) + ) + ); + $this->_view->display('index', $data); } } \ No newline at end of file diff --git a/yohobuy/www.yohobuy.com/application/modules/Product/controllers/Index.php b/yohobuy/www.yohobuy.com/application/modules/Product/controllers/Index.php index 6aed960..d3bab43 100644 --- a/yohobuy/www.yohobuy.com/application/modules/Product/controllers/Index.php +++ b/yohobuy/www.yohobuy.com/application/modules/Product/controllers/Index.php @@ -12,231 +12,359 @@ class IndexController extends AbstractAction { $data = array( 'searchListPage' => true, - 'filters' => array( - 'checkedConditons' => array( - 'conditions' => array( + + 'products' => array( + 'filters' => array( + 'checkedConditions' => array( + 'conditions' => array( + array( + 'href' => '', + 'name' => '暗黑' + ), + array( + 'href' => '', + 'color' => '#f00' + ), + array( + 'href' => '', + 'name' => 'CLOT' + ) + ), + 'clearUrl' => '' + ), + 'channel' => array( array( - 'href' => '', - 'name' => '暗黑' + 'href' => '/?gender=1,3', + 'name' => 'BOYS' + ), + array( + 'href' => '/?gender=2,3', + 'name' => 'GIRLS' ), array( 'href' => '', - 'color' => '#f00' + 'name' => 'KIDS' ), array( 'href' => '', - 'name' => 'CLOT' + 'name' => 'LIFESTYLE' ) ), - 'clearUrl' => '' - ), - 'channel' => array( - array( - 'href' => '/?gender=1,3', - 'name' => 'BOYS' - ), - array( - 'href' => '/?gender=2,3', - 'name' => 'GIRLS' - ), - array( - 'href' => '', - 'name' => 'KIDS' + 'sort' => array( + array( + 'id' => '1', + 'name' => '上衣', + 'sub' => array( + array( + 'href' => '', + 'name' => 'T恤' + ), + array( + 'href' => '', + 'name' => '棉袄' + ), + array( + 'href' => '', + 'name' => '外套' + ) + ) + ), + array( + 'id' => '2', + 'name' => '裤子' + ), + array( + 'id' => '3', + 'name' => '连衣裙' + ), + array( + 'id' => '4', + 'name' => '鞋' + ) ), - array( - 'href' => '', - 'name' => 'LIFESTYLE' - ) - ), - 'sort' => array( - array( - 'id' => '1', - 'name' => '上衣', - 'sub' => array( + 'brand' => array( + 'default' => array( array( 'href' => '', - 'name' => 'T恤' + 'name' => 'CLOT' ), array( 'href' => '', - 'name' => '棉袄' + 'name' => 'ABLE JEANS' ), array( 'href' => '', - 'name' => '外套' + 'name' => 'Eight Guys' + ), + array( + 'href' => '', + 'name' => 'FAIRWHALE JEANS' + ), + array( + 'href' => '', + 'name' => '鬼洗' + ), + array( + 'href' => '', + 'name' => '金银帝国Imperial Taels' + ), + array( + 'href' => '', + 'name' => 'F.L.Y.D' + ), + array( + 'href' => '', + 'name' => 'Tapenade特芙娜' + ), + array( + 'href' => '', + 'name' => 'Adidas Originals' + ) + ), + 'brandIndex' => array( + array( + 'index' => 'all', + 'name' => '全部' + ), + array( + 'index' => '0-9', + 'name' => '0 ~ 9' + ), + array( + 'index' => 'a', + 'name' => 'A' + ) + ), + 'brandsShow' => array( + array( + 'id' => '1', + 'href' => '', + 'index' => '0-9', + 'name' => '5cm', + 'key' => '5cm' + ), + array( + 'id' => '2', + 'href' => '', + 'index' => 'k', + 'name' => 'KTZ', + 'key' => 'ktz' + ), + array( + 'id' => '3', + 'href' => '', + 'index' => 't', + 'name' => 'Tapenade特芙娜', + 'key' => 'tapenade特芙娜' + ), + array( + 'id' => '4', + 'href' => '', + 'index' => 'j', + 'name' => '金银帝国Imperial Taels', + 'key' => '金银帝国imperial taels' + ), + array( + 'id' => '5', + 'href' => '', + 'index' => 'a', + 'name' => 'ABLE JEANS', + 'key' => 'able jeans' ) ) ), - array( - 'id' => '2', - 'name' => '裤子' - ), - array( - 'id' => '3', - 'name' => '连衣裙' - ), - array( - 'id' => '4', - 'name' => '鞋' - ) - ), - 'brand' => array( - 'default' => array( + 'price' => array( array( 'href' => '', - 'name' => 'CLOT' + 'name' => '0-239' ), array( 'href' => '', - 'name' => 'ABLE JEANS' - ), + 'name' => '240-329' + ) + ), + 'color' => array( array( 'href' => '', - 'name' => 'Eight Guys' + 'name' => '黑色', + 'rgb' => '#000' ), array( 'href' => '', - 'name' => 'FAIRWHALE JEANS' + 'name' => '红色', + 'rgb' => '#f00' + ) + ), + 'size' => array( + array( + 'href' => '', + 'name' => 'S' ), array( 'href' => '', - 'name' => '鬼洗' + 'name' => 'L' + ) + ), + 'seniorChose' => array( + array( + 'attr' => 'style', + 'name' => '风格', + 'showMulti' => true, + 'sub' => array( + array( + 'id' => '1', + 'href' => '', + 'name' => '街头' + ), + array( + 'id' => '2', + 'href' => '', + 'name' => '简约' + ) + ) ), array( + 'attr' => 'weather', + 'name' => '适用季节', + 'sub' => array( + array( + 'id' => '1', + 'href' => '', + 'name' => '春天' + ), + array( + 'id' => '2', + 'href' => '', + 'name' => '夏天' + ) + ) + ) + ) + ), + 'opts' => array( + 'sortType' => array( + array( 'href' => '', - 'name' => '金银帝国Imperial Taels' + 'name' => '默认' ), array( + 'active' => true, 'href' => '', - 'name' => 'F.L.Y.D' + 'name' => '最新', + 'hasSortOrient' => true, + 'desc' => true ), array( 'href' => '', - 'name' => 'Tapenade特芙娜' + 'name' => '价格', + 'hasSortOrient' => true ), array( 'href' => '', - 'name' => 'Adidas Originals' + 'name' => '折扣', + 'hasSortOrient' => true ) ), - 'brandIndex' => array( + 'checks' => array( array( - 'index' => 'all', - 'name' => '全部' + 'name' => '新品', + 'checked' => true, + 'href' => '' ), array( - 'index' => '0-9', - 'name' => '0 ~ 9' + 'name' => '打折', + 'href' => '' ), array( - 'index' => 'a', - 'name' => 'A' + 'name' => '限量', + 'checked' => true, + 'href' => '' ) ), - 'brandsShow' => array( - array( - 'id' => '1', - 'href' => '', - 'index' => '0-9', - 'name' => '5cm', - 'key' => '5cm' - ), + 'fivePerLine' => true, + 'sixPerLineHref' => '', + 'countPerPage' => '120', + 'pageCounts' => array( array( - 'id' => '2', 'href' => '', - 'index' => 'k', - 'name' => 'KTZ', - 'key' => 'ktz' + 'count' => 60 ), array( - 'id' => '3', 'href' => '', - 'index' => 't', - 'name' => 'Tapenade特芙娜', - 'key' => 'tapenade特芙娜' + 'count' => 100 ), array( - 'id' => '4', 'href' => '', - 'index' => 'j', - 'name' => '金银帝国Imperial Taels', - 'key' => '金银帝国imperial taels' - ), - array( - 'id' => '5', - 'href' => '', - 'index' => 'a', - 'name' => 'ABLE JEANS', - 'key' => 'able jeans' + 'count' => 120 ) - ) + ), + 'curPage' => 1, + 'pageCount' => 30, + 'nextHref' => 'hello' + ) + ), + 'goods' => array( + 0 => array( + 'tags' => array( + 'isNew' => true, + 'isYearEndPromotion' => true + ), + 'url' => 'http://adidas.yohobuy.com/?gender=1,3', + 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', + 'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋', + 'salePrice' => '899', + 'goodListLast' => false ), - 'price' => array( - array( - 'href' => '', - 'name' => '0-239' + 1 => array( + 'tags' => array( + 'isNew' => true, + 'isReNew' => true ), - array( - 'href' => '', - 'name' => '240-329' - ) + 'url' => 'http://adidas.yohobuy.com/?gender=1,3', + 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', + 'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋', + 'salePrice' => '899', + 'goodListLast' => false ), - 'color' => array( - array( - 'href' => '', - 'name' => '黑色', - 'rgb' => '#000' + 2 => array( + 'tags' => array( + 'isNew' => true, + 'isReNew' => true ), - array( - 'href' => '', - 'name' => '红色', - 'rgb' => '#f00' - ) + 'url' => 'http://adidas.yohobuy.com/?gender=1,3', + 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', + 'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋', + 'salePrice' => '899', + 'goodListLast' => false + ), + 3 => array( + 'url' => 'http://adidas.yohobuy.com/?gender=1,3', + 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', + 'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋', + 'salePrice' => '899', + 'goodListLast' => false ), - 'size' => array( - array( - 'href' => '', - 'name' => 'S' + 4 => array( + 'tags' => array( + 'isNew' => true, + 'isReNew' => true ), - array( - 'href' => '', - 'name' => 'L' - ) + 'url' => 'http://adidas.yohobuy.com/?gender=1,3', + 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', + 'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋', + 'salePrice' => '899', + 'goodListLast' => 'five' ), - 'seniorChose' => array( - array( - 'attr' => 'style', - 'name' => '风格', - 'showMulti' => true, - 'sub' => array( - array( - 'id' => '1', - 'href' => '', - 'name' => '街头' - ), - array( - 'id' => '2', - 'href' => '', - 'name' => '简约' - ) - ) + 5 => array( + 'tags' => array( + 'isNew' => true, + 'isReNew' => true ), - array( - 'attr' => 'weather', - 'name' => '适用季节', - 'sub' => array( - array( - 'id' => '1', - 'href' => '', - 'name' => '春天' - ), - array( - 'id' => '2', - 'href' => '', - 'name' => '夏天' - ) - ) - ) + 'url' => 'http://adidas.yohobuy.com/?gender=1,3', + 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', + 'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋', + 'salePrice' => '899', + 'goodListLast' => false ) ) );