Authored by 周少峰

gulp ge

webpackJsonp([4],[function(n,c,o){o(5)}]);
\ No newline at end of file
webpackJsonp([5],[function(n,c,o){o(4)}]);
\ No newline at end of file
... ...
webpackJsonp([2],[function(t,e,i){var n=i(1),o=i(2),a=i(14),s=n(".home-page").data("page"),r=n(".logo-brand").data("url");i(5),i(4),i(18),i(17),n(document).on("mouseenter",".imgopacity a img",function(){n(this).css("opacity",.8)}),n(document).on("mouseout",".imgopacity a img",function(){n(this).css("opacity",1)}),n.inArray(s,["boys","girls","kids","lifestyle"])>-1&&(i(19)({type:s,url:"/common/getNewArrival",count:"boys"===s||"lifestyle"===s?5:4,rows:[5,3]}),window.setCookie("_Channel",s,{domain:".yohobuy.com",path:"/",expires:365})),o(n("img.lazy")),"boys"===s?n(".slide-container").slider({pagination:".thumb-pagination"}):(n(".center-col").slider(),n(".slide-container").slider()),"boys"===s?(n(".logo-brand").logoBrand({url:r}),a.init(".img-brand")):(n(".logo-brand").logoBrand({showNum:10,url:r}),a.init(".img-slider-wrapper"))},,,,function(t,e,i){var n=i(1),o=i(2);!function(){var t=function(t,e){this.$element=n(t),this.options=n.extend({},n.fn.slider.defaults,e),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(){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 t='<div class="slide-switch"><a class="prev" href="javascript:;"><span class="iconfont">&#xe609;</span></a><a class="next" href="javascript:;"><span class="iconfont">&#xe608;</span></a></div>';this.$element.find(".slide-switch").length>0||this.$element.append(t)},_createPage:function(){var t='<div class="slide-pagination"><div class="slide-pagination-inner"><div class="slide-shade"></div><div class="slide-pagination-last">',e=0;if(!(this.len<=1)){for(e=0;e<this.len;e++)t+="<span></span>";t+="</div></div></div>",this.$element.append(n(t)),this.smallItem=this.$element.find(".slide-pagination-inner 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=n(this).index(),clearInterval(t.timer),t._slideShow()}).on("mouseleave",function(){t._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 t=this.bigItem.eq(this.index).find("img.lazy");t.attr("src")!==t.data("original")&&(o(t,{event:"sporty"}),t.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 t=this;clearInterval(this.timer),this.timer=setInterval(function(){t._nextSlide()},this.options.time)}},n.fn.slider=function(e){return this.each(function(){var i=n(this),o=i.data("Slider"),a="object"==typeof e&&e;o||i.data("Slider",o=new t(this,a)),"string"==typeof e&&o[e]()})},n.fn.slider.Constructor=t,n.fn.slider.defaults={time:5e3,orient:!0,pagination:null}}(n)},,,,function(t,e){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(t){return void 0===t?this.list:this.list[t]},fn:function(){},inherit:function(t,e){var i=o.fn;i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t,t.superclass=e.prototype,t.prototype.constructor===Object.prototype.constructor&&(t.prototype.constructor=e)},extend:function(t,e){var i;for(i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t},copy:function(t,e,i){var n,a,s;if("object"!=typeof e)return e;if(n=e.valueOf(),e!==n)return new e.constructor(n);if(e instanceof e.constructor&&e.constructor!==Object){a=t?new t:o.clone(e.constructor.prototype);for(s in e)(t||e.hasOwnProperty(s))&&(a[s]=e[s])}else{a={};for(s in e)a.hasOwnProperty(s)&&(a[s]=e[s])}if(i)for(s in i)a.hasOwnProperty(s)&&(a[s]=i[s]);return a},clone:function(t){return o.__cloneFunc.prototype=t,new o.__cloneFunc},__cloneFunc:function(){},delegate:function(t,e){var i;return e=e||window,arguments.length>2?(i=Array.prototype.slice.call(arguments,2),function(){return t.apply(e,i)}):function(){return t.call(e)}},dom:function(t,e){var i,n,o=t,a={wrap:o},s=o[0].getElementsByTagName("*"),r=s.length;for(n=0;r>n;n++)i=s[n].className,i.indexOf(e)>-1&&(i=i.split(e)[1]),i&&(a[i]=o.find(s[n]));return a},template:function(){var t,e,i,n,a=arguments;if(a.length>0&&o.isString(a[0]))if(t=a[0],2===a.length&&o.isObject(a[1]))for(e in a[1])void 0!==a[1][e]&&(i=new RegExp("({"+e+"})","g"),t=t.replace(i,a[1][e]));else for(n=1;n<a.length;n++)void 0!==a[n]&&(i=new RegExp("({["+(n-1)+"]})","g"),t=t.replace(i,a[n]));return t},__type:function(t){return null==t?String(t):n[Object.prototype.toString.call(t)]||"object"},isObject:function(t){return this.isFunction(t)||!(!t||"object"!=typeof t)},isFunction:function(t){return"function"===this.__type(t)},isArray:Array.isArray||function(t){return"array"===this.__type(t)},isNum:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},isString:function(t){return"string"===this.__type(t)},each:function(t,e,i){var n,a;if(o.isArray(t))for(n=0,a=t.length;a>n&&e.call(t[n],n,t[n],i)!==!1;n++);else for(n in t)if(e.call(t[n],n,t[n],i)===!1)break},funManager:{__loadList:{},__loadFun:function(t,e,i){t.methord&&o.isFunction(t.methord())&&(i=i||window,t.methord()(t,function(){e()},i))},load:function(t,e,i,n){n=n||0,t[n]&&o.funManager.__loadFun(t[n],function(){o.funManager.load(t,e,i,n+1)},i),e(n,i)},get:function(t){return this.__loadList[t]}},log:function(t){var e=window.console||{log:function(){}};e.log(t)},Event:{mousewheel:function(t){var e=t.originalEvent,i=e.detail?-1*e.detail:e.wheelDelta/40,n=0>i?-1:1;return{direction:n,unit:i}},__:function(t,e,i,n){var o;for(o in t)if(window[t[o].validator]){e[t[o].validator](t[o].prefix+i,n,!1);break}},add:function(t,e,i){var n=[{validator:"addEventListener",prefix:""},{validator:"attachEvent",prefix:"on"}];this.__(n,t,e,i)},remove:function(t,e,i){var n=[{validator:"removeEventListener",prefix:""},{validator:"detachEvent",prefix:"on"}];this.__(n,t,e,i)}},getUid:function(t){return o.template("me-{0}{1}-{2}",t,(new Date).getTime(),o.__Index++)},Browser:{isTouch:function(){var t=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture;return!!("ontouchstart"in window||t||window.DocumentTouch)},Prefix:function(){var t,e=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"],i=document.createElement("div");for(t in e)if(void 0!==i.style[e[t]])return o.template("-{0}-",e[t].replace("Perspective","").toLowerCase())},parseURL:function(t){var e,i,n,o,a,s=document.createElement("a");return s.href=t,{source:t,protocol:s.protocol.replace(":",""),host:s.hostname,port:s.port,query:s.search,params:function(){for(e={},i=s.search.replace(/^\?/,"").split("&"),n=i.length,o=0,a;n>o;o++)i[o]&&(a=i[o].split("="),e[a[0]]=a[1]);return e}(),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(t,e){var i;for(i=0;i<t.length;i++)if(this[i]===e)return i;return-1},remove:function(t,e){var i=this.indexOf(t,e);return i>-1&&t.splice(i,1),t}}};i=function(t){this.initialized=!1,this.registerEvent={before:[],change:[],after:[]},this.options=t,this.init(t)},i.output=function(){o.log(o.list)},i.prototype.oninit=o.fn,i.prototype.init=function(t){this.initialized=!0,this.__Uid=o.getUid("me"),this.oninit(t),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(t,e){var i=this,n=i.registerEvent[t];return n&&n.push(e),n},i.prototype.off=function(t,e){var i=this,n=i.registerEvent[t],a=[];o.each(n,function(t,i){i===e&&a.push(t)}),o.each(a.reverse(),function(t,e){n.splice(e,1)})},o.assembly=i,t.exports=o},function(t,e,i){var n=i(8),o=function(t){this.__lastTime=null,this.__isStop=!1,t=n.extend(this.defaults,t),o.superclass.constructor.call(this,t)};n.inherit(o,n.assembly),o.prototype.oninit=function(){var t=this,e=t.options;return e.auto&&t.play(),t.go(e.index),this},o.prototype.go=function(t,e){var i,n,o,a,s,r,l,c,p=this,d=p.options;p.__lastTime&&(clearTimeout(p.__lastTime),p.__lastTime=null),e="undefined"==typeof e?d.index:e,i=t===e?0:t>e?1:-1,n=d.loop,a=d.length-1,s=t,t=n?t>a?t-a-1:0>t?t+a+1:t:t>a?a:0>t?0:t,o=d.index=t,r={from:e,to:t,originalto:s,direction:i};for(l in p.registerEvent)if(p.registerEvent[l].length>0)for(c in p.registerEvent[l])p.registerEvent[l].hasOwnProperty(c)&&p.registerEvent[l][c](r);o!==a||t?!p.__isStop&&d.auto&&p.play():p.__lastTime&&clearTimeout(p.__lastTime)},o.prototype.play=function(){var t=this,e=t.options;return t.__lastTime=setTimeout(function(){t.next()},1e3*e.timeout),this},o.prototype.next=function(){var t=this,e=t.options,i=e.index,n=i+e.step;t.go(n,i)},o.prototype.prev=function(){var t=this,e=t.options,i=e.index,n=i-e.step;t.go(n,i)},o.prototype.pause=function(){var t=this;t.__lastTime&&clearTimeout(t.__lastTime),t.__isStop=!0},o.prototype.resume=function(){var t=this;t.__isStop=!1,t.play()},o.prototype.defaults={index:0,timeout:5,step:1,per:1,auto:!1,loop:!1},t.exports=o},,,,,function(t,e,i){var n=i(1);window.jQuery=n,i(12),e.init=function(t){var e,i=n(t),o=i.unslider({autoplay:!0,delay:5e3,arrows:!1,nav:!1}),a=i.find("li").length,s=a/3;i.find("li").length%3||(s-=1),i.find("li:nth-child(3n)").css("margin-right",0),o.on("unslider.change",function(t,i){clearTimeout(e),i>=s&&(e=setTimeout(function(){o.unslider("animate:first")},4999))}),n(".img-brand-switch").on("click",".prev",function(){o.data("unslider").current>s||o.data("unslider").current<=0?o.unslider("animate:"+s):o.unslider("prev")}).on("click",".next",function(){o.data("unslider").current>=s?o.unslider("animate:first"):o.unslider("next")})}},,,function(t,e,i){function n(t){l.each(function(e){s(this).css("zIndex",e),t>=e?s(this).stop().animate({left:e*p},400):s(this).stop().animate({left:t*p+c+p*(e-t-1)},400)})}var o,a=i(9),s=i(1),r=s(".slide-accordion"),l=r.find("li"),c=l.width(),p=1150===parseInt(s(".home-page").width(),10)?125:107;n(0),o=new a({length:5,loop:!1,auto:!1,timeout:2,index:0}),o.on("change",function(t){n(t.to)}),l.mouseover(function(){o.go(s(this).index())}),o.init()},function(t,e,i){var n=i(1),o=i(3),a=i(2);!function(){var t=function(t,e){this.$element=n(t),this.options=n.extend({},n.fn.logoBrand.defaults,e),this.init()};t.prototype={init:function(){this.$element.addClass("logos-"+this.options.showNum),this._sendRequest()},_createHelper:function(){var t=this.options.showNum;o.registerHelper("brandList",function(e,i){var n="<ul>",o=0,a=null,s=0;if(e.length%t!==0)for(s=t-e.length%t,o=0;s>o;o++)e.push({href:"javascript:;",img:""});for(o=0;o<e.length;o++)a=i.fn(e[o]),n=o%t===5||5===o?n+'<li class="logo-brand-switch" data-page="'+Math.floor(o/t)+'"><a class="prev iconfont" href="javascript:;">&#xe60f;</a><a class="next iconfont" href="javascript:;">&#xe60e;</a></li><li data-page="'+Math.floor(o/t)+'">'+a+"</li>":0!==o&&o%t===0?n+'<li class="brand-more" data-page="'+Math.floor(o/(t+1))+'"><a href="javascript:;" target="_blank">MORE ></a></li><li data-page="'+Math.floor(o/t)+'">'+a+"</li>":n+'<li data-page="'+Math.floor(o/t)+'">'+a+"</li>";return n+'<li class="brand-more" data-page="'+Math.floor(o/(t+1))+'"><a href="javascript:;" target="_blank">MORE ></a></li></ul>'})},_sendRequest:function(){var t=this;n.ajax({type:"GET",url:t.options.url,dataType:"json",success:function(e){var i,n;e&&0!==e.length&&(t._createHelper(),n='{{#brandList logoBrand}}<a href="{{href}}" target="_blank"><img class="lazy" data-original="{{img}}" alt=""></a>{{/brandList}}',i=o.compile(n),t.$element.html(i(e)),t.$element.find(".brand-more a").attr("href",e.moreBrand),a(t.$element.find("img.lazy")),t._bindEvent())}})},_brandShow:function(t,e){var i=this;a(n("li[data-page="+e+"]").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="+e+"]").show().find("img").fadeIn()})},_bindEvent:function(){var t=this;t.$element.on("click",".next",function(){var e=n(this).parent().data("page"),i=0,o=Math.ceil(t.$element.find("li").size()/(t.options.showNum+2))-1;i=e===o?0:e+1,t._brandShow(e,i)}),t.$element.on("click",".prev",function(){var e=n(this).parent().data("page"),i=0,o=Math.ceil(t.$element.find("li").size()/(t.options.showNum+2))-1;i=0===e?o:e-1,t._brandShow(e,i)})}},n.fn.logoBrand=function(e){return this.each(function(){var i=n(this),o=i.data("LogoBrand"),a="object"==typeof e&&e;o||i.data("LogoBrand",o=new t(this,a)),"string"==typeof e&&o[e]()})},n.fn.logoBrand.Constructor=t,n.fn.logoBrand.defaults={showNum:16,url:"/boys/getBrand"}}()},function(t,e,i){function n(t){var e={index:0,isload:!0,isrun:!0,offset:{height:null,width:null}};return this.registerEvent={before:[],change:[],after:[]},this.options=o.extend(!0,{},e,t),this}var o=i(1),a=i(2),s=i(3);n.prototype.on=function(t,e){var i=this,n=i.registerEvent[t];return n&&n.push(e),n},n.prototype.exect=function(t,e){var i,n=this;if(n.registerEvent[t]&&n.registerEvent[t].length>0)for(i in n.registerEvent[t])n.registerEvent[t].hasOwnProperty(i)&&n.registerEvent[t][i](e)},n.prototype.init=function(){function t(){i.isrun&&i.isload&&e.__directionCalculation()&&(i.isload=!1,i.index++,e.exect("after",i)),e.exect("change",i)}var e=this,i=this.options;e.exect("before",i),o(window).scroll(t)},n.prototype.emit=function(){var t=this.options;t.isload=!0},n.prototype.stop=function(){var t=this.options;t.isrun=!1,t.isload=!1},n.prototype.__directionCalculation=function(){var t=this.options;return!!(t.offset.height&&t.offset.height()>0&&o(window).scrollTop()+o(window).height()>=t.offset.height())},t.exports=function(t){var e,i=o("#newarrivals .goods-container"),r=o(".loading a"),l=new n({index:1,isload:!1,offset:{height:function(){return parseFloat(i.offset().top)+parseFloat(i.height())-200}}}),c=t.url,p=t.count,d=t.rows;t.pageIndex=0,delete t.url,delete t.count,delete t.rows,e=function(){var e={type:"POST",url:c,success:function(e){var n,o,c,d=e.code;200===d?(o=e.goods.length%p,c=e.goods.length-o-1,e.goods.splice(c,o),n=s.compile(l.tpl),i.append(n(e.goods)),t.pageIndex=t.pageIndex+e.goods.length,a(i.find("img.lazy")),l.emit()):(l.stop(),r.html("查看更多"))},error:function(){l.stop(),r.html("网络断开连接了~")}};e.data=t,o.ajax(e)},l.on("after",function(){t.pageCount=p*d[1],e(c,t)}),l.on("before",function(){l.tpl="{{#each this}}",l.tpl+='<div class="good-info imgopacity" data-skn="{{skn}}">',l.tpl+=' <div class="tag-container clearfix">',l.tpl+=" {{# tags}}",l.tpl+=" {{# isNew}}",l.tpl+=' <span class="good-tag new-tag">NEW</span>',l.tpl+=" {{/ isNew}}",l.tpl+=" {{# isReNew}}",l.tpl+=' <span class="good-tag renew-tag">再到着</span>',l.tpl+=" {{/ isReNew}}",l.tpl+=" {{# isSale}}",l.tpl+=' <span class="good-tag sale-tag">SALE</span>',l.tpl+=" {{/ isSale}}",l.tpl+=" {{# isNewFestival}}",l.tpl+=' <span class="good-tag new-festival-tag">新品节</span>',l.tpl+=" {{/ isNewFestival}}",l.tpl+=" {{# isLimit}}",l.tpl+=' <span class="good-tag limit-tag">限量商品</span>',l.tpl+=" {{/ isLimit}}",l.tpl+=" {{# isYearEndPromotion}}",l.tpl+=' <span class="good-tag yep-tag">年终大促</span>',l.tpl+=" {{/ isYearEndPromotion}}",l.tpl+=" {{# isYearMidPromotion}}",l.tpl+=' <span class="good-tag ymp-tag">年中热促</span>',l.tpl+=" {{/ isYearMidPromotion}}",l.tpl+=" {{/ tags}}",l.tpl+=" </div>",l.tpl+=' <div class="good-detail-img">',l.tpl+=' <a class="good-thumb" href="{{url}}" target= "_blank">',l.tpl+=' <img class="lazy" data-original="{{thumb}}">',l.tpl+=" </a>",l.tpl+=" {{# isFew}}",l.tpl+=' <p class="few-tag">即将售罄</p>',l.tpl+=" {{/ isFew}}",l.tpl+=" {{#if showColBtn}}",l.tpl+=' <span class="col-btn iconfont{{#if coled}} coled{{/if}}">&#xe616;</span>',l.tpl+=" {{/if}}",l.tpl+=" </div>",l.tpl+=' <div class="good-detail-text">',l.tpl+=' <a href="{{url}}" target= "_blank">{{name}}</a>',l.tpl+=' <p class="price">',l.tpl+=' <span class="sale-price{{#unless marketPrice}}prime-cost{{/unless}}">',l.tpl+=" ¥{{salePrice}}",l.tpl+=" </span>",l.tpl+=" {{# marketPrice}}",l.tpl+=' <span class="market-price">¥{{.}}</span>',l.tpl+=" {{/ marketPrice}}",l.tpl+=" </p>",l.tpl+=" </div>",l.tpl+="</div>",l.tpl+="{{/each}}",t.pageCount=p*d[0],e(c,t,t.count)}),l.init()}}]);
\ No newline at end of file
webpackJsonp([2],[function(t,e,i){var n=i(1),o=i(2),a=i(15),r=n(".home-page").data("page"),s=n(".logo-brand").data("url");i(4),i(5),i(19),i(18),n(document).on("mouseenter",".imgopacity a img",function(){n(this).css("opacity",.8)}),n(document).on("mouseout",".imgopacity a img",function(){n(this).css("opacity",1)}),n.inArray(r,["boys","girls","kids","lifestyle"])>-1&&(i(20)({type:r,url:"/common/getNewArrival",count:"boys"===r||"lifestyle"===r?5:4,rows:[5,3]}),window.setCookie("_Channel",r,{domain:".yohobuy.com",path:"/",expires:365})),o(n("img.lazy")),"boys"===r?n(".slide-container").slider({pagination:".thumb-pagination"}):(n(".center-col").slider(),n(".slide-container").slider()),"boys"===r?(n(".logo-brand").logoBrand({url:s}),a.init(".img-brand")):(n(".logo-brand").logoBrand({showNum:10,url:s}),a.init(".img-slider-wrapper"))},,,,,function(t,e,i){var n=i(1),o=i(2);!function(){var t=function(t,e){this.$element=n(t),this.options=n.extend({},n.fn.slider.defaults,e),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(){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 t='<div class="slide-switch"><a class="prev" href="javascript:;"><span class="iconfont">&#xe609;</span></a><a class="next" href="javascript:;"><span class="iconfont">&#xe608;</span></a></div>';this.$element.find(".slide-switch").length>0||this.$element.append(t)},_createPage:function(){var t='<div class="slide-pagination"><div class="slide-pagination-inner"><div class="slide-shade"></div><div class="slide-pagination-last">',e=0;if(!(this.len<=1)){for(e=0;e<this.len;e++)t+="<span></span>";t+="</div></div></div>",this.$element.append(n(t)),this.smallItem=this.$element.find(".slide-pagination-inner 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=n(this).index(),clearInterval(t.timer),t._slideShow()}).on("mouseleave",function(){t._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 t=this.bigItem.eq(this.index).find("img.lazy");t.attr("src")!==t.data("original")&&(o(t,{event:"sporty"}),t.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 t=this;clearInterval(this.timer),this.timer=setInterval(function(){t._nextSlide()},this.options.time)}},n.fn.slider=function(e){return this.each(function(){var i=n(this),o=i.data("Slider"),a="object"==typeof e&&e;o||i.data("Slider",o=new t(this,a)),"string"==typeof e&&o[e]()})},n.fn.slider.Constructor=t,n.fn.slider.defaults={time:5e3,orient:!0,pagination:null}}(n)},,,function(t,e){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(t){return void 0===t?this.list:this.list[t]},fn:function(){},inherit:function(t,e){var i=o.fn;i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t,t.superclass=e.prototype,t.prototype.constructor===Object.prototype.constructor&&(t.prototype.constructor=e)},extend:function(t,e){var i;for(i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t},copy:function(t,e,i){var n,a,r;if("object"!=typeof e)return e;if(n=e.valueOf(),e!==n)return new e.constructor(n);if(e instanceof e.constructor&&e.constructor!==Object){a=t?new t:o.clone(e.constructor.prototype);for(r in e)(t||e.hasOwnProperty(r))&&(a[r]=e[r])}else{a={};for(r in e)a.hasOwnProperty(r)&&(a[r]=e[r])}if(i)for(r in i)a.hasOwnProperty(r)&&(a[r]=i[r]);return a},clone:function(t){return o.__cloneFunc.prototype=t,new o.__cloneFunc},__cloneFunc:function(){},delegate:function(t,e){var i;return e=e||window,arguments.length>2?(i=Array.prototype.slice.call(arguments,2),function(){return t.apply(e,i)}):function(){return t.call(e)}},dom:function(t,e){var i,n,o=t,a={wrap:o},r=o[0].getElementsByTagName("*"),s=r.length;for(n=0;s>n;n++)i=r[n].className,i.indexOf(e)>-1&&(i=i.split(e)[1]),i&&(a[i]=o.find(r[n]));return a},template:function(){var t,e,i,n,a=arguments;if(a.length>0&&o.isString(a[0]))if(t=a[0],2===a.length&&o.isObject(a[1]))for(e in a[1])void 0!==a[1][e]&&(i=new RegExp("({"+e+"})","g"),t=t.replace(i,a[1][e]));else for(n=1;n<a.length;n++)void 0!==a[n]&&(i=new RegExp("({["+(n-1)+"]})","g"),t=t.replace(i,a[n]));return t},__type:function(t){return null==t?String(t):n[Object.prototype.toString.call(t)]||"object"},isObject:function(t){return this.isFunction(t)||!(!t||"object"!=typeof t)},isFunction:function(t){return"function"===this.__type(t)},isArray:Array.isArray||function(t){return"array"===this.__type(t)},isNum:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},isString:function(t){return"string"===this.__type(t)},each:function(t,e,i){var n,a;if(o.isArray(t))for(n=0,a=t.length;a>n&&e.call(t[n],n,t[n],i)!==!1;n++);else for(n in t)if(e.call(t[n],n,t[n],i)===!1)break},funManager:{__loadList:{},__loadFun:function(t,e,i){t.methord&&o.isFunction(t.methord())&&(i=i||window,t.methord()(t,function(){e()},i))},load:function(t,e,i,n){n=n||0,t[n]&&o.funManager.__loadFun(t[n],function(){o.funManager.load(t,e,i,n+1)},i),e(n,i)},get:function(t){return this.__loadList[t]}},log:function(t){var e=window.console||{log:function(){}};e.log(t)},Event:{mousewheel:function(t){var e=t.originalEvent,i=e.detail?-1*e.detail:e.wheelDelta/40,n=0>i?-1:1;return{direction:n,unit:i}},__:function(t,e,i,n){var o;for(o in t)if(window[t[o].validator]){e[t[o].validator](t[o].prefix+i,n,!1);break}},add:function(t,e,i){var n=[{validator:"addEventListener",prefix:""},{validator:"attachEvent",prefix:"on"}];this.__(n,t,e,i)},remove:function(t,e,i){var n=[{validator:"removeEventListener",prefix:""},{validator:"detachEvent",prefix:"on"}];this.__(n,t,e,i)}},getUid:function(t){return o.template("me-{0}{1}-{2}",t,(new Date).getTime(),o.__Index++)},Browser:{isTouch:function(){var t=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture;return!!("ontouchstart"in window||t||window.DocumentTouch)},Prefix:function(){var t,e=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"],i=document.createElement("div");for(t in e)if(void 0!==i.style[e[t]])return o.template("-{0}-",e[t].replace("Perspective","").toLowerCase())},parseURL:function(t){var e,i,n,o,a,r=document.createElement("a");return r.href=t,{source:t,protocol:r.protocol.replace(":",""),host:r.hostname,port:r.port,query:r.search,params:function(){for(e={},i=r.search.replace(/^\?/,"").split("&"),n=i.length,o=0,a;n>o;o++)i[o]&&(a=i[o].split("="),e[a[0]]=a[1]);return e}(),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(t,e){var i;for(i=0;i<t.length;i++)if(this[i]===e)return i;return-1},remove:function(t,e){var i=this.indexOf(t,e);return i>-1&&t.splice(i,1),t}}};i=function(t){this.initialized=!1,this.registerEvent={before:[],change:[],after:[]},this.options=t,this.init(t)},i.output=function(){o.log(o.list)},i.prototype.oninit=o.fn,i.prototype.init=function(t){this.initialized=!0,this.__Uid=o.getUid("me"),this.oninit(t),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(t,e){var i=this,n=i.registerEvent[t];return n&&n.push(e),n},i.prototype.off=function(t,e){var i=this,n=i.registerEvent[t],a=[];o.each(n,function(t,i){i===e&&a.push(t)}),o.each(a.reverse(),function(t,e){n.splice(e,1)})},o.assembly=i,t.exports=o},function(t,e,i){var n=i(8),o=function(t){this.__lastTime=null,this.__isStop=!1,t=n.extend(this.defaults,t),o.superclass.constructor.call(this,t)};n.inherit(o,n.assembly),o.prototype.oninit=function(){var t=this,e=t.options;return e.auto&&t.play(),t.go(e.index),this},o.prototype.go=function(t,e){var i,n,o,a,r,s,l,c,p=this,d=p.options;p.__lastTime&&(clearTimeout(p.__lastTime),p.__lastTime=null),e="undefined"==typeof e?d.index:e,i=t===e?0:t>e?1:-1,n=d.loop,a=d.length-1,r=t,t=n?t>a?t-a-1:0>t?t+a+1:t:t>a?a:0>t?0:t,o=d.index=t,s={from:e,to:t,originalto:r,direction:i};for(l in p.registerEvent)if(p.registerEvent[l].length>0)for(c in p.registerEvent[l])p.registerEvent[l].hasOwnProperty(c)&&p.registerEvent[l][c](s);o!==a||t?!p.__isStop&&d.auto&&p.play():p.__lastTime&&clearTimeout(p.__lastTime)},o.prototype.play=function(){var t=this,e=t.options;return t.__lastTime=setTimeout(function(){t.next()},1e3*e.timeout),this},o.prototype.next=function(){var t=this,e=t.options,i=e.index,n=i+e.step;t.go(n,i)},o.prototype.prev=function(){var t=this,e=t.options,i=e.index,n=i-e.step;t.go(n,i)},o.prototype.pause=function(){var t=this;t.__lastTime&&clearTimeout(t.__lastTime),t.__isStop=!0},o.prototype.resume=function(){var t=this;t.__isStop=!1,t.play()},o.prototype.defaults={index:0,timeout:5,step:1,per:1,auto:!1,loop:!1},t.exports=o},,,,,,function(t,e,i){var n=i(1);i(!function(){var t=new Error('Cannot find module "yoho-slider"');throw t.code="MODULE_NOT_FOUND",t}()),e.init=function(t){var e,i=n(t),o=i.unslider({autoplay:!0,delay:5e3,arrows:!1,nav:!1}),a=i.find("li").length,r=a/3;i.find("li").length%3||(r-=1),i.find("li:nth-child(3n)").css("margin-right",0),o.on("unslider.change",function(t,i){clearTimeout(e),i>=r&&(e=setTimeout(function(){o.unslider("animate:first")},4999))}),n(".img-brand-switch").on("click",".prev",function(){o.data("unslider").current>r||o.data("unslider").current<=0?o.unslider("animate:"+r):o.unslider("prev")}).on("click",".next",function(){o.data("unslider").current>=r?o.unslider("animate:first"):o.unslider("next")})}},,,function(t,e,i){function n(t){l.each(function(e){r(this).css("zIndex",e),t>=e?r(this).stop().animate({left:e*p},400):r(this).stop().animate({left:t*p+c+p*(e-t-1)},400)})}var o,a=i(9),r=i(1),s=r(".slide-accordion"),l=s.find("li"),c=l.width(),p=1150===parseInt(r(".home-page").width(),10)?125:107;n(0),o=new a({length:5,loop:!1,auto:!1,timeout:2,index:0}),o.on("change",function(t){n(t.to)}),l.mouseover(function(){o.go(r(this).index())}),o.init()},function(t,e,i){var n=i(1),o=i(3),a=i(2);!function(){var t=function(t,e){this.$element=n(t),this.options=n.extend({},n.fn.logoBrand.defaults,e),this.init()};t.prototype={init:function(){this.$element.addClass("logos-"+this.options.showNum),this._sendRequest()},_createHelper:function(){var t=this.options.showNum;o.registerHelper("brandList",function(e,i){var n="<ul>",o=0,a=null,r=0;if(e.length%t!==0)for(r=t-e.length%t,o=0;r>o;o++)e.push({href:"javascript:;",img:""});for(o=0;o<e.length;o++)a=i.fn(e[o]),n=o%t===5||5===o?n+'<li class="logo-brand-switch" data-page="'+Math.floor(o/t)+'"><a class="prev iconfont" href="javascript:;">&#xe60f;</a><a class="next iconfont" href="javascript:;">&#xe60e;</a></li><li data-page="'+Math.floor(o/t)+'">'+a+"</li>":0!==o&&o%t===0?n+'<li class="brand-more" data-page="'+Math.floor(o/(t+1))+'"><a href="javascript:;" target="_blank">MORE ></a></li><li data-page="'+Math.floor(o/t)+'">'+a+"</li>":n+'<li data-page="'+Math.floor(o/t)+'">'+a+"</li>";return n+'<li class="brand-more" data-page="'+Math.floor(o/(t+1))+'"><a href="javascript:;" target="_blank">MORE ></a></li></ul>'})},_sendRequest:function(){var t=this;n.ajax({type:"GET",url:t.options.url,dataType:"json",success:function(e){var i,n;e&&0!==e.length&&(t._createHelper(),n='{{#brandList logoBrand}}<a href="{{href}}" target="_blank"><img class="lazy" data-original="{{img}}" alt=""></a>{{/brandList}}',i=o.compile(n),t.$element.html(i(e)),t.$element.find(".brand-more a").attr("href",e.moreBrand),a(t.$element.find("img.lazy")),t._bindEvent())}})},_brandShow:function(t,e){var i=this;a(n("li[data-page="+e+"]").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="+e+"]").show().find("img").fadeIn()})},_bindEvent:function(){var t=this;t.$element.on("click",".next",function(){var e=n(this).parent().data("page"),i=0,o=Math.ceil(t.$element.find("li").size()/(t.options.showNum+2))-1;i=e===o?0:e+1,t._brandShow(e,i)}),t.$element.on("click",".prev",function(){var e=n(this).parent().data("page"),i=0,o=Math.ceil(t.$element.find("li").size()/(t.options.showNum+2))-1;i=0===e?o:e-1,t._brandShow(e,i)})}},n.fn.logoBrand=function(e){return this.each(function(){var i=n(this),o=i.data("LogoBrand"),a="object"==typeof e&&e;o||i.data("LogoBrand",o=new t(this,a)),"string"==typeof e&&o[e]()})},n.fn.logoBrand.Constructor=t,n.fn.logoBrand.defaults={showNum:16,url:"/boys/getBrand"}}()},function(t,e,i){function n(t){var e={index:0,isload:!0,isrun:!0,offset:{height:null,width:null}};return this.registerEvent={before:[],change:[],after:[]},this.options=o.extend(!0,{},e,t),this}var o=i(1),a=i(2),r=i(3);n.prototype.on=function(t,e){var i=this,n=i.registerEvent[t];return n&&n.push(e),n},n.prototype.exect=function(t,e){var i,n=this;if(n.registerEvent[t]&&n.registerEvent[t].length>0)for(i in n.registerEvent[t])n.registerEvent[t].hasOwnProperty(i)&&n.registerEvent[t][i](e)},n.prototype.init=function(){function t(){i.isrun&&i.isload&&e.__directionCalculation()&&(i.isload=!1,i.index++,e.exect("after",i)),e.exect("change",i)}var e=this,i=this.options;e.exect("before",i),o(window).scroll(t)},n.prototype.emit=function(){var t=this.options;t.isload=!0},n.prototype.stop=function(){var t=this.options;t.isrun=!1,t.isload=!1},n.prototype.__directionCalculation=function(){var t=this.options;return!!(t.offset.height&&t.offset.height()>0&&o(window).scrollTop()+o(window).height()>=t.offset.height())},t.exports=function(t){var e,i=o("#newarrivals .goods-container"),s=o(".loading a"),l=new n({index:1,isload:!1,offset:{height:function(){return parseFloat(i.offset().top)+parseFloat(i.height())-200}}}),c=t.url,p=t.count,d=t.rows;t.pageIndex=0,delete t.url,delete t.count,delete t.rows,e=function(){var e={type:"POST",url:c,success:function(e){var n,o,c,d=e.code;200===d?(o=e.goods.length%p,c=e.goods.length-o-1,e.goods.splice(c,o),n=r.compile(l.tpl),i.append(n(e.goods)),t.pageIndex=t.pageIndex+e.goods.length,a(i.find("img.lazy")),l.emit()):(l.stop(),s.html("查看更多"))},error:function(){l.stop(),s.html("网络断开连接了~")}};e.data=t,o.ajax(e)},l.on("after",function(){t.pageCount=p*d[1],e(c,t)}),l.on("before",function(){l.tpl="{{#each this}}",l.tpl+='<div class="good-info imgopacity" data-skn="{{skn}}">',l.tpl+=' <div class="tag-container clearfix">',l.tpl+=" {{# tags}}",l.tpl+=" {{# isNew}}",l.tpl+=' <span class="good-tag new-tag">NEW</span>',l.tpl+=" {{/ isNew}}",l.tpl+=" {{# isReNew}}",l.tpl+=' <span class="good-tag renew-tag">再到着</span>',l.tpl+=" {{/ isReNew}}",l.tpl+=" {{# isSale}}",l.tpl+=' <span class="good-tag sale-tag">SALE</span>',l.tpl+=" {{/ isSale}}",l.tpl+=" {{# isNewFestival}}",l.tpl+=' <span class="good-tag new-festival-tag">新品节</span>',l.tpl+=" {{/ isNewFestival}}",l.tpl+=" {{# isLimit}}",l.tpl+=' <span class="good-tag limit-tag">限量商品</span>',l.tpl+=" {{/ isLimit}}",l.tpl+=" {{# isYearEndPromotion}}",l.tpl+=' <span class="good-tag yep-tag">年终大促</span>',l.tpl+=" {{/ isYearEndPromotion}}",l.tpl+=" {{# isYearMidPromotion}}",l.tpl+=' <span class="good-tag ymp-tag">年中热促</span>',l.tpl+=" {{/ isYearMidPromotion}}",l.tpl+=" {{/ tags}}",l.tpl+=" </div>",l.tpl+=' <div class="good-detail-img">',l.tpl+=' <a class="good-thumb" href="{{url}}" target= "_blank">',l.tpl+=' <img class="lazy" data-original="{{thumb}}">',l.tpl+=" </a>",l.tpl+=" {{# isFew}}",l.tpl+=' <p class="few-tag">即将售罄</p>',l.tpl+=" {{/ isFew}}",l.tpl+=" {{#if showColBtn}}",l.tpl+=' <span class="col-btn iconfont{{#if coled}} coled{{/if}}">&#xe616;</span>',l.tpl+=" {{/if}}",l.tpl+=" </div>",l.tpl+=' <div class="good-detail-text">',l.tpl+=' <a href="{{url}}" target= "_blank">{{name}}</a>',l.tpl+=' <p class="price">',l.tpl+=' <span class="sale-price{{#unless marketPrice}}prime-cost{{/unless}}">',l.tpl+=" ¥{{salePrice}}",l.tpl+=" </span>",l.tpl+=" {{# marketPrice}}",l.tpl+=' <span class="market-price">¥{{.}}</span>',l.tpl+=" {{/ marketPrice}}",l.tpl+=" </p>",l.tpl+=" </div>",l.tpl+="</div>",l.tpl+="{{/each}}",t.pageCount=p*d[0],e(c,t,t.count)}),l.init()}}]);
\ No newline at end of file
... ...
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
webpackJsonp([3],[function(e,t,i){function n(e){var t=36e5,i=6e4,n=1e3,s="",a=0,o=0,l=0,r=0;return e>1e3&&(a=Math.floor(e/t/24),o=Math.floor(e/t%24),l=Math.floor(e/i%60),r=Math.floor(e/n%60),s+=a>0?a+"天":"",s+=o>0?o+"时":"",s+=l>0?l+"分":"",s+=r>0?r+"秒":""),s}function s(){var e,t,i;for(e=0;e<f.length;e++){if(f[e].time<0)return;f[e].time-=1e3,i=n(f[e].time),i?(t=i,f[e].pre&&(t=f[e].pre+" "+t)):t="活动已结束",f[e].dom.text(t)}}function a(e){c.animate({"margin-left":10*-e+"0%"},"fast"),c.data({page:e})}function o(){var e=c.find(".good-item"),t="",i=[],n=0;if(c.length){for(e.each(function(){n%5===0&&i.push(""),i[i.length-1]+=e[n].outerHTML,n++}),c.data({max:i.length}),n=0;n<i.length;n++)t+='<div class="list-page">'+i[n]+"</div>";c.html(t)}}var l,r=i(1),d=i(2),c=r(".limit-main .good-list"),h=r(".sort-layer .full-line"),u=r(".outlets-page").data("page"),f=[];i(5),i(4),i(20),h.length&&(l=h.parent(),r(window).scroll(function(){var e=l.position().top;r(this).scrollTop()>=e?h.addClass("fixed"):h.removeClass("fixed")})),r(".time").each(function(){var e=r(this).data();e.limit&&f.push({dom:r(this),time:e.limit,pre:e.pre?e.pre:""})}),r(".good-page-btns > label").click(function(){var e=(new Date).getTime(),t=c.data(),i=t.max?t.max:1,n=t.page?t.page:0;t.time&&e-t.time<500||(c.data({time:e}),n+=r(this).hasClass("pre-page-btn")?i-1:1,n%=i,a(n))}),setInterval(s,1e3),u?r(".slide-container").slider({orient:!1}):r(".slide-container").slider({orient:!0}),o(),d(r("img.lazy"))},,,,function(e,t,i){var n=i(1),s=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 s(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">&#xe609;</span></a><a class="next" href="javascript:;"><span class="iconfont">&#xe608;</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")&&(s(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),s=i.data("Slider"),a="object"==typeof t&&t;s||i.data("Slider",s=new e(this,a)),"string"==typeof t&&s[t]()})},n.fn.slider.Constructor=e,n.fn.slider.defaults={time:5e3,orient:!0,pagination:null}}(n)},,function(e,t,i){function n(e,t){e.each(function(){v(this).closest(".attr").hasClass("checked")||v(this).removeClass("checked").html(C.unchecked)}),t.find(".checkbox").addClass("checked").html(C.checked)}function s(){k.addClass("hide"),w.removeClass("hide")}function a(){w.addClass("hide"),k.removeClass("hide"),S.children("span").removeClass("hover")}function o(e,t){var i,n=window.queryString();n[e]=t,delete n.page,i="?"+decodeURIComponent(v.param(n)),window.location.href=i}function l(){$.children(".senior-sub:eq("+p+")").addClass("hide"),z.children(".attr:eq("+p+")").removeClass("hover"),p=-1}var r,d,c,h,u,f,m,p,v=i(1),g=i(3),C={unchecked:"&#xe612;",checked:"&#xe613;"},b={up:"&#xe607;",down:"&#xe60b;"},k=v(".brand .default"),x=v("#brand-search-input"),w=v(".brand .brand-panel"),y=w.find(".attr"),I=v("#brand-more"),_=v("#brand-multi"),S=v(".brands-index"),T=v(".ud-price-range"),q=/^\d+$/,M=v(".sort-sub-wrap"),$=v(".senior-sub-wrap"),z=v(".senior-attr-wrap"),L='{{# size}}<a class="attr {{#if checked}}checked{{/if}}" href="{{href}}">{{name}}</a>{{/ size}}',j={},D=v(".filter-box .size");L=g.compile(L),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"),M.children(":eq("+t+")").addClass("hide"),void D.addClass("hide")):(e.siblings(".active").removeClass("active"),e.addClass("active"),M.children(":not(.hide)").addClass("hide"),M.children(":eq("+t+")").removeClass("hide"),void(D.data("load")||(j[i]?(D.find(".attr-content").html(j[i]),D.removeClass("hide")):v.ajax({url:"/product/search/sortSize",data:{msort:i}}).then(function(e){"array"===v.type(e)&&e.length?(j[i]=L({size:e}),D.find(".attr-content").html(j[i]),D.removeClass("hide")):D.addClass("hide")}))))}),I.length>0&&(r=I.children("em"),d=I.children(".iconfont")),_.click(function(){"none"===w.css("display")&&I.trigger("click"),s(),w.removeClass("hide").addClass("multi"),v(this).addClass("hide"),I.addClass("hide")}),I.click(function(){var e=v(this);e.hasClass("more")?(a(),r.text("更多"),d.html(b.down),x.val("").trigger("keyup")):(s(),r.text("收起"),d.html(b.up)),v(this).toggleClass("more")}),S.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()?y.removeClass("hide"):y.addClass("hide").filter("[data-index="+t+"]").removeClass("hide")},120)}),x.keyup(function(){var e=v(this).val().toLowerCase();""===e?y.removeClass("hide"):y.addClass("hide").filter('[data-key*="'+e+'"]').removeClass("hide")}),v("#brand-multi-ok").click(function(){var e=[];v(this).hasClass("dis")||(w.find("span.checked").each(function(){e.push(v(this).data("id"))}),o("brand",e.join(",")))}),v(".multi-select-cancel").click(function(){var e=v(this).closest(".multi");e.hasClass("brand-panel")&&(_.removeClass("hide"),I.trigger("click"),I.removeClass("hide"),x.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(C.checked):t.html(C.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()}),T.length>0&&(c=T.find(".limit"),h=c.filter(".min"),u=c.filter(".max"),f=T.find(".price-sure"),c.keyup(function(){var e,t,i,n=v.trim(v(this).val()),s=q.test(n);s||(e=parseInt(n,10),v(this).val(isNaN(e)?"":e)),t=v.trim(h.val()),i=v.trim(u.val()),""!==t||""!==i?f.removeClass("hide"):f.addClass("hide")}),f.click(function(){var e,t=v.trim(h.val()),i=v.trim(u.val());""!==t&&""!==i&&+t>+i&&(e=i,i=t,t=e),o("price",t+","+i)})),z.on("mouseenter",".attr",function(){var e=v(this),t=e.index();e.hasClass("no-sub")||(e.addClass("hover").siblings().removeClass("hover"),$.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")||(p=t,m=setTimeout(function(){l()},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"))}),o(t.data("attr"),i.join(",")))}).on("mouseenter",function(){clearTimeout(m)}).on("mouseleave",function(){l()})},function(e,t,i){var n=i(1),s=n("#count-per-page"),a=s.next("ul"),o=200;n(document).click(function(e){n(e.target).closest(".page-count").length>0||a&&a.slideUp(o)}),s.click(function(){"none"===a.css("display")?a.slideDown(o):a.slideUp(o)})},,,function(e,t,i){function n(){this.handlers={}}var s=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,h=0,u=t,f=0,m="",p=0,v=0;switch(e.type){case"mouseenter":i=s(this),a=setTimeout(function(){o=!0,m=i.clone(),f=i.index()+1,n=f%u===0?u:f%u,h=Math.ceil(f/u),p=i.offset().left,v=c-(p+r),l.fire({type:"MouseEnter",target:i,targetWidth:r,targetHeight:d,targetX:n,targetY:h,rowWidth:u,activeIndex:f,targetDuplicate:m,offsetL:p,offsetR:v})},150);break;case"mouseleave":o||(a&&clearTimeout(a),l.fire({type:"MouseLeave"})),o=!1}}var a,o,l=new n,r=e.eq(0).width(),d=e.eq(0).height(),c=s(window).width();return e.bind({mouseenter:i,mouseleave:i}),l}},function(e,t,i){var n,s=i(1),a=i(2),o=i(3),l=i(10),r=s(".goods-container"),d=r.find(".good-info"),c=r.find(".good-item-wrapper"),h=r.find(".good-info-main"),u=r.find(".good-select-color"),f=s(".product-list-nav");a(s("img.lazy")),t.init=function(e){function t(e,t){var i,n,s,a="",o=e.length,l=4,r=Math.ceil(o/l),d=0;for(i=0;r>i;i++)for(a+="<ul>",n=0;l>n&&(s=i*l+n,s!==o);n++)a+='<li><a target="_blank" href="'+e[i*l+n].url+t+'"><img src="'+e[i*l+n].src+'" data-cover="'+e[i*l+n].coverImg+'" /></a></li>',n===l-1&&(a+="</ul>",d++);return r>d&&(a+="</ul>"),{colorListStr:a,ulNum:r}}function i(){h.html(""),u.html(""),c.css({display:"none"})}n=null,d.unbind(),n=l(d,e),n.addHandler("MouseEnter",function(e){var n,a,o,l,d,f,m,p,v,g,C,b,k=10,x=35,w=e.target.attr("data-from")||"";o=[],e.target.find(".hideList > li").each(function(){a=s(this).data(),a.coverImg=a.src,o.push(a)}),n=t(o,w),i(),d=n.colorListStr,l=n.ulNum,h.append(e.targetDuplicate),u.append(s(d)),g=c.css("paddingLeft"),C=c.css("paddingTop"),b=r.css("paddingTop"),f=10+65*l+e.targetWidth,p=(e.targetX-1)*(e.targetWidth+k)-(parseInt(g,10)+1),v=(e.targetY-1)*(e.targetHeight+x)+parseInt(b,10)-(parseInt(C,10)+1),m=e.offsetR-(65*l+25),0>=m&&(p=p+m-25),c.css({width:f,left:p,top:v,display:"inline-block"}),o[0]&&o[0].src&&h.find(".good-thumb img").attr("src",o[0].src)}),n.addHandler("MouseLeave",function(){i()}),c.mouseleave(function(){i()})},s(document).on("mouseenter",".good-select-color li",function(){var e=s(this).find("img").attr("data-cover"),t=s(this).closest(".good-item-wrapper").find(".good-detail-img img");t.attr("src",e)}),f.find("h3").click(function(){var e=s(this).closest(".product-list-nav");e.hasClass("active")?e.find(".sort-child-list").stop(!0,!0).slideUp():e.find(".sort-child-list").stop(!0,!0).slideDown(),e.toggleClass("active")}),function(){var e,t=s("#brand-card"),i=s("#brand-favor");t.length&&s.ajax({type:"POST",url:"/product/index/getNodeContent",data:{node:t.data("node")}}).then(function(e){t.html(e)}),i.length&&(e=s("#pic-link-tpl").html(),s.ajax({type:"POST",url:"/product/index/getAdnav",data:{brandId:i.data("id")}}).then(function(t){t&&s("#brand-ad").html(o.compile(e)({picLink:t}))}))}()},,,,,,,,,function(e,t,i){var n=i(11);i(6),i(7),n.init(4)}]);
\ No newline at end of file
webpackJsonp([3],[function(e,t,i){function n(e){var t=36e5,i=6e4,n=1e3,s="",a=0,o=0,l=0,r=0;return e>1e3&&(a=Math.floor(e/t/24),o=Math.floor(e/t%24),l=Math.floor(e/i%60),r=Math.floor(e/n%60),s+=a>0?a+"天":"",s+=o>0?o+"时":"",s+=l>0?l+"分":"",s+=r>0?r+"秒":""),s}function s(){var e,t,i;for(e=0;e<f.length;e++){if(f[e].time<0)return;f[e].time-=1e3,i=n(f[e].time),i?(t=i,f[e].pre&&(t=f[e].pre+" "+t)):t="活动已结束",f[e].dom.text(t)}}function a(e){c.animate({"margin-left":10*-e+"0%"},"fast"),c.data({page:e})}function o(){var e=c.find(".good-item"),t="",i=[],n=0;if(c.length){for(e.each(function(){n%5===0&&i.push(""),i[i.length-1]+=e[n].outerHTML,n++}),c.data({max:i.length}),n=0;n<i.length;n++)t+='<div class="list-page">'+i[n]+"</div>";c.html(t)}}var l,r=i(1),d=i(2),c=r(".limit-main .good-list"),h=r(".sort-layer .full-line"),u=r(".outlets-page").data("page"),f=[];i(4),i(5),i(21),h.length&&(l=h.parent(),r(window).scroll(function(){var e=l.position().top;r(this).scrollTop()>=e?h.addClass("fixed"):h.removeClass("fixed")})),r(".time").each(function(){var e=r(this).data();e.limit&&f.push({dom:r(this),time:e.limit,pre:e.pre?e.pre:""})}),r(".good-page-btns > label").click(function(){var e=(new Date).getTime(),t=c.data(),i=t.max?t.max:1,n=t.page?t.page:0;t.time&&e-t.time<500||(c.data({time:e}),n+=r(this).hasClass("pre-page-btn")?i-1:1,n%=i,a(n))}),setInterval(s,1e3),u?r(".slide-container").slider({orient:!1}):r(".slide-container").slider({orient:!0}),o(),d(r("img.lazy"))},,,,,function(e,t,i){var n=i(1),s=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 s(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">&#xe609;</span></a><a class="next" href="javascript:;"><span class="iconfont">&#xe608;</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")&&(s(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),s=i.data("Slider"),a="object"==typeof t&&t;s||i.data("Slider",s=new e(this,a)),"string"==typeof t&&s[t]()})},n.fn.slider.Constructor=e,n.fn.slider.defaults={time:5e3,orient:!0,pagination:null}}(n)},function(e,t,i){function n(e,t){e.each(function(){v(this).closest(".attr").hasClass("checked")||v(this).removeClass("checked").html(C.unchecked)}),t.find(".checkbox").addClass("checked").html(C.checked)}function s(){k.addClass("hide"),w.removeClass("hide")}function a(){w.addClass("hide"),k.removeClass("hide"),S.children("span").removeClass("hover")}function o(e,t){var i,n=window.queryString();n[e]=t,delete n.page,i="?"+decodeURIComponent(v.param(n)),window.location.href=i}function l(){$.children(".senior-sub:eq("+p+")").addClass("hide"),z.children(".attr:eq("+p+")").removeClass("hover"),p=-1}var r,d,c,h,u,f,m,p,v=i(1),g=i(3),C={unchecked:"&#xe612;",checked:"&#xe613;"},b={up:"&#xe607;",down:"&#xe60b;"},k=v(".brand .default"),x=v("#brand-search-input"),w=v(".brand .brand-panel"),y=w.find(".attr"),I=v("#brand-more"),_=v("#brand-multi"),S=v(".brands-index"),T=v(".ud-price-range"),q=/^\d+$/,M=v(".sort-sub-wrap"),$=v(".senior-sub-wrap"),z=v(".senior-attr-wrap"),L='{{# size}}<a class="attr {{#if checked}}checked{{/if}}" href="{{href}}">{{name}}</a>{{/ size}}',j={},D=v(".filter-box .size");L=g.compile(L),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"),M.children(":eq("+t+")").addClass("hide"),void D.addClass("hide")):(e.siblings(".active").removeClass("active"),e.addClass("active"),M.children(":not(.hide)").addClass("hide"),M.children(":eq("+t+")").removeClass("hide"),void(D.data("load")||(j[i]?(D.find(".attr-content").html(j[i]),D.removeClass("hide")):v.ajax({url:"/product/search/sortSize",data:{msort:i}}).then(function(e){"array"===v.type(e)&&e.length?(j[i]=L({size:e}),D.find(".attr-content").html(j[i]),D.removeClass("hide")):D.addClass("hide")}))))}),I.length>0&&(r=I.children("em"),d=I.children(".iconfont")),_.click(function(){"none"===w.css("display")&&I.trigger("click"),s(),w.removeClass("hide").addClass("multi"),v(this).addClass("hide"),I.addClass("hide")}),I.click(function(){var e=v(this);e.hasClass("more")?(a(),r.text("更多"),d.html(b.down),x.val("").trigger("keyup")):(s(),r.text("收起"),d.html(b.up)),v(this).toggleClass("more")}),S.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()?y.removeClass("hide"):y.addClass("hide").filter("[data-index="+t+"]").removeClass("hide")},120)}),x.keyup(function(){var e=v(this).val().toLowerCase();""===e?y.removeClass("hide"):y.addClass("hide").filter('[data-key*="'+e+'"]').removeClass("hide")}),v("#brand-multi-ok").click(function(){var e=[];v(this).hasClass("dis")||(w.find("span.checked").each(function(){e.push(v(this).data("id"))}),o("brand",e.join(",")))}),v(".multi-select-cancel").click(function(){var e=v(this).closest(".multi");e.hasClass("brand-panel")&&(_.removeClass("hide"),I.trigger("click"),I.removeClass("hide"),x.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(C.checked):t.html(C.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()}),T.length>0&&(c=T.find(".limit"),h=c.filter(".min"),u=c.filter(".max"),f=T.find(".price-sure"),c.keyup(function(){var e,t,i,n=v.trim(v(this).val()),s=q.test(n);s||(e=parseInt(n,10),v(this).val(isNaN(e)?"":e)),t=v.trim(h.val()),i=v.trim(u.val()),""!==t||""!==i?f.removeClass("hide"):f.addClass("hide")}),f.click(function(){var e,t=v.trim(h.val()),i=v.trim(u.val());""!==t&&""!==i&&+t>+i&&(e=i,i=t,t=e),o("price",t+","+i)})),z.on("mouseenter",".attr",function(){var e=v(this),t=e.index();e.hasClass("no-sub")||(e.addClass("hover").siblings().removeClass("hover"),$.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")||(p=t,m=setTimeout(function(){l()},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"))}),o(t.data("attr"),i.join(",")))}).on("mouseenter",function(){clearTimeout(m)}).on("mouseleave",function(){l()})},function(e,t,i){var n=i(1),s=n("#count-per-page"),a=s.next("ul"),o=200;n(document).click(function(e){n(e.target).closest(".page-count").length>0||a&&a.slideUp(o)}),s.click(function(){"none"===a.css("display")?a.slideDown(o):a.slideUp(o)})},,,function(e,t,i){function n(){this.handlers={}}var s=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,h=0,u=t,f=0,m="",p=0,v=0;switch(e.type){case"mouseenter":i=s(this),a=setTimeout(function(){o=!0,m=i.clone(),f=i.index()+1,n=f%u===0?u:f%u,h=Math.ceil(f/u),p=i.offset().left,v=c-(p+r),l.fire({type:"MouseEnter",target:i,targetWidth:r,targetHeight:d,targetX:n,targetY:h,rowWidth:u,activeIndex:f,targetDuplicate:m,offsetL:p,offsetR:v})},150);break;case"mouseleave":o||(a&&clearTimeout(a),l.fire({type:"MouseLeave"})),o=!1}}var a,o,l=new n,r=e.eq(0).width(),d=e.eq(0).height(),c=s(window).width();return e.bind({mouseenter:i,mouseleave:i}),l}},function(e,t,i){var n,s=i(1),a=i(2),o=i(3),l=i(10),r=s(".goods-container"),d=r.find(".good-info"),c=r.find(".good-item-wrapper"),h=r.find(".good-info-main"),u=r.find(".good-select-color"),f=s(".product-list-nav");a(s("img.lazy")),t.init=function(e){function t(e,t){var i,n,s,a="",o=e.length,l=4,r=Math.ceil(o/l),d=0;for(i=0;r>i;i++)for(a+="<ul>",n=0;l>n&&(s=i*l+n,s!==o);n++)a+='<li><a target="_blank" href="'+e[i*l+n].url+t+'"><img src="'+e[i*l+n].src+'" data-cover="'+e[i*l+n].coverImg+'" /></a></li>',n===l-1&&(a+="</ul>",d++);return r>d&&(a+="</ul>"),{colorListStr:a,ulNum:r}}function i(){h.html(""),u.html(""),c.css({display:"none"})}n=null,d.unbind(),n=l(d,e),n.addHandler("MouseEnter",function(e){var n,a,o,l,d,f,m,p,v,g,C,b,k=10,x=35,w=e.target.attr("data-from")||"";o=[],e.target.find(".hideList > li").each(function(){a=s(this).data(),a.coverImg=a.src,o.push(a)}),n=t(o,w),i(),d=n.colorListStr,l=n.ulNum,h.append(e.targetDuplicate),u.append(s(d)),g=c.css("paddingLeft"),C=c.css("paddingTop"),b=r.css("paddingTop"),f=10+65*l+e.targetWidth,p=(e.targetX-1)*(e.targetWidth+k)-(parseInt(g,10)+1),v=(e.targetY-1)*(e.targetHeight+x)+parseInt(b,10)-(parseInt(C,10)+1),m=e.offsetR-(65*l+25),0>=m&&(p=p+m-25),c.css({width:f,left:p,top:v,display:"inline-block"}),o[0]&&o[0].src&&h.find(".good-thumb img").attr("src",o[0].src)}),n.addHandler("MouseLeave",function(){i()}),c.mouseleave(function(){i()})},s(document).on("mouseenter",".good-select-color li",function(){var e=s(this).find("img").attr("data-cover"),t=s(this).closest(".good-item-wrapper").find(".good-detail-img img");t.attr("src",e)}),f.find("h3").click(function(){var e=s(this).closest(".product-list-nav");e.hasClass("active")?e.find(".sort-child-list").stop(!0,!0).slideUp():e.find(".sort-child-list").stop(!0,!0).slideDown(),e.toggleClass("active")}),function(){var e,t=s("#brand-card"),i=s("#brand-favor");t.length&&s.ajax({type:"POST",url:"/product/index/getNodeContent",data:{node:t.data("node")}}).then(function(e){t.html(e)}),i.length&&(e=s("#pic-link-tpl").html(),s.ajax({type:"POST",url:"/product/index/getAdnav",data:{brandId:i.data("id")}}).then(function(t){t&&s("#brand-ad").html(o.compile(e)({picLink:t}))}))}()},,,,,,,,,,function(e,t,i){var n=i(11);i(6),i(7),n.init(4)}]);
\ No newline at end of file
... ...
webpackJsonp([1],[function(t,e,i){function n(t){var e,i,n,s;s=t.attr("urlLocation"),e="/product/sale/goods",n=t.parent().parent(".sale-box").find(".goods"),i=e+s,a.ajax({type:"GET",url:i,data:""}).then(function(e){n.html(""),n.append(e),r(t.closest(".sale-box").find(".lazy"))})}function s(t){var e=36e5,i=6e4,n=1e3,s="",o=0,a=0,r=0,l=0;return t>1e3&&(o=Math.floor(t/e/24),a=Math.floor(t/e%24),r=Math.floor(t/i%60),l=Math.floor(t/n%60),s+=o>0?o+"天":"",s+=a>0?a+"时":"",s+=r>0?r+"分":"",s+=l>0?l+"秒":""),s}function o(){var t,e,i;for(t=0;t<c.length;t++){if(c[t].time<0)return;c[t].time-=1e3,i=s(c[t].time),i?(e=i,c[t].pre&&(e=c[t].pre+" "+e)):e="活动已结束",a(".time-calculate").removeClass("hidden"),a(".time-calculate").text(i)}}var a=i(1),r=i(2),l=i(11),c=[],d=a(".sale-box"),h=a(".sale-nav li");i(5),i(21),i(4),i(6),i(7),l.init(4),r(a("img.lazy")),a(".slide-container").slider(),h.on("click",function(){a(this).siblings(".active").removeClass("active"),a(this).addClass("active"),n(a(this))}),function(){d.each(function(){var t=a(this).find(h).eq(0);n(t)})}(),".sale-discount-page".length>0&&(a(".time-calculate").each(function(){var t=a(this).attr("data");t&&c.push({dom:a(this),time:t})}),setInterval(o,1e3))},,,,function(t,e,i){var n=i(1),s=i(2);!function(){var t=function(t,e){this.$element=n(t),this.options=n.extend({},n.fn.slider.defaults,e),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(){if(this.$element){if(this.len<=1)return void s(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 t='<div class="slide-switch"><a class="prev" href="javascript:;"><span class="iconfont">&#xe609;</span></a><a class="next" href="javascript:;"><span class="iconfont">&#xe608;</span></a></div>';this.$element.find(".slide-switch").length>0||this.$element.append(t)},_createPage:function(){var t='<div class="slide-pagination"><div class="slide-pagination-inner"><div class="slide-shade"></div><div class="slide-pagination-last">',e=0;if(!(this.len<=1)){for(e=0;e<this.len;e++)t+="<span></span>";t+="</div></div></div>",this.$element.append(n(t)),this.smallItem=this.$element.find(".slide-pagination-inner 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=n(this).index(),clearInterval(t.timer),t._slideShow()}).on("mouseleave",function(){t._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 t=this.bigItem.eq(this.index).find("img.lazy");t.attr("src")!==t.data("original")&&(s(t,{event:"sporty"}),t.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 t=this;clearInterval(this.timer),this.timer=setInterval(function(){t._nextSlide()},this.options.time)}},n.fn.slider=function(e){return this.each(function(){var i=n(this),s=i.data("Slider"),o="object"==typeof e&&e;s||i.data("Slider",s=new t(this,o)),"string"==typeof e&&s[e]()})},n.fn.slider.Constructor=t,n.fn.slider.defaults={time:5e3,orient:!0,pagination:null}}(n)},,function(t,e,i){function n(t,e){t.each(function(){m(this).closest(".attr").hasClass("checked")||m(this).removeClass("checked").html(y.unchecked)}),e.find(".checkbox").addClass("checked").html(y.checked)}function s(){_.addClass("hide"),C.removeClass("hide")}function o(){C.addClass("hide"),_.removeClass("hide"),I.children("span").removeClass("hover")}function a(t,e){var i,n=window.queryString();n[t]=e,delete n.page,i="?"+decodeURIComponent(m.param(n)),window.location.href=i}function r(){O.children(".senior-sub:eq("+v+")").addClass("hide"),P.children(".attr:eq("+v+")").removeClass("hover"),v=-1}var l,c,d,h,u,f,p,v,m=i(1),g=i(3),y={unchecked:"&#xe612;",checked:"&#xe613;"},b={up:"&#xe607;",down:"&#xe60b;"},_=m(".brand .default"),x=m("#brand-search-input"),C=m(".brand .brand-panel"),w=C.find(".attr"),k=m("#brand-more"),S=m("#brand-multi"),I=m(".brands-index"),j=m(".ud-price-range"),T=/^\d+$/,E=m(".sort-sub-wrap"),O=m(".senior-sub-wrap"),P=m(".senior-attr-wrap"),q='{{# size}}<a class="attr {{#if checked}}checked{{/if}}" href="{{href}}">{{name}}</a>{{/ size}}',z={},L=m(".filter-box .size");q=g.compile(q),m(".filter-box").on("selectstart",".attr, .brands-index span",function(){return!1}),m(".sort-pre").on("click","li",function(){var t=m(this),e=t.index(),i=t.data("id");return t.hasClass("active")?(t.removeClass("active"),E.children(":eq("+e+")").addClass("hide"),void L.addClass("hide")):(t.siblings(".active").removeClass("active"),t.addClass("active"),E.children(":not(.hide)").addClass("hide"),E.children(":eq("+e+")").removeClass("hide"),void(L.data("load")||(z[i]?(L.find(".attr-content").html(z[i]),L.removeClass("hide")):m.ajax({url:"/product/search/sortSize",data:{msort:i}}).then(function(t){"array"===m.type(t)&&t.length?(z[i]=q({size:t}),L.find(".attr-content").html(z[i]),L.removeClass("hide")):L.addClass("hide")}))))}),k.length>0&&(l=k.children("em"),c=k.children(".iconfont")),S.click(function(){"none"===C.css("display")&&k.trigger("click"),s(),C.removeClass("hide").addClass("multi"),m(this).addClass("hide"),k.addClass("hide")}),k.click(function(){var t=m(this);t.hasClass("more")?(o(),l.text("更多"),c.html(b.down),x.val("").trigger("keyup")):(s(),l.text("收起"),c.html(b.up)),m(this).toggleClass("more")}),I.on("mouseenter","span",function(){var t=m(this),e=t.data("index");t.hasClass("hover")||setTimeout(function(){t.siblings("span.hover").removeClass("hover"),t.addClass("hover"),0===t.index()?w.removeClass("hide"):w.addClass("hide").filter("[data-index="+e+"]").removeClass("hide")},120)}),x.keyup(function(){var t=m(this).val().toLowerCase();""===t?w.removeClass("hide"):w.addClass("hide").filter('[data-key*="'+t+'"]').removeClass("hide")}),m("#brand-multi-ok").click(function(){var t=[];m(this).hasClass("dis")||(C.find("span.checked").each(function(){t.push(m(this).data("id"))}),a("brand",t.join(",")))}),m(".multi-select-cancel").click(function(){var t=m(this).closest(".multi");t.hasClass("brand-panel")&&(S.removeClass("hide"),k.trigger("click"),k.removeClass("hide"),x.val("").trigger("keyup"),o()),t.addClass("hide").removeClass("multi"),n(t.find(".checkbox.checked"),t.find(".attr.checked")),m(this).siblings(".multi-select-ok").addClass("dis")}),m(".check-container").on("click",".attr",function(){var t=m(this),e=t.find(".checkbox"),i=t.closest(".brand-panel, .senior-sub").find(".multi-select-ok");e.toggleClass("checked"),e.hasClass("checked")?e.html(y.checked):e.html(y.unchecked),e.hasClass("checked")||t.siblings(".attr").find(".checked").length>0?i.removeClass("dis"):i.addClass("dis")}),m(".brand, .senior").on("click",".attr > a",function(t){m(this).closest(".multi").length>0&&t.preventDefault()}),m(".filter-box").on("click","li.checked, a.checked",function(t){t.preventDefault()}),j.length>0&&(d=j.find(".limit"),h=d.filter(".min"),u=d.filter(".max"),f=j.find(".price-sure"),d.keyup(function(){var t,e,i,n=m.trim(m(this).val()),s=T.test(n);s||(t=parseInt(n,10),m(this).val(isNaN(t)?"":t)),e=m.trim(h.val()),i=m.trim(u.val()),""!==e||""!==i?f.removeClass("hide"):f.addClass("hide")}),f.click(function(){var t,e=m.trim(h.val()),i=m.trim(u.val());""!==e&&""!==i&&+e>+i&&(t=i,i=e,e=t),a("price",e+","+i)})),P.on("mouseenter",".attr",function(){var t=m(this),e=t.index();t.hasClass("no-sub")||(t.addClass("hover").siblings().removeClass("hover"),O.children(".senior-sub:eq("+e+")").removeClass("hide").siblings().addClass("hide"))}).on("mouseleave",".attr",function(){var t=m(this),e=t.index();t.hasClass("no-sub")||(v=e,p=setTimeout(function(){r()},100))}),m(".senior-sub").on("click",".multi-select",function(){m(this).closest(".senior-sub").addClass("multi")}).on("click",".multi-select-ok",function(){var t=m(this),e=t.closest(".senior-sub"),i=[];t.hasClass("dis")||(e.find("span.checked").each(function(){i.push(m(this).data("id"))}),a(e.data("attr"),i.join(",")))}).on("mouseenter",function(){clearTimeout(p)}).on("mouseleave",function(){r()})},function(t,e,i){var n=i(1),s=n("#count-per-page"),o=s.next("ul"),a=200;n(document).click(function(t){n(t.target).closest(".page-count").length>0||o&&o.slideUp(a)}),s.click(function(){"none"===o.css("display")?o.slideDown(a):o.slideUp(a)})},function(t,e){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"},s={__Index:0,list:[],get:function(t){return void 0===t?this.list:this.list[t]},fn:function(){},inherit:function(t,e){var i=s.fn;i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t,t.superclass=e.prototype,t.prototype.constructor===Object.prototype.constructor&&(t.prototype.constructor=e)},extend:function(t,e){var i;for(i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t},copy:function(t,e,i){var n,o,a;if("object"!=typeof e)return e;if(n=e.valueOf(),e!==n)return new e.constructor(n);if(e instanceof e.constructor&&e.constructor!==Object){o=t?new t:s.clone(e.constructor.prototype);for(a in e)(t||e.hasOwnProperty(a))&&(o[a]=e[a])}else{o={};for(a in e)o.hasOwnProperty(a)&&(o[a]=e[a])}if(i)for(a in i)o.hasOwnProperty(a)&&(o[a]=i[a]);return o},clone:function(t){return s.__cloneFunc.prototype=t,new s.__cloneFunc},__cloneFunc:function(){},delegate:function(t,e){var i;return e=e||window,arguments.length>2?(i=Array.prototype.slice.call(arguments,2),function(){return t.apply(e,i)}):function(){return t.call(e)}},dom:function(t,e){var i,n,s=t,o={wrap:s},a=s[0].getElementsByTagName("*"),r=a.length;for(n=0;r>n;n++)i=a[n].className,i.indexOf(e)>-1&&(i=i.split(e)[1]),i&&(o[i]=s.find(a[n]));return o},template:function(){var t,e,i,n,o=arguments;if(o.length>0&&s.isString(o[0]))if(t=o[0],2===o.length&&s.isObject(o[1]))for(e in o[1])void 0!==o[1][e]&&(i=new RegExp("({"+e+"})","g"),t=t.replace(i,o[1][e]));else for(n=1;n<o.length;n++)void 0!==o[n]&&(i=new RegExp("({["+(n-1)+"]})","g"),t=t.replace(i,o[n]));return t},__type:function(t){return null==t?String(t):n[Object.prototype.toString.call(t)]||"object"},isObject:function(t){return this.isFunction(t)||!(!t||"object"!=typeof t)},isFunction:function(t){return"function"===this.__type(t)},isArray:Array.isArray||function(t){return"array"===this.__type(t)},isNum:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},isString:function(t){return"string"===this.__type(t)},each:function(t,e,i){var n,o;if(s.isArray(t))for(n=0,o=t.length;o>n&&e.call(t[n],n,t[n],i)!==!1;n++);else for(n in t)if(e.call(t[n],n,t[n],i)===!1)break},funManager:{__loadList:{},__loadFun:function(t,e,i){t.methord&&s.isFunction(t.methord())&&(i=i||window,t.methord()(t,function(){e()},i))},load:function(t,e,i,n){n=n||0,t[n]&&s.funManager.__loadFun(t[n],function(){s.funManager.load(t,e,i,n+1)},i),e(n,i)},get:function(t){return this.__loadList[t]}},log:function(t){var e=window.console||{log:function(){}};e.log(t)},Event:{mousewheel:function(t){var e=t.originalEvent,i=e.detail?-1*e.detail:e.wheelDelta/40,n=0>i?-1:1;return{direction:n,unit:i}},__:function(t,e,i,n){var s;for(s in t)if(window[t[s].validator]){e[t[s].validator](t[s].prefix+i,n,!1);break}},add:function(t,e,i){var n=[{validator:"addEventListener",prefix:""},{validator:"attachEvent",prefix:"on"}];this.__(n,t,e,i)},remove:function(t,e,i){var n=[{validator:"removeEventListener",prefix:""},{validator:"detachEvent",prefix:"on"}];this.__(n,t,e,i)}},getUid:function(t){return s.template("me-{0}{1}-{2}",t,(new Date).getTime(),s.__Index++)},Browser:{isTouch:function(){var t=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture;return!!("ontouchstart"in window||t||window.DocumentTouch)},Prefix:function(){var t,e=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"],i=document.createElement("div");for(t in e)if(void 0!==i.style[e[t]])return s.template("-{0}-",e[t].replace("Perspective","").toLowerCase())},parseURL:function(t){var e,i,n,s,o,a=document.createElement("a");return a.href=t,{source:t,protocol:a.protocol.replace(":",""),host:a.hostname,port:a.port,query:a.search,params:function(){for(e={},i=a.search.replace(/^\?/,"").split("&"),n=i.length,s=0,o;n>s;s++)i[s]&&(o=i[s].split("="),e[o[0]]=o[1]);return e}(),file:(a.pathname.match(/\/([^\/?#]+)$/i)||[null,""])[1],hash:a.hash.replace("#",""),path:a.pathname.replace(/^([^\/])/,"/$1"),relative:(a.href.match(/tps?:\/\/[^\/]+(.+)/)||[null,""])[1],segments:a.pathname.replace(/^\//,"").split("/")}}},Array:{indexOf:function(t,e){var i;for(i=0;i<t.length;i++)if(this[i]===e)return i;return-1},remove:function(t,e){var i=this.indexOf(t,e);return i>-1&&t.splice(i,1),t}}};i=function(t){this.initialized=!1,this.registerEvent={before:[],change:[],after:[]},this.options=t,this.init(t)},i.output=function(){s.log(s.list)},i.prototype.oninit=s.fn,i.prototype.init=function(t){this.initialized=!0,this.__Uid=s.getUid("me"),this.oninit(t),s.list[this.__Uid]=this},i.prototype.destory=function(){this.initialized=!1,delete s.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(t,e){var i=this,n=i.registerEvent[t];return n&&n.push(e),n},i.prototype.off=function(t,e){var i=this,n=i.registerEvent[t],o=[];s.each(n,function(t,i){i===e&&o.push(t)}),s.each(o.reverse(),function(t,e){n.splice(e,1)})},s.assembly=i,t.exports=s},function(t,e,i){var n=i(8),s=function(t){this.__lastTime=null,this.__isStop=!1,t=n.extend(this.defaults,t),s.superclass.constructor.call(this,t)};n.inherit(s,n.assembly),s.prototype.oninit=function(){var t=this,e=t.options;return e.auto&&t.play(),t.go(e.index),this},s.prototype.go=function(t,e){var i,n,s,o,a,r,l,c,d=this,h=d.options;d.__lastTime&&(clearTimeout(d.__lastTime),d.__lastTime=null),e="undefined"==typeof e?h.index:e,i=t===e?0:t>e?1:-1,n=h.loop,o=h.length-1,a=t,t=n?t>o?t-o-1:0>t?t+o+1:t:t>o?o:0>t?0:t,s=h.index=t,r={from:e,to:t,originalto:a,direction:i};for(l in d.registerEvent)if(d.registerEvent[l].length>0)for(c in d.registerEvent[l])d.registerEvent[l].hasOwnProperty(c)&&d.registerEvent[l][c](r);s!==o||t?!d.__isStop&&h.auto&&d.play():d.__lastTime&&clearTimeout(d.__lastTime)},s.prototype.play=function(){var t=this,e=t.options;return t.__lastTime=setTimeout(function(){t.next()},1e3*e.timeout),this},s.prototype.next=function(){var t=this,e=t.options,i=e.index,n=i+e.step;t.go(n,i)},s.prototype.prev=function(){var t=this,e=t.options,i=e.index,n=i-e.step;t.go(n,i)},s.prototype.pause=function(){var t=this;t.__lastTime&&clearTimeout(t.__lastTime),t.__isStop=!0},s.prototype.resume=function(){var t=this;t.__isStop=!1,t.play()},s.prototype.defaults={index:0,timeout:5,step:1,per:1,auto:!1,loop:!1},t.exports=s},function(t,e,i){function n(){this.handlers={}}var s=i(1);n.prototype={constructor:n,addHandler:function(t,e){"undefined"==typeof this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e)},fire:function(t){var e,i;if(t.target||(t.target=this),this.handlers[t.type]instanceof Array)for(e=this.handlers[t.type],i=0;i<e.length;i++)e[i](t)},removeHandler:function(t,e){var i,n;if(this.handlers[t]instanceof Array){for(i=this.handlers[t],n=0;n<i.length&&i[n]!==e;n++);i.splice(n,1)}}},t.exports=function(t,e){function i(t){var i,n=0,h=0,u=e,f=0,p="",v=0,m=0;switch(t.type){case"mouseenter":i=s(this),o=setTimeout(function(){a=!0,p=i.clone(),f=i.index()+1,n=f%u===0?u:f%u,h=Math.ceil(f/u),v=i.offset().left,m=d-(v+l),r.fire({type:"MouseEnter",target:i,targetWidth:l,targetHeight:c,targetX:n,targetY:h,rowWidth:u,activeIndex:f,targetDuplicate:p,offsetL:v,offsetR:m})},150);break;case"mouseleave":a||(o&&clearTimeout(o),r.fire({type:"MouseLeave"})),a=!1}}var o,a,r=new n,l=t.eq(0).width(),c=t.eq(0).height(),d=s(window).width();return t.bind({mouseenter:i,mouseleave:i}),r}},function(t,e,i){var n,s=i(1),o=i(2),a=i(3),r=i(10),l=s(".goods-container"),c=l.find(".good-info"),d=l.find(".good-item-wrapper"),h=l.find(".good-info-main"),u=l.find(".good-select-color"),f=s(".product-list-nav");o(s("img.lazy")),e.init=function(t){function e(t,e){var i,n,s,o="",a=t.length,r=4,l=Math.ceil(a/r),c=0;for(i=0;l>i;i++)for(o+="<ul>",n=0;r>n&&(s=i*r+n,s!==a);n++)o+='<li><a target="_blank" href="'+t[i*r+n].url+e+'"><img src="'+t[i*r+n].src+'" data-cover="'+t[i*r+n].coverImg+'" /></a></li>',n===r-1&&(o+="</ul>",c++);return l>c&&(o+="</ul>"),{colorListStr:o,ulNum:l}}function i(){h.html(""),u.html(""),d.css({display:"none"})}n=null,c.unbind(),n=r(c,t),n.addHandler("MouseEnter",function(t){var n,o,a,r,c,f,p,v,m,g,y,b,_=10,x=35,C=t.target.attr("data-from")||"";a=[],t.target.find(".hideList > li").each(function(){o=s(this).data(),o.coverImg=o.src,a.push(o)}),n=e(a,C),i(),c=n.colorListStr,r=n.ulNum,h.append(t.targetDuplicate),u.append(s(c)),g=d.css("paddingLeft"),y=d.css("paddingTop"),b=l.css("paddingTop"),f=10+65*r+t.targetWidth,v=(t.targetX-1)*(t.targetWidth+_)-(parseInt(g,10)+1),m=(t.targetY-1)*(t.targetHeight+x)+parseInt(b,10)-(parseInt(y,10)+1),p=t.offsetR-(65*r+25),0>=p&&(v=v+p-25),d.css({width:f,left:v,top:m,display:"inline-block"}),a[0]&&a[0].src&&h.find(".good-thumb img").attr("src",a[0].src)}),n.addHandler("MouseLeave",function(){i()}),d.mouseleave(function(){i()})},s(document).on("mouseenter",".good-select-color li",function(){var t=s(this).find("img").attr("data-cover"),e=s(this).closest(".good-item-wrapper").find(".good-detail-img img");e.attr("src",t)}),f.find("h3").click(function(){var t=s(this).closest(".product-list-nav");t.hasClass("active")?t.find(".sort-child-list").stop(!0,!0).slideUp():t.find(".sort-child-list").stop(!0,!0).slideDown(),t.toggleClass("active")}),function(){var t,e=s("#brand-card"),i=s("#brand-favor");e.length&&s.ajax({type:"POST",url:"/product/index/getNodeContent",data:{node:e.data("node")}}).then(function(t){e.html(t)}),i.length&&(t=s("#pic-link-tpl").html(),s.ajax({type:"POST",url:"/product/index/getAdnav",data:{brandId:i.data("id")}}).then(function(e){e&&s("#brand-ad").html(a.compile(t)({picLink:e}))}))}()},,,,,,,,,,function(t,e,i){var n,s,o=i(9),a=i(1),r=a(".sale-list-banner"),l=r.find("li"),c=0,d="",h="",u=!0;for(n=0;n<l.length;n++)d+=0===n?'<span class="active"></span>':"<span></span>";h='<div class="sale-list-pagation"><div>'+d+"</div></div>",l.length>1&&r.append(a(h)),s=new o({length:l.length,loop:!0,auto:!0,timeout:2,index:0}),l.length>1&&s.on("change",function(t){u&&(u=!1,c++,a(".sale-list-pagation").find("span").removeClass("active"),l.eq(t.from).animate({opacity:0},300),l.eq(t.to).css({zIndex:c}).animate({opacity:1},300,function(){u=!0}),a(".sale-list-pagation").find("span").eq(t.to).addClass("active"))}),r.hover(function(){u&&s.pause()},function(){s.resume()}),a(".sale-list-pagation span").click(function(){var t=a(this).index();u&&s.go(t)}),s.init()}]);
\ No newline at end of file
webpackJsonp([1],[function(t,e,i){function n(t){var e,i,n,s;s=t.attr("urlLocation"),e="/product/sale/goods",n=t.parent().parent(".sale-box").find(".goods"),i=e+s,a.ajax({type:"GET",url:i,data:""}).then(function(e){n.html(""),n.append(e),r(t.closest(".sale-box").find(".lazy"))})}function s(t){var e=36e5,i=6e4,n=1e3,s="",o=0,a=0,r=0,l=0;return t>1e3&&(o=Math.floor(t/e/24),a=Math.floor(t/e%24),r=Math.floor(t/i%60),l=Math.floor(t/n%60),s+=o>0?o+"天":"",s+=a>0?a+"时":"",s+=r>0?r+"分":"",s+=l>0?l+"秒":""),s}function o(){var t,e,i;for(t=0;t<c.length;t++){if(c[t].time<0)return;c[t].time-=1e3,i=s(c[t].time),i?(e=i,c[t].pre&&(e=c[t].pre+" "+e)):e="活动已结束",a(".time-calculate").removeClass("hidden"),a(".time-calculate").text(i)}}var a=i(1),r=i(2),l=i(11),c=[],d=a(".sale-box"),h=a(".sale-nav li");i(4),i(22),i(5),i(6),i(7),l.init(4),r(a("img.lazy")),a(".slide-container").slider(),h.on("click",function(){a(this).siblings(".active").removeClass("active"),a(this).addClass("active"),n(a(this))}),function(){d.each(function(){var t=a(this).find(h).eq(0);n(t)})}(),".sale-discount-page".length>0&&(a(".time-calculate").each(function(){var t=a(this).attr("data");t&&c.push({dom:a(this),time:t})}),setInterval(o,1e3))},,,,,function(t,e,i){var n=i(1),s=i(2);!function(){var t=function(t,e){this.$element=n(t),this.options=n.extend({},n.fn.slider.defaults,e),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(){if(this.$element){if(this.len<=1)return void s(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 t='<div class="slide-switch"><a class="prev" href="javascript:;"><span class="iconfont">&#xe609;</span></a><a class="next" href="javascript:;"><span class="iconfont">&#xe608;</span></a></div>';this.$element.find(".slide-switch").length>0||this.$element.append(t)},_createPage:function(){var t='<div class="slide-pagination"><div class="slide-pagination-inner"><div class="slide-shade"></div><div class="slide-pagination-last">',e=0;if(!(this.len<=1)){for(e=0;e<this.len;e++)t+="<span></span>";t+="</div></div></div>",this.$element.append(n(t)),this.smallItem=this.$element.find(".slide-pagination-inner 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=n(this).index(),clearInterval(t.timer),t._slideShow()}).on("mouseleave",function(){t._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 t=this.bigItem.eq(this.index).find("img.lazy");t.attr("src")!==t.data("original")&&(s(t,{event:"sporty"}),t.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 t=this;clearInterval(this.timer),this.timer=setInterval(function(){t._nextSlide()},this.options.time)}},n.fn.slider=function(e){return this.each(function(){var i=n(this),s=i.data("Slider"),o="object"==typeof e&&e;s||i.data("Slider",s=new t(this,o)),"string"==typeof e&&s[e]()})},n.fn.slider.Constructor=t,n.fn.slider.defaults={time:5e3,orient:!0,pagination:null}}(n)},function(t,e,i){function n(t,e){t.each(function(){m(this).closest(".attr").hasClass("checked")||m(this).removeClass("checked").html(y.unchecked)}),e.find(".checkbox").addClass("checked").html(y.checked)}function s(){_.addClass("hide"),C.removeClass("hide")}function o(){C.addClass("hide"),_.removeClass("hide"),I.children("span").removeClass("hover")}function a(t,e){var i,n=window.queryString();n[t]=e,delete n.page,i="?"+decodeURIComponent(m.param(n)),window.location.href=i}function r(){O.children(".senior-sub:eq("+v+")").addClass("hide"),P.children(".attr:eq("+v+")").removeClass("hover"),v=-1}var l,c,d,h,u,f,p,v,m=i(1),g=i(3),y={unchecked:"&#xe612;",checked:"&#xe613;"},b={up:"&#xe607;",down:"&#xe60b;"},_=m(".brand .default"),x=m("#brand-search-input"),C=m(".brand .brand-panel"),w=C.find(".attr"),k=m("#brand-more"),S=m("#brand-multi"),I=m(".brands-index"),j=m(".ud-price-range"),T=/^\d+$/,E=m(".sort-sub-wrap"),O=m(".senior-sub-wrap"),P=m(".senior-attr-wrap"),q='{{# size}}<a class="attr {{#if checked}}checked{{/if}}" href="{{href}}">{{name}}</a>{{/ size}}',z={},L=m(".filter-box .size");q=g.compile(q),m(".filter-box").on("selectstart",".attr, .brands-index span",function(){return!1}),m(".sort-pre").on("click","li",function(){var t=m(this),e=t.index(),i=t.data("id");return t.hasClass("active")?(t.removeClass("active"),E.children(":eq("+e+")").addClass("hide"),void L.addClass("hide")):(t.siblings(".active").removeClass("active"),t.addClass("active"),E.children(":not(.hide)").addClass("hide"),E.children(":eq("+e+")").removeClass("hide"),void(L.data("load")||(z[i]?(L.find(".attr-content").html(z[i]),L.removeClass("hide")):m.ajax({url:"/product/search/sortSize",data:{msort:i}}).then(function(t){"array"===m.type(t)&&t.length?(z[i]=q({size:t}),L.find(".attr-content").html(z[i]),L.removeClass("hide")):L.addClass("hide")}))))}),k.length>0&&(l=k.children("em"),c=k.children(".iconfont")),S.click(function(){"none"===C.css("display")&&k.trigger("click"),s(),C.removeClass("hide").addClass("multi"),m(this).addClass("hide"),k.addClass("hide")}),k.click(function(){var t=m(this);t.hasClass("more")?(o(),l.text("更多"),c.html(b.down),x.val("").trigger("keyup")):(s(),l.text("收起"),c.html(b.up)),m(this).toggleClass("more")}),I.on("mouseenter","span",function(){var t=m(this),e=t.data("index");t.hasClass("hover")||setTimeout(function(){t.siblings("span.hover").removeClass("hover"),t.addClass("hover"),0===t.index()?w.removeClass("hide"):w.addClass("hide").filter("[data-index="+e+"]").removeClass("hide")},120)}),x.keyup(function(){var t=m(this).val().toLowerCase();""===t?w.removeClass("hide"):w.addClass("hide").filter('[data-key*="'+t+'"]').removeClass("hide")}),m("#brand-multi-ok").click(function(){var t=[];m(this).hasClass("dis")||(C.find("span.checked").each(function(){t.push(m(this).data("id"))}),a("brand",t.join(",")))}),m(".multi-select-cancel").click(function(){var t=m(this).closest(".multi");t.hasClass("brand-panel")&&(S.removeClass("hide"),k.trigger("click"),k.removeClass("hide"),x.val("").trigger("keyup"),o()),t.addClass("hide").removeClass("multi"),n(t.find(".checkbox.checked"),t.find(".attr.checked")),m(this).siblings(".multi-select-ok").addClass("dis")}),m(".check-container").on("click",".attr",function(){var t=m(this),e=t.find(".checkbox"),i=t.closest(".brand-panel, .senior-sub").find(".multi-select-ok");e.toggleClass("checked"),e.hasClass("checked")?e.html(y.checked):e.html(y.unchecked),e.hasClass("checked")||t.siblings(".attr").find(".checked").length>0?i.removeClass("dis"):i.addClass("dis")}),m(".brand, .senior").on("click",".attr > a",function(t){m(this).closest(".multi").length>0&&t.preventDefault()}),m(".filter-box").on("click","li.checked, a.checked",function(t){t.preventDefault()}),j.length>0&&(d=j.find(".limit"),h=d.filter(".min"),u=d.filter(".max"),f=j.find(".price-sure"),d.keyup(function(){var t,e,i,n=m.trim(m(this).val()),s=T.test(n);s||(t=parseInt(n,10),m(this).val(isNaN(t)?"":t)),e=m.trim(h.val()),i=m.trim(u.val()),""!==e||""!==i?f.removeClass("hide"):f.addClass("hide")}),f.click(function(){var t,e=m.trim(h.val()),i=m.trim(u.val());""!==e&&""!==i&&+e>+i&&(t=i,i=e,e=t),a("price",e+","+i)})),P.on("mouseenter",".attr",function(){var t=m(this),e=t.index();t.hasClass("no-sub")||(t.addClass("hover").siblings().removeClass("hover"),O.children(".senior-sub:eq("+e+")").removeClass("hide").siblings().addClass("hide"))}).on("mouseleave",".attr",function(){var t=m(this),e=t.index();t.hasClass("no-sub")||(v=e,p=setTimeout(function(){r()},100))}),m(".senior-sub").on("click",".multi-select",function(){m(this).closest(".senior-sub").addClass("multi")}).on("click",".multi-select-ok",function(){var t=m(this),e=t.closest(".senior-sub"),i=[];t.hasClass("dis")||(e.find("span.checked").each(function(){i.push(m(this).data("id"))}),a(e.data("attr"),i.join(",")))}).on("mouseenter",function(){clearTimeout(p)}).on("mouseleave",function(){r()})},function(t,e,i){var n=i(1),s=n("#count-per-page"),o=s.next("ul"),a=200;n(document).click(function(t){n(t.target).closest(".page-count").length>0||o&&o.slideUp(a)}),s.click(function(){"none"===o.css("display")?o.slideDown(a):o.slideUp(a)})},function(t,e){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"},s={__Index:0,list:[],get:function(t){return void 0===t?this.list:this.list[t]},fn:function(){},inherit:function(t,e){var i=s.fn;i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t,t.superclass=e.prototype,t.prototype.constructor===Object.prototype.constructor&&(t.prototype.constructor=e)},extend:function(t,e){var i;for(i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t},copy:function(t,e,i){var n,o,a;if("object"!=typeof e)return e;if(n=e.valueOf(),e!==n)return new e.constructor(n);if(e instanceof e.constructor&&e.constructor!==Object){o=t?new t:s.clone(e.constructor.prototype);for(a in e)(t||e.hasOwnProperty(a))&&(o[a]=e[a])}else{o={};for(a in e)o.hasOwnProperty(a)&&(o[a]=e[a])}if(i)for(a in i)o.hasOwnProperty(a)&&(o[a]=i[a]);return o},clone:function(t){return s.__cloneFunc.prototype=t,new s.__cloneFunc},__cloneFunc:function(){},delegate:function(t,e){var i;return e=e||window,arguments.length>2?(i=Array.prototype.slice.call(arguments,2),function(){return t.apply(e,i)}):function(){return t.call(e)}},dom:function(t,e){var i,n,s=t,o={wrap:s},a=s[0].getElementsByTagName("*"),r=a.length;for(n=0;r>n;n++)i=a[n].className,i.indexOf(e)>-1&&(i=i.split(e)[1]),i&&(o[i]=s.find(a[n]));return o},template:function(){var t,e,i,n,o=arguments;if(o.length>0&&s.isString(o[0]))if(t=o[0],2===o.length&&s.isObject(o[1]))for(e in o[1])void 0!==o[1][e]&&(i=new RegExp("({"+e+"})","g"),t=t.replace(i,o[1][e]));else for(n=1;n<o.length;n++)void 0!==o[n]&&(i=new RegExp("({["+(n-1)+"]})","g"),t=t.replace(i,o[n]));return t},__type:function(t){return null==t?String(t):n[Object.prototype.toString.call(t)]||"object"},isObject:function(t){return this.isFunction(t)||!(!t||"object"!=typeof t)},isFunction:function(t){return"function"===this.__type(t)},isArray:Array.isArray||function(t){return"array"===this.__type(t)},isNum:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},isString:function(t){return"string"===this.__type(t)},each:function(t,e,i){var n,o;if(s.isArray(t))for(n=0,o=t.length;o>n&&e.call(t[n],n,t[n],i)!==!1;n++);else for(n in t)if(e.call(t[n],n,t[n],i)===!1)break},funManager:{__loadList:{},__loadFun:function(t,e,i){t.methord&&s.isFunction(t.methord())&&(i=i||window,t.methord()(t,function(){e()},i))},load:function(t,e,i,n){n=n||0,t[n]&&s.funManager.__loadFun(t[n],function(){s.funManager.load(t,e,i,n+1)},i),e(n,i)},get:function(t){return this.__loadList[t]}},log:function(t){var e=window.console||{log:function(){}};e.log(t)},Event:{mousewheel:function(t){var e=t.originalEvent,i=e.detail?-1*e.detail:e.wheelDelta/40,n=0>i?-1:1;return{direction:n,unit:i}},__:function(t,e,i,n){var s;for(s in t)if(window[t[s].validator]){e[t[s].validator](t[s].prefix+i,n,!1);break}},add:function(t,e,i){var n=[{validator:"addEventListener",prefix:""},{validator:"attachEvent",prefix:"on"}];this.__(n,t,e,i)},remove:function(t,e,i){var n=[{validator:"removeEventListener",prefix:""},{validator:"detachEvent",prefix:"on"}];this.__(n,t,e,i)}},getUid:function(t){return s.template("me-{0}{1}-{2}",t,(new Date).getTime(),s.__Index++)},Browser:{isTouch:function(){var t=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture;return!!("ontouchstart"in window||t||window.DocumentTouch)},Prefix:function(){var t,e=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"],i=document.createElement("div");for(t in e)if(void 0!==i.style[e[t]])return s.template("-{0}-",e[t].replace("Perspective","").toLowerCase())},parseURL:function(t){var e,i,n,s,o,a=document.createElement("a");return a.href=t,{source:t,protocol:a.protocol.replace(":",""),host:a.hostname,port:a.port,query:a.search,params:function(){for(e={},i=a.search.replace(/^\?/,"").split("&"),n=i.length,s=0,o;n>s;s++)i[s]&&(o=i[s].split("="),e[o[0]]=o[1]);return e}(),file:(a.pathname.match(/\/([^\/?#]+)$/i)||[null,""])[1],hash:a.hash.replace("#",""),path:a.pathname.replace(/^([^\/])/,"/$1"),relative:(a.href.match(/tps?:\/\/[^\/]+(.+)/)||[null,""])[1],segments:a.pathname.replace(/^\//,"").split("/")}}},Array:{indexOf:function(t,e){var i;for(i=0;i<t.length;i++)if(this[i]===e)return i;return-1},remove:function(t,e){var i=this.indexOf(t,e);return i>-1&&t.splice(i,1),t}}};i=function(t){this.initialized=!1,this.registerEvent={before:[],change:[],after:[]},this.options=t,this.init(t)},i.output=function(){s.log(s.list)},i.prototype.oninit=s.fn,i.prototype.init=function(t){this.initialized=!0,this.__Uid=s.getUid("me"),this.oninit(t),s.list[this.__Uid]=this},i.prototype.destory=function(){this.initialized=!1,delete s.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(t,e){var i=this,n=i.registerEvent[t];return n&&n.push(e),n},i.prototype.off=function(t,e){var i=this,n=i.registerEvent[t],o=[];s.each(n,function(t,i){i===e&&o.push(t)}),s.each(o.reverse(),function(t,e){n.splice(e,1)})},s.assembly=i,t.exports=s},function(t,e,i){var n=i(8),s=function(t){this.__lastTime=null,this.__isStop=!1,t=n.extend(this.defaults,t),s.superclass.constructor.call(this,t)};n.inherit(s,n.assembly),s.prototype.oninit=function(){var t=this,e=t.options;return e.auto&&t.play(),t.go(e.index),this},s.prototype.go=function(t,e){var i,n,s,o,a,r,l,c,d=this,h=d.options;d.__lastTime&&(clearTimeout(d.__lastTime),d.__lastTime=null),e="undefined"==typeof e?h.index:e,i=t===e?0:t>e?1:-1,n=h.loop,o=h.length-1,a=t,t=n?t>o?t-o-1:0>t?t+o+1:t:t>o?o:0>t?0:t,s=h.index=t,r={from:e,to:t,originalto:a,direction:i};for(l in d.registerEvent)if(d.registerEvent[l].length>0)for(c in d.registerEvent[l])d.registerEvent[l].hasOwnProperty(c)&&d.registerEvent[l][c](r);s!==o||t?!d.__isStop&&h.auto&&d.play():d.__lastTime&&clearTimeout(d.__lastTime)},s.prototype.play=function(){var t=this,e=t.options;return t.__lastTime=setTimeout(function(){t.next()},1e3*e.timeout),this},s.prototype.next=function(){var t=this,e=t.options,i=e.index,n=i+e.step;t.go(n,i)},s.prototype.prev=function(){var t=this,e=t.options,i=e.index,n=i-e.step;t.go(n,i)},s.prototype.pause=function(){var t=this;t.__lastTime&&clearTimeout(t.__lastTime),t.__isStop=!0},s.prototype.resume=function(){var t=this;t.__isStop=!1,t.play()},s.prototype.defaults={index:0,timeout:5,step:1,per:1,auto:!1,loop:!1},t.exports=s},function(t,e,i){function n(){this.handlers={}}var s=i(1);n.prototype={constructor:n,addHandler:function(t,e){"undefined"==typeof this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e)},fire:function(t){var e,i;if(t.target||(t.target=this),this.handlers[t.type]instanceof Array)for(e=this.handlers[t.type],i=0;i<e.length;i++)e[i](t)},removeHandler:function(t,e){var i,n;if(this.handlers[t]instanceof Array){for(i=this.handlers[t],n=0;n<i.length&&i[n]!==e;n++);i.splice(n,1)}}},t.exports=function(t,e){function i(t){var i,n=0,h=0,u=e,f=0,p="",v=0,m=0;switch(t.type){case"mouseenter":i=s(this),o=setTimeout(function(){a=!0,p=i.clone(),f=i.index()+1,n=f%u===0?u:f%u,h=Math.ceil(f/u),v=i.offset().left,m=d-(v+l),r.fire({type:"MouseEnter",target:i,targetWidth:l,targetHeight:c,targetX:n,targetY:h,rowWidth:u,activeIndex:f,targetDuplicate:p,offsetL:v,offsetR:m})},150);break;case"mouseleave":a||(o&&clearTimeout(o),r.fire({type:"MouseLeave"})),a=!1}}var o,a,r=new n,l=t.eq(0).width(),c=t.eq(0).height(),d=s(window).width();return t.bind({mouseenter:i,mouseleave:i}),r}},function(t,e,i){var n,s=i(1),o=i(2),a=i(3),r=i(10),l=s(".goods-container"),c=l.find(".good-info"),d=l.find(".good-item-wrapper"),h=l.find(".good-info-main"),u=l.find(".good-select-color"),f=s(".product-list-nav");o(s("img.lazy")),e.init=function(t){function e(t,e){var i,n,s,o="",a=t.length,r=4,l=Math.ceil(a/r),c=0;for(i=0;l>i;i++)for(o+="<ul>",n=0;r>n&&(s=i*r+n,s!==a);n++)o+='<li><a target="_blank" href="'+t[i*r+n].url+e+'"><img src="'+t[i*r+n].src+'" data-cover="'+t[i*r+n].coverImg+'" /></a></li>',n===r-1&&(o+="</ul>",c++);return l>c&&(o+="</ul>"),{colorListStr:o,ulNum:l}}function i(){h.html(""),u.html(""),d.css({display:"none"})}n=null,c.unbind(),n=r(c,t),n.addHandler("MouseEnter",function(t){var n,o,a,r,c,f,p,v,m,g,y,b,_=10,x=35,C=t.target.attr("data-from")||"";a=[],t.target.find(".hideList > li").each(function(){o=s(this).data(),o.coverImg=o.src,a.push(o)}),n=e(a,C),i(),c=n.colorListStr,r=n.ulNum,h.append(t.targetDuplicate),u.append(s(c)),g=d.css("paddingLeft"),y=d.css("paddingTop"),b=l.css("paddingTop"),f=10+65*r+t.targetWidth,v=(t.targetX-1)*(t.targetWidth+_)-(parseInt(g,10)+1),m=(t.targetY-1)*(t.targetHeight+x)+parseInt(b,10)-(parseInt(y,10)+1),p=t.offsetR-(65*r+25),0>=p&&(v=v+p-25),d.css({width:f,left:v,top:m,display:"inline-block"}),a[0]&&a[0].src&&h.find(".good-thumb img").attr("src",a[0].src)}),n.addHandler("MouseLeave",function(){i()}),d.mouseleave(function(){i()})},s(document).on("mouseenter",".good-select-color li",function(){var t=s(this).find("img").attr("data-cover"),e=s(this).closest(".good-item-wrapper").find(".good-detail-img img");e.attr("src",t)}),f.find("h3").click(function(){var t=s(this).closest(".product-list-nav");t.hasClass("active")?t.find(".sort-child-list").stop(!0,!0).slideUp():t.find(".sort-child-list").stop(!0,!0).slideDown(),t.toggleClass("active")}),function(){var t,e=s("#brand-card"),i=s("#brand-favor");e.length&&s.ajax({type:"POST",url:"/product/index/getNodeContent",data:{node:e.data("node")}}).then(function(t){e.html(t)}),i.length&&(t=s("#pic-link-tpl").html(),s.ajax({type:"POST",url:"/product/index/getAdnav",data:{brandId:i.data("id")}}).then(function(e){e&&s("#brand-ad").html(a.compile(t)({picLink:e}))}))}()},,,,,,,,,,,function(t,e,i){var n,s,o=i(9),a=i(1),r=a(".sale-list-banner"),l=r.find("li"),c=0,d="",h="",u=!0;for(n=0;n<l.length;n++)d+=0===n?'<span class="active"></span>':"<span></span>";h='<div class="sale-list-pagation"><div>'+d+"</div></div>",l.length>1&&r.append(a(h)),s=new o({length:l.length,loop:!0,auto:!0,timeout:2,index:0}),l.length>1&&s.on("change",function(t){u&&(u=!1,c++,a(".sale-list-pagation").find("span").removeClass("active"),l.eq(t.from).animate({opacity:0},300),l.eq(t.to).css({zIndex:c}).animate({opacity:1},300,function(){u=!0}),a(".sale-list-pagation").find("span").eq(t.to).addClass("active"))}),r.hover(function(){u&&s.pause()},function(){s.resume()}),a(".sale-list-pagation span").click(function(){var t=a(this).index();u&&s.go(t)}),s.init()}]);
\ No newline at end of file
... ...