Authored by yyq

Merge branch 'release/4.6'

@@ -85,14 +85,18 @@ exports.getOutletsIndexData = (params, channel) => { @@ -85,14 +85,18 @@ exports.getOutletsIndexData = (params, channel) => {
85 return finalResult; 85 return finalResult;
86 } 86 }
87 87
  88 +
88 // 获取底部商品数据 89 // 获取底部商品数据
  90 + if (!params.msort || !params.misort) {
  91 + Object.assign(
  92 + params,
  93 + {msort: _.uniq(finalResult.goodsBoard.goodsMenu.msort).join()}
  94 + );
  95 + }
89 return api.all([ 96 return api.all([
90 outletsApi.getOutletsGoodsList(Object.assign( 97 outletsApi.getOutletsGoodsList(Object.assign(
91 params, 98 params,
92 - {limit: params.limit || '100', channel: channel, method: 'app.search.category',  
93 - msort: finalResult.goodsBoard.goodsMenu.msort.join(','),  
94 - misort: finalResult.goodsBoard.goodsMenu.misort.join(',')  
95 - } 99 + {limit: params.limit || '100', channel: channel, method: 'app.search.category'}
96 )) 100 ))
97 ]).then(data => { 101 ]).then(data => {
98 // 处理底部商品数据 102 // 处理底部商品数据
@@ -180,13 +184,16 @@ exports.getOutletsChannelData = (params, channel) => { @@ -180,13 +184,16 @@ exports.getOutletsChannelData = (params, channel) => {
180 } 184 }
181 185
182 // 获取底部商品数据 186 // 获取底部商品数据
  187 + if (!params.msort || !params.misort) {
  188 + Object.assign(
  189 + params,
  190 + {msort: _.uniq(channelData.goodsBoard.goodsMenu.msort).join()}
  191 + );
  192 + }
183 return api.all([ 193 return api.all([
184 outletsApi.getOutletsGoodsList(Object.assign( 194 outletsApi.getOutletsGoodsList(Object.assign(
185 params, 195 params,
186 - {limit: params.limit || '100', channel: channel, method: 'app.search.category',  
187 - msort: channelData.goodsBoard.goodsMenu.msort.join(),  
188 - misort: channelData.goodsBoard.goodsMenu.misort.join()  
189 - } 196 + {limit: params.limit || '100', channel: channel, method: 'app.search.category'}
190 )) 197 ))
191 ]).then(data => { 198 ]).then(data => {
192 if (data[0].code === 200) { 199 if (data[0].code === 200) {
@@ -86,27 +86,19 @@ exports.getSaleGoodsData = (params) => { @@ -86,27 +86,19 @@ exports.getSaleGoodsData = (params) => {
86 86
87 switch (userInfo.curLevel) { 87 switch (userInfo.curLevel) {
88 case '1': 88 case '1':
89 - finalResult.goods[key] = {  
90 - salePrice: value.vip1Price,  
91 - vip1: true  
92 - }; 89 + finalResult.goods[key].salePrice = value.vip1_price;
  90 + finalResult.goods[key].vip1 = true;
93 break; 91 break;
94 case '2': 92 case '2':
95 - finalResult.goods[key] = {  
96 - salePrice: value.vip2Price,  
97 - vip2: true  
98 - }; 93 + finalResult.goods[key].salePrice = value.vip2_price;
  94 + finalResult.goods[key].vip2 = true;
99 break; 95 break;
100 case '3': 96 case '3':
101 - finalResult.goods[key] = {  
102 - salePrice: value.vip3Price,  
103 - vip3: true  
104 - }; 97 + finalResult.goods[key].salePrice = value.vip3_price;
  98 + finalResult.goods[key].vip3 = true;
105 break; 99 break;
106 default: 100 default:
107 - finalResult.goods[key] = {  
108 - vip: true  
109 - }; 101 + finalResult.goods[key].vip = true;
110 delete finalResult.goods[key].salesPrice; 102 delete finalResult.goods[key].salesPrice;
111 break; 103 break;
112 } 104 }
@@ -300,6 +292,11 @@ exports.getSaleOthersData = (params, channel) => { @@ -300,6 +292,11 @@ exports.getSaleOthersData = (params, channel) => {
300 // 获取焦点图数据 292 // 获取焦点图数据
301 if (result[2].code === 200) { 293 if (result[2].code === 200) {
302 finalResult.topBanner = saleHandler.handleSaleBannerData(result[2].data); 294 finalResult.topBanner = saleHandler.handleSaleBannerData(result[2].data);
  295 + if (params.saleType !== '2') {
  296 + _.forEach(finalResult.topBanner.list, (value, key) => {
  297 + delete finalResult.topBanner.list[key].href;
  298 + });
  299 + }
303 } else { 300 } else {
304 logger.error('content code api code no 200'); 301 logger.error('content code api code no 200');
305 } 302 }
@@ -327,27 +324,19 @@ exports.getSaleOthersData = (params, channel) => { @@ -327,27 +324,19 @@ exports.getSaleOthersData = (params, channel) => {
327 324
328 switch (userInfo.curLevel) { 325 switch (userInfo.curLevel) {
329 case '1': 326 case '1':
330 - finalResult.goods[key] = {  
331 - salePrice: value.vip1_price,  
332 - vip1: true  
333 - }; 327 + finalResult.goods[key].salePrice = value.vip1_price;
  328 + finalResult.goods[key].vip1 = true;
334 break; 329 break;
335 case '2': 330 case '2':
336 - finalResult.goods[key] = {  
337 - salePrice: value.vip2_price,  
338 - vip2: true  
339 - }; 331 + finalResult.goods[key].salePrice = value.vip2_price;
  332 + finalResult.goods[key].vip2 = true;
340 break; 333 break;
341 case '3': 334 case '3':
342 - finalResult.goods[key] = {  
343 - salePrice: value.vip3_price,  
344 - vip3: true  
345 - }; 335 + finalResult.goods[key].salePrice = value.vip3_price;
  336 + finalResult.goods[key].vip3 = true;
346 break; 337 break;
347 default: 338 default:
348 - finalResult.goods[key] = {  
349 - vip: true  
350 - }; 339 + finalResult.goods[key].vip = true;
351 delete finalResult.goods[key].salesPrice; 340 delete finalResult.goods[key].salesPrice;
352 break; 341 break;
353 } 342 }
@@ -357,7 +346,7 @@ exports.getSaleOthersData = (params, channel) => { @@ -357,7 +346,7 @@ exports.getSaleOthersData = (params, channel) => {
357 logger.error('user api code no 200 or no vip category'); 346 logger.error('user api code no 200 or no vip category');
358 } 347 }
359 } else { 348 } else {
360 - logger.error('no user info get from api'); 349 + logger.info('no user info get from api');
361 } 350 }
362 351
363 return finalResult; 352 return finalResult;
@@ -450,6 +439,9 @@ exports.getSalebreakingYardsData = (params, channel) => { @@ -450,6 +439,9 @@ exports.getSalebreakingYardsData = (params, channel) => {
450 // 处理 banner 数据 439 // 处理 banner 数据
451 if (result[1].code === 200) { 440 if (result[1].code === 200) {
452 finalResult.topBanner = saleHandler.handleSaleBannerData(result[1].data); 441 finalResult.topBanner = saleHandler.handleSaleBannerData(result[1].data);
  442 + _.forEach(finalResult.topBanner.list, (value, key) => {
  443 + delete finalResult.topBanner.list[key].href;
  444 + });
453 } else { 445 } else {
454 logger.error('content code api code no 200'); 446 logger.error('content code api code no 200');
455 } 447 }
@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
12 <div class="time"><span class="time-span"><span class="iconfont">&#xe60a;</span>{{time}}</span></div> 12 <div class="time"><span class="time-span"><span class="iconfont">&#xe60a;</span>{{time}}</span></div>
13 </div> 13 </div>
14 <div class="detail"> 14 <div class="detail">
15 - <img class="brand pull-left" src="{{image brand 150 70}}"> 15 + <img class="brand pull-left" src="{{image brand 185 86}}">
16 <div class="text"> 16 <div class="text">
17 <div class="discount"> 17 <div class="discount">
18 <span class="num">{{discount}}</span> 18 <span class="num">{{discount}}</span>
@@ -3,7 +3,13 @@ @@ -3,7 +3,13 @@
3 <div class="sale-list-banner" style="height: 360px;"> 3 <div class="sale-list-banner" style="height: 360px;">
4 <ul> 4 <ul>
5 {{# list}} 5 {{# list}}
6 - <li class="banner-img" style="background:url({{image img 1920 360}}) no-repeat top center;"></li> 6 + {{#if href}}
  7 + <a href="{{href}}" target= "_blank">
  8 + <li class="banner-img" style="background:url({{image img 1150 360}}) no-repeat top center;"></li>
  9 + </a>
  10 + {{^}}
  11 + <li class="banner-img" style="background:url({{image img 1150 360}}) no-repeat top center;"></li>
  12 + {{/if}}
7 {{/ list}} 13 {{/ list}}
8 </ul> 14 </ul>
9 </div> 15 </div>
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 <div class="slide-wrapper"> 3 <div class="slide-wrapper">
4 <ul> 4 <ul>
5 {{# list}} 5 {{# list}}
6 - <li class="banner-img" style="background: {{bgColor}} url({{image img 1920 450}}) no-repeat top center;"> 6 + <li class="banner-img" style="background: {{bgColor}} url({{image img 1150 450}}) no-repeat top center;">
7 {{#if href}} 7 {{#if href}}
8 <a href="{{href}}" target= "_blank"></a> 8 <a href="{{href}}" target= "_blank"></a>
9 {{/if}} 9 {{/if}}
This diff could not be displayed because it is too large.
1 -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(21),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()}]);  
  1 +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(21),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 class="slide-pagination-inner"><div class="slide-shade"></div><div>'+d+"</div></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()}]);
@@ -23,7 +23,10 @@ for (i = 0; i < $item.length; i++) { @@ -23,7 +23,10 @@ for (i = 0; i < $item.length; i++) {
23 } 23 }
24 } 24 }
25 25
26 -pagationBoxStr = '<div class="sale-list-pagation"><div>' + pagationStr + '</div></div>'; 26 +pagationBoxStr = '<div class="sale-list-pagation">' +
  27 +'<div class="slide-pagination-inner"><div class="slide-shade"></div><div>' +
  28 + pagationStr + '</div></div></div>';
  29 +
27 30
28 if ($item.length > 1) { 31 if ($item.length > 1) {
29 $contain.append($(pagationBoxStr)); 32 $contain.append($(pagationBoxStr));
@@ -174,7 +174,7 @@ @@ -174,7 +174,7 @@
174 } 174 }
175 175
176 .brand { 176 .brand {
177 - margin: 24px 10px 10px; 177 + margin: 10px;
178 } 178 }
179 179
180 .text { 180 .text {
@@ -188,6 +188,7 @@ @@ -188,6 +188,7 @@
188 } 188 }
189 189
190 .new-sale-page { 190 .new-sale-page {
  191 +
191 .sale-list-banner { 192 .sale-list-banner {
192 width: 100%; 193 width: 100%;
193 position: relative; 194 position: relative;
@@ -223,16 +224,19 @@ @@ -223,16 +224,19 @@
223 } 224 }
224 225
225 span { 226 span {
226 - display: block;  
227 - width: 20px;  
228 - height: 20px;  
229 - background: resolve('product/default-normal.png');  
230 - float: left;  
231 - margin: 0 10px; 227 + position: relative;
  228 + display: inline-block;
  229 + margin: 0 7px;
  230 + width: 12px;
  231 + height: 12px;
  232 + background: #fff;
232 cursor: pointer; 233 cursor: pointer;
  234 + opacity: 0.6;
  235 + border-radius: 6px;
  236 + z-index: 2;
233 237
234 &.active { 238 &.active {
235 - background: resolve('product/default-active.png'); 239 + opacity: 1;
236 } 240 }
237 } 241 }
238 } 242 }