Authored by whb

PC重构

... ... @@ -227,7 +227,7 @@ class Yohobuy
}
curl_setopt($ch, CURLOPT_COOKIE, implode(';', $cookie_str));
}
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 YOHOWEB');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
// 销毁私钥参数
... ...
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
define("index",["jquery","handlebars","source-map","index","lazyload"],function(e,t,n){var i;e("js/common"),e("js/product/entry"),e("js/home/entry"),n.exports=i}),define("js/common",["jquery","handlebars","source-map","index"],function(e,t,n){function i(e){var t,n,i=document.cookie;return document.cookie&&""!==document.cookie&&(n=i.indexOf(e+"="),n>-1&&(n+=e.length+1,t=decodeURIComponent(c.trim(i.substring(n,i.indexOf(";",n)))))),t}function o(e,t,n){var i,o,a,r,s="";"undefined"!=typeof t&&(n=n||{},null===t&&(t="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(r=new Date,r.setTime(r.getTime()+24*n.expires*60*60*1e3)):r=n.expires,s="; expires="+r.toUTCString()),i=n.path?"; path="+n.path:"",o=n.domain?"; domain="+n.domain:"",a=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),s,i,o,a].join(""))}function a(){var e,t=i("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function r(){var e=a();return 0===e?0:e[1]}function s(){var e=i("_g");return"undefined"==typeof e?"":JSON.parse(e).k}var c=e("jquery");e("js/footer"),e("js/header"),window.cookie=i,window.setCookie=o,window.getUser=a,window.getUid=r,window.getShoppingKey=s}),define("js/footer",["jquery"],function(e,t,n){function i(){var e=s("#subscriber-box"),t=s("#subscriber-btn"),n=/^[.\-_a-zA-Z0-9]+@[\-_a-zA-Z0-9]+\.[a-zA-Z0-9]/,i={method:"open.subscriber.subscriber",v:1,return_type:"jsonp",open_key:"12345"},o={mail:"&#xe61b;",tick:"&#xe61a"},a=s.trim(e.val()),r={};e.focus(function(){s(this).val("").css("color",""),t.removeClass("done").html(o.mail)}),t.click(function(){if(""!==a&&n.test(a)){s.extend(r,i,{email:a,tmp:Math.random(),uid:s.uid("_UID")});try{s.getJSON("http://test.open.yohobuy.com/?callback=?",r,function(n){1===n.data.result?(e.val("已订阅到:"+a),t.addClass("done").html(o.tick)):e.css("color","red")})}catch(c){console.log(c.message)}}else e.css("color","red")})}function o(){var e=s(".vote"),t=s("#feed-back-page"),n=e.children("li").length;t.on("click","span",function(){var t=s(this);t.hasClass("cur")||(t.siblings(".cur").removeClass("cur"),t.addClass("cur"),e.children().not(".hide").addClass("hide").end().eq(t.index()).removeClass("hide"))}),e.on("click",".feed-back-btn",function(){var i=s(this),o=i.closest("li"),a=o.index(),c={},l=[],d=o.find(".feedback-answer").val(),u=o.find(".feedback-id").val(),f=o.find(".question-id").val();o.find(":checked").each(function(){l.push(s(this).val())}),c={method:"open.feedback.submit",feedback:u||0,question:f||0,answer:d||"",solution:l.join(",")},s.getData(r,c,function(i){var r=a+1;if(1===i.result){if(a===n-1)return void alert("感谢您的参与!");o.addClass("hide"),e.eq(a+1).removeClass("hide"),t.children(".cur").removeClass("cur"),t.eq(r).addClass("cur")}})})}function a(){s(window).height()<s(document).height()?c.removeClass("hide"):c.addClass("hide")}var r,s=e("jquery"),c=s(".return-top");c.click(function(){s("html,body").animate({scrollTop:0},500)}),s(window).scroll(function(){0===s(window).scrollTop()?c.addClass("hide"):c.removeClass("hide")}),a(),c.hasClass("hide")&&s("img").load(a),i(),o(),window.rePosReturnTop=a}),define("js/header",["jquery","handlebars","source-map","index"],function(e,t,n){function i(e){var t;200===+e.code&&"object"==typeof e.data&&(t='<a target="_blank" href="'+e.data.url+'" class="page-top-banner"style="height:50px;border:none;background-image:url('+window.unescape(e.data.src)+');background-position: center;display:block;background-color:#ff5409;">&nbsp;</a>',N("body").prepend(t))}function o(e){200===+e.code&&(D=!0)}function a(){var e;D||(e='<div class="noticewrapper"><div class="noticecontainer"><h1 class="noticetitle">关于系统升级的公告</h1><div class="noticecontent"><p class="tips">尊敬的顾客:</p><p class="detail">您好!为了向您提供更优质的服务,目前系统正在升级,请耐心等待。</p><p class="detail">系统升级期间,部分地区用户体验会有暂时中断,如遇紧急事宜,欢迎垂询客服热线:400-889-9646 09:00-22:30(周一至周日)。稍后系统将恢复正常</p><p class="detail">使用,欢迎您继续光顾YOHO!BUY有货!带来不便之处深表歉意,请您谅解!</p></div></div></div>',N(".header-topwrapper").append(e))}function r(e){var t=document.createElement("script");t.src="http://new.yohobuy.com/resource/getbanner?content_code="+e+"&client_type=web&callback=JsonPCallBack",document.getElementsByTagName("head")[0].appendChild(t)}function s(e){var t=document.createElement("script");t.src="http://new.yohobuy.com/resource/getbanner?content_code="+e+"&client_type=web&callback=NoticeCallBack",document.getElementsByTagName("head")[0].appendChild(t),window.setTimeout(a,5e3)}function c(e,t){var n,i;N(e).hover(function(e){e.preventDefault(),n=N(this),i=N(t)[0],""===i.style.display?(n.addClass("acttags"),i.style.display="block"):(n.removeClass("acttags"),i.style.display="")})}function l(){var e,t,n=[{sourceClass:".myyoho",targetClass:".myyoho-info"},{sourceClass:".phone",targetClass:".qr"}];for(t=0;t<n.length;t++)e=n[t],c(e.sourceClass,e.targetClass)}function d(){var e;N(".yohogroup").mouseenter(function(){e=N(this),e.text(e.attr("cn"))}),N(".yohogroup").mouseleave(function(){e=N(this),e.text(e.attr("en"))})}function u(){var e,t,n=["webkit","moz","ms"];for(t=0;t<n.length;t++)return e=n[t]+"RequestAnimationFrame",window[e]?!0:!1}function f(){var e=["webkit","moz","ms"],t=e[0]+"RequestAnimationFrame",n=e[1]+"RequestAnimationFrame",i=e[2]+"RequestAnimationFrame";return window[t]?function(e){window[t](e)}:window[n]?function(e){window[n](e)}:window[i]?function(e){window[i](e)}:function(e){window.setTimeout(e,67)}}function p(){window.start+=10,window.$logotrans.css({transform:"rotateX("+window.start+"deg)","-webkit-transform":"rotateX("+window.start+"deg)","-moz-transform":"rotateX("+window.start+"deg)"}),window.start/90%2===1&&(window.isen?(window.$logotrans.css("background-image","url(http://static.yohobuy.com/newheader/img/logo1.png)"),window.isen=!1):(window.$logotrans.css("background-image","url(http://static.yohobuy.com/newheader/img/logo_e.png)"),window.isen=!0)),window.start/90%2===0&&window.start%360!==0?window.setTimeout(p,3e3):window.start%360===0?window.setTimeout(p,6e4):window.requestFrame(function(){p()})}function h(){window.globaltimeout&&window.clearTimeout(window.globaltimeout),window.logotrans.fadeOut(window.loopdurationtime,function(){window.isen=!1,window.logotrans.css("background-image","url(http://static.yohobuy.com/newheader/img/logo.png)"),window.logotrans.fadeIn(window.loopdurationtime,function(){window.onetimeoout=window.setTimeout(function(){window.logotrans.fadeOut(window.loopdurationtime,function(){window.clearTimeout(window.onetimeoout),window.isen=!0,window.logotrans.css("background-image","url(http://static.yohobuy.com/newheader/img/logo_e.png)"),window.logotrans.fadeIn(window.loopdurationtime,function(){window.globaltimeout=window.setTimeout(h,6e4)})})},3e3)})})}function m(){u()?window.setTimeout(p,3e3):window.setTimeout(h,3e3)}function g(){var e=N("#nav_keyword").text(),t="vans",n=N("#query_key");""!==e?(n.css({color:"#000"}),n.val(e)):(n.css({color:"#e0e0e0"}),n.val(t),n.on("focus",function(e){n.css({color:"#000"}),n.val("")}))}function w(e,t,n){try{window.dataLayer.push({louceng:e,weizhi:t,event:n})}catch(i){}}function v(){var e=N.cookie("_Gender"),t=N(".cure");"undefined"!=typeof e&&""!==e&&N.setcookie("_Gender",1,{path:"/",domain:".yohobuy.com",expires:7}),"男生"===t.find(".name-cn a").text()&&(N.setcookie("_Gender","1,3",{path:"/",domain:".yohobuy.com",expires:7}),N.setcookie("_Channel","boys",{path:"/",domain:".yohobuy.com",expires:7})),"女生"===t.find(".name-cn a").text()&&(N.setcookie("_Gender","2,3",{path:"/",domain:".yohobuy.com",expires:7}),N.setcookie("_Channel","girls",{path:"/",domain:".yohobuy.com",expires:7})),"创意生活"===t.find(".name-cn a").text()&&N.setcookie("_Channel","lifestyle",{path:"/",domain:".yohobuy.com",expires:7}),"潮童"===t.find(".name-cn a").text()&&N.setcookie("_Channel","kids",{path:"/",domain:".yohobuy.com",expires:7})}function y(){var e,t,n,i=document.cookie,o=i.split(";");for(e=0;e<o.length;e++)t=o[e].split("="),n=t[0].replace(/\s/g,""),window.cookieMap[n]=t[1]}function b(){var e;N(".first-nav-item").click(function(){e=N.cookie("_Gender"),"undefined"!=typeof e&&""!==e&&N.setcookie("_Gender",1,{path:"/",domain:".yohobuy.com",expires:7}),"男生"===N(this).find(".name-cn a").text()&&(N.setcookie("_Gender","1,3",{path:"/",domain:".yohobuy.com",expires:7}),N.setcookie("_Channel","boys",{path:"/",domain:".yohobuy.com",expires:7})),"女生"===N(this).find(".name-cn a").text()&&(N.setcookie("_Gender","2,3",{path:"/",domain:".yohobuy.com",expires:7}),N.setcookie("_Channel","girls",{path:"/",domain:".yohobuy.com",expires:7})),"创意生活"===N(this).find(".name-cn a").text()&&N.setcookie("_Channel","lifestyle",{path:"/",domain:".yohobuy.com",expires:7}),"潮童"===N(this).find(".name-cn a").text()&&N.setcookie("_Channel","kids",{path:"/",domain:".yohobuy.com",expires:7})}),N("#backToOld").click(function(){N.setcookie("_New",1,{path:"/",domain:".yohobuy.com"}),location.href="http://www.yohobuy.com"})}function x(){N("#miniCartBox").miniCart({cartNum:".ic-infomation"})}function k(){var e,t,n;N.getData(window.apiDomain,{method:"open.Shoppingcart.getCartData",shopping_key:N.getShoppingKey()},function(i){""===window.cartTpl&&(window.cartTpl=P.compile(N("#mini-cart-tpl").html())),N("#miniCartBox").children(".gobuy-wrapper").html(window.cartTpl({carData:i})),0===parseInt(N(".ic-infomation").html())&&N("#miniCartBox .gobuy-wrapper").html('<div class="gobuy-empty"><h3 class="information">您的购物车暂无商品</h3></div>'),N("#miniCartBox .goods-list li").length<1&&(e=N.cookie("_g"),t=F.parse(e),null!==t&&(n='{"_k":"'+t._k+'","_nac":0,"_ac":0,"_r":0}',N.setcookie("_g",n,{path:"/",domain:".yohobuy.com"})),N(".ic-infomation").html(0),N("#miniCartBox .gobuy-wrapper").html('<div class="gobuy-empty"><h3 class="information">您的购物车暂无商品</h3></div>'))})}function _(e,t){N.getData(window.apiDomain,{method:"open.Shoppingcart.delone",shopping_key:N.getShoppingKey(),id:e,isreduce:t},function(e){var t=N.cookie("_g"),n=F.parse(t),i='{"_k":"'+n._k+'","_nac":'+e.total_goods_num+',"_ac":0,"_r":0}';N.setcookie("_g",i,{path:"/",domain:".yohobuy.com"}),k(),x()})}function C(){var e,t,n;N(document).on("click",".goodscardelete",function(i){e=N(this),t=e.attr("goodsid"),n=e.attr("cheapest"),_(t,n)})}function j(){var e;N(document).on("click",".mycart_i_down",function(t){e=N(this),e.toggleClass("mycart_i_up"),N("#mycartmore").slideToggle(300)})}function q(){var e,t="http://www.yohobuy.com/shopping/cart";N("#miniCartBox").on("click",function(n){e=N(n.target),e.hasClass("gobuy")&&(window.location.href=t)})}function T(e){1===e?(N("#miniCartBox").addClass("list-cur"),N(".gobuy-wrapper").show(),0!==parseInt(N(".ic-infomation").html())?(N("#miniCartBox .gobuy-wrapper").html('<div class="gobuy-loading"><h3 class="information">加载中,请稍后</h3></div>'),k()):N("#miniCartBox .gobuy-wrapper").html('<div class="gobuy-empty"><h3 class="information">您的购物车暂无商品</h3></div>')):(N("#miniCartBox").removeClass("list-cur"),N(".gobuy-wrapper").hide())}function $(){var e;N("#miniCartBox").mouseenter(function(t){e=N(t.target),("miniCartBox"===e.attr("id")||"ic-infomation"===e.attr("class"))&&T(1)}),N("#miniCartBox").mouseleave(function(e){T(0)})}function S(){var e,t="indexkids",n="indexlifestyle",i="indexboys",o="indexgirls",a="uniquebrand",c=window.location.href,l=window.location.host,d="";-1!==c.indexOf("search")&&(d=window.bannerMap["search"+window.cookieMap._Channel]),-1!==c.indexOf("list")&&(d=window.bannerMap["list"+window.cookieMap._Channel]),-1!==c.indexOf("brands")&&(d=window.bannerMap["brands"+window.cookieMap._Channel]),-1!==c.indexOf("new")&&(d=window.bannerMap["new"+window.cookieMap._Channel]),-1!==c.indexOf("sale")&&(d=window.bannerMap["sale"+window.cookieMap._Channel]),-1!==c.indexOf("home")&&(d=window.bannerMap["home"+window.cookieMap._Channel]),-1!==c.indexOf("kids")&&(d=window.bannerMap[t]),-1!==c.indexOf("woman")&&(d=window.bannerMap[o]),-1!==c.indexOf("lifestyle")&&(d=window.bannerMap[n]),-1!==c.indexOf("www.yohobuy.com")&&"/"===window.location.pathname&&(d=window.bannerMap[i]),e=l.split(".")[0],"list"!==e&&"search"!==e&&"www"!==e&&"new"!==e&&"item"!==e&&"guang"!==e&&(d=window.bannerMap[a+window.cookieMap._Channel]),r(d),s(d)}function I(e){N(".hot-brands").find("ul").stop().animate({opacity:0,"z-index":1},200).eq(e).animate({opacity:1,"z-index":2},200)}function O(){var e,t=0;N(".hot-brands").size()>0&&(e=N(".hot-brands").find("ul").size(),N(".hot-brands").find("ul").eq(0).css({opacity:1,"z-index":2}),N(".brands-control").on("click",".next",function(){t===e-1?t=0:t++,I(t)}),N(".brands-control").on("click",".prev",function(){0===t?t=e-1:t--,I(t)}))}function E(){setInterval(x,2e3)}function M(){var e=N("#goodcartempwarpper").html().replace(/\\/g,"");N("#goodcartempwarpper").html(e)}function z(){var e="http://search.yohobuy.com/api/suggest";N("#query_key").search(e)}function B(){M(),v(),y(),d(),l(),m(),S(),O(),g(),b(),$(),x(),E(),z(),q(),C(),j()}var N=e("jquery"),P=e("handlebars"),F=e("index"),D=!1;P.registerHelper("equalone",function(e,t){return"1"===e?t.fn(this):t.inverse(this)}),e("plugin/yohocookie"),e("plugin/yohocart"),window.JsonPCallBack=i,window.NoticeCallBack=o,window.requestFrame=f(),window.start=0,window.$logotrans=N(".icon-logo"),window.isen=!0,window.loopdurationtime=500,window.globaltimeout,window.onetimeoout,window.dataLayer=[],window.reg=/^[\^\!\+\-\(\)\:\[\]\\\{\}\~\*\?\|\&\;\/\s]{0,}$/g,window.keyword="",window.link="",window.submitSearch=function(){var e,t,n=N("#query_key").val(),i="Search",o="Head Search",a="Search";if(e=N.trim(window.keyword.toLowerCase()),t=N.trim(n.toLowerCase()),w(i,o,a),""!==window.link&&""!==window.keyword&&e===t)location.href=window.link.replace("'","");else{if(!window.reg.test(n))return N("#searchForm").submit(),!1;location.href="http://search.yohobuy.com/error?query="+n+"&result=error"}},window.bannerMap={listboys:"4f78b0f418fc42314d8b6e791cfb7fa8",listgirls:"00c1f025a51b6b597dc37925951ea27d",listkids:"b02df11184727701ade1b6de9737d08c",listlifestyle:"fd35c52dced0c880976ba858346d1fc5",searchboys:"9fb8986ea700cc27a8057361c3924394",searchgirls:"e3e207a1443ca60c8037fe52a5560c18",searchkids:"620fc77f479da8feaeb06f2324e5d0bb",searchlifestyle:"a3c93301c6ffaf3ed0f36a4a451be36d",uniquebrandboys:"2ebb0810c0d1a67e5229149c9c3aba7d",uniquebrandgirls:"99e23385f4ba4b65f406b7e2968ac821",uniquebrandkids:"a74ebc9b17840c91b9ea46568111fe6b",uniquebrandlifestyle:"0e8c81ead53f56302baa4d0ad967f527",brandsboys:"77b352db07129c76a9d532acad149f9f",brandsgirls:"bf047f16e52ebc38be5ce9c7623831e6",brandskids:"e3ae1ce9b5e13c6d271ef3eccb831652",brandslifestyle:"e4ac8029c30f65d7f1af030980d140fe",newboys:"869d3c5f3b450fb52101d00a61ce87cb",newgirls:"d953b6dfdac02483d1dcce8d96055954",newkids:"0874cb6d75df8e0e78f2d475e53ecc08",newlifestyle:"43e8fc8e178115c262bbce2bd0012db7",saleboys:"c846e3165c994769b4201d8c32f3ae9b",salegirls:"52b1d389edcbc62d65de71b80c4d6ad0",salekids:"ad8b1703c761ba00973868ab5199cc27",salelifestyle:"7acc64905c70ac91846f43fb2cec4bbd",homeboys:"b0856a771ef1b59ab1234c74688fa42d",homegirls:"2bd61fa12e4933211518f70fe5ce3c48",homekids:"895c59e8c64b40399c9533509507320c",homelifestyle:"2e037d4e25d2767352ca3e0a4627f7bd",indexboys:"0c911d3000f52e8ca7cffb74f5864c29",indexgirls:"b645b8980c423ab30485e0a9d08c2ef7",indexkids:"17f6d5d5d454d2c507bc5fcbc90f7756",indexlifestyle:"735cd393e841762af8793c346abbbc36"},window.cookieMap={},window.apiDomain="http://api.open.yohobuy.com",window.cartTpl="",B()}),define("plugin/yohocookie",["jquery"],function(e,t,n){var i=e("jquery");!function(e){e.extend({cookie:function(e){var t=null;if(document.cookie&&""!=document.cookie)for(var n=document.cookie.split(";"),o=0;o<n.length;o++){var a=i.trim(n[o]);if(a.substring(0,e.length+1)==e+"="){t=decodeURIComponent(a.substring(e.length+1));break}}return t},setcookie:function(e,t,n){var i="";if("undefined"!=typeof t){if(n=n||{},null===t&&(t="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)){var o;"number"==typeof n.expires?(o=new Date,o.setTime(o.getTime()+24*n.expires*60*60*1e3)):o=n.expires,i="; expires="+o.toUTCString()}var a=n.path?"; path="+n.path:"",r=n.domain?"; domain="+n.domain:"",s=n.secure?"; secure":"";document.cookie=[e,"=",encodeURIComponent(t),i,a,r,s].join("")}}})}(i)}),define("plugin/yohocart",["jquery"],function(require,exports,module){var jQuery=require("jquery"),$yohocookie=require("plugin/yohocookie");!function($){$.fn.miniCart=function(options){var defaults={cookie:"_g",cartNum:""},params=$.extend(defaults,options),cartInfo=eval("("+$.cookie(params.cookie)+")");if(null!=cartInfo){var totalNum=parseInt(cartInfo._nac)+parseInt(cartInfo._ac);0==totalNum?$("#icart-num").attr("class","icart-num icart-none"):$("#icart-num").attr("class","icart-num"),$(params.cartNum).html(totalNum)}},$.fn.search=function(e){function t(t){var n=$.trim($(t).val());return n=n.replace(new RegExp("'","gm"),""),""==n?($(".search-list").hide(),!1):(n=encodeURI(n),void $.get(e+"?callback=?&query="+n,function(e){$(".search-list").html(e.data),i=$(".search-list").children("li").length,o=-1,i>0?$(".search-list").show():$(".search-list").hide(),$(".search-list").find("a").hover(function(){$(this).css("background-color","#eee")},function(){$(this).css("background-color","#fff")})},"jsonp"))}function n(e){$(".search-list li:eq("+a+")").children("a").css("background-color","#fff"),$(".search-list li:eq("+o+")").children("a").css("background-color","#eee");var t=$(".search-list li:eq("+o+")").children("a").attr("title");$("#query_key").val(t)}var i=0,o=0,a=0;return this.each(function(){$(this).keyup(function(e){if(38==e.which){if(0==i)return!1;-1==o&&(o=0),a=o,o=(o-1+i)%i,n(this)}else if(40==e.which){if(0==i)return!1;a=o,o=(o+1)%i,n(this)}else 13==e.which?submitSearch():t(this)})})},$.extend({getData:function(domain,options,onSuccess){var defaults={page:1,method:"",v:1,return_type:"jsonp",open_key:"12345",tmp:Math.random()};if(void 0==typeof domain||""==domain)return console.log("请设置请求的api地址"),!1;var params=$.extend(defaults,options);if(params.page=params.page||1,""==params.method)return console.log("请设置请求的URL"),!1;try{$.getJSON(domain+"/?callback=?",params,function(_data){return""!=onSuccess?(eval(onSuccess(_data.data)),!1):void 0})}catch(e){console.log(e.message)}},getShoppingKey:function(){var shoppingInfo=$.cookie("_g");if("undefined"==typeof shoppingInfo||null==shoppingInfo)return"";var shoppingData=eval("("+shoppingInfo+")");return shoppingData._k}})}(jQuery),exports.init=function(){}}),define("js/product/entry",["jquery","handlebars","source-map","lazyload"],function(e,t,n){e("js/product/list"),e("js/product/hotrank")}),define("js/product/list",["jquery"],function(e,t,n){e("js/product/filter"),e("js/product/sort-pager"),e("js/product/product")}),define("js/product/filter",["jquery"],function(e,t,n){function i(e){e.removeClass("checked").html(w.unchecked)}function o(){y.addClass("hide"),b.removeClass("hide")}function a(){b.addClass("hide"),y.removeClass("hide")}function r(e,t){var n,i=decodeURIComponent(window.location.search),o=e+"="+t;n=""===i?"?"+o:i+"&"+o,window.location.href=n}function s(e){T.children(".senior-sub:eq("+m+")").addClass("hide"),$.children(".attr:eq("+m+")").removeClass("hover"),m=-1}var c,l,d,u,f,p,h,m,g=e("jquery"),w={unchecked:"&#xe613;",checked:"&#xe612;"},v={up:"&#xe610;",down:"&#xe600;"},y=g(".brand .default"),b=g(".brand .brand-panel"),x=g(".brand .attr"),k=g("#brand-more"),_=g("#brand-multi"),C=g(".ud-price-range"),j=/^\d+$/,q=g(".sort-sub-wrap"),T=g(".senior-sub-wrap"),$=g(".senior-attr-wrap");g(".filter-box").on("selectstart",".attr, .brands-index span",function(){return!1}),g(".sort-pre").on("click","li",function(){var e=g(this),t=e.index();e.siblings(".active").removeClass("active"),e.addClass("active"),q.children(":not(.hide)").addClass("hide"),q.children(":eq("+t+")").removeClass("hide")}),k.length>0&&(c=k.children("em"),l=k.children(".iconfont")),_.click(function(){"none"===b.css("display")&&o(),b.addClass("multi"),g(this).addClass("hide")}),k.click(function(){var e=g(this);e.hasClass("more")?(a(),c.text("更多"),l.html(v.down)):(o(),c.text("收起"),l.html(v.up)),g(this).toggleClass("more")}),g(".brands-index").on("click","span",function(){var e=g(this),t=e.data("index");0===e.index()?x.removeClass("hide"):x.addClass("hide").filter("[data-index="+t+"]").removeClass("hide")}),g("#brand-search-input").keyup(function(){var e=g(this).val().toLowerCase();""===e?x.removeClass("hide"):x.addClass("hide").filter("[data-key*="+e+"]").removeClass("hide")}),g("#brand-multi-ok").click(function(){var e="";g(this).hasClass("dis")||(b.find(".checked").each(function(){var t=g(this).data("id");e+=""===e?t:","+t}),r("brand",e))}),g(".multi-select-cancel").click(function(){var e=g(this).closest(".multi");e.hasClass("brand-panel")&&(a(),_.removeClass("hide")),e.removeClass("multi"),i(e.find(".checkbox.checked"))}),g(".check-container").on("click",".attr",function(){var e=g(this),t=e.find(".checkbox"),n=e.parent(".check-container").next(".btns").find(".multi-select-ok");t.toggleClass("checked"),t.hasClass("checked")?t.html(w.checked):t.html(w.unchecked),t.hasClass("checked")||e.siblings(".attr").find(".checked").length>0?n.removeClass("dis"):n.addClass("dis")}),g(".brand, .senior").on("click",".attr > a",function(e){g(this).closest(".multi").length>0&&e.preventDefault()}),C.length>0&&(d=C.find(".limit"),u=d.filter(".min"),f=d.filter(".max"),p=C.find(".price-sure"),d.keyup(function(){var e=g.trim(u.val()),t=g.trim(f.val()),n=j.test(e),i=j.test(t);i&&(""===e||n)||n&&(""===t||i)?p.removeClass("hide"):p.addClass("hide")}),p.click(function(){var e,t=g.trim(u.val()),n=g.trim(f.val());""!==t&&""!==n&&+t>+n&&(e=n,n=t,t=e),r("price",t+","+n)})),$.on("mouseenter",".attr",function(){var e=g(this).addClass("hover").index();T.children(".senior-sub:eq("+e+")").removeClass("hide")}).on("mouseleave",".attr",function(){var e=g(this),t=e.index();m=t,h=setTimeout(function(){s()},100)}),g(".senior-sub").on("click",".multi-select",function(){g(this).closest(".senior-sub").addClass("multi")}).on("click",".multi-select-ok",function(){var e=g(this),t=e.closest(".senior-sub"),n="";e.hasClass("dis")||(t.find(".checked").each(function(){var e=g(this).data("id");n+=""===n?e:","+e}),r(t.data("attr"),n))}).on("mouseenter",function(){clearTimeout(h)}).on("mouseleave",function(){s()})}),define("js/product/sort-pager",["jquery"],function(e,t,n){var i=e("jquery"),o=i("#count-per-page"),a=o.next("ul"),r=200;i(document).click(function(e){i(e.target).closest(".page-count").length>0||a&&a.slideUp(r)}),o.click(function(){"none"===a.css("display")?a.slideDown(r):a.slideUp(r)})}),define("js/product/product",["jquery"],function(e,t,n){var i,o=e("jquery"),a=e("js/common/product-event"),r=o(".goods-container"),s=r.find(".good-info"),c=r.find(".good-item-wrapper"),l=r.find(".good-info-main"),d=r.find(".good-select-color"),u=o(".product-list-nav");t.init=function(e){function t(e){var t,n,i,o="",a=e.length,r=4,s=Math.ceil(a/r),c=0;for(t=0;s>t;t++)for(o+="<ul>",n=0;r>n&&(i=t*r+n,i!==a);n++)o+='<li><a href="'+e[t*r+n].url+'"><img src="'+e[t*r+n].src+'" /></a></li>',n===r-1&&(o+="</ul>",c++);return s>c&&(o+="</ul>"),{colorListStr:o,ulNum:s}}i=a(s,e),i.addHandler("MouseEnter",function(e){var n,i,a,s,u,f,p,h,m=10,g=35,w="";l.html(""),d.html(""),c.css({display:"none"}),o.ajax({type:"GET",url:"/product/index/productColor",dataType:"json"}).then(function(v){w=t(v).colorListStr,n=t(v).ulNum,l.append(e.targetDuplicate),d.append(o(w)),f=c.css("paddingLeft"),p=c.css("paddingTop"),h=r.css("paddingTop"),i=10+65*n+e.targetWidth,s=(e.targetX-1)*(e.targetWidth+m)-(parseInt(f)+1),u=(e.targetY-1)*(e.targetHeight+g)+parseInt(h)-(parseInt(p)+1),a=e.offsetR-(65*n+25),0>=a&&(s+=a),c.css({width:i,left:s,top:u,display:"inline-block"})})}),c.mouseleave(function(){l.html(""),d.html(""),c.css({display:"none"})}),u.click(function(){o(this).hasClass("active")?o(this).find(".sort-child-list").stop(!0,!0).slideUp():o(this).find(".sort-child-list").stop(!0,!0).slideDown(),o(this).toggleClass("active")})}}),define("js/common/product-event",["jquery"],function(e,t,n){function i(){this.handlers={}}var o=e("jquery");i.prototype={constructor:i,addHandler:function(e,t){"undefined"==typeof this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t)},fire:function(e){var t,n;if(e.target||(e.target=this),this.handlers[e.type]instanceof Array)for(t=this.handlers[e.type],n=0;n<t.length;n++)t[n](e)},removeHandler:function(e,t){var n,i;if(this.handlers[e]instanceof Array){for(n=this.handlers[e],i=0;i<n.length&&n[i]!==t;i++);n.splice(i,1)}}},n.exports=function(e,t){function n(e){var n,i=0,l=0,d=t,u=0,f="",p=0,h=0;switch(e.type){case"mouseenter":n=o(this),f=n.clone(),u=n.index()+1,i=u%d===0?d:u%d,l=Math.ceil(u/d),p=n.offset().left,h=c-(p+r),a.fire({type:"MouseEnter",target:n,targetWidth:r,targetHeight:s,targetX:i,targetY:l,rowWidth:d,activeIndex:u,targetDuplicate:f,offsetL:p,offsetR:h});break;case"mouseleave":a.fire({type:"MouseLeave"})}}var a=new i,r=e.eq(0).width(),s=e.eq(0).height(),c=o(window).width();return e.bind("mouseenter",n),a}}),define("js/product/hotrank",["jquery","handlebars","source-map","lazyload"],function(e,t,n){var i=e("jquery"),o=e("handlebars"),a=e("lazyload");e("js/common/slider"),e("js/common/logo-brand"),a(i("img.lazy")),i(".slide-container").slider(),i(".logo-brand").logoBrand({showNum:10,url:"./getBrand"}),function(e){function t(t,n){var c={};c=n?{sid:t,page:n}:{sid:t},e.ajax({type:"GET",dataType:"json",url:"/hotrank/getdata",data:c,success:function(t){var c;200===t.code&&(c={list:t.data},r=o.compile(i),n?(e(".hot-week-list").append(r(c)),s.css({position:"fixed",marginTop:-s.height()/2,top:"50%"})):e(".hot-week-list").html(r(c)),a(e("img.lazy")),u=!1)}})}var n,i,r,s=e(".hot-week").find(".floatlayer"),c=e(".hot-cate").find("li").eq(0).data("sid"),l=1,d=0,u=!1;i='{{# list}}<div class="good-info"><div class="item-img"><a class="good-thumb" target="_blank" href="{{url}}"><img class="lazy" data-original="{{img}}"></a></div><div class="good-detail-text"><a target="_blank" href="{{url}}">{{name}}</a><p class="price"><span class="sale-price{{#unless marketPrice}}prime-cost{{/unless}}">¥{{salePrice}}</span>{{# marketPrice}}<span class="market-price">¥{{.}}</span>{{/ marketPrice}}</p></div></div>{{/ list}}',e(window).on("scroll",function(){var i=n+e(".hot-week").outerHeight();n=e(".hot-week").offset().top,e(this).scrollTop()>=n-e(window).height()/2?s.offset().top+s.outerHeight()>=i?s.css({position:"absolute",marginTop:0,top:e(".hot-week").outerHeight()-s.outerHeight()}):s.css({marginTop:-s.height()/2}).stop().animate({opacity:1},200,function(){s.show()}):s.stop().animate({opacity:0},200,function(){s.hide()}),s.offset().top>=e(this).scrollTop()+(e(window).height()-s.outerHeight())/2&&s.css({position:"fixed",marginTop:-s.height()/2,top:"50%"}),e(this).scrollTop()>=n+e(".hot-week").height()-e(window).height()&&(u||(l++,u=!0,t(c,l)))}),e(".hot-cate").find("li").each(function(t){var n=e(".hot-cate").width();n>=d&&(d+=e(this).width(),d>=n&&e(".floatlayer").find("li").eq(t).hide().nextAll().hide())}),e(".hot-cate").on("click","li",function(){var i=e(this).index(),o=e(this).data("sid");e(this).addClass("current").siblings().removeClass("current"),e(".floatlayer").find("li").removeClass("current").eq(i).addClass("current"),e("body,html").stop().animate({scrollTop:n-110},500),t(o),l=1}),e(".floatlayer").on("click","li",function(){var t=e(this).index();e(".hot-cate").find("li").trigger("click"),e(this).addClass("current").siblings().removeClass("current"),e(".hot-cate").find("li").removeClass("current").eq(t).addClass("current")}),e(".hot-cate").find("li").eq(0).addClass("current"),e(".floatlayer").find("li").eq(0).addClass("current")}(i)}),define("js/common/slider",["jquery","lazyload"],function(e,t,n){var i=e("jquery"),o=e("lazyload");!function(e){var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.slider.defaults,n),this.bigItem=this.$element.find(".slide-wrapper").find("li"),this.smallItem=null,this.len=this.bigItem.size(),this.index=0,this.timer=null,this.init()};t.prototype={init:function(){return this.len<=1?void o(this.$element.find("img.lazy")):(this.options.pagination?this.smallItem=e(this.options.pagination).find("li"):this._createPage(),this.options.orient&&this._createOrient(),this._slideShow(),this._bindEvent(),void this._autoplay())},_createOrient:function(){var e='<div class="slide-switch"><a class="prev" href="javascript:;"><span class="iconfont">&#xe60c;</span></a><a class="next" href="javascript:;"><span class="iconfont">&#xe60b;</span></a></div>';this.$element.find(".slide-switch").length>0||this.$element.append(e)},_createPage:function(){var t='<div class="slide-pagination"><div class="slide-pagination-inner"><div class="slide-shade"></div><div class="slide-pagination-last">',n=0;if(!(this.len<=1)){for(n=0;n<this.len;n++)t+="<span></span>";t+="</div></div></div>",this.$element.append(e(t)),this.smallItem=e(".slide-pagination-inner").find("span")}},_bindEvent:function(){var t=this;this.$element.find(".slide-switch").on("click",".next",function(){t._nextSlide(),clearInterval(t.timer),t.timer=setInterval(function(){t._nextSlide()},t.options.time)}).on("click",".prev",function(){t._prevSlide(),clearInterval(t.timer),t.timer=setInterval(function(){t._nextSlide()},t.options.time)}),this.smallItem.on("mouseenter",function(){t.index=e(this).index(),clearInterval(t.timer),t._slideShow()}).on("mouseleave",function(){t._autoplay()}),this.$element.on("mouseenter",function(){e(this).find(".slide-switch").addClass("show")}).on("mouseleave",function(){e(this).find(".slide-switch").removeClass("show")})},_nextSlide:function(){this.index===this.len-1?this.index=0:this.index++,this._slideShow()},_prevSlide:function(){0===this.index?this.index=this.len-1:this.index--,this._slideShow()},_slideShow:function(){var e=this.bigItem.eq(this.index).find("img.lazy");e.attr("src")!==e.data("original")&&(o(e,{event:"sporty"}),e.trigger("sporty")),this.smallItem.eq(this.index).addClass("focus").siblings().removeClass("focus"),this.bigItem.eq(this.index).fadeIn().siblings().fadeOut()},_autoplay:function(){var e=this;clearInterval(this.timer),this.timer=setInterval(function(){e._nextSlide()},this.options.time)}},e.fn.slider=function(n){return this.each(function(){var i=e(this),o=i.data("Slider"),a="object"==typeof n&&n;o||i.data("Slider",o=new t(this,a)),"string"==typeof n&&o[n]()})},e.fn.slider.Constructor=t,e.fn.slider.defaults={time:5e3,orient:!0,pagination:null}}(i)}),define("js/common/logo-brand",["jquery","handlebars","source-map","lazyload"],function(e,t,n){var i=e("jquery"),o=e("handlebars"),a=e("lazyload");!function(e){var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.logoBrand.defaults,n),this.init()};t.prototype={init:function(){this.$element.addClass("logos-"+this.options.showNum),this._sendRequest()},_createHelper:function(){var e=this.options.showNum;o.registerHelper("brandList",function(t,n){var i="<ul>",o=0,a=null,r=0;if(t.length%e!==0)for(r=e-t.length%e,o=0;r>o;o++)t.push({href:"javascript:;",img:""});for(o=0;o<t.length;o++)a=n.fn(t[o]),i=o%e===5||5===o?i+'<li class="logo-brand-switch" data-page="'+Math.floor(o/e)+'"><a class="prev iconfont" href="javascript:;">&#xe60f;</a><a class="next iconfont" href="javascript:;">&#xe60e;</a></li><li data-page="'+Math.floor(o/e)+'">'+a+"</li>":0!==o&&o%e===0?i+'<li class="brand-more" data-page="'+Math.floor(o/(e+1))+'"><a href="javascript:;">MORE ></a></li><li data-page="'+Math.floor(o/e)+'">'+a+"</li>":i+'<li data-page="'+Math.floor(o/e)+'">'+a+"</li>";return i+'<li class="brand-more" data-page="'+Math.floor(o/(e+1))+'"><a href="javascript:;">MORE ></a></li></ul>'})},_sendRequest:function(){var t=this;e.ajax({type:"GET",url:t.options.url,dataType:"json",success:function(e){var n,i;t._createHelper(),i='{{#brandList logoBrand}}<a href="{{href}}"><img class="lazy" data-original="{{img}}" alt=""></a>{{/brandList}}',n=o.compile(i),t.$element.html(n(e)),t.$element.find(".brand-more a").attr("href",e.moreBrand),
a(t.$element.find("img.lazy")),t._bindEvent()}})},_brandShow:function(t,n){var i=this;a(e("li[data-page="+n+"]").find("img.lazy").trigger("appear")),i.$element.find("li[data-page="+t+"]").find("img").fadeOut("normal",function(){i.$element.find("li").hide(),i.$element.find("li[data-page="+n+"]").show().find("img").fadeIn()})},_bindEvent:function(){var t=this;t.$element.on("click",".next",function(){var n=e(this).parent().data("page"),i=0,o=Math.ceil(t.$element.find("li").size()/(t.options.showNum+2))-1;i=n===o?0:n+1,t._brandShow(n,i)}),t.$element.on("click",".prev",function(){var n=e(this).parent().data("page"),i=0,o=Math.ceil(t.$element.find("li").size()/(t.options.showNum+2))-1;i=0===n?o:n-1,t._brandShow(n,i)})}},e.fn.logoBrand=function(n){return this.each(function(){var i=e(this),o=i.data("LogoBrand"),a="object"==typeof n&&n;o||i.data("LogoBrand",o=new t(this,a)),"string"==typeof n&&o[n]()})},e.fn.logoBrand.Constructor=t,e.fn.logoBrand.defaults={showNum:16,url:"/boys/getBrand"}}(i)}),define("js/home/entry",["jquery","lazyload","handlebars","source-map"],function(e,t,n){e("js/home/home")}),define("js/home/home",["jquery","lazyload","handlebars","source-map"],function(e,t,n){var i=e("jquery"),o=e("lazyload"),a=i(".home-page").data("page"),r=i(".logo-brand").data("url");e("js/common/slider"),e("js/common/slider2"),e("js/common/logo-brand"),e("js/common/accordion"),"brands"===a&&e("js/home/brands"),["boys","girls","kids","lifestyle"].indexOf(a)>-1&&e("js/common/new-arrivls")({type:a,url:"/common/getNewArrival",pageCount:"boys"===a?"15":"20"}),o(i("img.lazy")),"boys"===a?i(".slide-container").slider({pagination:".thumb-pagination"}):"girls"===a?i(".center-col").slider():i(".slide-container").slider(),"boys"===a?(i(".logo-brand").logoBrand({url:r}),i(".img-brand").slider2()):(i(".logo-brand").logoBrand({showNum:10,url:r}),i(".img-slider-wrapper").slider2())}),define("js/common/slider2",["jquery"],function(e,t,n){var i=e("jquery");!function(e){e.fn.slider2=function(t){function n(t,n,o){o===!0?(e(".next").trigger("click"),t===n-3?i(--t,n,!1):i(++t,n,!0)):(e(".prev").trigger("click"),0===t?i(++t,n,!0):i(--t,n,!1))}function i(t,i,o){window.setTimeout(n,e.fn.slider2.defaults.delaytime,t,i,o)}function o(t,n,i){var o=-(t*n);e(".img-list").animate({"margin-left":o+"px"},"slow",i)}return e.fn.slider2.defaults={index:0,shownum:3,autoplay:!1,delaytime:3e3},this.each(function(){var n=e.extend({},e.fn.slider2.defaults,t),a=parseInt(e(".img-item").css("margin-right")),r=e(".img-item"),s=[],c=r.outerWidth()+a,l=r.length,d=0;if(3>=l)return void e(this).find(".img-brand-switch").hide();for(d=0;d<r.length;d++)s.push(r[d]);l=s.length,e(this).find(".img-list").css({width:c*l}),e(this).find(".next").on("click",function(t){var n=0,i=null;t.preventDefault(),o(3,c,function(){for(n=0;3>n;n++)i=s.shift(),e(".img-item").parent().append(i.outerHTML),s.push(i);e(".img-item").first().remove(),e(".img-item").first().remove(),e(".img-item").first().remove(),e(".img-list").css({"margin-left":"0"})})}),e(this).find(".prev").on("click",function(t){var n=0,i=null,a="";for(t.preventDefault(),n=0;3>n;n++)i=s.pop(),e(".img-item").parent().prepend(i.outerHTML),s.unshift(i);a=3*c,e(".img-item").last().remove(),e(".img-item").last().remove(),e(".img-item").last().remove(),e(".img-list").css({"margin-left":-a+"px"}),o(0,c)}),n.autoplay===!0&&i(n.index,l,!0)})}}(i)}),define("js/common/accordion",["jquery"],function(e,t,n){function i(e){c.each(function(t){r(this).css("zIndex",t),e>=t?r(this).stop().animate({left:t*d},400):r(this).stop().animate({left:e*d+l+d*(t-e-1)},400)})}var o,a=e("js/common/yohoui/YH.slide"),r=e("jquery"),s=r(".slide-accordion"),c=s.find("li"),l=c.width(),d=1150===parseInt(r(".home-page").width())?125:107;i(0),o=new a({length:5,loop:!1,auto:!1,timeout:2,index:3}),o.on("change",function(e){i(e.to)}),c.mouseover(function(){o.go(r(this).index())}),o.init()}),define("js/common/yohoui/YH.slide",[],function(e,t,n){var i=e("js/common/yohoui/YH.base"),o=function(e){this.__lastTime=null,this.__isStop=!1,e=i.extend(this.defaults,e),o.superclass.constructor.call(this,e)};i.inherit(o,i.assembly),o.prototype.oninit=function(){var e=this,t=e.options;return t.auto&&e.play(),e.go(t.index),this},o.prototype.go=function(e,t){var n,i,o,a,r,s,c,l,d=this,u=d.options;d.__lastTime&&(clearTimeout(d.__lastTime),d.__lastTime=null),t="undefined"==typeof t?u.index:t,n=e===t?0:e>t?1:-1,i=u.loop,a=u.length-1,r=e,e=i?e>a?e-a-1:0>e?e+a+1:e:e>a?a:0>e?0:e,o=u.index=e,s={from:t,to:e,originalto:r,direction:n};for(c in d.registerEvent)if(d.registerEvent[c].length>0)for(l in d.registerEvent[c])d.registerEvent[c].hasOwnProperty(l)&&d.registerEvent[c][l](s);o!==a||e?!d.__isStop&&u.auto&&d.play():d.__lastTime&&clearTimeout(d.__lastTime)},o.prototype.play=function(){var e=this,t=e.options;return e.__lastTime=setTimeout(function(){e.next()},1e3*t.timeout),this},o.prototype.next=function(){var e=this,t=e.options,n=t.index,i=n+t.step;e.go(i,n)},o.prototype.prev=function(){var e=this,t=e.options,n=t.index,i=n-t.step;e.go(i,n)},o.prototype.pause=function(){var e=this;e.__lastTime&&clearTimeout(e.__lastTime),e.__isStop=!0},o.prototype.resume=function(){var e=this;e.__isStop=!1,e.play()},o.prototype.defaults={index:0,timeout:5,step:1,per:1,auto:!1,loop:!1},n.exports=o}),define("js/common/yohoui/YH.base",[],function(e,t,n){var i,o={"[object Array]":"array","[object Boolean]":"boolean","[object Date]":"date","[object Function]":"function","[object Number]":"number","[object Object]":"object","[object RegExp]":"regexp","[object String]":"string"},a={__Index:0,list:[],get:function(e){return void 0===e?this.list:this.list[e]},fn:function(){},inherit:function(e,t){var n=a.fn;n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.superclass=t.prototype,e.prototype.constructor===Object.prototype.constructor&&(e.prototype.constructor=t)},extend:function(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},copy:function(e,t,n){var i,o,r;if("object"!=typeof t)return t;if(i=t.valueOf(),t!==i)return new t.constructor(i);if(t instanceof t.constructor&&t.constructor!==Object){o=e?new e:a.clone(t.constructor.prototype);for(r in t)(e||t.hasOwnProperty(r))&&(o[r]=t[r])}else{o={};for(r in t)o.hasOwnProperty(r)&&(o[r]=t[r])}if(n)for(r in n)o.hasOwnProperty(r)&&(o[r]=n[r]);return o},clone:function(e){return a.__cloneFunc.prototype=e,new a.__cloneFunc},__cloneFunc:function(){},delegate:function(e,t){var n;return t=t||window,arguments.length>2?(n=Array.prototype.slice.call(arguments,2),function(){return e.apply(t,n)}):function(){return e.call(t)}},dom:function(e,t){var n,i,o=e,a={wrap:o},r=o[0].getElementsByTagName("*"),s=r.length;for(i=0;s>i;i++)n=r[i].className,n.indexOf(t)>-1&&(n=n.split(t)[1]),n&&(a[n]=o.find(r[i]));return a},template:function(){var e,t,n,i,o=arguments;if(o.length>0&&a.isString(o[0]))if(e=o[0],2===o.length&&a.isObject(o[1]))for(t in o[1])void 0!==o[1][t]&&(n=new RegExp("({"+t+"})","g"),e=e.replace(n,o[1][t]));else for(i=1;i<o.length;i++)void 0!==o[i]&&(n=new RegExp("({["+(i-1)+"]})","g"),e=e.replace(n,o[i]));return e},__type:function(e){return null==e?String(e):o[Object.prototype.toString.call(e)]||"object"},isObject:function(e){return this.isFunction(e)||!(!e||"object"!=typeof e)},isFunction:function(e){return"function"===this.__type(e)},isArray:Array.isArray||function(e){return"array"===this.__type(e)},isNum:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},isString:function(e){return"string"===this.__type(e)},each:function(e,t,n){var i,o;if(a.isArray(e))for(i=0,o=e.length;o>i&&t.call(e[i],i,e[i],n)!==!1;i++);else for(i in e)if(t.call(e[i],i,e[i],n)===!1)break},funManager:{__loadList:{},__loadFun:function(e,t,n){e.methord&&a.isFunction(e.methord())&&(n=n||window,e.methord()(e,function(){t()},n))},load:function(e,t,n,i){i=i||0,e[i]&&a.funManager.__loadFun(e[i],function(){a.funManager.load(e,t,n,i+1)},n),t(i,n)},get:function(e){return this.__loadList[e]}},log:function(e){var t=window.console||{log:function(){}};t.log(e)},Event:{mousewheel:function(e){var t=e.originalEvent,n=t.detail?-1*t.detail:t.wheelDelta/40,i=0>n?-1:1;return{direction:i,unit:n}},__:function(e,t,n,i){var o;for(o in e)if(window[e[o].validator]){t[e[o].validator](e[o].prefix+n,i,!1);break}},add:function(e,t,n){var i=[{validator:"addEventListener",prefix:""},{validator:"attachEvent",prefix:"on"}];this.__(i,e,t,n)},remove:function(e,t,n){var i=[{validator:"removeEventListener",prefix:""},{validator:"detachEvent",prefix:"on"}];this.__(i,e,t,n)}},getUid:function(e){return a.template("me-{0}{1}-{2}",e,(new Date).getTime(),a.__Index++)},Browser:{isTouch:function(){var e=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture;return"ontouchstart"in window||e||window.DocumentTouch?!0:!1},Prefix:function(){var e,t=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"],n=document.createElement("div");for(e in t)if(void 0!==n.style[t[e]])return a.template("-{0}-",t[e].replace("Perspective","").toLowerCase())},parseURL:function(e){var t,n,i,o,a,r=document.createElement("a");return r.href=e,{source:e,protocol:r.protocol.replace(":",""),host:r.hostname,port:r.port,query:r.search,params:function(){for(t={},n=r.search.replace(/^\?/,"").split("&"),i=n.length,o=0,a;i>o;o++)n[o]&&(a=n[o].split("="),t[a[0]]=a[1]);return t}(),file:(r.pathname.match(/\/([^\/?#]+)$/i)||[null,""])[1],hash:r.hash.replace("#",""),path:r.pathname.replace(/^([^\/])/,"/$1"),relative:(r.href.match(/tps?:\/\/[^\/]+(.+)/)||[null,""])[1],segments:r.pathname.replace(/^\//,"").split("/")}}},Array:{indexOf:function(e,t){var n;for(n=0;n<e.length;n++)if(this[n]===t)return n;return-1},remove:function(e,t){var n=this.indexOf(e,t);return n>-1&&e.splice(n,1),e}}};i=function(e){this.initialized=!1,this.registerEvent={before:[],change:[],after:[]},this.options=e,this.init(e)},i.output=function(){a.log(a.list)},i.prototype.oninit=a.fn,i.prototype.init=function(e){this.initialized=!0,this.__Uid=a.getUid("me"),this.oninit(e),a.list[this.__Uid]=this},i.prototype.destory=function(){this.initialized=!1,delete a.list[this.__Uid]},i.prototype.getUid=function(){return this.__Uid},i.prototype.getOptions=function(){return this.options},i.prototype.config=function(){if(!(arguments.length>0))return this.options;if("string"==typeof arguments[0]){if(!(arguments.length>1))return this.options[name];this.options[arguments[0]]=arguments[1]}},i.prototype.on=function(e,t){var n=this,i=n.registerEvent[e];return i&&i.push(t),i},i.prototype.off=function(e,t){var n=this,i=n.registerEvent[e],o=[];a.each(i,function(e,n){n===t&&o.push(e)}),a.each(o.reverse(),function(e,t){i.splice(t,1)})},a.assembly=i,n.exports=a}),define("js/home/brands",["jquery","handlebars","source-map"],function(e,t,n){function i(e,t,n){var i,o=e,s={width:o.width(),left:o.offset().left,right:parseFloat(a(window).width())-parseFloat(o.offset().left)-parseFloat(o.width())};c.find(".brands-layer").remove(),i=r.compile(n),o.parent("li").find(".brands-dialog").html(i(t)),s.right-350<0&&o.parent("li").find(".brands-layer").addClass("brands-layer-right").css("left",-330-s.width)}var o,a=e("jquery"),r=e("handlebars"),s=a(".brands-tabs"),c=a(".brands-list"),l=a(".brands-category"),d=c.find("li>a"),u=l.find("a"),f=s.find("li>a"),p=s.find(".hoverarr"),h=u.height(),m=u.offset()?u.offset().top:0,g={},w='<div class="brands-layer">';w+=' <div class="layer-content">',w+=' <div class="title">{{title}}</div>',w+=' <div class="clearfix desc">',w+=' <img src="{{icon}}">',w+=' <p class="right">{{content}}</p>',w+=" </div> ",w+=' <div class="featured">',w+=" <p>{{subtitle}}</p> ",w+=' <div class="clearfix"> ',w+=" {{#each imgs}}",w+=' <img src="{{src}}">',w+=" {{/each}}",w+=" </div>",w+=" </div>",w+=" </div>",w+="</div>",a.easing.easeOutQuint=function(e,t,n,i,o){return i*((t=t/o-1)*t*t*t*t+1)+n},f.eq(0).parent("li").find(".brands-content").css("z-index","1"),f.hover(function(){var e=a(this);clearTimeout(o),o=setTimeout(function(){var t=parseFloat(e.offset().left)-parseFloat(s.offset().left);p.animate({left:t},200,"easeOutQuint")},200),s.find(".brands-content").removeAttr("style"),e.parent("li").find(".brands-content").css("z-index","1")},function(){clearTimeout(o)}),a(window).scroll(function(){a(this).scrollTop()>m?l.addClass("category-fix"):l.removeClass("category-fix")}),u.click(function(){var e=a(this).attr("href").split("#")[1],t=c.find("[name="+e+"]").offset().top-h;return a("html,body").animate({scrollTop:t},200),!1}),d.hover(function(){var e=a(this),t=e.attr("data-key"),n={url:"/brands/brandinfo",type:"get",success:function(t){200===t.code&&t.brand&&(g.hasOwnProperty(t.brand.key)||(g[t.brand.key]=t.brand),i(e,g[t.brand.key],w))}};clearTimeout(o),o=setTimeout(function(){g.hasOwnProperty(t)?i(e,g[t],w):a.ajax(n)},200)},function(){clearTimeout(o),c.find(".brands-layer").remove()})}),define("js/common/new-arrivls",["jquery","lazyload","handlebars","source-map"],function(e,t,n){function i(e){var t={index:0,isload:!0,isrun:!0,offset:{height:null,width:null}};return this.registerEvent={before:[],change:[],after:[]},this.options=o.extend(!0,{},t,e),this}var o=e("jquery"),a=e("lazyload"),r=e("handlebars");i.prototype.on=function(e,t){var n=this,i=n.registerEvent[e];return i&&i.push(t),i},i.prototype.exect=function(e,t){var n,i=this;if(i.registerEvent[e]&&i.registerEvent[e].length>0)for(n in i.registerEvent[e])i.registerEvent[e].hasOwnProperty(n)&&i.registerEvent[e][n](t)},i.prototype.init=function(){function e(){n.isrun&&n.isload&&t.__directionCalculation()&&(n.isload=!1,n.index++,t.exect("after",n)),t.exect("change",n)}var t=this,n=this.options;t.exect("before",n),o(window).scroll(e)},i.prototype.emit=function(){var e=this.options;e.isload=!0},i.prototype.stop=function(){var e=this.options;e.isrun=!1,e.isload=!1},i.prototype.__directionCalculation=function(){var e=this.options;return e.offset.height&&e.offset.height()>0&&o(window).scrollTop()+o(window).height()>=e.offset.height()?!0:!1},n.exports=function(e){var t,n=o("#newarrivals .goods-container"),s=o(".loading a"),c=new i({offset:{height:function(){return parseFloat(n.offset().top)+parseFloat(n.height())}}}),l=e.url;delete e.url,c.on("after",function(i){e=o.extend({},e,{pageIndex:i.index}),t={type:"POST",url:l,data:e,success:function(e){var t,i=e.code;200===i?(t=r.compile(c.tpl),n.append(t(e.goods)),a(n.find("img.lazy")),c.emit()):(c.stop(),s.html("查看更多"))},error:function(){c.stop(),s.html("网络断开连接了~")}},o.ajax(t)}),c.on("before",function(){c.tpl="{{#each this}}",c.tpl+='<div class="good-info" data-skn="{{skn}}">',c.tpl+=' <div class="tag-container clearfix">',c.tpl+=" {{# tags}}",c.tpl+=" {{# isNew}}",c.tpl+=' <span class="good-tag new-tag">NEW</span>',c.tpl+=" {{/ isNew}}",c.tpl+=" {{# isReNew}}",c.tpl+=' <span class="good-tag renew-tag">再到着</span>',c.tpl+=" {{/ isReNew}}",c.tpl+=" {{# isSale}}",c.tpl+=' <span class="good-tag sale-tag">SALE</span>',c.tpl+=" {{/ isSale}}",c.tpl+=" {{# isNewFestival}}",c.tpl+=' <span class="good-tag new-festival-tag">新品节</span>',c.tpl+=" {{/ isNewFestival}}",c.tpl+=" {{# isLimit}}",c.tpl+=' <span class="good-tag limit-tag">限量商品</span>',c.tpl+=" {{/ isLimit}}",c.tpl+=" {{# isYearEndPromotion}}",c.tpl+=' <span class="good-tag yep-tag">年终大促</span>',c.tpl+=" {{/ isYearEndPromotion}}",c.tpl+=" {{# isYearMidPromotion}}",c.tpl+=' <span class="good-tag ymp-tag">年中热促</span>',c.tpl+=" {{/ isYearMidPromotion}}",c.tpl+=" {{/ tags}}",c.tpl+=" </div>",c.tpl+=' <div class="good-detail-img">',c.tpl+=' <a class="good-thumb" href="{{url}}">',c.tpl+=' <img class="lazy" data-original="{{thumb}}">',c.tpl+=" </a>",c.tpl+=" {{# isFew}}",c.tpl+=' <p class="few-tag">即将售罄</p>',c.tpl+=" {{/ isFew}}",c.tpl+=" {{#if showColBtn}}",c.tpl+=' <span class="col-btn iconfont{{#if coled}} coled{{/if}}">&#xe616;</span>',c.tpl+=" {{/if}}",c.tpl+=" </div>",c.tpl+=' <div class="good-detail-text">',c.tpl+=' <a href="{{url}}">{{name}}</a>',c.tpl+=' <p class="price">',c.tpl+=' <span class="sale-price{{#unless marketPrice}}prime-cost{{/unless}}">',c.tpl+=" ¥{{salePrice}}",c.tpl+=" </span>",c.tpl+=" {{# marketPrice}}",c.tpl+=' <span class="market-price">¥{{.}}</span>',c.tpl+=" {{/ marketPrice}}",c.tpl+=" </p>",c.tpl+=" </div>",c.tpl+="</div>",c.tpl+="{{/each}}",c.emit()}),c.init()}});
\ No newline at end of file
define("index",["jquery","handlebars","source-map","index","lazyload"],function(e,t,n){var i;e("js/common"),e("js/product/entry"),e("js/home/entry"),n.exports=i}),define("js/common",["jquery","handlebars","source-map","index"],function(e,t,n){function i(e){var t,n,i=document.cookie;return document.cookie&&""!==document.cookie&&(n=i.indexOf(e+"="),n>-1&&(n+=e.length+1,t=decodeURIComponent(c.trim(i.substring(n,i.indexOf(";",n)))))),t}function o(e,t,n){var i,o,a,r,s="";"undefined"!=typeof t&&(n=n||{},null===t&&(t="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(r=new Date,r.setTime(r.getTime()+24*n.expires*60*60*1e3)):r=n.expires,s="; expires="+r.toUTCString()),i=n.path?"; path="+n.path:"",o=n.domain?"; domain="+n.domain:"",a=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),s,i,o,a].join(""))}function a(){var e,t=i("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function r(){var e=a();return 0===e?0:e[1]}function s(){var e=i("_g");return"undefined"==typeof e?"":JSON.parse(e).k}var c=e("jquery");e("js/footer"),e("js/header"),window.cookie=i,window.setCookie=o,window.getUser=a,window.getUid=r,window.getShoppingKey=s}),define("js/footer",["jquery"],function(e,t,n){function i(){var e=s("#subscriber-box"),t=s("#subscriber-btn"),n=/^[.\-_a-zA-Z0-9]+@[\-_a-zA-Z0-9]+\.[a-zA-Z0-9]/,i={method:"open.subscriber.subscriber",v:1,return_type:"jsonp",open_key:"12345"},o={mail:"&#xe61b;",tick:"&#xe61a"},a=s.trim(e.val()),r={};e.focus(function(){s(this).val("").css("color",""),t.removeClass("done").html(o.mail)}),t.click(function(){if(""!==a&&n.test(a)){s.extend(r,i,{email:a,tmp:Math.random(),uid:s.uid("_UID")});try{s.getJSON("http://test.open.yohobuy.com/?callback=?",r,function(n){1===n.data.result?(e.val("已订阅到:"+a),t.addClass("done").html(o.tick)):e.css("color","red")})}catch(c){console.log(c.message)}}else e.css("color","red")})}function o(){var e=s(".vote"),t=s("#feed-back-page"),n=e.children("li").length;t.on("click","span",function(){var t=s(this);t.hasClass("cur")||(t.siblings(".cur").removeClass("cur"),t.addClass("cur"),e.children().not(".hide").addClass("hide").end().eq(t.index()).removeClass("hide"))}),e.on("click",".feed-back-btn",function(){var i=s(this),o=i.closest("li"),a=o.index(),c={},l=[],d=o.find(".feedback-answer").val(),u=o.find(".feedback-id").val(),f=o.find(".question-id").val();o.find(":checked").each(function(){l.push(s(this).val())}),c={method:"open.feedback.submit",feedback:u||0,question:f||0,answer:d||"",solution:l.join(",")},s.getData(r,c,function(i){var r=a+1;if(1===i.result){if(a===n-1)return void alert("感谢您的参与!");o.addClass("hide"),e.eq(a+1).removeClass("hide"),t.children(".cur").removeClass("cur"),t.eq(r).addClass("cur")}})})}function a(){s(window).height()<s(document).height()?c.removeClass("hide"):c.addClass("hide")}var r,s=e("jquery"),c=s(".return-top");c.click(function(){s("html,body").animate({scrollTop:0},500)}),s(window).scroll(function(){0===s(window).scrollTop()?c.addClass("hide"):c.removeClass("hide")}),a(),c.hasClass("hide")&&s("img").load(a),i(),o(),window.rePosReturnTop=a}),define("js/header",["jquery","handlebars","source-map","index"],function(e,t,n){function i(e){var t;200===+e.code&&"object"==typeof e.data&&(t='<a target="_blank" href="'+e.data.url+'" class="page-top-banner"style="height:50px;border:none;background-image:url('+window.unescape(e.data.src)+');background-position: center;display:block;background-color:#ff5409;">&nbsp;</a>',N("body").prepend(t))}function o(e){200===+e.code&&(D=!0)}function a(){var e;D||(e='<div class="noticewrapper"><div class="noticecontainer"><h1 class="noticetitle">关于系统升级的公告</h1><div class="noticecontent"><p class="tips">尊敬的顾客:</p><p class="detail">您好!为了向您提供更优质的服务,目前系统正在升级,请耐心等待。</p><p class="detail">系统升级期间,部分地区用户体验会有暂时中断,如遇紧急事宜,欢迎垂询客服热线:400-889-9646 09:00-22:30(周一至周日)。稍后系统将恢复正常</p><p class="detail">使用,欢迎您继续光顾YOHO!BUY有货!带来不便之处深表歉意,请您谅解!</p></div></div></div>',N(".header-topwrapper").append(e))}function r(e){var t=document.createElement("script");t.src="http://new.yohobuy.com/resource/getbanner?content_code="+e+"&client_type=web&callback=JsonPCallBack",document.getElementsByTagName("head")[0].appendChild(t)}function s(e){var t=document.createElement("script");t.src="http://new.yohobuy.com/resource/getbanner?content_code="+e+"&client_type=web&callback=NoticeCallBack",document.getElementsByTagName("head")[0].appendChild(t),window.setTimeout(a,5e3)}function c(e,t){var n,i;N(e).hover(function(e){e.preventDefault(),n=N(this),i=N(t)[0],""===i.style.display?(n.addClass("acttags"),i.style.display="block"):(n.removeClass("acttags"),i.style.display="")})}function l(){var e,t,n=[{sourceClass:".myyoho",targetClass:".myyoho-info"},{sourceClass:".phone",targetClass:".qr"}];for(t=0;t<n.length;t++)e=n[t],c(e.sourceClass,e.targetClass)}function d(){var e;N(".yohogroup").mouseenter(function(){e=N(this),e.text(e.attr("cn"))}),N(".yohogroup").mouseleave(function(){e=N(this),e.text(e.attr("en"))})}function u(){var e,t,n=["webkit","moz","ms"];for(t=0;t<n.length;t++)return e=n[t]+"RequestAnimationFrame",window[e]?!0:!1}function f(){var e=["webkit","moz","ms"],t=e[0]+"RequestAnimationFrame",n=e[1]+"RequestAnimationFrame",i=e[2]+"RequestAnimationFrame";return window[t]?function(e){window[t](e)}:window[n]?function(e){window[n](e)}:window[i]?function(e){window[i](e)}:function(e){window.setTimeout(e,67)}}function p(){window.start+=10,window.$logotrans.css({transform:"rotateX("+window.start+"deg)","-webkit-transform":"rotateX("+window.start+"deg)","-moz-transform":"rotateX("+window.start+"deg)"}),window.start/90%2===1&&(window.isen?(window.$logotrans.css("background-image","url(http://static.yohobuy.com/newheader/img/logo1.png)"),window.isen=!1):(window.$logotrans.css("background-image","url(http://static.yohobuy.com/newheader/img/logo_e.png)"),window.isen=!0)),window.start/90%2===0&&window.start%360!==0?window.setTimeout(p,3e3):window.start%360===0?window.setTimeout(p,6e4):window.requestFrame(function(){p()})}function h(){window.globaltimeout&&window.clearTimeout(window.globaltimeout),window.logotrans.fadeOut(window.loopdurationtime,function(){window.isen=!1,window.logotrans.css("background-image","url(http://static.yohobuy.com/newheader/img/logo.png)"),window.logotrans.fadeIn(window.loopdurationtime,function(){window.onetimeoout=window.setTimeout(function(){window.logotrans.fadeOut(window.loopdurationtime,function(){window.clearTimeout(window.onetimeoout),window.isen=!0,window.logotrans.css("background-image","url(http://static.yohobuy.com/newheader/img/logo_e.png)"),window.logotrans.fadeIn(window.loopdurationtime,function(){window.globaltimeout=window.setTimeout(h,6e4)})})},3e3)})})}function m(){u()?window.setTimeout(p,3e3):window.setTimeout(h,3e3)}function g(){var e=N("#nav_keyword").text(),t="vans",n=N("#query_key");""!==e?(n.css({color:"#000"}),n.val(e)):(n.css({color:"#e0e0e0"}),n.val(t),n.on("focus",function(e){n.css({color:"#000"}),n.val("")}))}function w(e,t,n){try{window.dataLayer.push({louceng:e,weizhi:t,event:n})}catch(i){}}function v(){var e=N.cookie("_Gender"),t=N(".cure");"undefined"!=typeof e&&""!==e&&N.setcookie("_Gender",1,{path:"/",domain:".yohobuy.com",expires:7}),"男生"===t.find(".name-cn a").text()&&(N.setcookie("_Gender","1,3",{path:"/",domain:".yohobuy.com",expires:7}),N.setcookie("_Channel","boys",{path:"/",domain:".yohobuy.com",expires:7})),"女生"===t.find(".name-cn a").text()&&(N.setcookie("_Gender","2,3",{path:"/",domain:".yohobuy.com",expires:7}),N.setcookie("_Channel","girls",{path:"/",domain:".yohobuy.com",expires:7})),"创意生活"===t.find(".name-cn a").text()&&N.setcookie("_Channel","lifestyle",{path:"/",domain:".yohobuy.com",expires:7}),"潮童"===t.find(".name-cn a").text()&&N.setcookie("_Channel","kids",{path:"/",domain:".yohobuy.com",expires:7})}function y(){var e,t,n,i=document.cookie,o=i.split(";");for(e=0;e<o.length;e++)t=o[e].split("="),n=t[0].replace(/\s/g,""),window.cookieMap[n]=t[1]}function b(){var e;N(".first-nav-item").click(function(){e=N.cookie("_Gender"),"undefined"!=typeof e&&""!==e&&N.setcookie("_Gender",1,{path:"/",domain:".yohobuy.com",expires:7}),"男生"===N(this).find(".name-cn a").text()&&(N.setcookie("_Gender","1,3",{path:"/",domain:".yohobuy.com",expires:7}),N.setcookie("_Channel","boys",{path:"/",domain:".yohobuy.com",expires:7})),"女生"===N(this).find(".name-cn a").text()&&(N.setcookie("_Gender","2,3",{path:"/",domain:".yohobuy.com",expires:7}),N.setcookie("_Channel","girls",{path:"/",domain:".yohobuy.com",expires:7})),"创意生活"===N(this).find(".name-cn a").text()&&N.setcookie("_Channel","lifestyle",{path:"/",domain:".yohobuy.com",expires:7}),"潮童"===N(this).find(".name-cn a").text()&&N.setcookie("_Channel","kids",{path:"/",domain:".yohobuy.com",expires:7})}),N("#backToOld").click(function(){N.setcookie("_New",1,{path:"/",domain:".yohobuy.com"}),location.href="http://www.yohobuy.com"})}function k(){N("#miniCartBox").miniCart({cartNum:".ic-infomation"})}function x(){var e,t,n;N.getData(window.apiDomain,{method:"open.Shoppingcart.getCartData",shopping_key:N.getShoppingKey()},function(i){""===window.cartTpl&&(window.cartTpl=P.compile(N("#mini-cart-tpl").html())),N("#miniCartBox").children(".gobuy-wrapper").html(window.cartTpl({carData:i})),0===parseInt(N(".ic-infomation").html())&&N("#miniCartBox .gobuy-wrapper").html('<div class="gobuy-empty"><h3 class="information">您的购物车暂无商品</h3></div>'),N("#miniCartBox .goods-list li").length<1&&(e=N.cookie("_g"),t=F.parse(e),null!==t&&(n='{"_k":"'+t._k+'","_nac":0,"_ac":0,"_r":0}',N.setcookie("_g",n,{path:"/",domain:".yohobuy.com"})),N(".ic-infomation").html(0),N("#miniCartBox .gobuy-wrapper").html('<div class="gobuy-empty"><h3 class="information">您的购物车暂无商品</h3></div>'))})}function _(e,t){N.getData(window.apiDomain,{method:"open.Shoppingcart.delone",shopping_key:N.getShoppingKey(),id:e,isreduce:t},function(e){var t=N.cookie("_g"),n=F.parse(t),i='{"_k":"'+n._k+'","_nac":'+e.total_goods_num+',"_ac":0,"_r":0}';N.setcookie("_g",i,{path:"/",domain:".yohobuy.com"}),x(),k()})}function C(){var e,t,n;N(document).on("click",".goodscardelete",function(i){e=N(this),t=e.attr("goodsid"),n=e.attr("cheapest"),_(t,n)})}function j(){var e;N(document).on("click",".mycart_i_down",function(t){e=N(this),e.toggleClass("mycart_i_up"),N("#mycartmore").slideToggle(300)})}function q(){var e,t="http://www.yohobuy.com/shopping/cart";N("#miniCartBox").on("click",function(n){e=N(n.target),e.hasClass("gobuy")&&(window.location.href=t)})}function T(e){1===e?(N("#miniCartBox").addClass("list-cur"),N(".gobuy-wrapper").show(),0!==parseInt(N(".ic-infomation").html())?(N("#miniCartBox .gobuy-wrapper").html('<div class="gobuy-loading"><h3 class="information">加载中,请稍后</h3></div>'),x()):N("#miniCartBox .gobuy-wrapper").html('<div class="gobuy-empty"><h3 class="information">您的购物车暂无商品</h3></div>')):(N("#miniCartBox").removeClass("list-cur"),N(".gobuy-wrapper").hide())}function $(){var e;N("#miniCartBox").mouseenter(function(t){e=N(t.target),("miniCartBox"===e.attr("id")||"ic-infomation"===e.attr("class"))&&T(1)}),N("#miniCartBox").mouseleave(function(e){T(0)})}function S(){var e,t="indexkids",n="indexlifestyle",i="indexboys",o="indexgirls",a="uniquebrand",c=window.location.href,l=window.location.host,d="";-1!==c.indexOf("search")&&(d=window.bannerMap["search"+window.cookieMap._Channel]),-1!==c.indexOf("list")&&(d=window.bannerMap["list"+window.cookieMap._Channel]),-1!==c.indexOf("brands")&&(d=window.bannerMap["brands"+window.cookieMap._Channel]),-1!==c.indexOf("new")&&(d=window.bannerMap["new"+window.cookieMap._Channel]),-1!==c.indexOf("sale")&&(d=window.bannerMap["sale"+window.cookieMap._Channel]),-1!==c.indexOf("home")&&(d=window.bannerMap["home"+window.cookieMap._Channel]),-1!==c.indexOf("kids")&&(d=window.bannerMap[t]),-1!==c.indexOf("woman")&&(d=window.bannerMap[o]),-1!==c.indexOf("lifestyle")&&(d=window.bannerMap[n]),-1!==c.indexOf("www.yohobuy.com")&&"/"===window.location.pathname&&(d=window.bannerMap[i]),e=l.split(".")[0],"list"!==e&&"search"!==e&&"www"!==e&&"new"!==e&&"item"!==e&&"guang"!==e&&(d=window.bannerMap[a+window.cookieMap._Channel]),r(d),s(d)}function I(e){N(".hot-brands").find("ul").stop().animate({opacity:0,"z-index":1},200).eq(e).animate({opacity:1,"z-index":2},200)}function z(){var e,t=0;N(".hot-brands").size()>0&&(e=N(".hot-brands").find("ul").size(),N(".hot-brands").find("ul").eq(0).css({opacity:1,"z-index":2}),N(".brands-control").on("click",".next",function(){t===e-1?t=0:t++,I(t)}),N(".brands-control").on("click",".prev",function(){0===t?t=e-1:t--,I(t)}))}function O(){setInterval(k,2e3)}function E(){var e=N("#goodcartempwarpper").html().replace(/\\/g,"");N("#goodcartempwarpper").html(e)}function M(){var e="http://search.yohobuy.com/api/suggest";N("#query_key").search(e)}function B(){E(),v(),y(),d(),l(),m(),S(),z(),g(),b(),$(),k(),O(),M(),q(),C(),j()}var N=e("jquery"),P=e("handlebars"),F=e("index"),D=!1;P.registerHelper("equalone",function(e,t){return"1"===e?t.fn(this):t.inverse(this)}),e("plugin/yohocookie"),e("plugin/yohocart"),window.JsonPCallBack=i,window.NoticeCallBack=o,window.requestFrame=f(),window.start=0,window.$logotrans=N(".icon-logo"),window.isen=!0,window.loopdurationtime=500,window.globaltimeout,window.onetimeoout,window.dataLayer=[],window.reg=/^[\^\!\+\-\(\)\:\[\]\\\{\}\~\*\?\|\&\;\/\s]{0,}$/g,window.keyword="",window.link="",window.submitSearch=function(){var e,t,n=N("#query_key").val(),i="Search",o="Head Search",a="Search";if(e=N.trim(window.keyword.toLowerCase()),t=N.trim(n.toLowerCase()),w(i,o,a),""!==window.link&&""!==window.keyword&&e===t)location.href=window.link.replace("'","");else{if(!window.reg.test(n))return N("#searchForm").submit(),!1;location.href="http://search.yohobuy.com/error?query="+n+"&result=error"}},window.bannerMap={listboys:"4f78b0f418fc42314d8b6e791cfb7fa8",listgirls:"00c1f025a51b6b597dc37925951ea27d",listkids:"b02df11184727701ade1b6de9737d08c",listlifestyle:"fd35c52dced0c880976ba858346d1fc5",searchboys:"9fb8986ea700cc27a8057361c3924394",searchgirls:"e3e207a1443ca60c8037fe52a5560c18",searchkids:"620fc77f479da8feaeb06f2324e5d0bb",searchlifestyle:"a3c93301c6ffaf3ed0f36a4a451be36d",uniquebrandboys:"2ebb0810c0d1a67e5229149c9c3aba7d",uniquebrandgirls:"99e23385f4ba4b65f406b7e2968ac821",uniquebrandkids:"a74ebc9b17840c91b9ea46568111fe6b",uniquebrandlifestyle:"0e8c81ead53f56302baa4d0ad967f527",brandsboys:"77b352db07129c76a9d532acad149f9f",brandsgirls:"bf047f16e52ebc38be5ce9c7623831e6",brandskids:"e3ae1ce9b5e13c6d271ef3eccb831652",brandslifestyle:"e4ac8029c30f65d7f1af030980d140fe",newboys:"869d3c5f3b450fb52101d00a61ce87cb",newgirls:"d953b6dfdac02483d1dcce8d96055954",newkids:"0874cb6d75df8e0e78f2d475e53ecc08",newlifestyle:"43e8fc8e178115c262bbce2bd0012db7",saleboys:"c846e3165c994769b4201d8c32f3ae9b",salegirls:"52b1d389edcbc62d65de71b80c4d6ad0",salekids:"ad8b1703c761ba00973868ab5199cc27",salelifestyle:"7acc64905c70ac91846f43fb2cec4bbd",homeboys:"b0856a771ef1b59ab1234c74688fa42d",homegirls:"2bd61fa12e4933211518f70fe5ce3c48",homekids:"895c59e8c64b40399c9533509507320c",homelifestyle:"2e037d4e25d2767352ca3e0a4627f7bd",indexboys:"0c911d3000f52e8ca7cffb74f5864c29",indexgirls:"b645b8980c423ab30485e0a9d08c2ef7",indexkids:"17f6d5d5d454d2c507bc5fcbc90f7756",indexlifestyle:"735cd393e841762af8793c346abbbc36"},window.cookieMap={},window.apiDomain="http://api.open.yohobuy.com",window.cartTpl="",B()}),define("plugin/yohocookie",["jquery"],function(e,t,n){var i=e("jquery");!function(e){e.extend({cookie:function(e){var t=null;if(document.cookie&&""!=document.cookie)for(var n=document.cookie.split(";"),o=0;o<n.length;o++){var a=i.trim(n[o]);if(a.substring(0,e.length+1)==e+"="){t=decodeURIComponent(a.substring(e.length+1));break}}return t},setcookie:function(e,t,n){var i="";if("undefined"!=typeof t){if(n=n||{},null===t&&(t="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)){var o;"number"==typeof n.expires?(o=new Date,o.setTime(o.getTime()+24*n.expires*60*60*1e3)):o=n.expires,i="; expires="+o.toUTCString()}var a=n.path?"; path="+n.path:"",r=n.domain?"; domain="+n.domain:"",s=n.secure?"; secure":"";document.cookie=[e,"=",encodeURIComponent(t),i,a,r,s].join("")}}})}(i)}),define("plugin/yohocart",["jquery"],function(require,exports,module){var jQuery=require("jquery"),$yohocookie=require("plugin/yohocookie");!function($){$.fn.miniCart=function(options){var defaults={cookie:"_g",cartNum:""},params=$.extend(defaults,options),cartInfo=eval("("+$.cookie(params.cookie)+")");if(null!=cartInfo){var totalNum=parseInt(cartInfo._nac)+parseInt(cartInfo._ac);0==totalNum?$("#icart-num").attr("class","icart-num icart-none"):$("#icart-num").attr("class","icart-num"),$(params.cartNum).html(totalNum)}},$.fn.search=function(e){function t(t){var n=$.trim($(t).val());return n=n.replace(new RegExp("'","gm"),""),""==n?($(".search-list").hide(),!1):(n=encodeURI(n),void $.get(e+"?callback=?&query="+n,function(e){$(".search-list").html(e.data),i=$(".search-list").children("li").length,o=-1,i>0?$(".search-list").show():$(".search-list").hide(),$(".search-list").find("a").hover(function(){$(this).css("background-color","#eee")},function(){$(this).css("background-color","#fff")})},"jsonp"))}function n(e){$(".search-list li:eq("+a+")").children("a").css("background-color","#fff"),$(".search-list li:eq("+o+")").children("a").css("background-color","#eee");var t=$(".search-list li:eq("+o+")").children("a").attr("title");$("#query_key").val(t)}var i=0,o=0,a=0;return this.each(function(){$(this).keyup(function(e){if(38==e.which){if(0==i)return!1;-1==o&&(o=0),a=o,o=(o-1+i)%i,n(this)}else if(40==e.which){if(0==i)return!1;a=o,o=(o+1)%i,n(this)}else 13==e.which?submitSearch():t(this)})})},$.extend({getData:function(domain,options,onSuccess){var defaults={page:1,method:"",v:1,return_type:"jsonp",open_key:"12345",tmp:Math.random()};if(void 0==typeof domain||""==domain)return console.log("请设置请求的api地址"),!1;var params=$.extend(defaults,options);if(params.page=params.page||1,""==params.method)return console.log("请设置请求的URL"),!1;try{$.getJSON(domain+"/?callback=?",params,function(_data){return""!=onSuccess?(eval(onSuccess(_data.data)),!1):void 0})}catch(e){console.log(e.message)}},getShoppingKey:function(){var shoppingInfo=$.cookie("_g");if("undefined"==typeof shoppingInfo||null==shoppingInfo)return"";var shoppingData=eval("("+shoppingInfo+")");return shoppingData._k}})}(jQuery),exports.init=function(){}}),define("js/product/entry",["jquery","lazyload","handlebars","source-map"],function(e,t,n){e("js/product/list"),e("js/product/hotrank")}),define("js/product/list",["jquery","lazyload"],function(e,t,n){e("js/product/filter"),e("js/product/sort-pager"),e("js/product/product")}),define("js/product/filter",["jquery"],function(e,t,n){function i(e){e.removeClass("checked").html(w.unchecked)}function o(){y.addClass("hide"),b.removeClass("hide")}function a(){b.addClass("hide"),y.removeClass("hide")}function r(e,t){var n,i=decodeURIComponent(window.location.search),o=e+"="+t;n=""===i?"?"+o:i+"&"+o,window.location.href=n}function s(e){T.children(".senior-sub:eq("+m+")").addClass("hide"),$.children(".attr:eq("+m+")").removeClass("hover"),m=-1}var c,l,d,u,f,p,h,m,g=e("jquery"),w={unchecked:"&#xe613;",checked:"&#xe612;"},v={up:"&#xe610;",down:"&#xe600;"},y=g(".brand .default"),b=g(".brand .brand-panel"),k=g(".brand .attr"),x=g("#brand-more"),_=g("#brand-multi"),C=g(".ud-price-range"),j=/^\d+$/,q=g(".sort-sub-wrap"),T=g(".senior-sub-wrap"),$=g(".senior-attr-wrap");g(".filter-box").on("selectstart",".attr, .brands-index span",function(){return!1}),g(".sort-pre").on("click","li",function(){var e=g(this),t=e.index();e.siblings(".active").removeClass("active"),e.addClass("active"),q.children(":not(.hide)").addClass("hide"),q.children(":eq("+t+")").removeClass("hide")}),x.length>0&&(c=x.children("em"),l=x.children(".iconfont")),_.click(function(){"none"===b.css("display")&&o(),b.addClass("multi"),g(this).addClass("hide")}),x.click(function(){var e=g(this);e.hasClass("more")?(a(),c.text("更多"),l.html(v.down)):(o(),c.text("收起"),l.html(v.up)),g(this).toggleClass("more")}),g(".brands-index").on("click","span",function(){var e=g(this),t=e.data("index");0===e.index()?k.removeClass("hide"):k.addClass("hide").filter("[data-index="+t+"]").removeClass("hide")}),g("#brand-search-input").keyup(function(){var e=g(this).val().toLowerCase();""===e?k.removeClass("hide"):k.addClass("hide").filter("[data-key*="+e+"]").removeClass("hide")}),g("#brand-multi-ok").click(function(){var e="";g(this).hasClass("dis")||(b.find(".checked").each(function(){var t=g(this).data("id");e+=""===e?t:","+t}),r("brand",e))}),g(".multi-select-cancel").click(function(){var e=g(this).closest(".multi");e.hasClass("brand-panel")&&(a(),_.removeClass("hide")),e.removeClass("multi"),i(e.find(".checkbox.checked"))}),g(".check-container").on("click",".attr",function(){var e=g(this),t=e.find(".checkbox"),n=e.parent(".check-container").next(".btns").find(".multi-select-ok");t.toggleClass("checked"),t.hasClass("checked")?t.html(w.checked):t.html(w.unchecked),t.hasClass("checked")||e.siblings(".attr").find(".checked").length>0?n.removeClass("dis"):n.addClass("dis")}),g(".brand, .senior").on("click",".attr > a",function(e){g(this).closest(".multi").length>0&&e.preventDefault()}),C.length>0&&(d=C.find(".limit"),u=d.filter(".min"),f=d.filter(".max"),p=C.find(".price-sure"),d.keyup(function(){var e=g.trim(u.val()),t=g.trim(f.val()),n=j.test(e),i=j.test(t);i&&(""===e||n)||n&&(""===t||i)?p.removeClass("hide"):p.addClass("hide")}),p.click(function(){var e,t=g.trim(u.val()),n=g.trim(f.val());""!==t&&""!==n&&+t>+n&&(e=n,n=t,t=e),r("price",t+","+n)})),$.on("mouseenter",".attr",function(){var e=g(this).addClass("hover").index();T.children(".senior-sub:eq("+e+")").removeClass("hide")}).on("mouseleave",".attr",function(){var e=g(this),t=e.index();m=t,h=setTimeout(function(){s()},100)}),g(".senior-sub").on("click",".multi-select",function(){g(this).closest(".senior-sub").addClass("multi")}).on("click",".multi-select-ok",function(){var e=g(this),t=e.closest(".senior-sub"),n="";e.hasClass("dis")||(t.find(".checked").each(function(){var e=g(this).data("id");n+=""===n?e:","+e}),r(t.data("attr"),n))}).on("mouseenter",function(){clearTimeout(h)}).on("mouseleave",function(){s()})}),define("js/product/sort-pager",["jquery"],function(e,t,n){var i=e("jquery"),o=i("#count-per-page"),a=o.next("ul"),r=200;i(document).click(function(e){i(e.target).closest(".page-count").length>0||a&&a.slideUp(r)}),o.click(function(){"none"===a.css("display")?a.slideDown(r):a.slideUp(r)})}),define("js/product/product",["jquery","lazyload"],function(e,t,n){var i,o=e("jquery"),a=e("lazyload"),r=e("js/common/product-event"),s=o(".goods-container"),c=s.find(".good-info"),l=s.find(".good-item-wrapper"),d=s.find(".good-info-main"),u=s.find(".good-select-color"),f=o(".product-list-nav");a(o("img.lazy")),t.init=function(e){function t(e){var t,n,i,o="",a=e.length,r=4,s=Math.ceil(a/r),c=0;for(t=0;s>t;t++)for(o+="<ul>",n=0;r>n&&(i=t*r+n,i!==a);n++)o+='<li><a href="'+e[t*r+n].url+'"><img src="'+e[t*r+n].src+'" data-cover="'+e[t*r+n].coverImg+'" /></a></li>',n===r-1&&(o+="</ul>",c++);return s>c&&(o+="</ul>"),{colorListStr:o,ulNum:s}}i=null,i=r(c,e),i.addHandler("MouseEnter",function(e){var n,i,a,r,c,f,p,h,m=10,g=35,w="";d.html(""),u.html(""),l.css({display:"none"}),o.ajax({type:"POST",url:"/product/list/getProductPic",dataType:"json",data:{skn:e.target.attr("data-skn")}}).then(function(v){w=t(v).colorListStr,n=t(v).ulNum,d.append(e.targetDuplicate),u.append(o(w)),f=l.css("paddingLeft"),p=l.css("paddingTop"),h=s.css("paddingTop"),i=l.width(),r=(e.targetX-1)*(e.targetWidth+m)-(parseInt(f)+1),c=(e.targetY-1)*(e.targetHeight+g)+parseInt(h)-(parseInt(p)+1),a=e.offsetR-(65*n+25),0>=a&&(r=r+a-25),l.css({width:i,left:r,top:c,display:"inline-block"})})}),l.mouseleave(function(){d.html(""),u.html(""),l.css({display:"none"})}),o(document).on("hover",".good-select-color li",function(){var e=o(this).find("img").attr("data-cover"),t=o(this).closest(".good-item-wrapper").find(".good-detail-img").find("img");t.attr("src",e)}),f.click(function(){o(this).hasClass("active")?o(this).find(".sort-child-list").stop(!0,!0).slideUp():o(this).find(".sort-child-list").stop(!0,!0).slideDown(),o(this).toggleClass("active")})}}),define("js/common/product-event",["jquery"],function(e,t,n){function i(){this.handlers={}}var o=e("jquery");i.prototype={constructor:i,addHandler:function(e,t){"undefined"==typeof this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t)},fire:function(e){var t,n;if(e.target||(e.target=this),this.handlers[e.type]instanceof Array)for(t=this.handlers[e.type],n=0;n<t.length;n++)t[n](e)},removeHandler:function(e,t){var n,i;if(this.handlers[e]instanceof Array){for(n=this.handlers[e],i=0;i<n.length&&n[i]!==t;i++);n.splice(i,1)}}},n.exports=function(e,t){function n(e){var n,i=0,l=0,d=t,u=0,f="",p=0,h=0;switch(e.type){case"mouseenter":n=o(this),f=n.clone(),u=n.index()+1,i=u%d===0?d:u%d,l=Math.ceil(u/d),p=n.offset().left,h=c-(p+r),a.fire({type:"MouseEnter",target:n,targetWidth:r,targetHeight:s,targetX:i,targetY:l,rowWidth:d,activeIndex:u,targetDuplicate:f,offsetL:p,offsetR:h});break;case"mouseleave":a.fire({type:"MouseLeave"})}}var a=new i,r=e.eq(0).width(),s=e.eq(0).height(),c=o(window).width();return e.bind("mouseenter",n),a}}),define("js/product/hotrank",["jquery","handlebars","source-map","lazyload"],function(e,t,n){var i=e("jquery"),o=e("handlebars"),a=e("lazyload");e("js/common/slider"),e("js/common/logo-brand"),a(i("img.lazy")),i(".slide-container").slider(),i(".logo-brand").logoBrand({showNum:10,url:"./getBrand"}),function(e){function t(t,n){var c={};c=n?{sid:t,page:n}:{sid:t},e.ajax({type:"GET",dataType:"json",url:"/hotrank/getdata",data:c,success:function(t){var c;200===t.code&&(c={list:t.data},r=o.compile(i),n?(e(".hot-week-list").append(r(c)),s.css({position:"fixed",marginTop:-s.height()/2,top:"50%"})):e(".hot-week-list").html(r(c)),a(e("img.lazy")),u=!1)}})}var n,i,r,s=e(".hot-week").find(".floatlayer"),c=e(".hot-cate").find("li").eq(0).data("sid"),l=1,d=0,u=!1;i='{{# list}}<div class="good-info"><div class="item-img"><a class="good-thumb" target="_blank" href="{{url}}"><img class="lazy" data-original="{{img}}"></a></div><div class="good-detail-text"><a target="_blank" href="{{url}}">{{name}}</a><p class="price"><span class="sale-price{{#unless marketPrice}}prime-cost{{/unless}}">¥{{salePrice}}</span>{{# marketPrice}}<span class="market-price">¥{{.}}</span>{{/ marketPrice}}</p></div></div>{{/ list}}',e(window).on("scroll",function(){var i=n+e(".hot-week").outerHeight();n=e(".hot-week").offset().top,e(this).scrollTop()>=n-e(window).height()/2?s.offset().top+s.outerHeight()>=i?s.css({position:"absolute",marginTop:0,top:e(".hot-week").outerHeight()-s.outerHeight()}):s.css({marginTop:-s.height()/2}).stop().animate({opacity:1},200,function(){s.show()}):s.stop().animate({opacity:0},200,function(){s.hide()}),s.offset().top>=e(this).scrollTop()+(e(window).height()-s.outerHeight())/2&&s.css({position:"fixed",marginTop:-s.height()/2,top:"50%"}),e(this).scrollTop()>=n+e(".hot-week").height()-e(window).height()&&(u||(l++,u=!0,t(c,l)))}),e(".hot-cate").find("li").each(function(t){var n=e(".hot-cate").width();n>=d&&(d+=e(this).width(),d>=n&&e(".floatlayer").find("li").eq(t).hide().nextAll().hide())}),e(".hot-cate").on("click","li",function(){var i=e(this).index(),o=e(this).data("sid");e(this).addClass("current").siblings().removeClass("current"),e(".floatlayer").find("li").removeClass("current").eq(i).addClass("current"),e("body,html").stop().animate({scrollTop:n-110},500),t(o),l=1}),e(".floatlayer").on("click","li",function(){var t=e(this).index();e(".hot-cate").find("li").trigger("click"),e(this).addClass("current").siblings().removeClass("current"),e(".hot-cate").find("li").removeClass("current").eq(t).addClass("current")}),e(".hot-cate").find("li").eq(0).addClass("current"),e(".floatlayer").find("li").eq(0).addClass("current")}(i)}),define("js/common/slider",["jquery","lazyload"],function(e,t,n){var i=e("jquery"),o=e("lazyload");!function(e){var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.slider.defaults,n),this.bigItem=this.$element.find(".slide-wrapper").find("li"),this.smallItem=null,this.len=this.bigItem.size(),this.index=0,this.timer=null,this.init()};t.prototype={init:function(){return this.len<=1?void o(this.$element.find("img.lazy")):(this.options.pagination?this.smallItem=e(this.options.pagination).find("li"):this._createPage(),this.options.orient&&this._createOrient(),this._slideShow(),this._bindEvent(),void this._autoplay())},_createOrient:function(){var e='<div class="slide-switch"><a class="prev" href="javascript:;"><span class="iconfont">&#xe60c;</span></a><a class="next" href="javascript:;"><span class="iconfont">&#xe60b;</span></a></div>';this.$element.find(".slide-switch").length>0||this.$element.append(e)},_createPage:function(){var t='<div class="slide-pagination"><div class="slide-pagination-inner"><div class="slide-shade"></div><div class="slide-pagination-last">',n=0;if(!(this.len<=1)){for(n=0;n<this.len;n++)t+="<span></span>";t+="</div></div></div>",this.$element.append(e(t)),this.smallItem=e(".slide-pagination-inner").find("span")}},_bindEvent:function(){var t=this;this.$element.find(".slide-switch").on("click",".next",function(){t._nextSlide(),clearInterval(t.timer),t.timer=setInterval(function(){t._nextSlide()},t.options.time)}).on("click",".prev",function(){t._prevSlide(),clearInterval(t.timer),t.timer=setInterval(function(){t._nextSlide()},t.options.time)}),this.smallItem.on("mouseenter",function(){t.index=e(this).index(),clearInterval(t.timer),t._slideShow()}).on("mouseleave",function(){t._autoplay()}),this.$element.on("mouseenter",function(){e(this).find(".slide-switch").addClass("show")}).on("mouseleave",function(){e(this).find(".slide-switch").removeClass("show")})},_nextSlide:function(){this.index===this.len-1?this.index=0:this.index++,this._slideShow()},_prevSlide:function(){0===this.index?this.index=this.len-1:this.index--,this._slideShow()},_slideShow:function(){var e=this.bigItem.eq(this.index).find("img.lazy");e.attr("src")!==e.data("original")&&(o(e,{event:"sporty"}),e.trigger("sporty")),this.smallItem.eq(this.index).addClass("focus").siblings().removeClass("focus"),this.bigItem.eq(this.index).fadeIn().siblings().fadeOut()},_autoplay:function(){var e=this;clearInterval(this.timer),this.timer=setInterval(function(){e._nextSlide()},this.options.time)}},e.fn.slider=function(n){return this.each(function(){var i=e(this),o=i.data("Slider"),a="object"==typeof n&&n;o||i.data("Slider",o=new t(this,a)),"string"==typeof n&&o[n]()})},e.fn.slider.Constructor=t,e.fn.slider.defaults={time:5e3,orient:!0,pagination:null}}(i)}),define("js/common/logo-brand",["jquery","handlebars","source-map","lazyload"],function(e,t,n){var i=e("jquery"),o=e("handlebars"),a=e("lazyload");!function(e){var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.logoBrand.defaults,n),this.init()};t.prototype={init:function(){this.$element.addClass("logos-"+this.options.showNum),this._sendRequest()},_createHelper:function(){var e=this.options.showNum;o.registerHelper("brandList",function(t,n){var i="<ul>",o=0,a=null,r=0;if(t.length%e!==0)for(r=e-t.length%e,o=0;r>o;o++)t.push({href:"javascript:;",img:""});for(o=0;o<t.length;o++)a=n.fn(t[o]),i=o%e===5||5===o?i+'<li class="logo-brand-switch" data-page="'+Math.floor(o/e)+'"><a class="prev iconfont" href="javascript:;">&#xe60f;</a><a class="next iconfont" href="javascript:;">&#xe60e;</a></li><li data-page="'+Math.floor(o/e)+'">'+a+"</li>":0!==o&&o%e===0?i+'<li class="brand-more" data-page="'+Math.floor(o/(e+1))+'"><a href="javascript:;">MORE ></a></li><li data-page="'+Math.floor(o/e)+'">'+a+"</li>":i+'<li data-page="'+Math.floor(o/e)+'">'+a+"</li>";return i+'<li class="brand-more" data-page="'+Math.floor(o/(e+1))+'"><a href="javascript:;">MORE ></a></li></ul>';
})},_sendRequest:function(){var t=this;e.ajax({type:"GET",url:t.options.url,dataType:"json",success:function(e){var n,i;t._createHelper(),i='{{#brandList logoBrand}}<a href="{{href}}"><img class="lazy" data-original="{{img}}" alt=""></a>{{/brandList}}',n=o.compile(i),t.$element.html(n(e)),t.$element.find(".brand-more a").attr("href",e.moreBrand),a(t.$element.find("img.lazy")),t._bindEvent()}})},_brandShow:function(t,n){var i=this;a(e("li[data-page="+n+"]").find("img.lazy").trigger("appear")),i.$element.find("li[data-page="+t+"]").find("img").fadeOut("normal",function(){i.$element.find("li").hide(),i.$element.find("li[data-page="+n+"]").show().find("img").fadeIn()})},_bindEvent:function(){var t=this;t.$element.on("click",".next",function(){var n=e(this).parent().data("page"),i=0,o=Math.ceil(t.$element.find("li").size()/(t.options.showNum+2))-1;i=n===o?0:n+1,t._brandShow(n,i)}),t.$element.on("click",".prev",function(){var n=e(this).parent().data("page"),i=0,o=Math.ceil(t.$element.find("li").size()/(t.options.showNum+2))-1;i=0===n?o:n-1,t._brandShow(n,i)})}},e.fn.logoBrand=function(n){return this.each(function(){var i=e(this),o=i.data("LogoBrand"),a="object"==typeof n&&n;o||i.data("LogoBrand",o=new t(this,a)),"string"==typeof n&&o[n]()})},e.fn.logoBrand.Constructor=t,e.fn.logoBrand.defaults={showNum:16,url:"/boys/getBrand"}}(i)}),define("js/home/entry",["jquery","lazyload","handlebars","source-map"],function(e,t,n){e("js/home/home")}),define("js/home/home",["jquery","lazyload","handlebars","source-map"],function(e,t,n){var i=e("jquery"),o=e("lazyload"),a=i(".home-page").data("page"),r=i(".logo-brand").data("url");e("js/common/slider"),e("js/common/slider2"),e("js/common/logo-brand"),e("js/common/accordion"),"brands"===a&&e("js/home/brands"),i.inArray(a,["boys","girls","kids","lifestyle"])>-1&&e("js/common/new-arrivls")({type:a,url:"/common/getNewArrival",pageCount:"boys"===a?"15":"20"}),o(i("img.lazy")),"boys"===a?i(".slide-container").slider({pagination:".thumb-pagination"}):"girls"===a?i(".center-col").slider():i(".slide-container").slider(),"boys"===a?(i(".logo-brand").logoBrand({url:r}),i(".img-brand").slider2()):(i(".logo-brand").logoBrand({showNum:10,url:r}),i(".img-slider-wrapper").slider2())}),define("js/common/slider2",["jquery"],function(e,t,n){var i=e("jquery");!function(e){e.fn.slider2=function(t){function n(t,n,o){o===!0?(e(".next").trigger("click"),t===n-3?i(--t,n,!1):i(++t,n,!0)):(e(".prev").trigger("click"),0===t?i(++t,n,!0):i(--t,n,!1))}function i(t,i,o){window.setTimeout(n,e.fn.slider2.defaults.delaytime,t,i,o)}function o(t,n,i){var o=-(t*n);e(".img-list").animate({"margin-left":o+"px"},"slow",i)}return e.fn.slider2.defaults={index:0,shownum:3,autoplay:!1,delaytime:3e3},this.each(function(){var n=e.extend({},e.fn.slider2.defaults,t),a=parseInt(e(".img-item").css("margin-right")),r=e(".img-item"),s=[],c=r.outerWidth()+a,l=r.length,d=0;if(3>=l)return void e(this).find(".img-brand-switch").hide();for(d=0;d<r.length;d++)s.push(r[d]);l=s.length,e(this).find(".img-list").css({width:c*l}),e(this).find(".next").on("click",function(t){var n=0,i=null;t.preventDefault(),o(3,c,function(){for(n=0;3>n;n++)i=s.shift(),e(".img-item").parent().append(i.outerHTML),s.push(i);e(".img-item").first().remove(),e(".img-item").first().remove(),e(".img-item").first().remove(),e(".img-list").css({"margin-left":"0"})})}),e(this).find(".prev").on("click",function(t){var n=0,i=null,a="";for(t.preventDefault(),n=0;3>n;n++)i=s.pop(),e(".img-item").parent().prepend(i.outerHTML),s.unshift(i);a=3*c,e(".img-item").last().remove(),e(".img-item").last().remove(),e(".img-item").last().remove(),e(".img-list").css({"margin-left":-a+"px"}),o(0,c)}),n.autoplay===!0&&i(n.index,l,!0)})}}(i)}),define("js/common/accordion",["jquery"],function(e,t,n){function i(e){c.each(function(t){r(this).css("zIndex",t),e>=t?r(this).stop().animate({left:t*d},400):r(this).stop().animate({left:e*d+l+d*(t-e-1)},400)})}var o,a=e("js/common/yohoui/YH.slide"),r=e("jquery"),s=r(".slide-accordion"),c=s.find("li"),l=c.width(),d=1150===parseInt(r(".home-page").width())?125:107;i(0),o=new a({length:5,loop:!1,auto:!1,timeout:2,index:3}),o.on("change",function(e){i(e.to)}),c.mouseover(function(){o.go(r(this).index())}),o.init()}),define("js/common/yohoui/YH.slide",[],function(e,t,n){var i=e("js/common/yohoui/YH.base"),o=function(e){this.__lastTime=null,this.__isStop=!1,e=i.extend(this.defaults,e),o.superclass.constructor.call(this,e)};i.inherit(o,i.assembly),o.prototype.oninit=function(){var e=this,t=e.options;return t.auto&&e.play(),e.go(t.index),this},o.prototype.go=function(e,t){var n,i,o,a,r,s,c,l,d=this,u=d.options;d.__lastTime&&(clearTimeout(d.__lastTime),d.__lastTime=null),t="undefined"==typeof t?u.index:t,n=e===t?0:e>t?1:-1,i=u.loop,a=u.length-1,r=e,e=i?e>a?e-a-1:0>e?e+a+1:e:e>a?a:0>e?0:e,o=u.index=e,s={from:t,to:e,originalto:r,direction:n};for(c in d.registerEvent)if(d.registerEvent[c].length>0)for(l in d.registerEvent[c])d.registerEvent[c].hasOwnProperty(l)&&d.registerEvent[c][l](s);o!==a||e?!d.__isStop&&u.auto&&d.play():d.__lastTime&&clearTimeout(d.__lastTime)},o.prototype.play=function(){var e=this,t=e.options;return e.__lastTime=setTimeout(function(){e.next()},1e3*t.timeout),this},o.prototype.next=function(){var e=this,t=e.options,n=t.index,i=n+t.step;e.go(i,n)},o.prototype.prev=function(){var e=this,t=e.options,n=t.index,i=n-t.step;e.go(i,n)},o.prototype.pause=function(){var e=this;e.__lastTime&&clearTimeout(e.__lastTime),e.__isStop=!0},o.prototype.resume=function(){var e=this;e.__isStop=!1,e.play()},o.prototype.defaults={index:0,timeout:5,step:1,per:1,auto:!1,loop:!1},n.exports=o}),define("js/common/yohoui/YH.base",[],function(e,t,n){var i,o={"[object Array]":"array","[object Boolean]":"boolean","[object Date]":"date","[object Function]":"function","[object Number]":"number","[object Object]":"object","[object RegExp]":"regexp","[object String]":"string"},a={__Index:0,list:[],get:function(e){return void 0===e?this.list:this.list[e]},fn:function(){},inherit:function(e,t){var n=a.fn;n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.superclass=t.prototype,e.prototype.constructor===Object.prototype.constructor&&(e.prototype.constructor=t)},extend:function(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},copy:function(e,t,n){var i,o,r;if("object"!=typeof t)return t;if(i=t.valueOf(),t!==i)return new t.constructor(i);if(t instanceof t.constructor&&t.constructor!==Object){o=e?new e:a.clone(t.constructor.prototype);for(r in t)(e||t.hasOwnProperty(r))&&(o[r]=t[r])}else{o={};for(r in t)o.hasOwnProperty(r)&&(o[r]=t[r])}if(n)for(r in n)o.hasOwnProperty(r)&&(o[r]=n[r]);return o},clone:function(e){return a.__cloneFunc.prototype=e,new a.__cloneFunc},__cloneFunc:function(){},delegate:function(e,t){var n;return t=t||window,arguments.length>2?(n=Array.prototype.slice.call(arguments,2),function(){return e.apply(t,n)}):function(){return e.call(t)}},dom:function(e,t){var n,i,o=e,a={wrap:o},r=o[0].getElementsByTagName("*"),s=r.length;for(i=0;s>i;i++)n=r[i].className,n.indexOf(t)>-1&&(n=n.split(t)[1]),n&&(a[n]=o.find(r[i]));return a},template:function(){var e,t,n,i,o=arguments;if(o.length>0&&a.isString(o[0]))if(e=o[0],2===o.length&&a.isObject(o[1]))for(t in o[1])void 0!==o[1][t]&&(n=new RegExp("({"+t+"})","g"),e=e.replace(n,o[1][t]));else for(i=1;i<o.length;i++)void 0!==o[i]&&(n=new RegExp("({["+(i-1)+"]})","g"),e=e.replace(n,o[i]));return e},__type:function(e){return null==e?String(e):o[Object.prototype.toString.call(e)]||"object"},isObject:function(e){return this.isFunction(e)||!(!e||"object"!=typeof e)},isFunction:function(e){return"function"===this.__type(e)},isArray:Array.isArray||function(e){return"array"===this.__type(e)},isNum:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},isString:function(e){return"string"===this.__type(e)},each:function(e,t,n){var i,o;if(a.isArray(e))for(i=0,o=e.length;o>i&&t.call(e[i],i,e[i],n)!==!1;i++);else for(i in e)if(t.call(e[i],i,e[i],n)===!1)break},funManager:{__loadList:{},__loadFun:function(e,t,n){e.methord&&a.isFunction(e.methord())&&(n=n||window,e.methord()(e,function(){t()},n))},load:function(e,t,n,i){i=i||0,e[i]&&a.funManager.__loadFun(e[i],function(){a.funManager.load(e,t,n,i+1)},n),t(i,n)},get:function(e){return this.__loadList[e]}},log:function(e){var t=window.console||{log:function(){}};t.log(e)},Event:{mousewheel:function(e){var t=e.originalEvent,n=t.detail?-1*t.detail:t.wheelDelta/40,i=0>n?-1:1;return{direction:i,unit:n}},__:function(e,t,n,i){var o;for(o in e)if(window[e[o].validator]){t[e[o].validator](e[o].prefix+n,i,!1);break}},add:function(e,t,n){var i=[{validator:"addEventListener",prefix:""},{validator:"attachEvent",prefix:"on"}];this.__(i,e,t,n)},remove:function(e,t,n){var i=[{validator:"removeEventListener",prefix:""},{validator:"detachEvent",prefix:"on"}];this.__(i,e,t,n)}},getUid:function(e){return a.template("me-{0}{1}-{2}",e,(new Date).getTime(),a.__Index++)},Browser:{isTouch:function(){var e=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture;return"ontouchstart"in window||e||window.DocumentTouch?!0:!1},Prefix:function(){var e,t=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"],n=document.createElement("div");for(e in t)if(void 0!==n.style[t[e]])return a.template("-{0}-",t[e].replace("Perspective","").toLowerCase())},parseURL:function(e){var t,n,i,o,a,r=document.createElement("a");return r.href=e,{source:e,protocol:r.protocol.replace(":",""),host:r.hostname,port:r.port,query:r.search,params:function(){for(t={},n=r.search.replace(/^\?/,"").split("&"),i=n.length,o=0,a;i>o;o++)n[o]&&(a=n[o].split("="),t[a[0]]=a[1]);return t}(),file:(r.pathname.match(/\/([^\/?#]+)$/i)||[null,""])[1],hash:r.hash.replace("#",""),path:r.pathname.replace(/^([^\/])/,"/$1"),relative:(r.href.match(/tps?:\/\/[^\/]+(.+)/)||[null,""])[1],segments:r.pathname.replace(/^\//,"").split("/")}}},Array:{indexOf:function(e,t){var n;for(n=0;n<e.length;n++)if(this[n]===t)return n;return-1},remove:function(e,t){var n=this.indexOf(e,t);return n>-1&&e.splice(n,1),e}}};i=function(e){this.initialized=!1,this.registerEvent={before:[],change:[],after:[]},this.options=e,this.init(e)},i.output=function(){a.log(a.list)},i.prototype.oninit=a.fn,i.prototype.init=function(e){this.initialized=!0,this.__Uid=a.getUid("me"),this.oninit(e),a.list[this.__Uid]=this},i.prototype.destory=function(){this.initialized=!1,delete a.list[this.__Uid]},i.prototype.getUid=function(){return this.__Uid},i.prototype.getOptions=function(){return this.options},i.prototype.config=function(){if(!(arguments.length>0))return this.options;if("string"==typeof arguments[0]){if(!(arguments.length>1))return this.options[name];this.options[arguments[0]]=arguments[1]}},i.prototype.on=function(e,t){var n=this,i=n.registerEvent[e];return i&&i.push(t),i},i.prototype.off=function(e,t){var n=this,i=n.registerEvent[e],o=[];a.each(i,function(e,n){n===t&&o.push(e)}),a.each(o.reverse(),function(e,t){i.splice(t,1)})},a.assembly=i,n.exports=a}),define("js/home/brands",["jquery","handlebars","source-map"],function(e,t,n){function i(e,t,n){var i,o=e,s={width:o.width(),left:o.offset().left,right:parseFloat(a(window).width())-parseFloat(o.offset().left)-parseFloat(o.width())};c.find(".brands-layer").remove(),i=r.compile(n),o.parent("li").find(".brands-dialog").html(i(t)),s.right-350<0&&o.parent("li").find(".brands-layer").addClass("brands-layer-right").css("left",-330-s.width)}var o,a=e("jquery"),r=e("handlebars"),s=a(".brands-tabs"),c=a(".brands-list"),l=a(".brands-category"),d=c.find("li>a"),u=l.find("a"),f=s.find("li>a"),p=s.find(".hoverarr"),h=u.height(),m=u.offset()?u.offset().top:0,g={},w='<div class="brands-layer">';w+=' <div class="layer-content">',w+=' <div class="title">{{title}}</div>',w+=' <div class="clearfix desc">',w+=' <img src="{{icon}}">',w+=' <p class="right">{{content}}</p>',w+=" </div> ",w+=' <div class="featured">',w+=" <p>{{subtitle}}</p> ",w+=' <div class="clearfix"> ',w+=" {{#each imgs}}",w+=' <img src="{{src}}">',w+=" {{/each}}",w+=" </div>",w+=" </div>",w+=" </div>",w+="</div>",a.easing.easeOutQuint=function(e,t,n,i,o){return i*((t=t/o-1)*t*t*t*t+1)+n},f.eq(0).parent("li").find(".brands-content").css("z-index","1"),f.hover(function(){var e=a(this);clearTimeout(o),o=setTimeout(function(){var t=parseFloat(e.offset().left)-parseFloat(s.offset().left);p.animate({left:t},200,"easeOutQuint")},200),s.find(".brands-content").removeAttr("style"),e.parent("li").find(".brands-content").css("z-index","1")},function(){clearTimeout(o)}),a(window).scroll(function(){a(this).scrollTop()>m?l.addClass("category-fix"):l.removeClass("category-fix")}),u.click(function(){var e=a(this).attr("href").split("#")[1],t=c.find("[name="+e+"]").offset().top-h;return a("html,body").animate({scrollTop:t},200),!1}),d.hover(function(){var e=a(this),t=e.attr("data-key"),n={url:"/brands/brandinfo",type:"get",success:function(t){200===t.code&&t.brand&&(g.hasOwnProperty(t.brand.key)||(g[t.brand.key]=t.brand),i(e,g[t.brand.key],w))}};clearTimeout(o),o=setTimeout(function(){g.hasOwnProperty(t)?i(e,g[t],w):a.ajax(n)},200)},function(){clearTimeout(o),c.find(".brands-layer").remove()})}),define("js/common/new-arrivls",["jquery","lazyload","handlebars","source-map"],function(e,t,n){function i(e){var t={index:0,isload:!0,isrun:!0,offset:{height:null,width:null}};return this.registerEvent={before:[],change:[],after:[]},this.options=o.extend(!0,{},t,e),this}var o=e("jquery"),a=e("lazyload"),r=e("handlebars");i.prototype.on=function(e,t){var n=this,i=n.registerEvent[e];return i&&i.push(t),i},i.prototype.exect=function(e,t){var n,i=this;if(i.registerEvent[e]&&i.registerEvent[e].length>0)for(n in i.registerEvent[e])i.registerEvent[e].hasOwnProperty(n)&&i.registerEvent[e][n](t)},i.prototype.init=function(){function e(){n.isrun&&n.isload&&t.__directionCalculation()&&(n.isload=!1,n.index++,t.exect("after",n)),t.exect("change",n)}var t=this,n=this.options;t.exect("before",n),o(window).scroll(e)},i.prototype.emit=function(){var e=this.options;e.isload=!0},i.prototype.stop=function(){var e=this.options;e.isrun=!1,e.isload=!1},i.prototype.__directionCalculation=function(){var e=this.options;return e.offset.height&&e.offset.height()>0&&o(window).scrollTop()+o(window).height()>=e.offset.height()?!0:!1},n.exports=function(e){var t,n=o("#newarrivals .goods-container"),s=o(".loading a"),c=new i({offset:{height:function(){return parseFloat(n.offset().top)+parseFloat(n.height())}}}),l=e.url;delete e.url,c.on("after",function(i){e=o.extend({},e,{pageIndex:i.index}),t={type:"POST",url:l,data:e,success:function(e){var t,i=e.code;200===i?(t=r.compile(c.tpl),n.append(t(e.goods)),a(n.find("img.lazy")),c.emit()):(c.stop(),s.html("查看更多"))},error:function(){c.stop(),s.html("网络断开连接了~")}},o.ajax(t)}),c.on("before",function(){c.tpl="{{#each this}}",c.tpl+='<div class="good-info" data-skn="{{skn}}">',c.tpl+=' <div class="tag-container clearfix">',c.tpl+=" {{# tags}}",c.tpl+=" {{# isNew}}",c.tpl+=' <span class="good-tag new-tag">NEW</span>',c.tpl+=" {{/ isNew}}",c.tpl+=" {{# isReNew}}",c.tpl+=' <span class="good-tag renew-tag">再到着</span>',c.tpl+=" {{/ isReNew}}",c.tpl+=" {{# isSale}}",c.tpl+=' <span class="good-tag sale-tag">SALE</span>',c.tpl+=" {{/ isSale}}",c.tpl+=" {{# isNewFestival}}",c.tpl+=' <span class="good-tag new-festival-tag">新品节</span>',c.tpl+=" {{/ isNewFestival}}",c.tpl+=" {{# isLimit}}",c.tpl+=' <span class="good-tag limit-tag">限量商品</span>',c.tpl+=" {{/ isLimit}}",c.tpl+=" {{# isYearEndPromotion}}",c.tpl+=' <span class="good-tag yep-tag">年终大促</span>',c.tpl+=" {{/ isYearEndPromotion}}",c.tpl+=" {{# isYearMidPromotion}}",c.tpl+=' <span class="good-tag ymp-tag">年中热促</span>',c.tpl+=" {{/ isYearMidPromotion}}",c.tpl+=" {{/ tags}}",c.tpl+=" </div>",c.tpl+=' <div class="good-detail-img">',c.tpl+=' <a class="good-thumb" href="{{url}}">',c.tpl+=' <img class="lazy" data-original="{{thumb}}">',c.tpl+=" </a>",c.tpl+=" {{# isFew}}",c.tpl+=' <p class="few-tag">即将售罄</p>',c.tpl+=" {{/ isFew}}",c.tpl+=" {{#if showColBtn}}",c.tpl+=' <span class="col-btn iconfont{{#if coled}} coled{{/if}}">&#xe616;</span>',c.tpl+=" {{/if}}",c.tpl+=" </div>",c.tpl+=' <div class="good-detail-text">',c.tpl+=' <a href="{{url}}">{{name}}</a>',c.tpl+=' <p class="price">',c.tpl+=' <span class="sale-price{{#unless marketPrice}}prime-cost{{/unless}}">',c.tpl+=" ¥{{salePrice}}",c.tpl+=" </span>",c.tpl+=" {{# marketPrice}}",c.tpl+=' <span class="market-price">¥{{.}}</span>',c.tpl+=" {{/ marketPrice}}",c.tpl+=" </p>",c.tpl+=" </div>",c.tpl+="</div>",c.tpl+="{{/each}}",c.emit()}),c.init()}});
\ No newline at end of file
... ...
... ... @@ -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 Dec 17 16:09:31 2015
Created by FontForge 20120731 at Tue Dec 29 10:24:41 2015
By Ads
</metadata>
<defs>
... ... @@ -16,10 +16,10 @@ Created by FontForge 20120731 at Thu Dec 17 16:09:31 2015
ascent="896"
descent="-128"
x-height="792"
bbox="0 -214 1172.1 864"
bbox="0 -214 1172.1 894"
underline-thickness="50"
underline-position="-100"
unicode-range="U+0078-E629"
unicode-range="U+0078-E630"
/>
<missing-glyph horiz-adv-x="374"
d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" />
... ... @@ -134,7 +134,39 @@ q14 5 23 14.5t12 20.5t3 23t-3.5 22t-8.5 18t-10 11zM0 295v-380q0 -28 20 -48.5t49
<glyph glyph-name="uniE627" unicode="&#xe627;" horiz-adv-x="1025"
d="M512 623q-167 0 -304.5 -89.5t-205.5 -236.5q-4 -9 0 -18q45 -96 121 -169.5t177 -115t212 -41.5q167 0 304.5 89.5t205.5 236.5q1 3 1.5 6t0 6t-1.5 6q-68 147 -205.5 236.5t-304.5 89.5zM512 57q-96 0 -163.5 67.5t-67.5 163.5t67.5 163.5t163.5 67.5t163.5 -67.5
t67.5 -163.5q0 -47 -18.5 -89.5t-49.5 -73.5t-73.5 -49.5t-89.5 -18.5zM364 288q0 -61 43.5 -104.5t104.5 -43.5t104.5 43.5t43.5 104.5t-43.5 104.5t-104.5 43.5t-104.5 -43.5t-43.5 -104.5z" />
<glyph glyph-name="uniE628" unicode="&#xe628;"
d="M482 83q-24 0 -41.5 -17.5t-17.5 -42.5t17.5 -42.5t42 -17.5t42 17.5t17.5 42.5q0 16 -8 30t-21.5 22t-30.5 8zM769 83q-25 0 -42.5 -17.5t-17.5 -42.5q0 -16 8 -30t21.5 -22t30.5 -8q25 0 42.5 17.5t17.5 42.5q0 38 -34 54q-13 6 -26 6zM839 193h-417l-143 425
q-7 18 -29 18h-127q-13 0 -22 -8t-9 -20q0 -4 1 -7t2.5 -6t3.5 -5.5t4.5 -4.5t5.5 -3.5t6.5 -2t7.5 -0.5h105l143 -424q7 -19 29 -19h439q13 0 21.5 8t8.5 20.5t-8.5 20.5t-21.5 8zM904 524l-516 45q-12 1 -18.5 -7t-1.5 -20l90 -270q4 -12 16 -21.5t24 -9.5h377q12 0 22 10
t11 23l23 216q1 8 -2 15.5t-10 12.5t-15 6z" />
<glyph glyph-name="uniE629" unicode="&#xe629;"
d="M154 686v-646h146l-14 -208l240 208h344v646h-716zM752 176h-134v159h-192v-159h-134v382h134v-148h192v148h134v-382z" />
<glyph glyph-name="uniE62A" unicode="&#xe62a;"
d="M328 -66q-3 0 -5.5 0.5t-5.5 2.5q-14 6 -14 22v128h-193q-10 0 -17.5 7t-7.5 18v549q0 10 7.5 17.5t17.5 7.5h804q7 0 13 -3.5t9 -9t3 -12.5v-549q0 -11 -7 -18t-18 -7h-401l-169 -146q-7 -7 -16 -7zM171 172h188q10 0 17.5 -7.5t7.5 -17.5v-73l103 92q7 6 17 6h350v426
h-683v-426zM739 485h-454q-5 0 -9.5 2t-8 5t-5.5 8t-2 10q0 10 7.5 17.5t17.5 7.5h454q3 0 5.5 -0.5t4.5 -1.5t4 -2.5t3.5 -3t3 -3.5t2.5 -4.5t1.5 -5t0.5 -4.5q0 -11 -7 -18t-18 -7zM739 362h-454q-4 0 -8 1t-7 3.5t-5.5 5.5t-3.5 7t-1 8t1 8t3.5 7t5.5 5t7 3.5t8 1.5h454
q10 0 17.5 -7.5t7.5 -18t-7 -17.5t-18 -7zM549 239h-264q-10 0 -17.5 7t-7.5 17.5t7.5 18t17.5 7.5h264q10 0 17.5 -7.5t7.5 -17.5q0 -7 -3.5 -12.5t-9 -9t-12.5 -3.5z" />
<glyph glyph-name="uniE62B" unicode="&#xe62b;"
d="M511 -144q-73 0 -141 22.5t-123 64t-96.5 96.5t-64 123t-22.5 141q0 60 16 118t45 107t70 90t90 70t107 45t119 16q90 0 173 -35.5t142.5 -95.5t95 -142.5t35.5 -172.5q0 -46 -9 -90.5t-26 -84t-41.5 -75.5t-54.5 -66t-66 -54.5t-75.5 -41.5t-84 -26t-89.5 -9zM511 703
q-82 0 -156 -32t-127.5 -85.5t-85.5 -127.5t-32 -155q0 -109 54 -201.5t146 -146t200.5 -53.5t201 53.5t146 146t53.5 201.5q0 165 -117.5 282.5t-282.5 117.5zM465 164v29q0 9 1 17.5t2 15.5l2 10q1 5 3 9.5t4 8.5q1 2 2 4.5t2 4.5t2.5 4t2.5 4t2.5 4.5t3.5 4.5
q10 12 24 26l35 33q15 13 25.5 29.5t10.5 39.5q0 15 -5 27.5t-14 23.5q-5 5 -10.5 8.5t-12.5 6.5t-14.5 4t-16.5 1q-18 0 -32 -6q-5 -3 -9 -5.5t-8 -5.5t-8 -7q-1 -2 -2.5 -3.5t-3 -3.5t-2.5 -3.5t-2 -3.5l-2 -4l-2 -4l-2 -4q-1 -5 -2.5 -10t-2.5 -10t-1 -10l-95 8
q5 37 20 66t39 49q12 10 25.5 18t29.5 13q31 10 66 10q33 0 63 -9.5t53 -28.5q6 -5 11 -10t9.5 -11t8 -12.5t7.5 -13.5q13 -27 13 -64q0 -12 -1.5 -23t-3.5 -20q-2 -4 -3 -7.5t-3 -7.5l-2 -6q-2 -4 -4 -7l-4 -6q-10 -16 -24 -30q-5 -5 -10 -9.5t-11 -10t-11 -10.5
q-16 -13 -25.5 -23t-15.5 -20t-8 -22q-1 -5 -1.5 -12.5t-0.5 -15.5v-20h-92zM450 56q0 25 18 43t44 18q24 0 43 -17q18 -18 19 -42q0 -13 -5 -23.5t-14 -19.5q-18 -17 -43 -17q-12 0 -23.5 4.5t-20.5 12.5q-8 7 -13 18t-5 23z" />
<glyph glyph-name="uniE62C" unicode="&#xe62c;"
d="M505 776q77 0 148.5 -23.5t129 -67t101 -101.5t67.5 -129.5t24 -147.5q0 -64 -17 -125t-47.5 -112t-74 -94.5t-94.5 -74t-112 -47.5t-125 -17q-95 0 -182 37.5t-150 100.5t-100 150t-37 182t37 182t100 150t150 100t182 37zM505 -104q112 0 206.5 55t149.5 149.5
t55 206.5q0 37 -6.5 73.5t-19.5 69.5t-30.5 64t-40.5 57.5t-49.5 49.5t-57.5 40.5t-64 30t-69.5 19t-73.5 6.5q-111 0 -205.5 -55t-149.5 -149.5t-55 -206t55 -206t149.5 -149.5t205.5 -55zM528 138v-59h-58v59h58zM470 564h58v-349h-58v349z" />
<glyph glyph-name="uniE62D" unicode="&#xe62d;"
d="M828 618q65 -65 98 -148t33 -169t-33 -169t-98 -148q-66 -66 -149 -99q-16 -6 -33 -11.5t-33.5 -9t-33.5 -6.5t-34 -4t-35 -1q-43 0 -85 8t-84 24q-82 33 -148 98q-66 66 -98.5 149t-32.5 169t32.5 169t98.5 149q66 65 148.5 97.5t168.5 32.5q15 0 29 -0.5t28 -2.5
t28.5 -4.5t28.5 -6.5t27.5 -8.5t27.5 -9.5q83 -33 149 -99v0zM258 49q53 -53 118.5 -79t134.5 -26q34 0 68 6.5t67 19.5q65 26 117.5 78.5t78.5 118t26 134.5q0 35 -6.5 68.5t-19.5 66.5q-26 65 -78 118q-53 53 -119 79t-135 26q-23 0 -45.5 -3t-44.5 -9t-44 -14
q-66 -26 -118 -78.5t-78.5 -118t-26.5 -134.5t26.5 -134.5t78.5 -118.5v0zM748 602l69 -72l-531 -530l-70 70zM748 602z" />
<glyph glyph-name="uniE62E" unicode="&#xe62e;" horiz-adv-x="1025"
d="M491 6q9 -10 21.5 -10t21.5 10l357 407q4 5 5.5 9.5t0 8t-6 5.5t-11.5 2h-133q-14 0 -23.5 9.5t-9.5 22.5v261q0 9 -4.5 16.5t-12.5 11.5t-17 4h-333q-14 0 -24 -9.5t-10 -22.5v-261q0 -13 -9.5 -22.5t-23.5 -9.5h-133q-14 0 -17.5 -7.5t5.5 -17.5z" />
<glyph glyph-name="uniE62F" unicode="&#xe62f;"
d="M512 832v-1v1q-51 0 -99 -11t-92.5 -33.5t-71 -38.5t-67.5 -45v-396q0 -50 17 -97t42.5 -82t60.5 -66.5t66.5 -52.5t64.5 -38t50.5 -24.5t28.5 -11.5q7 3 17 7t29 12.5t39 19.5t44.5 26t47.5 33.5t46 40t42 47.5t34 54.5t23 62t8 69.5v396q-23 16 -36.5 25t-38.5 24.5
t-43.5 24.5t-46 20.5t-51.5 18t-54 11t-60 4.5zM772 308q0 -128 -130 -223q-65 -47 -130 -72q-65 25 -130 72q-44 32 -72.5 66.5t-43 73.5t-14.5 83v371q76 46 128.5 65t131.5 20q79 -1 131.5 -20t128.5 -65v-371zM512 710q-59 0 -99 -11t-105 -43v-351q0 -28 8 -53.5
t22.5 -46t30 -37.5t36.5 -31t36 -23.5t33.5 -18t24.5 -11t13 -4.5q9 3 16.5 6t30 14t40.5 22.5t41 31t38.5 40.5t26.5 50.5t11 60.5v351q-27 13 -46 21.5t-38 15.5t-37 10.5t-38 5t-45 1.5v0zM648 573v-42h-92v-58h81v-54h-81v-67h102v-50h-292v50h37v147h57v-147h39v179
h-121v54h270v-12z" />
<glyph glyph-name="uniE630" unicode="&#xe630;" horiz-adv-x="1163"
d="M295 196q67 0 114 -47t47 -113.5t-47 -114t-114 -47.5t-114 47.5t-47 113.5q0 44 21.5 81t58.5 58.5t81 21.5zM917 196q67 0 114 -47t47 -114q0 -32 -12.5 -62t-34 -51.5t-51.5 -34.5t-63 -13q-66 0 -113.5 47.5t-47.5 113.5q0 79 62 127q44 34 99 34zM400 894v-99h-210
v0l-187 -294v-372h95q27 56 80 90.5t117 34.5q43 0 82 -16t68.5 -44t46.5 -65h228q27 56 80 90.5t117 34.5q22 0 43 -4.5t39.5 -12t36 -18.5t32 -25t26.5 -30.5t20 -34.5h46v765h-760zM400 452h-283l159 250l124 1v-251v0zM893 701l-131 -276l-63 31l101 206h-105v68h198
v-29v0z" />
</font>
</defs></svg>
... ...
/*! Respond.js v1.4.2: min/max-width media query polyfill * Copyright 2013 Scott Jehl
* Licensed under https://github.com/scottjehl/Respond/blob/master/LICENSE-MIT
* */
/*! Respond.js v1.4.2: min/max-width media query polyfill * Copyright 2013 Scott Jehl
* Licensed under https://github.com/scottjehl/Respond/blob/master/LICENSE-MIT
* */
!function(a){"use strict";a.matchMedia=a.matchMedia||function(a){var b,c=a.documentElement,d=c.firstElementChild||c.firstChild,e=a.createElement("body"),f=a.createElement("div");return f.id="mq-test-1",f.style.cssText="position:absolute;top:-100em",e.style.background="none",e.appendChild(f),function(a){return f.innerHTML='&shy;<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',c.insertBefore(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}}(a.document)}(this),function(a){"use strict";function b(){u(!0)}var c={};a.respond=c,c.update=function(){};var d=[],e=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}(),f=function(a,b){var c=e();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))};if(c.ajax=f,c.queue=d,c.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},c.mediaQueriesSupported=a.matchMedia&&null!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var g,h,i,j=a.document,k=j.documentElement,l=[],m=[],n=[],o={},p=30,q=j.getElementsByTagName("head")[0]||k,r=j.getElementsByTagName("base")[0],s=q.getElementsByTagName("link"),t=function(){var a,b=j.createElement("div"),c=j.body,d=k.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=f=j.createElement("body"),c.style.background="none"),k.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&k.insertBefore(c,k.firstChild),a=b.offsetWidth,f?k.removeChild(c):c.removeChild(b),k.style.fontSize=d,e&&(c.style.fontSize=e),a=i=parseFloat(a)},u=function(b){var c="clientWidth",d=k[c],e="CSS1Compat"===j.compatMode&&d||j.body[c]||d,f={},o=s[s.length-1],r=(new Date).getTime();if(b&&g&&p>r-g)return a.clearTimeout(h),h=a.setTimeout(u,p),void 0;g=r;for(var v in l)if(l.hasOwnProperty(v)){var w=l[v],x=w.minw,y=w.maxw,z=null===x,A=null===y,B="em";x&&(x=parseFloat(x)*(x.indexOf(B)>-1?i||t():1)),y&&(y=parseFloat(y)*(y.indexOf(B)>-1?i||t():1)),w.hasquery&&(z&&A||!(z||e>=x)||!(A||y>=e))||(f[w.media]||(f[w.media]=[]),f[w.media].push(m[w.rules]))}for(var C in n)n.hasOwnProperty(C)&&n[C]&&n[C].parentNode===q&&q.removeChild(n[C]);n.length=0;for(var D in f)if(f.hasOwnProperty(D)){var E=j.createElement("style"),F=f[D].join("\n");E.type="text/css",E.media=D,q.insertBefore(E,o.nextSibling),E.styleSheet?E.styleSheet.cssText=F:E.appendChild(j.createTextNode(F)),n.push(E)}},v=function(a,b,d){var e=a.replace(c.regex.keyframes,"").match(c.regex.media),f=e&&e.length||0;b=b.substring(0,b.lastIndexOf("/"));var g=function(a){return a.replace(c.regex.urls,"$1"+b+"$2$3")},h=!f&&d;b.length&&(b+="/"),h&&(f=1);for(var i=0;f>i;i++){var j,k,n,o;h?(j=d,m.push(g(a))):(j=e[i].match(c.regex.findStyles)&&RegExp.$1,m.push(RegExp.$2&&g(RegExp.$2))),n=j.split(","),o=n.length;for(var p=0;o>p;p++)k=n[p],l.push({media:k.split("(")[0].match(c.regex.only)&&RegExp.$2||"all",rules:m.length-1,hasquery:k.indexOf("(")>-1,minw:k.match(c.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:k.match(c.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}u()},w=function(){if(d.length){var b=d.shift();f(b.href,function(c){v(c,b.href,b.media),o[b.href]=!0,a.setTimeout(function(){w()},0)})}},x=function(){for(var b=0;b<s.length;b++){var c=s[b],e=c.href,f=c.media,g=c.rel&&"stylesheet"===c.rel.toLowerCase();e&&g&&!o[e]&&(c.styleSheet&&c.styleSheet.rawCssText?(v(c.styleSheet.rawCssText,e,f),o[e]=!0):(!/^([a-zA-Z:]*\/\/)/.test(e)&&!r||e.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&("//"===e.substring(0,2)&&(e=a.location.protocol+e),d.push({href:e,media:f})))}w()};x(),c.update=x,c.getEmValue=t,a.addEventListener?a.addEventListener("resize",b,!1):a.attachEvent&&a.attachEvent("onresize",b)}}(this);
\ No newline at end of file
... ...