|
|
webpackJsonp([1],[function(e,t,i){function n(e){var t,i,n,o;o=e.attr("urlLocation"),t="/product/sale/goods",n=e.parent().parent(".sale-box").find(".goods"),i=t+o,s.ajax({type:"GET",url:i,data:""}).then(function(t){n.html(""),n.append(t),r(e.closest(".sale-box").find(".lazy"))})}function o(e){var t=36e5,i=6e4,n=1e3,o="",a=0,s=0,r=0,c=0;return e>1e3&&(a=Math.floor(e/t/24),s=Math.floor(e/t%24),r=Math.floor(e/i%60),c=Math.floor(e/n%60),o+=a>0?a+"天":"",o+=s>0?s+"时":"",o+=r>0?r+"分":"",o+=c>0?c+"秒":""),o}function a(){var e,t,i;for(e=0;e<d.length;e++){if(d[e].time<0)return void s(".time").addClass("hide");d[e].time-=1e3,i=o(d[e].time),i?(t=i,d[e].pre&&(t=d[e].pre+" "+t),s(".time-calculate").removeClass("hide"),s(".time-calculate").text(i)):(t="活动已结束",s(".time").addClass("hide"))}0===d.length&&s(".time").addClass("hide")}var s=i(1),r=i(2),c=i(17),d=[],l=s(".sale-box"),u=s(".sale-nav li");i(5),i(37),i(10),i(14),i(15),c.init(4),r(s("img.lazy")),s(".slide-container").slider(),u.on("click",function(){s(this).siblings(".active").removeClass("active"),s(this).addClass("active"),n(s(this))}),function(){l.each(function(){var e=s(this).find(u).eq(0);n(e)})}(),s(".sale-discount-page").length>0&&(s(".time-calculate").each(function(){var e=s(this).attr("data");e&&d.push({dom:s(this),time:e})}),setInterval(a,1e3))},,,,,function(e,t,i){function n(e){var t=new RegExp(e+"=([^;$]*)","i"),i="$1";return t.test(decodeURIComponent(document.cookie))?RegExp[i]:""}function o(e,t,i){var n,o,a,s,r="";"undefined"!=typeof t&&(i=i||{},null===t&&(t="",i.expires=-1),i.expires&&("number"==typeof i.expires||i.expires.toUTCString)&&("number"==typeof i.expires?(s=new Date,s.setTime(s.getTime()+24*i.expires*60*60*1e3)):s=i.expires,r="; expires="+s.toUTCString()),n=i.path?"; path="+i.path:"",o=i.domain?"; domain="+i.domain:"",a=i.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),r,n,o,a].join(""))}function a(){var e,t=n("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function s(){var e=a();return 0===e?0:e[1]}function r(){var e=n("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function c(){var e,t,i={},n=window.location.search,o=n?decodeURIComponent(n).slice(1).split("&"):[];for(t=0;t<o.length;t++)e=o[t].split("="),i[e[0]]=e[1];return i}var d=i(1),l=d("body");!function(e,t,i,n,o){var a=t.createElement(i),s=t.getElementsByTagName(i)[0];e.YohoAcquisitionObject=o,e[o]=function(){e[o].p=arguments},a.async=1,a.src=n,s.parentNode.insertBefore(a,s)}(window,document,"script","//cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=s();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_web",e,"","")}(),d(window).on("resize",function(){var e=d(this).width();e<1360?d(".return-top").addClass("min"):d(".return-top").removeClass("min"),e<1180?l.addClass("min-screen"):l.removeClass("min-screen")}).trigger("resize"),function(){d(window).load(function(){var e,t=document.getElementById("user-thumb");t&&(e=new Image,e.src=t.src,e.onerror=function(){d(t).parent().append('<div class="default-user-thumb"></div>').end().remove()})})}(),window.cookie=n,window.setCookie=o,window.getUser=a,window.getUid=s,window.getShoppingKey=r,window.queryString=c,i(7),i(6)},function(e,t,i){function n(){var e=s("#subscriber-box"),t=s("#subscriber-btn"),i=/^[.\-_a-zA-Z0-9]+@[\-_a-zA-Z0-9]+\.[a-zA-Z0-9]/,n={mail:"",tick:""};e.focus(function(){s(this).val("").css("color",""),t.removeClass("done").html(n.mail)}),t.click(function(){var o=s.trim(e.val());if(""!==o&&i.test(o))try{s.ajax({url:"//new.yohobuy.com/common/emailsubscriber",dataType:"jsonp",data:{email:o,tmp:Math.random(),uid:window.getUid()},success:function(i){1===i.data.result?(e.val("已订阅到:"+o),t.addClass("done").html(n.tick)):e.css("color","red")}})}catch(a){console.log(a.message)}else e.css("color","red")})}function o(){var e=s(".vote"),t=s("#feed-back-page"),i=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 n=s(this),o=n.closest("li"),a=o.index(),r=[],c=o.find(".feedback-answer").val(),d=o.find(".feedback-id").val(),l=o.find(".question-id").val();o.find(":checked").each(function(){r.push(s(this).val())}),s.ajax({url:"//new.yohobuy.com/common/suggestfeedback",dataType:"jsonp",data:{feedback_id:d||0,question_id:l||0,answer:c||"",solution:r.join(",")},success:function(n){var s=a+1;if(1===~~n.data.result){if(a===i-1)return void alert("感谢您的参与!");o.addClass("hide"),e.children(":eq("+(a+1)+")").removeClass("hide"),t.children(".cur").removeClass("cur"),t.children(":eq("+s+")").addClass("cur")}}})})}function a(){s(window).height()>s(document).height()&&c.addClass("hide")}var s=i(1),r=i(2),c=s(".return-top");r(s("img.lazy")),c.click(function(){s("html,body").animate({scrollTop:0},500)}),s(window).scroll(function(){0===s(window).scrollTop()?c.addClass("hide"):c.removeClass("hide")}),c.hasClass("hide")&&s("img").load(a),n(),o(),window.rePosReturnTop=a},function(e,t,i){function n(e,t,i){G.push({louceng:e,weizhi:t,event:i})}function o(){var e=S("#cover");e.remove()}function a(e){var t="";t=e&&""!==e.url?'<a target="_blank" href="'+e.url+'" class="page-top-banner"style="height:36px;border:none;background-image:url('+window.unescape(e.src)+');background-position: center;display:block;"> </a>':'<div class="yoho-notice"><div class="notice-container center-content"><h1 class="notice-title">关于系统升级的公告</h1><div class="notice-content"><p class="tips">尊敬的顾客:</p><p class="detail">您好!为了向您提供更优质的服务,目前系统正在升级,请耐心等待。</p><p class="detail">系统升级期间,部分地区用户体验会有暂时中断,如遇紧急事宜,欢迎垂询客服热线:400-889-9646 09:00-22:30(周一至周日)。稍后系统将恢复正常使用,欢迎您继续光顾YOHO!BUY有货!带来不便之处深表歉意,请您谅解!</p></div></div></div>',S("body").prepend(t)}function s(){var e,t,i,n=document.cookie,o=n.split(";");for(e=0;e<o.length;e++)t=o[e].split("="),"undefined"!=typeof t[0]&&(i=t[0].replace(/\s/g,""),J[i]=t[1])}function r(){var e,t="indexkids",i="indexlifestyle",n="indexboys",o="indexgirls",r="uniquebrand",c=window.location.href,d=window.location.host,l="";s(),c.indexOf("search")!==-1&&(l=B["search"+J._Channel]),c.indexOf("list")!==-1&&(l=B["list"+J._Channel]),c.indexOf("brands")!==-1&&(l=B["brands"+J._Channel]),c.indexOf("new")!==-1&&(l=B["new"+J._Channel]),c.indexOf("sale")!==-1&&(l=B["sale"+J._Channel]),c.indexOf("home")!==-1&&(l=B["home"+J._Channel]),c.indexOf("kids")!==-1&&(l=B[t]),c.indexOf("woman")===-1&&c.indexOf("girls")===-1||(l=B[o]),c.indexOf("lifestyle")!==-1&&(l=B[i]),c.indexOf("www.yohobuy.com")!==-1&&"/"===window.location.pathname&&(l=B[n]),e=d.split(".")[0],"list"!==e&&"search"!==e&&"www"!==e&&"new"!==e&&"item"!==e&&"guang"!==e&&(l=B[r+J._Channel]),S.getJSON("//new.yohobuy.com/common/getbanner?callback=?",{client_type:"web",content_code:l},function(e){200===+e.code&&"object"==typeof e.data&&(""!==e.data.url?a(e.data):a())})}function c(){P.each(function(){var e=S(this).find(".hide-list"),t=[],i=0;if(e.length){for(e.children().each(function(){i%R===0&&t.push(""),t[t.length-1]+=this.outerHTML+"",i++}),i=0;i<3;i++){if(!t[i])return;e.before('<dl class="category-list">'+t[i]+"</dl>")}e.remove()}})}function d(e){var t={usercenter:"//www.yohobuy.com/home?t="+(new Date).getTime(),nickname:e.profile_name,signout:"//www.yohobuy.com/logout.html"};1*e.vip.curVipInfo.curLevel===3&&(e.vip3=!0),O.find(".simple-user-center").html(_(e)),j.html(x(t))}function l(){var e={return_type:"jsonp",method:"open.passport.get"};S.getJSON("//www.yohobuy.com/common/passport/?callback=?",e,function(e){e&&e.data&&e.data.result!==-1?d(e.data.data):window.setCookie("_UID","",{domain:".yohobuy.com",expires:-1}),j.show()})}function u(e){var t={return_type:"jsonp",query:e};S.getJSON("//search.yohobuy.com/api/suggest?callback=?",t,function(e){200===e.code&&(e.data&&e.data.length?L.html(e.data).show():L.hide())})}function h(e){var t,i;e&&window.setCookie("_g",e,{path:"/",domain:".yohobuy.com"}),window.cookie("_g")&&(t=S.parseJSON(window.cookie("_g")),i=parseInt(t._nac,10)+parseInt(t._ac,10),i=i>0?i:0,U.data({key:t._k,num:i}),N.text(i))}function f(e){var t={return_type:"jsonp",method:"open.Shoppingcart.getCartData",shopping_key:e};S.getJSON("//www.yohobuy.com/common/shoppingCart/?callback=?",t,function(e){var t,i=[],n=["main_goods","advance_goods","outlet_goods","gift_goods","need_pay_gifts"];200===e.code&&(t=e.data,S.each(n,function(e,n){t[n]&&(i=S.merge(i,t[n]))}),i&&i.length?(t.totalGoods=i,A.html(k({carData:t}))):(h('{"_k":"'+U.data().key+'","_nac":0,"_ac":0,"_r":0}'),A.html('<div class="empty-cart"><h3>您的购物车暂无商品</h3></div>')))})}function p(e,t){var i={return_type:"jsonp",product_sku:e.sku,promotion_id:e.proid,product_num:e.num};S.getJSON("//www.yohobuy.com/common/delCartGoods/?callback=?",i,function(i){var n="";if(200===i.code)return i.data&&"undefined"!=typeof i.data.total_goods_num&&(n='{"_k":"'+e.key+'","_nac":'+i.data.total_goods_num+',"_ac":0,"_r":0}',h(n),1*i.data.total_goods_num===0&&A.html('<div class="empty-cart"><h3>您的购物车暂无商品</h3></div>')),t()})}function m(){var e=["webkit","moz","ms"],t=e[0]+"RequestAnimationFrame",i=e[1]+"RequestAnimationFrame",n=e[2]+"RequestAnimationFrame";return window[t]?function(e){requestAnimationFrame(e)}:window[i]?function(e){window[i](e)}:window[n]?function(e){window[n](e)}:function(e){window.setTimeout(e,67)}}function v(){D+=10,z.css({transform:"rotateX("+D+"deg)","-webkit-transform":"rotateX("+D+"deg)","-moz-transform":"rotateX("+D+"deg)"}),D/90%2===1&&z.toggleClass("logo-cn"),D/90%2===0&&D%360!==0?window.setTimeout(v,3e3):D%360===0?window.setTimeout(v,6e4):C(function(){v()})}function g(){var e=3e3;z.hasClass("logo-cn-ie")&&(e=6e4),z.fadeOut(M,function(){z.toggleClass("logo-cn-ie"),z.fadeIn(M,function(){window.setTimeout(function(){g()},e)})})}function b(){var e,t,i=["webkit","moz","ms"];for(t=0;t<i.length;t++)return e=i[t]+"RequestAnimationFrame",!!window[e]}function w(){var e,t=window.cookie("_Gender"),i="",a="",s="",r="";"http://www.yohobuy.com/"!==window.location.href||"undefined"!=typeof t&&""!==t&&null!==t||S.get("/guide",function(t){i=document.createElement("div"),i.id="cover",i.innerHTML=t,document.body.appendChild(i),a=S(window).height(),s=S(".guide-box").height(),e=a/2-s/2,r=S(".guide-box .clear").find("li").length,S(".guide-box").css({width:200*r+"px",top:e+"px"}),S("#cover").bind("click",function(){window.setCookie("_Gender","1,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","boys",{path:"/",domain:".yohobuy.com",expires:7}),o()}),S("#cover .guide-box .close").bind("click",function(){n("弹窗","CLOSE","homepage_man"),window.setCookie("_Gender","1,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","boys",{path:"/",domain:".yohobuy.com",expires:7}),o()}),S(".boys img , .boys .go").bind("click",function(){n("弹窗","BOYS","homepage_man"),window.setCookie("_Gender","1,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","boys",{path:"/",domain:".yohobuy.com",expires:7}),o()}),S(".girls img, .girls .go").bind("click",function(){n("弹窗","GIRLS","homepage_woman"),window.setCookie("_Gender","2,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","girls",{path:"/",domain:".yohobuy.com",expires:7})}),S(".lifestyle img, .lifestyle .go").bind("click",function(){window.setCookie("_Channel","lifestyle",{path:"/",domain:".yohobuy.com",expires:7}),n("弹窗","LIEFSTYLE","homepage_lifestyle")}),S("#cover .guide-box").bind("click",function(e){e.stopPropagation()})})}var y,_,x,k,C,S=i(1),T=i(4),O=S(".tool-wrapper"),I=O.find(".yoho-group"),j=S("#loginBox"),q=S(".head-wrapper"),E=S("#search-form"),z=q.find(".main-logo"),L=q.find(".search-suggest"),U=q.find(".go-cart"),N=U.find(".goods-num-tip"),A=q.find(".mini-cart-wrapper"),P=S(".sub-nav-list .contain-third"),R=9,D=0,M=500,F="",$="",H=/^[\^\!\+\-\(\)\:\[\]\\\{\}\~\*\?\|\&\;\/]{0,}$/g,G=[],B={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"},J={};_=T.compile(S("#simple-account-info-tpl").html()||""),x=T.compile(S("#header-login-info-tpl").html()||""),k=T.compile(S("#mini-cart-tpl").html()||""),T.registerHelper("notzero",function(e,t){return"0"!==e?t.fn(this):t.inverse(this)}),b()?(C=m(),window.setTimeout(v,3e3)):window.setTimeout(g,3e3),r(),l(),c(),setInterval(h,2e3),I.hover(function(){var e=S(this).data();S(this).text(e.cn)},function(){var e=S(this).data();S(this).text(e.en)}),E.on("keyup",".search-key",function(e){var t,i=S.trim(S(this).val()),n=L.find("li"),o=L.find(".action");if(e.which>36&&e.which<41){if(38===e.which)t=o.prev(),o.length&&t.length||(t=n.eq(n.length-1));else{if(40!==e.which)return;t=o.next(),o.length&&t.length||(t=n.eq(0))}n.removeClass("action"),t.addClass("action"),S(this).val(t.find(".searchvalue").text())}else 13===e.which?""!==i&&E.submit():(i=i.replace(new RegExp("'","gm"),""),S(this).val(i),u(i))}).on("blur",".search-key",function(){setTimeout(function(){L.hide()},200)}),U.hover(function(){var e,t="";U.hasClass("on-hover")||(e=U.data(),e&&1*e.num?(t='<div class="loading-cart"><h3>加载中,请稍后</h3></div>',f(e.key)):t='<div class="empty-cart"><h3>您的购物车暂无商品</h3></div>',A.html(t),U.addClass("on-hover"))},function(){U.removeClass("on-hover")}),U.on("click",".cart-goods-del",function(){var e,t=S(this),i=t.data();i&&(e=function(){t.closest(".goods-item").remove()},i.key=U.data().key,p(i,e))}),P.on({mouseenter:function(){var e=S(this).children(".third-nav-wrapper"),t=e.find(".show-detail"),i={};y=setTimeout(function(){e.show()},200),t.length&&!t.hasClass("show")&&(i.content_code=t.data().code,i.client_type="web",i.width=337,i.height=250,i._=new Date,S.getJSON("//new.yohobuy.com/common/getbanner?callback=?",i,function(e){200===e.code&&(t.addClass("show"),t.find("img").attr("src",e.data.src),t.find("a").attr("href",e.data.url),t.find(".title").text(e.data.title))}))},mouseleave:function(){var e=S(this).children(".third-nav-wrapper");y&&clearTimeout(y),e.hide()}}),window.submitSearch=function(){var e,t,i=S("#query-key").val(),o=S("#defaultsearch").val(),a="Search",s="Head Search",r="Search";if(e=S.trim(F.toLowerCase()),t=S.trim(i.toLowerCase()),n(a,s,r),""!==$&&""!==F&&e===t)location.href=$.replace("'","");else{if(!H.test(i)||""===i)return""===i&&S("#query-key").val(o),E.submit(),!1;location.href="http://search.yohobuy.com/error?query="+i+"&result=error"}},w()},,,function(e,t,i){var n=i(1),o=i(2);!function(){var e=function(e,t){this.$element=n(e),this.options=n.extend({},n.fn.slider.defaults,t),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()};e.prototype={init:function(){if(this.$element){if(this.len<=1)return void o(this.$element.find("img.lazy"));this.options.pagination?this.smallItem=n(this.options.pagination).find("li"):this._createPage(),this.options.orient&&this._createOrient(),this._slideShow(),this._bindEvent(),this._autoplay()}},_createOrient:function(){var e='<div class="slide-switch"><a class="prev" href="javascript:;"><span class="iconfont"></span></a><a class="next" href="javascript:;"><span class="iconfont"></span></a></div>';this.$element.find(".slide-switch").length>0||this.$element.append(e)},_createPage:function(){var e='<div class="slide-pagination"><div class="slide-pagination-inner"><div class="slide-shade"></div><div class="slide-pagination-last">',t=0;if(!(this.len<=1)){for(t=0;t<this.len;t++)e+="<span></span>";e+="</div></div></div>",this.$element.append(n(e)),this.smallItem=this.$element.find(".slide-pagination-inner span")}},_bindEvent:function(){var e=this;this.$element.find(".slide-switch").on("click",".next",function(){e._nextSlide(),clearInterval(e.timer),e.timer=setInterval(function(){e._nextSlide()},e.options.time)}).on("click",".prev",function(){e._prevSlide(),clearInterval(e.timer),e.timer=setInterval(function(){e._nextSlide()},e.options.time)}),this.smallItem.on("mouseenter",function(){e.index=n(this).index(),clearInterval(e.timer),e._slideShow()}).on("mouseleave",function(){e._autoplay()}),this.$element.on("mouseenter",function(){n(this).find(".slide-switch").addClass("show")}).on("mouseleave",function(){n(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).show().stop().animate({opacity:1},function(){n(this).find(".slide-tips > p").removeClass("hide")}).siblings().stop().animate({opacity:0},function(){n(this).hide().find(".slide-tips > p").addClass("hide")})},_autoplay:function(){var e=this;clearInterval(this.timer),this.timer=setInterval(function(){e._nextSlide()},this.options.time)}},n.fn.slider=function(t){return this.each(function(){var i=n(this),o=i.data("Slider"),a="object"==typeof t&&t;o||i.data("Slider",o=new e(this,a)),"string"==typeof t&&o[t]()})},n.fn.slider.Constructor=e,n.fn.slider.defaults={time:5e3,orient:!0,pagination:null}}(n)},function(e,t){var i,n={"[object Array]":"array","[object Boolean]":"boolean","[object Date]":"date","[object Function]":"function","[object Number]":"number","[object Object]":"object","[object RegExp]":"regexp","[object String]":"string"},o={__Index:0,list:[],get:function(e){return void 0===e?this.list:this.list[e]},fn:function(){},inherit:function(e,t){var i=o.fn;i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e,e.superclass=t.prototype,e.prototype.constructor===Object.prototype.constructor&&(e.prototype.constructor=t)},extend:function(e,t){var i;for(i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e},copy:function(e,t,i){var n,a,s;if("object"!=typeof t)return t;if(n=t.valueOf(),t!==n)return new t.constructor(n);if(t instanceof t.constructor&&t.constructor!==Object){a=e?new e:o.clone(t.constructor.prototype);for(s in t)(e||t.hasOwnProperty(s))&&(a[s]=t[s])}else{a={};for(s in t)a.hasOwnProperty(s)&&(a[s]=t[s])}if(i)for(s in i)a.hasOwnProperty(s)&&(a[s]=i[s]);return a},clone:function(e){return o.__cloneFunc.prototype=e,new o.__cloneFunc},__cloneFunc:function(){},delegate:function(e,t){var i;return t=t||window,arguments.length>2?(i=Array.prototype.slice.call(arguments,2),function(){return e.apply(t,i)}):function(){return e.call(t)}},dom:function(e,t){var i,n,o=e,a={wrap:o},s=o[0].getElementsByTagName("*"),r=s.length;for(n=0;n<r;n++)i=s[n].className,i.indexOf(t)>-1&&(i=i.split(t)[1]),i&&(a[i]=o.find(s[n]));return a},template:function(){var e,t,i,n,a=arguments;if(a.length>0&&o.isString(a[0]))if(e=a[0],2===a.length&&o.isObject(a[1]))for(t in a[1])void 0!==a[1][t]&&(i=new RegExp("({"+t+"})","g"),e=e.replace(i,a[1][t]));else for(n=1;n<a.length;n++)void 0!==a[n]&&(i=new RegExp("({["+(n-1)+"]})","g"),e=e.replace(i,a[n]));return e},__type:function(e){return null==e?String(e):n[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,i){var n,a;if(o.isArray(e))for(n=0,a=e.length;n<a&&t.call(e[n],n,e[n],i)!==!1;n++);else for(n in e)if(t.call(e[n],n,e[n],i)===!1)break},funManager:{__loadList:{},__loadFun:function(e,t,i){e.methord&&o.isFunction(e.methord())&&(i=i||window,e.methord()(e,function(){t()},i))},load:function(e,t,i,n){n=n||0,e[n]&&o.funManager.__loadFun(e[n],function(){o.funManager.load(e,t,i,n+1)},i),t(n,i)},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,i=t.detail?t.detail*-1:t.wheelDelta/40,n=i<0?-1:1;return{direction:n,unit:i}},__:function(e,t,i,n){var o;for(o in e)if(window[e[o].validator]){t[e[o].validator](e[o].prefix+i,n,!1);break}},add:function(e,t,i){var n=[{validator:"addEventListener",prefix:""},{validator:"attachEvent",prefix:"on"}];this.__(n,e,t,i)},remove:function(e,t,i){var n=[{validator:"removeEventListener",prefix:""},{validator:"detachEvent",prefix:"on"}];this.__(n,e,t,i)}},getUid:function(e){return o.template("me-{0}{1}-{2}",e,(new Date).getTime(),o.__Index++)},Browser:{isTouch:function(){var e=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture;return!!("ontouchstart"in window||e||window.DocumentTouch)},Prefix:function(){var e,t=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"],i=document.createElement("div");for(e in t)if(void 0!==i.style[t[e]])return o.template("-{0}-",t[e].replace("Perspective","").toLowerCase())},parseURL:function(e){var t,i,n,o,a,s=document.createElement("a");return s.href=e,{source:e,protocol:s.protocol.replace(":",""),host:s.hostname,port:s.port,query:s.search,params:function(){for(t={},i=s.search.replace(/^\?/,"").split("&"),n=i.length,o=0,a;o<n;o++)i[o]&&(a=i[o].split("="),t[a[0]]=a[1]);return t}(),file:(s.pathname.match(/\/([^\/?#]+)$/i)||[null,""])[1],hash:s.hash.replace("#",""),path:s.pathname.replace(/^([^\/])/,"/$1"),relative:(s.href.match(/tps?:\/\/[^\/]+(.+)/)||[null,""])[1],segments:s.pathname.replace(/^\//,"").split("/")}}},Array:{indexOf:function(e,t){var i;for(i=0;i<e.length;i++)if(this[i]===t)return i;return-1},remove:function(e,t){var i=this.indexOf(e,t);return i>-1&&e.splice(i,1),e}}};i=function(e){this.initialized=!1,this.registerEvent={before:[],change:[],after:[]},this.options=e,this.init(e)},i.output=function(){o.log(o.list)},i.prototype.oninit=o.fn,i.prototype.init=function(e){this.initialized=!0,this.__Uid=o.getUid("me"),this.oninit(e),o.list[this.__Uid]=this},i.prototype.destory=function(){this.initialized=!1,delete o.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 i=this,n=i.registerEvent[e];return n&&n.push(t),n},i.prototype.off=function(e,t){var i=this,n=i.registerEvent[e],a=[];o.each(n,function(e,i){i===t&&a.push(e)}),o.each(a.reverse(),function(e,t){n.splice(t,1)})},o.assembly=i,e.exports=o},function(e,t,i){var n=i(11),o=function(e){this.__lastTime=null,this.__isStop=!1,e=n.extend(this.defaults,e),o.superclass.constructor.call(this,e)};n.inherit(o,n.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 i,n,o,a,s,r,c,d,l=this,u=l.options;l.__lastTime&&(clearTimeout(l.__lastTime),l.__lastTime=null),t="undefined"==typeof t?u.index:t,i=e===t?0:e>t?1:-1,n=u.loop,a=u.length-1,s=e,e=n?e>a?e-a-1:0>e?e+a+1:e:e>a?a:0>e?0:e,o=u.index=e,r={from:t,to:e,originalto:s,direction:i};for(c in l.registerEvent)if(l.registerEvent[c].length>0)for(d in l.registerEvent[c])l.registerEvent[c].hasOwnProperty(d)&&l.registerEvent[c][d](r);o!==a||e?!l.__isStop&&u.auto&&l.play():l.__lastTime&&clearTimeout(l.__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,i=t.index,n=i+t.step;e.go(n,i)},o.prototype.prev=function(){var e=this,t=e.options,i=t.index,n=i-t.step;e.go(n,i)},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},e.exports=o},,function(e,t,i){function n(e,t){e.each(function(){v(this).closest(".attr").hasClass("checked")||v(this).removeClass("checked").html(b.unchecked)}),t.find(".checkbox").addClass("checked").html(b.checked)}function o(){y.addClass("hide"),x.removeClass("hide")}function a(){x.addClass("hide"),y.removeClass("hide"),T.children("span").removeClass("hover")}function s(e,t){var i,n=window.queryString();n[e]=t,delete n.page,i="?"+decodeURIComponent(v.param(n)),window.location.href=i}function r(){q.children(".senior-sub:eq("+m+")").addClass("hide"),E.children(".attr:eq("+m+")").removeClass("hover"),m=-1}var c,d,l,u,h,f,p,m,v=i(1),g=i(4),b={unchecked:"",checked:""},w={up:"",down:""},y=v(".brand .default"),_=v("#brand-search-input"),x=v(".brand .brand-panel"),k=x.find(".attr"),C=v("#brand-more"),S=v("#brand-multi"),T=v(".brands-index"),O=v(".ud-price-range"),I=/^\d+$/,j=v(".sort-sub-wrap"),q=v(".senior-sub-wrap"),E=v(".senior-attr-wrap"),z='{{# size}}<a class="attr {{#if checked}}checked{{/if}}" href="{{href}}">{{name}}</a>{{/ size}}',L={},U=v(".filter-box .size");z=g.compile(z),v(".filter-box").on("selectstart",".attr, .brands-index span",function(){return!1}),v(".sort-pre").on("click","li",function(){var e=v(this),t=e.index(),i=e.data("id");return e.hasClass("active")?(e.removeClass("active"),j.children(":eq("+t+")").addClass("hide"),void U.addClass("hide")):(e.siblings(".active").removeClass("active"),e.addClass("active"),j.children(":not(.hide)").addClass("hide"),j.children(":eq("+t+")").removeClass("hide"),void(U.data("load")||(L[i]?(U.find(".attr-content").html(L[i]),U.removeClass("hide")):v.ajax({url:"/product/search/sortSize",data:{msort:i}}).then(function(e){"array"===v.type(e)&&e.length?(L[i]=z({size:e}),U.find(".attr-content").html(L[i]),U.removeClass("hide")):U.addClass("hide")}))))}),C.length>0&&(c=C.children("em"),d=C.children(".iconfont")),S.click(function(){"none"===x.css("display")&&C.trigger("click"),o(),x.removeClass("hide").addClass("multi"),v(this).addClass("hide"),C.addClass("hide")}),C.click(function(){var e=v(this);e.hasClass("more")?(a(),c.text("更多"),d.html(w.down),_.val("").trigger("keyup")):(o(),c.text("收起"),d.html(w.up)),v(this).toggleClass("more")}),T.on("mouseenter","span",function(){var e=v(this),t=e.data("index");e.hasClass("hover")||setTimeout(function(){e.siblings("span.hover").removeClass("hover"),e.addClass("hover"),0===e.index()?k.removeClass("hide"):k.addClass("hide").filter("[data-index="+t+"]").removeClass("hide")},120)}),_.keyup(function(){var e=v(this).val().toLowerCase();""===e?k.removeClass("hide"):k.addClass("hide").filter('[data-key*="'+e+'"]').removeClass("hide")}),v("#brand-multi-ok").click(function(){var e=[];v(this).hasClass("dis")||(x.find("span.checked").each(function(){e.push(v(this).data("id"))}),s("brand",e.join(",")))}),v(".multi-select-cancel").click(function(){var e=v(this).closest(".multi");e.hasClass("brand-panel")&&(S.removeClass("hide"),C.trigger("click"),C.removeClass("hide"),_.val("").trigger("keyup"),a()),e.addClass("hide").removeClass("multi"),n(e.find(".checkbox.checked"),e.find(".attr.checked")),v(this).siblings(".multi-select-ok").addClass("dis")}),v(".check-container").on("click",".attr",function(){var e=v(this),t=e.find(".checkbox"),i=e.closest(".brand-panel, .senior-sub").find(".multi-select-ok");t.toggleClass("checked"),t.hasClass("checked")?t.html(b.checked):t.html(b.unchecked),t.hasClass("checked")||e.siblings(".attr").find(".checked").length>0?i.removeClass("dis"):i.addClass("dis")}),v(".brand, .senior").on("click",".attr > a",function(e){v(this).closest(".multi").length>0&&e.preventDefault()}),v(".filter-box").on("click","li.checked, a.checked",function(e){e.preventDefault()}),O.length>0&&(l=O.find(".limit"),u=l.filter(".min"),h=l.filter(".max"),f=O.find(".price-sure"),l.keyup(function(){var e,t,i,n=v.trim(v(this).val()),o=I.test(n);o||(e=parseInt(n,10),v(this).val(isNaN(e)?"":e)),t=v.trim(u.val()),i=v.trim(h.val()),""!==t||""!==i?f.removeClass("hide"):f.addClass("hide")}),f.click(function(){var e,t=v.trim(u.val()),i=v.trim(h.val());""!==t&&""!==i&&+t>+i&&(e=i,i=t,t=e),s("price",t+","+i)})),E.on("mouseenter",".attr",function(){var e=v(this),t=e.index();e.hasClass("no-sub")||(e.addClass("hover").siblings().removeClass("hover"),q.children(".senior-sub:eq("+t+")").removeClass("hide").siblings().addClass("hide"))}).on("mouseleave",".attr",function(){var e=v(this),t=e.index();e.hasClass("no-sub")||(m=t,p=setTimeout(function(){r()},100))}),v(".senior-sub").on("click",".multi-select",function(){v(this).closest(".senior-sub").addClass("multi")}).on("click",".multi-select-ok",function(){var e=v(this),t=e.closest(".senior-sub"),i=[];e.hasClass("dis")||(t.find("span.checked").each(function(){i.push(v(this).data("id"))}),s(t.data("attr"),i.join(",")))}).on("mouseenter",function(){clearTimeout(p)}).on("mouseleave",function(){r()}),function(){var e=v(".activity-entry").find("a").length,t=(1150-10*(e-1))/e;v(".activity-entry .entry-item").css("width",t)}()},function(e,t,i){var n=i(1),o=n("#count-per-page"),a=o.next("ul"),s=200;n(document).click(function(e){n(e.target).closest(".page-count").length>0||a&&a.slideUp(s)}),o.click(function(){"none"===a.css("display")?a.slideDown(s):a.slideUp(s)})},function(e,t,i){function n(){this.handlers={}}var o=i(1);n.prototype={constructor:n,addHandler:function(e,t){"undefined"==typeof this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t)},fire:function(e){var t,i;if(e.target||(e.target=this),this.handlers[e.type]instanceof Array)for(t=this.handlers[e.type],i=0;i<t.length;i++)t[i](e)},removeHandler:function(e,t){var i,n;if(this.handlers[e]instanceof Array){for(i=this.handlers[e],n=0;n<i.length&&i[n]!==t;n++);i.splice(n,1)}}},e.exports=function(e,t){function i(e){var i,n=0,u=0,h=t,f=0,p="",m=0,v=0;switch(e.type){case"mouseenter":i=o(this),a=setTimeout(function(){s=!0,p=i.clone(),f=i.index()+1,n=f%h===0?h:f%h,u=Math.ceil(f/h),m=i.offset().left,v=l-(m+c),r.fire({type:"MouseEnter",target:i,targetWidth:c,targetHeight:d,targetX:n,targetY:u,rowWidth:h,activeIndex:f,targetDuplicate:p,offsetL:m,offsetR:v})},150);break;case"mouseleave":s||(a&&clearTimeout(a),r.fire({type:"MouseLeave"})),s=!1}}var a,s,r=new n,c=e.eq(0).width(),d=e.eq(0).height(),l=o(window).width();return e.bind({mouseenter:i,mouseleave:i}),r}},function(e,t,i){var n,o=i(1),a=i(2),s=i(4),r=i(16),c=o(".goods-container"),d=c.find(".good-info"),l=c.find(".good-item-wrapper"),u=c.find(".good-info-main"),h=c.find(".good-select-color"),f=o(".product-list-nav");
|