Authored by ccbikai

Merge branch 'release/4.6'

... ... @@ -12,7 +12,7 @@
<ul class="clearfix swiper-wrapper">
{{# starAvatar}}
<li class="swiper-slide">
<a class="rank-avatar" href='{{url}}' data-avatar="{{image cover 180 180}}"></a>
<a href='{{url}}'><img src="{{image cover 180 180}}" /></a>
</li>
{{/ starAvatar}}
</ul>
... ...
... ... @@ -15,6 +15,30 @@ const Timer = require('./timer');
const config = require('../config/common');
const api = config.domains.api;
const serviceApi = config.domains.service;
const searchApi = config.domains.search;
// 错误返回
const API_BAD_RETSULT = {
code: 500,
message: 'API result is not JSON string or null.'
};
// 调用失败
const API_CALL_FAIL = {
code: 500,
message: 'Call API failed.'
};
// all 方法错误的传参
const API_ALL_METHOD_ERROR = 'the parameters of api all method should be Array!';
// 获取缓存数据失败
const SLAVE_CACHE_FAIL = 'get slave cache fail';
const MASTER_CACHE_FAIL = 'get master cache fail';
// 获取缓存数据成功
const SLAVE_CACHE_SUCCESS = 'get slave cache success';
const MASTER_CACHE_SUCCESS = 'get master cache success';
class Http {
... ... @@ -36,18 +60,14 @@ class Http {
const timer = new Timer();
const method = options.method || 'get';
log.info(`${method} api: ${options.url}?${qs.stringify(options.qs)}`);
timer.put('getApi');// 统计时间开始
return rp(options).then((result) => {
const duration = timer.put('getApi');// 统计时间结束
// 数据校验
if (!result || !result.code) {
log.error('error: 接口返回的数据结构错误,非 JSON');
return Promise.reject({
statusCode: 500,
message: '接口返回内容格式错误'
});
if (!result) {
log.error(`error: ${API_BAD_RETSULT.message}`);
return Promise.reject(API_BAD_RETSULT);
}
// 写缓存, 否则返回 Slave 缓存服务器的数据
... ... @@ -62,7 +82,7 @@ class Http {
cache.setSlave(`apiCache:${reqId}`, result, 86400).catch(catchErr); // 二级缓存存储一天
}
log.info(`get api success: use: ${duration}ms`);
log.info(`use: ${duration}ms for ${method} api: ${options.url}?${qs.stringify(options.qs)} `);
return result;
}).catch((err)=> {
const duration = timer.put('getApi');// 统计时间结束
... ... @@ -74,10 +94,7 @@ class Http {
if (config.useCache && cacheOption) {
return this._requestFromCache(options, true);
}
return Promise.resolve({
code: 500,
message: '接口调用失败'
});
return Promise.resolve(API_CALL_FAIL);
});
}
... ... @@ -97,7 +114,7 @@ class Http {
try {
result = JSON.parse(result);
} finally {
log.info(slave ? 'get slave cache success' : 'get master cache success');
log.info(slave ? SLAVE_CACHE_SUCCESS : MASTER_CACHE_SUCCESS);
return result;
}
}
... ... @@ -107,17 +124,14 @@ class Http {
return this._requestFromAPI(options, true, reqId);
}
}).catch(() => {
log.error(slave ? 'get slave cache fail' : 'get master cache fail');
log.error(slave ? SLAVE_CACHE_FAIL : MASTER_CACHE_FAIL);
// 读取缓存失败,并且不是二级缓存的时候,调用 API
if (!slave) {
return this._requestFromAPI(options, true, reqId);
}
return Promise.resolve({
code: 500,
message: '接口调用失败'
});
return Promise.resolve(API_CALL_FAIL);
});
}
... ... @@ -133,6 +147,7 @@ class Http {
url: `${this.ApiUrl}${url}`,
qs: data,
json: true,
gzip: true,
timeout: 3000
};
... ... @@ -165,7 +180,7 @@ class Http {
if (_.isArray(list)) {
return Promise.all(list);
} else {
return Promise.reject(Error('the parameters of api all method should be Array!'));
return Promise.reject(Error(API_ALL_METHOD_ERROR));
}
}
}
... ... @@ -182,5 +197,12 @@ class ServiceAPI extends Http {
}
}
class SearchAPI extends Http {
constructor() {
super(searchApi);
}
}
exports.API = API;
exports.ServiceAPI = ServiceAPI;
exports.SearchAPI = SearchAPI;
... ...
webpackJsonp([9],{0:function(t,i,e){function s(t,i,e){var s=t.find(i),o=t.find(e);s[0].mlellipsis(2),o[0].mlellipsis(3)}function o(t){var i=new Image,e="";e=t.data("avatar"),e&&(i.src=e),i.onload=function(){t.css("background-image","url("+e+")")}}function n(t){return a=t.index(),t.hasClass("swiper-slide-active")?void 0:(a>=2*h+1?(p&&p.slideTo(h+1,200),c.slideTo(h+1,200)):h-1>=a?(p&&p.slideTo(2*h-1,200),c.slideTo(2*h-1,200)):(p&&p.slideTo(a,200),c.slideTo(a,200)),!1)}function r(){var t,i=g("#yoho-header").outerHeight(),e=g(".loading-tip"),r=g(".avatar-wrap:not(.avatar-clone)"),a=g(".avatar").height();t=new T(".star-wrap",{height:g(window).height()-i-a,pullDown:function(){E||(E=!0,p&&(p.destroy(!0,!0),p=""),d())}}),t.iScroll.on("scrollStart",function(){-1===this.directionY&&e.slideDown()}),t.iScroll.on("scroll",function(){r.offset().top<=0&&(u.show(),p||(p=new v(".avatar-0",{loop:!0,initialSlide:g(".avatar-1").find(".swiper-slide-active").index()%h,centeredSlides:!0,slidesPerView:"auto",loopedSlides:h,spaceBetween:10,slidesOffsetBefore:-g(".swiper-num").width(),watchSlidesProgress:!0,watchSlidesVisibility:!0,onInit:function(){g(".avatar-0 li").on("click",function(){return l=n(g(this))})}}),p.params.control=c,c.params.control=p)),r.offset().top>g(".avatar-1")[0].scrollHeight&&u.hide()}),t.iScroll.on("scrollEnd",function(){e.slideUp()}),g(".avatar").each(function(t,i){g(i).addClass("avatar-"+t)}),h>1&&(c=new v(".avatar-1",{loop:!0,centeredSlides:!0,slidesPerView:"auto",loopedSlides:h,spaceBetween:10,slidesOffsetBefore:-g(".swiper-num").width(),watchSlidesProgress:!0,watchSlidesVisibility:!0,onInit:function(){g(".avatar-1 li").on("click",function(){return l=n(g(this))})}})),g(".article-avatar-swiper").find("li").length>1&&new v(".article-avatar-swiper",{initialSlide:0,lazyLoading:!0,lazyLoadingInPrevNext:!0,loop:!0,autoplay:5e3}),g(".banner-swiper").find("li").length>1&&new v(".banner-swiper",{lazyLoading:!0,lazyLoadingInPrevNext:!0,loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!1,paginationClickable:!0,slideElement:"li",pagination:".banner-top .pagination-inner"}),g(".star-info").find("li").length>0&&m.each(function(t,i){s(g(i),".article-title","p")}),g(".rank-avatar").each(function(t,i){""!==g(i).attr("data-avatar")&&o(g(i))}),g("#yoho-header, .head-tab").on("touchmove",function(){return!1})}var a,h,l,c,p,d,u,f,m,g=e(1),v=e(11),y=e(2),w=e(6),x=e(10),S=e(5),T=e(28),b=g(window),E=!1;e(3),w(g("img.lazy")),x.init(),b.on("mousewheel",!1),(d=function(){var t=g(".star-main");S.showLoadingMask(),g.ajax({url:"/guang/star/getIndexHtml",dataType:"html",success:function(i){E=!1,i||(E=!0,y.show("没有更多内容了")),t.html(i),f=g(".avatar"),m=g(".star-article"),h=f.find(".swiper-slide").length,u&&u.remove(),g(".avatar li").each(function(){o(g(this).find("span"))}),t.before(g(".avatar-swiper").clone().addClass("avatar-clone").hide()),u=g(".avatar-clone"),g(".cont-area").each(function(){s(g(this),".title",".cont-txt")}),w(g("img.lazy")),setTimeout(function(){r(),S.hideLoadingMask()},100)},error:function(){y.show("网络断开连接了~")}})})()},2:function(t,i,e){function s(t,i){var e,s;"undefined"!=typeof t&&(e=t.toString(),s=i&&i>0?i:2e3,o.text(e).show(),n=setTimeout(function(){"block"===o.css("display")&&o.hide()},s))}var o,n,r=e(1);!function(){var t='<div id="yoho-tip" class="yoho-tip"></div>';r(".yoho-page").append(t),o=r("#yoho-tip"),o.on("touchend",function(){o.hide(),clearTimeout(n)})}(),i.show=s},3:function(t,i,e){function s(t){var i,e,s=document.cookie;return document.cookie&&""!==document.cookie&&(e=s.indexOf(t+"="),e>-1&&(e+=t.length+1,i=decodeURIComponent(u.trim(s.substring(e,s.indexOf(";",e)))))),i}function o(t,i,e){var s,o,n,r,a="";"undefined"!=typeof i&&(e=e||{},null===i&&(i="",e.expires=-1),e.expires&&("number"==typeof e.expires||e.expires.toUTCString)&&("number"==typeof e.expires?(r=new Date,r.setTime(r.getTime()+24*e.expires*60*60*1e3)):r=e.expires,a="; expires="+r.toUTCString()),s=e.path?"; path="+e.path:"",o=e.domain?"; domain="+e.domain:"",n=e.secure?"; secure":"",document.cookie=[t,"=",encodeURIComponent(i),a,s,o,n].join(""))}function n(){var t=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||t||(document.cookie="testcookie",t=-1!==document.cookie.indexOf("testcookie")),t}function r(){var t,i=s("_UID");return"undefined"==typeof i?0:(t=i.split("::"),"undefined"==typeof t||t.length<4?0:t)}function a(){var t=r();return 0===t?0:t[1]}function h(){var t=s("_g");return"undefined"==typeof t?"":JSON.parse(t).k}function l(){var t;0!==m.length&&(t=Math.min(u(window).height(),window.screen.availHeight),u("body").height()<=t-parseInt(m.css("height"),0)?m.addClass("bottom"):m.removeClass("bottom"))}function c(t){var i=u(t).outerHeight();t&&m.css("margin-bottom",i+"px")}function p(){var t,i,e=[],s=window.location.search.slice(1).split("&");for(i=0;i<s.length;i++)t=s[i].split("="),e.push(t[0]),e[t[0]]=t[1];return e}function d(t){return t.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var u=e(1),f=e(4),m=u("#yoho-footer"),g=u(".yoho-page"),v=u(".yoho-header");!function(){var t,i=m.children(".op-row"),e=u(".back-to-top"),s=r();l(),0===s?i.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):i.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+s[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),e.length>0&&(t=new f(e[0]),t.on("tap",function(t){return u(window).scrollTop(0),t.srcEvent.preventDefault(),!1})),m.removeClass("hide")}(),function(t,i,e,s,o){var n=i.createElement(e),r=i.getElementsByTagName(e)[0];t.YohoAcquisitionObject=o,t[o]=function(){t[o].p=arguments},n.async=1,n.src=s,r.parentNode.insertBefore(n,r)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var t=a();t=0===t?"":t,window._ozuid=t,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",t,"","")}(),v.on("touchstart","a",function(){v.find("a").removeClass("highlight"),u(this).addClass("highlight")}).on("touchend touchcancel","a",function(){u(this).removeClass("highlight")}),g.on("touchstart",".tap-hightlight",function(){u(this).siblings(".tap-hightlight").removeClass("highlight"),u(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){u(this).removeClass("highlight")}),u(".nav-home").on("touchstart",function(){u(".homebuttom").toggleClass("hide")}),function(){var t,i,e=0,s="webkit moz ms o".split(" "),o=window.requestAnimationFrame,n=window.cancelAnimationFrame;for(i=0;i<s.length&&(!o||!n);i++)t=s[i],o=o||window[t+"RequestAnimationFrame"],n=n||window[t+"CancelAnimationFrame"]||window[t+"CancelRequestAnimationFrame"];o&&n||(o=function(t){var i=(new Date).getTime(),s=Math.max(0,16-(i-e)),o=window.setTimeout(function(){t(i+s)},s);return e=i+s,o},n=function(t){window.clearTimeout(t)}),window.requestAnimationFrame=o,window.cancelAnimationFrame=n}(),u.extend({queryString:p}),11===m.find(".user-name").text().length&&m.find(".user-name").html(d(m.find(".user-name").text())),window.cookie=s,window.setCookie=o,window.isCookiesEnabled=n,window.getUser=r,window.getUid=a,window.getShoppingKey=h,window.rePosFooter=l,window.reMarginFooter=c,window.queryString=p()},5:function(t,i,e){function s(t){var i='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';l=!0,t||(t=h),t.append(i),r=t.children(".loading-mask"),a("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function o(){l||(s(),l=!0),r.removeClass("hide")}function n(){r.addClass("hide")}var r,a=e(1),h=a(".yoho-page"),l=!1;i.init=s,i.showLoadingMask=o,i.hideLoadingMask=n,i.show=o,i.hide=n},19:function(t,i,e){var s;/*! iScroll v5.2.0 ~ (c) 2008-2016 Matteo Spinelli ~ http://cubiq.org/license */
webpackJsonp([9],{0:function(t,i,e){function s(t,i,e){var s=t.find(i),o=t.find(e);s[0].mlellipsis(2),o[0].mlellipsis(3)}function o(t){var i=new Image,e="";e=t.data("avatar"),e&&(i.src=e),i.onload=function(){t.css("background-image","url("+e+")")}}function n(t){return a=t.index(),t.hasClass("swiper-slide-active")?void 0:(a>=2*h+1?(p&&p.slideTo(h+1,200),c.slideTo(h+1,200)):h-1>=a?(p&&p.slideTo(2*h-1,200),c.slideTo(2*h-1,200)):(p&&p.slideTo(a,200),c.slideTo(a,200)),!1)}function r(){var t,i=g("#yoho-header").outerHeight(),e=g(".loading-tip"),r=g(".avatar-wrap:not(.avatar-clone)"),a=g(".avatar").height();t=new T(".star-wrap",{height:g(window).height()-i-a,pullDown:function(){E||(E=!0,p&&(p.destroy(!0,!0),p=""),d())}}),t.iScroll.on("scrollStart",function(){-1===this.directionY&&e.slideDown()}),t.iScroll.on("scroll",function(){r.offset().top<=0&&(u.show(),p||(p=new v(".avatar-0",{loop:!0,initialSlide:g(".avatar-1").find(".swiper-slide-active").index()%h,centeredSlides:!0,slidesPerView:"auto",loopedSlides:h,spaceBetween:10,slidesOffsetBefore:-g(".swiper-num").width(),watchSlidesProgress:!0,watchSlidesVisibility:!0,onInit:function(){g(".avatar-0 li").on("click",function(){return l=n(g(this))})}}),p.params.control=c,c.params.control=p)),r.offset().top>g(".avatar-1")[0].scrollHeight&&u.hide()}),t.iScroll.on("scrollEnd",function(){e.slideUp()}),g(".avatar").each(function(t,i){g(i).addClass("avatar-"+t)}),h>1&&(c=new v(".avatar-1",{loop:!0,centeredSlides:!0,slidesPerView:"auto",loopedSlides:h,spaceBetween:10,slidesOffsetBefore:-g(".swiper-num").width(),watchSlidesProgress:!0,watchSlidesVisibility:!0,onInit:function(){g(".avatar-1 li").on("click",function(){return l=n(g(this))})}})),g(".article-avatar-swiper").find("li").length>1&&new v(".article-avatar-swiper",{initialSlide:0,lazyLoading:!0,lazyLoadingInPrevNext:!0,loop:!0,autoplay:5e3}),g(".banner-swiper").find("li").length>1&&new v(".banner-swiper",{lazyLoading:!0,lazyLoadingInPrevNext:!0,loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!1,paginationClickable:!0,slideElement:"li",pagination:".banner-top .pagination-inner"}),g(".star-info").find("li").length>0&&m.each(function(t,i){s(g(i),".article-title","p")}),g(".rank-avatar").each(function(t,i){""!==g(i).attr("data-avatar")&&o(g(i))}),g("#yoho-header, .head-tab").on("touchmove",function(){return!1})}var a,h,l,c,p,d,u,f,m,g=e(1),v=e(11),y=e(2),w=e(6),x=e(10),S=e(5),T=e(28),b=g(window),E=!1;e(3),w(g("img.lazy")),x.init(),b.on("mousewheel",!1),(d=function(){var t=g(".star-main");S.showLoadingMask(),g.ajax({url:"/guang/star/getIndexHtml",dataType:"html",success:function(i){E=!1,i||(E=!0,y.show("没有更多内容了")),t.html(i),f=g(".avatar"),m=g(".star-article"),h=f.find(".swiper-slide").length,u&&u.remove(),t.before(g(".avatar-swiper").clone().addClass("avatar-clone").hide()),u=g(".avatar-clone"),g(".cont-area").each(function(){s(g(this),".title",".cont-txt")}),w(g("img.lazy")),setTimeout(function(){r(),S.hideLoadingMask()},100)},error:function(){y.show("网络断开连接了~")}})})()},2:function(t,i,e){function s(t,i){var e,s;"undefined"!=typeof t&&(e=t.toString(),s=i&&i>0?i:2e3,o.text(e).show(),n=setTimeout(function(){"block"===o.css("display")&&o.hide()},s))}var o,n,r=e(1);!function(){var t='<div id="yoho-tip" class="yoho-tip"></div>';r(".yoho-page").append(t),o=r("#yoho-tip"),o.on("touchend",function(){o.hide(),clearTimeout(n)})}(),i.show=s},3:function(t,i,e){function s(t){var i,e,s=document.cookie;return document.cookie&&""!==document.cookie&&(e=s.indexOf(t+"="),e>-1&&(e+=t.length+1,i=decodeURIComponent(u.trim(s.substring(e,s.indexOf(";",e)))))),i}function o(t,i,e){var s,o,n,r,a="";"undefined"!=typeof i&&(e=e||{},null===i&&(i="",e.expires=-1),e.expires&&("number"==typeof e.expires||e.expires.toUTCString)&&("number"==typeof e.expires?(r=new Date,r.setTime(r.getTime()+24*e.expires*60*60*1e3)):r=e.expires,a="; expires="+r.toUTCString()),s=e.path?"; path="+e.path:"",o=e.domain?"; domain="+e.domain:"",n=e.secure?"; secure":"",document.cookie=[t,"=",encodeURIComponent(i),a,s,o,n].join(""))}function n(){var t=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||t||(document.cookie="testcookie",t=-1!==document.cookie.indexOf("testcookie")),t}function r(){var t,i=s("_UID");return"undefined"==typeof i?0:(t=i.split("::"),"undefined"==typeof t||t.length<4?0:t)}function a(){var t=r();return 0===t?0:t[1]}function h(){var t=s("_g");return"undefined"==typeof t?"":JSON.parse(t).k}function l(){var t;0!==m.length&&(t=Math.min(u(window).height(),window.screen.availHeight),u("body").height()<=t-parseInt(m.css("height"),0)?m.addClass("bottom"):m.removeClass("bottom"))}function c(t){var i=u(t).outerHeight();t&&m.css("margin-bottom",i+"px")}function p(){var t,i,e=[],s=window.location.search.slice(1).split("&");for(i=0;i<s.length;i++)t=s[i].split("="),e.push(t[0]),e[t[0]]=t[1];return e}function d(t){return t.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var u=e(1),f=e(4),m=u("#yoho-footer"),g=u(".yoho-page"),v=u(".yoho-header");!function(){var t,i=m.children(".op-row"),e=u(".back-to-top"),s=r();l(),0===s?i.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):i.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+s[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),e.length>0&&(t=new f(e[0]),t.on("tap",function(t){return u(window).scrollTop(0),t.srcEvent.preventDefault(),!1})),m.removeClass("hide")}(),function(t,i,e,s,o){var n=i.createElement(e),r=i.getElementsByTagName(e)[0];t.YohoAcquisitionObject=o,t[o]=function(){t[o].p=arguments},n.async=1,n.src=s,r.parentNode.insertBefore(n,r)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var t=a();t=0===t?"":t,window._ozuid=t,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",t,"","")}(),v.on("touchstart","a",function(){v.find("a").removeClass("highlight"),u(this).addClass("highlight")}).on("touchend touchcancel","a",function(){u(this).removeClass("highlight")}),g.on("touchstart",".tap-hightlight",function(){u(this).siblings(".tap-hightlight").removeClass("highlight"),u(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){u(this).removeClass("highlight")}),u(".nav-home").on("touchstart",function(){u(".homebuttom").toggleClass("hide")}),function(){var t,i,e=0,s="webkit moz ms o".split(" "),o=window.requestAnimationFrame,n=window.cancelAnimationFrame;for(i=0;i<s.length&&(!o||!n);i++)t=s[i],o=o||window[t+"RequestAnimationFrame"],n=n||window[t+"CancelAnimationFrame"]||window[t+"CancelRequestAnimationFrame"];o&&n||(o=function(t){var i=(new Date).getTime(),s=Math.max(0,16-(i-e)),o=window.setTimeout(function(){t(i+s)},s);return e=i+s,o},n=function(t){window.clearTimeout(t)}),window.requestAnimationFrame=o,window.cancelAnimationFrame=n}(),u.extend({queryString:p}),11===m.find(".user-name").text().length&&m.find(".user-name").html(d(m.find(".user-name").text())),window.cookie=s,window.setCookie=o,window.isCookiesEnabled=n,window.getUser=r,window.getUid=a,window.getShoppingKey=h,window.rePosFooter=l,window.reMarginFooter=c,window.queryString=p()},5:function(t,i,e){function s(t){var i='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';l=!0,t||(t=h),t.append(i),r=t.children(".loading-mask"),a("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function o(){l||(s(),l=!0),r.removeClass("hide")}function n(){r.addClass("hide")}var r,a=e(1),h=a(".yoho-page"),l=!1;i.init=s,i.showLoadingMask=o,i.hideLoadingMask=n,i.show=o,i.hide=n},19:function(t,i,e){var s;/*! iScroll v5.2.0 ~ (c) 2008-2016 Matteo Spinelli ~ http://cubiq.org/license */
!function(o,n,r){function a(t,i){this.wrapper="string"==typeof t?n.querySelector(t):t,this.scroller=this.wrapper.children[0],this.scrollerStyle=this.scroller.style,this.options={resizeScrollbars:!0,mouseWheelSpeed:20,snapThreshold:.334,disablePointer:!p.hasPointer,disableTouch:p.hasPointer||!p.hasTouch,disableMouse:p.hasPointer||p.hasTouch,startX:0,startY:0,scrollY:!0,directionLockThreshold:5,momentum:!0,bounce:!0,bounceTime:600,bounceEasing:"",preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:"undefined"==typeof o.onmousedown};for(var e in i)this.options[e]=i[e];this.translateZ=this.options.HWCompositing&&p.hasPerspective?" translateZ(0)":"",this.options.useTransition=p.hasTransition&&this.options.useTransition,this.options.useTransform=p.hasTransform&&this.options.useTransform,this.options.eventPassthrough=this.options.eventPassthrough===!0?"vertical":this.options.eventPassthrough,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollY="vertical"==this.options.eventPassthrough?!1:this.options.scrollY,this.options.scrollX="horizontal"==this.options.eventPassthrough?!1:this.options.scrollX,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,this.options.bounceEasing="string"==typeof this.options.bounceEasing?p.ease[this.options.bounceEasing]||p.ease.circular:this.options.bounceEasing,this.options.resizePolling=void 0===this.options.resizePolling?60:this.options.resizePolling,this.options.tap===!0&&(this.options.tap="tap"),"scale"==this.options.shrinkScrollbars&&(this.options.useTransition=!1),this.options.invertWheelDirection=this.options.invertWheelDirection?-1:1,3==this.options.probeType&&(this.options.useTransition=!1),this.x=0,this.y=0,this.directionX=0,this.directionY=0,this._events={},this._init(),this.refresh(),this.scrollTo(this.options.startX,this.options.startY),this.enable()}function h(t,i,e){var s=n.createElement("div"),o=n.createElement("div");return e===!0&&(s.style.cssText="position:absolute;z-index:9999",o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px"),o.className="iScrollIndicator","h"==t?(e===!0&&(s.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",o.style.height="100%"),s.className="iScrollHorizontalScrollbar"):(e===!0&&(s.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",o.style.width="100%"),s.className="iScrollVerticalScrollbar"),s.style.cssText+=";overflow:hidden",i||(s.style.pointerEvents="none"),s.appendChild(o),s}function l(t,i){this.wrapper="string"==typeof i.el?n.querySelector(i.el):i.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=t,this.options={listenX:!0,listenY:!0,interactive:!1,resize:!0,defaultScrollbars:!1,shrink:!1,fade:!1,speedRatioX:0,speedRatioY:0};for(var e in i)this.options[e]=i[e];if(this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.options.interactive&&(this.options.disableTouch||(p.addEvent(this.indicator,"touchstart",this),p.addEvent(o,"touchend",this)),this.options.disablePointer||(p.addEvent(this.indicator,p.prefixPointerEvent("pointerdown"),this),p.addEvent(o,p.prefixPointerEvent("pointerup"),this)),this.options.disableMouse||(p.addEvent(this.indicator,"mousedown",this),p.addEvent(o,"mouseup",this))),this.options.fade){this.wrapperStyle[p.style.transform]=this.scroller.translateZ;var s=p.style.transitionDuration;this.wrapperStyle[s]=p.isBadAndroid?"0.0001ms":"0ms";var r=this;p.isBadAndroid&&c(function(){"0.0001ms"===r.wrapperStyle[s]&&(r.wrapperStyle[s]="0s")}),this.wrapperStyle.opacity="0"}}var c=o.requestAnimationFrame||o.webkitRequestAnimationFrame||o.mozRequestAnimationFrame||o.oRequestAnimationFrame||o.msRequestAnimationFrame||function(t){o.setTimeout(t,1e3/60)},p=function(){function t(t){return s===!1?!1:""===s?t:s+t.charAt(0).toUpperCase()+t.substr(1)}var i={},e=n.createElement("div").style,s=function(){for(var t,i=["t","webkitT","MozT","msT","OT"],s=0,o=i.length;o>s;s++)if(t=i[s]+"ransform",t in e)return i[s].substr(0,i[s].length-1);return!1}();i.getTime=Date.now||function(){return(new Date).getTime()},i.extend=function(t,i){for(var e in i)t[e]=i[e]},i.addEvent=function(t,i,e,s){t.addEventListener(i,e,!!s)},i.removeEvent=function(t,i,e,s){t.removeEventListener(i,e,!!s)},i.prefixPointerEvent=function(t){return o.MSPointerEvent?"MSPointer"+t.charAt(7).toUpperCase()+t.substr(8):t},i.momentum=function(t,i,e,s,o,n){var a,h,l=t-i,c=r.abs(l)/e;return n=void 0===n?6e-4:n,a=t+c*c/(2*n)*(0>l?-1:1),h=c/n,s>a?(a=o?s-o/2.5*(c/8):s,l=r.abs(a-t),h=l/c):a>0&&(a=o?o/2.5*(c/8):0,l=r.abs(t)+a,h=l/c),{destination:r.round(a),duration:h}};var a=t("transform");return i.extend(i,{hasTransform:a!==!1,hasPerspective:t("perspective")in e,hasTouch:"ontouchstart"in o,hasPointer:!(!o.PointerEvent&&!o.MSPointerEvent),hasTransition:t("transition")in e}),i.isBadAndroid=function(){var t=o.navigator.appVersion;if(/Android/.test(t)&&!/Chrome\/\d/.test(t)){var i=t.match(/Safari\/(\d+.\d)/);return i&&"object"==typeof i&&i.length>=2?parseFloat(i[1])<535.19:!0}return!1}(),i.extend(i.style={},{transform:a,transitionTimingFunction:t("transitionTimingFunction"),transitionDuration:t("transitionDuration"),transitionDelay:t("transitionDelay"),transformOrigin:t("transformOrigin")}),i.hasClass=function(t,i){var e=new RegExp("(^|\\s)"+i+"(\\s|$)");return e.test(t.className)},i.addClass=function(t,e){if(!i.hasClass(t,e)){var s=t.className.split(" ");s.push(e),t.className=s.join(" ")}},i.removeClass=function(t,e){if(i.hasClass(t,e)){var s=new RegExp("(^|\\s)"+e+"(\\s|$)","g");t.className=t.className.replace(s," ")}},i.offset=function(t){for(var i=-t.offsetLeft,e=-t.offsetTop;t=t.offsetParent;)i-=t.offsetLeft,e-=t.offsetTop;return{left:i,top:e}},i.preventDefaultException=function(t,i){for(var e in i)if(i[e].test(t[e]))return!0;return!1},i.extend(i.eventType={},{touchstart:1,touchmove:1,touchend:1,mousedown:2,mousemove:2,mouseup:2,pointerdown:3,pointermove:3,pointerup:3,MSPointerDown:3,MSPointerMove:3,MSPointerUp:3}),i.extend(i.ease={},{quadratic:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},circular:{style:"cubic-bezier(0.1, 0.57, 0.1, 1)",fn:function(t){return r.sqrt(1- --t*t)}},back:{style:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",fn:function(t){var i=4;return(t-=1)*t*((i+1)*t+i)+1}},bounce:{style:"",fn:function(t){return(t/=1)<1/2.75?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}},elastic:{style:"",fn:function(t){var i=.22,e=.4;return 0===t?0:1==t?1:e*r.pow(2,-10*t)*r.sin((t-i/4)*(2*r.PI)/i)+1}}}),i.tap=function(t,i){var e=n.createEvent("Event");e.initEvent(i,!0,!0),e.pageX=t.pageX,e.pageY=t.pageY,t.target.dispatchEvent(e)},i.click=function(t){var i,e=t.target;/(SELECT|INPUT|TEXTAREA)/i.test(e.tagName)||(i=n.createEvent("MouseEvents"),i.initMouseEvent("click",!0,!0,t.view,1,e.screenX,e.screenY,e.clientX,e.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,0,null),i._constructed=!0,e.dispatchEvent(i))},i}();a.prototype={version:"5.2.0",_init:function(){this._initEvents(),(this.options.scrollbars||this.options.indicators)&&this._initIndicators(),this.options.mouseWheel&&this._initWheel(),this.options.snap&&this._initSnap(),this.options.keyBindings&&this._initKeys()},destroy:function(){this._initEvents(!0),clearTimeout(this.resizeTimeout),this.resizeTimeout=null,this._execEvent("destroy")},_transitionEnd:function(t){t.target==this.scroller&&this.isInTransition&&(this._transitionTime(),this.resetPosition(this.options.bounceTime)||(this.isInTransition=!1,this._execEvent("scrollEnd")))},_start:function(t){if(1!=p.eventType[t.type]){var i;if(i=t.which?t.button:t.button<2?0:4==t.button?1:2,0!==i)return}if(this.enabled&&(!this.initiated||p.eventType[t.type]===this.initiated)){!this.options.preventDefault||p.isBadAndroid||p.preventDefaultException(t.target,this.options.preventDefaultException)||t.preventDefault();var e,s=t.touches?t.touches[0]:t;this.initiated=p.eventType[t.type],this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.directionLocked=0,this.startTime=p.getTime(),this.options.useTransition&&this.isInTransition?(this._transitionTime(),this.isInTransition=!1,e=this.getComputedPosition(),this._translate(r.round(e.x),r.round(e.y)),this._execEvent("scrollEnd")):!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,this._execEvent("scrollEnd")),this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=s.pageX,this.pointY=s.pageY,this._execEvent("beforeScrollStart")}},_move:function(t){if(this.enabled&&p.eventType[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault();var i,e,s,o,n=t.touches?t.touches[0]:t,a=n.pageX-this.pointX,h=n.pageY-this.pointY,l=p.getTime();if(this.pointX=n.pageX,this.pointY=n.pageY,this.distX+=a,this.distY+=h,s=r.abs(this.distX),o=r.abs(this.distY),!(l-this.endTime>300&&10>s&&10>o)){if(this.directionLocked||this.options.freeScroll||(s>o+this.options.directionLockThreshold?this.directionLocked="h":o>=s+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"==this.directionLocked){if("vertical"==this.options.eventPassthrough)t.preventDefault();else if("horizontal"==this.options.eventPassthrough)return void(this.initiated=!1);h=0}else if("v"==this.directionLocked){if("horizontal"==this.options.eventPassthrough)t.preventDefault();else if("vertical"==this.options.eventPassthrough)return void(this.initiated=!1);a=0}a=this.hasHorizontalScroll?a:0,h=this.hasVerticalScroll?h:0,i=this.x+a,e=this.y+h,(i>0||i<this.maxScrollX)&&(i=this.options.bounce?this.x+a/3:i>0?0:this.maxScrollX),(e>0||e<this.maxScrollY)&&(e=this.options.bounce?this.y+h/3:e>0?0:this.maxScrollY),this.directionX=a>0?-1:0>a?1:0,this.directionY=h>0?-1:0>h?1:0,this.moved||this._execEvent("scrollStart"),this.moved=!0,this._translate(i,e),l-this.startTime>300&&(this.startTime=l,this.startX=this.x,this.startY=this.y,1==this.options.probeType&&this._execEvent("scroll")),this.options.probeType>1&&this._execEvent("scroll")}}},_end:function(t){if(this.enabled&&p.eventType[t.type]===this.initiated){this.options.preventDefault&&!p.preventDefaultException(t.target,this.options.preventDefaultException)&&t.preventDefault();var i,e,s=(t.changedTouches?t.changedTouches[0]:t,p.getTime()-this.startTime),o=r.round(this.x),n=r.round(this.y),a=r.abs(o-this.startX),h=r.abs(n-this.startY),l=0,c="";if(this.isInTransition=0,this.initiated=0,this.endTime=p.getTime(),!this.resetPosition(this.options.bounceTime)){if(this.scrollTo(o,n),!this.moved)return this.options.tap&&p.tap(t,this.options.tap),this.options.click&&p.click(t),void this._execEvent("scrollCancel");if(this._events.flick&&200>s&&100>a&&100>h)return void this._execEvent("flick");if(this.options.momentum&&300>s&&(i=this.hasHorizontalScroll?p.momentum(this.x,this.startX,s,this.maxScrollX,this.options.bounce?this.wrapperWidth:0,this.options.deceleration):{destination:o,duration:0},e=this.hasVerticalScroll?p.momentum(this.y,this.startY,s,this.maxScrollY,this.options.bounce?this.wrapperHeight:0,this.options.deceleration):{destination:n,duration:0},o=i.destination,n=e.destination,l=r.max(i.duration,e.duration),this.isInTransition=1),this.options.snap){var d=this._nearestSnap(o,n);this.currentPage=d,l=this.options.snapSpeed||r.max(r.max(r.min(r.abs(o-d.x),1e3),r.min(r.abs(n-d.y),1e3)),300),o=d.x,n=d.y,this.directionX=0,this.directionY=0,c=this.options.bounceEasing}return o!=this.x||n!=this.y?((o>0||o<this.maxScrollX||n>0||n<this.maxScrollY)&&(c=p.ease.quadratic),void this.scrollTo(o,n,l,c)):void this._execEvent("scrollEnd")}}},_resize:function(){var t=this;clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){t.refresh()},this.options.resizePolling)},resetPosition:function(t){var i=this.x,e=this.y;return t=t||0,!this.hasHorizontalScroll||this.x>0?i=0:this.x<this.maxScrollX&&(i=this.maxScrollX),!this.hasVerticalScroll||this.y>0?e=0:this.y<this.maxScrollY&&(e=this.maxScrollY),i==this.x&&e==this.y?!1:(this.scrollTo(i,e,t,this.options.bounceEasing),!0)},disable:function(){this.enabled=!1},enable:function(){this.enabled=!0},refresh:function(){this.wrapper.offsetHeight;this.wrapperWidth=this.wrapper.clientWidth,this.wrapperHeight=this.wrapper.clientHeight,this.scrollerWidth=this.scroller.offsetWidth,this.scrollerHeight=this.scroller.offsetHeight,this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.maxScrollY=this.wrapperHeight-this.scrollerHeight,this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<0,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<0,this.hasHorizontalScroll||(this.maxScrollX=0,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=0,this.scrollerHeight=this.wrapperHeight),this.endTime=0,this.directionX=0,this.directionY=0,this.wrapperOffset=p.offset(this.wrapper),this._execEvent("refresh"),this.resetPosition()},on:function(t,i){this._events[t]||(this._events[t]=[]),this._events[t].push(i)},off:function(t,i){if(this._events[t]){var e=this._events[t].indexOf(i);e>-1&&this._events[t].splice(e,1)}},_execEvent:function(t){if(this._events[t]){var i=0,e=this._events[t].length;if(e)for(;e>i;i++)this._events[t][i].apply(this,[].slice.call(arguments,1))}},scrollBy:function(t,i,e,s){t=this.x+t,i=this.y+i,e=e||0,this.scrollTo(t,i,e,s)},scrollTo:function(t,i,e,s){s=s||p.ease.circular,this.isInTransition=this.options.useTransition&&e>0;var o=this.options.useTransition&&s.style;!e||o?(o&&(this._transitionTimingFunction(s.style),this._transitionTime(e)),this._translate(t,i)):this._animate(t,i,e,s.fn)},scrollToElement:function(t,i,e,s,o){if(t=t.nodeType?t:this.scroller.querySelector(t)){var n=p.offset(t);n.left-=this.wrapperOffset.left,n.top-=this.wrapperOffset.top,e===!0&&(e=r.round(t.offsetWidth/2-this.wrapper.offsetWidth/2)),s===!0&&(s=r.round(t.offsetHeight/2-this.wrapper.offsetHeight/2)),n.left-=e||0,n.top-=s||0,n.left=n.left>0?0:n.left<this.maxScrollX?this.maxScrollX:n.left,n.top=n.top>0?0:n.top<this.maxScrollY?this.maxScrollY:n.top,i=void 0===i||null===i||"auto"===i?r.max(r.abs(this.x-n.left),r.abs(this.y-n.top)):i,this.scrollTo(n.left,n.top,i,o)}},_transitionTime:function(t){t=t||0;var i=p.style.transitionDuration;if(this.scrollerStyle[i]=t+"ms",!t&&p.isBadAndroid){this.scrollerStyle[i]="0.0001ms";var e=this;c(function(){"0.0001ms"===e.scrollerStyle[i]&&(e.scrollerStyle[i]="0s")})}if(this.indicators)for(var s=this.indicators.length;s--;)this.indicators[s].transitionTime(t)},_transitionTimingFunction:function(t){if(this.scrollerStyle[p.style.transitionTimingFunction]=t,this.indicators)for(var i=this.indicators.length;i--;)this.indicators[i].transitionTimingFunction(t)},_translate:function(t,i){if(this.options.useTransform?this.scrollerStyle[p.style.transform]="translate("+t+"px,"+i+"px)"+this.translateZ:(t=r.round(t),i=r.round(i),this.scrollerStyle.left=t+"px",this.scrollerStyle.top=i+"px"),this.x=t,this.y=i,this.indicators)for(var e=this.indicators.length;e--;)this.indicators[e].updatePosition()},_initEvents:function(t){var i=t?p.removeEvent:p.addEvent,e=this.options.bindToWrapper?this.wrapper:o;i(o,"orientationchange",this),i(o,"resize",this),this.options.click&&i(this.wrapper,"click",this,!0),this.options.disableMouse||(i(this.wrapper,"mousedown",this),i(e,"mousemove",this),i(e,"mousecancel",this),i(e,"mouseup",this)),p.hasPointer&&!this.options.disablePointer&&(i(this.wrapper,p.prefixPointerEvent("pointerdown"),this),i(e,p.prefixPointerEvent("pointermove"),this),i(e,p.prefixPointerEvent("pointercancel"),this),i(e,p.prefixPointerEvent("pointerup"),this)),p.hasTouch&&!this.options.disableTouch&&(i(this.wrapper,"touchstart",this),i(e,"touchmove",this),i(e,"touchcancel",this),i(e,"touchend",this)),i(this.scroller,"transitionend",this),i(this.scroller,"webkitTransitionEnd",this),i(this.scroller,"oTransitionEnd",this),i(this.scroller,"MSTransitionEnd",this)},getComputedPosition:function(){var t,i,e=o.getComputedStyle(this.scroller,null);return this.options.useTransform?(e=e[p.style.transform].split(")")[0].split(", "),t=+(e[12]||e[4]),i=+(e[13]||e[5])):(t=+e.left.replace(/[^-\d.]/g,""),i=+e.top.replace(/[^-\d.]/g,"")),{x:t,y:i}},_initIndicators:function(){function t(t){if(n.indicators)for(var i=n.indicators.length;i--;)t.call(n.indicators[i])}var i,e=this.options.interactiveScrollbars,s="string"!=typeof this.options.scrollbars,o=[],n=this;this.indicators=[],this.options.scrollbars&&(this.options.scrollY&&(i={el:h("v",e,this.options.scrollbars),interactive:e,defaultScrollbars:!0,customStyle:s,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenX:!1},this.wrapper.appendChild(i.el),o.push(i)),this.options.scrollX&&(i={el:h("h",e,this.options.scrollbars),interactive:e,defaultScrollbars:!0,customStyle:s,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenY:!1},this.wrapper.appendChild(i.el),o.push(i))),this.options.indicators&&(o=o.concat(this.options.indicators));for(var r=o.length;r--;)this.indicators.push(new l(this,o[r]));this.options.fadeScrollbars&&(this.on("scrollEnd",function(){t(function(){this.fade()})}),this.on("scrollCancel",function(){t(function(){this.fade()})}),this.on("scrollStart",function(){t(function(){this.fade(1)})}),this.on("beforeScrollStart",function(){t(function(){this.fade(1,!0)})})),this.on("refresh",function(){t(function(){this.refresh()})}),this.on("destroy",function(){t(function(){this.destroy()}),delete this.indicators})},_initWheel:function(){p.addEvent(this.wrapper,"wheel",this),p.addEvent(this.wrapper,"mousewheel",this),p.addEvent(this.wrapper,"DOMMouseScroll",this),this.on("destroy",function(){clearTimeout(this.wheelTimeout),this.wheelTimeout=null,p.removeEvent(this.wrapper,"wheel",this),p.removeEvent(this.wrapper,"mousewheel",this),p.removeEvent(this.wrapper,"DOMMouseScroll",this)})},_wheel:function(t){if(this.enabled){t.preventDefault();var i,e,s,o,n=this;if(void 0===this.wheelTimeout&&n._execEvent("scrollStart"),clearTimeout(this.wheelTimeout),this.wheelTimeout=setTimeout(function(){n.options.snap||n._execEvent("scrollEnd"),n.wheelTimeout=void 0},400),"deltaX"in t)1===t.deltaMode?(i=-t.deltaX*this.options.mouseWheelSpeed,e=-t.deltaY*this.options.mouseWheelSpeed):(i=-t.deltaX,e=-t.deltaY);else if("wheelDeltaX"in t)i=t.wheelDeltaX/120*this.options.mouseWheelSpeed,e=t.wheelDeltaY/120*this.options.mouseWheelSpeed;else if("wheelDelta"in t)i=e=t.wheelDelta/120*this.options.mouseWheelSpeed;else{if(!("detail"in t))return;i=e=-t.detail/3*this.options.mouseWheelSpeed}if(i*=this.options.invertWheelDirection,e*=this.options.invertWheelDirection,this.hasVerticalScroll||(i=e,e=0),this.options.snap)return s=this.currentPage.pageX,o=this.currentPage.pageY,i>0?s--:0>i&&s++,e>0?o--:0>e&&o++,void this.goToPage(s,o);s=this.x+r.round(this.hasHorizontalScroll?i:0),o=this.y+r.round(this.hasVerticalScroll?e:0),this.directionX=i>0?-1:0>i?1:0,this.directionY=e>0?-1:0>e?1:0,s>0?s=0:s<this.maxScrollX&&(s=this.maxScrollX),o>0?o=0:o<this.maxScrollY&&(o=this.maxScrollY),this.scrollTo(s,o,0),this.options.probeType>1&&this._execEvent("scroll")}},_initSnap:function(){this.currentPage={},"string"==typeof this.options.snap&&(this.options.snap=this.scroller.querySelectorAll(this.options.snap)),this.on("refresh",function(){var t,i,e,s,o,n,a=0,h=0,l=0,c=this.options.snapStepX||this.wrapperWidth,p=this.options.snapStepY||this.wrapperHeight;if(this.pages=[],this.wrapperWidth&&this.wrapperHeight&&this.scrollerWidth&&this.scrollerHeight){if(this.options.snap===!0)for(e=r.round(c/2),s=r.round(p/2);l>-this.scrollerWidth;){for(this.pages[a]=[],t=0,o=0;o>-this.scrollerHeight;)this.pages[a][t]={x:r.max(l,this.maxScrollX),y:r.max(o,this.maxScrollY),width:c,height:p,cx:l-e,cy:o-s},o-=p,t++;l-=c,a++}else for(n=this.options.snap,t=n.length,i=-1;t>a;a++)(0===a||n[a].offsetLeft<=n[a-1].offsetLeft)&&(h=0,i++),this.pages[h]||(this.pages[h]=[]),l=r.max(-n[a].offsetLeft,this.maxScrollX),o=r.max(-n[a].offsetTop,this.maxScrollY),e=l-r.round(n[a].offsetWidth/2),s=o-r.round(n[a].offsetHeight/2),this.pages[h][i]={x:l,y:o,width:n[a].offsetWidth,height:n[a].offsetHeight,cx:e,cy:s},l>this.maxScrollX&&h++;this.goToPage(this.currentPage.pageX||0,this.currentPage.pageY||0,0),this.options.snapThreshold%1===0?(this.snapThresholdX=this.options.snapThreshold,this.snapThresholdY=this.options.snapThreshold):(this.snapThresholdX=r.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].width*this.options.snapThreshold),this.snapThresholdY=r.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].height*this.options.snapThreshold))}}),this.on("flick",function(){var t=this.options.snapSpeed||r.max(r.max(r.min(r.abs(this.x-this.startX),1e3),r.min(r.abs(this.y-this.startY),1e3)),300);this.goToPage(this.currentPage.pageX+this.directionX,this.currentPage.pageY+this.directionY,t)})},_nearestSnap:function(t,i){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var e=0,s=this.pages.length,o=0;if(r.abs(t-this.absStartX)<this.snapThresholdX&&r.abs(i-this.absStartY)<this.snapThresholdY)return this.currentPage;for(t>0?t=0:t<this.maxScrollX&&(t=this.maxScrollX),i>0?i=0:i<this.maxScrollY&&(i=this.maxScrollY);s>e;e++)if(t>=this.pages[e][0].cx){t=this.pages[e][0].x;break}for(s=this.pages[e].length;s>o;o++)if(i>=this.pages[0][o].cy){i=this.pages[0][o].y;break}return e==this.currentPage.pageX&&(e+=this.directionX,0>e?e=0:e>=this.pages.length&&(e=this.pages.length-1),t=this.pages[e][0].x),o==this.currentPage.pageY&&(o+=this.directionY,0>o?o=0:o>=this.pages[0].length&&(o=this.pages[0].length-1),i=this.pages[0][o].y),{x:t,y:i,pageX:e,pageY:o}},goToPage:function(t,i,e,s){s=s||this.options.bounceEasing,t>=this.pages.length?t=this.pages.length-1:0>t&&(t=0),i>=this.pages[t].length?i=this.pages[t].length-1:0>i&&(i=0);var o=this.pages[t][i].x,n=this.pages[t][i].y;e=void 0===e?this.options.snapSpeed||r.max(r.max(r.min(r.abs(o-this.x),1e3),r.min(r.abs(n-this.y),1e3)),300):e,this.currentPage={x:o,y:n,pageX:t,pageY:i},this.scrollTo(o,n,e,s)},next:function(t,i){var e=this.currentPage.pageX,s=this.currentPage.pageY;e++,e>=this.pages.length&&this.hasVerticalScroll&&(e=0,s++),this.goToPage(e,s,t,i)},prev:function(t,i){var e=this.currentPage.pageX,s=this.currentPage.pageY;e--,0>e&&this.hasVerticalScroll&&(e=0,s--),this.goToPage(e,s,t,i)},_initKeys:function(t){var i,e={pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40};if("object"==typeof this.options.keyBindings)for(i in this.options.keyBindings)"string"==typeof this.options.keyBindings[i]&&(this.options.keyBindings[i]=this.options.keyBindings[i].toUpperCase().charCodeAt(0));else this.options.keyBindings={};for(i in e)this.options.keyBindings[i]=this.options.keyBindings[i]||e[i];p.addEvent(o,"keydown",this),this.on("destroy",function(){p.removeEvent(o,"keydown",this)})},_key:function(t){if(this.enabled){var i,e=this.options.snap,s=e?this.currentPage.pageX:this.x,o=e?this.currentPage.pageY:this.y,n=p.getTime(),a=this.keyTime||0,h=.25;switch(this.options.useTransition&&this.isInTransition&&(i=this.getComputedPosition(),this._translate(r.round(i.x),r.round(i.y)),this.isInTransition=!1),this.keyAcceleration=200>n-a?r.min(this.keyAcceleration+h,50):0,t.keyCode){case this.options.keyBindings.pageUp:this.hasHorizontalScroll&&!this.hasVerticalScroll?s+=e?1:this.wrapperWidth:o+=e?1:this.wrapperHeight;break;case this.options.keyBindings.pageDown:this.hasHorizontalScroll&&!this.hasVerticalScroll?s-=e?1:this.wrapperWidth:o-=e?1:this.wrapperHeight;break;case this.options.keyBindings.end:s=e?this.pages.length-1:this.maxScrollX,o=e?this.pages[0].length-1:this.maxScrollY;break;case this.options.keyBindings.home:s=0,o=0;break;case this.options.keyBindings.left:s+=e?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.up:o+=e?1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.right:s-=e?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.down:o-=e?1:5+this.keyAcceleration>>0;break;default:return}if(e)return void this.goToPage(s,o);s>0?(s=0,this.keyAcceleration=0):s<this.maxScrollX&&(s=this.maxScrollX,this.keyAcceleration=0),o>0?(o=0,this.keyAcceleration=0):o<this.maxScrollY&&(o=this.maxScrollY,this.keyAcceleration=0),this.scrollTo(s,o,0),this.keyTime=n}},_animate:function(t,i,e,s){function o(){var d,u,f,m=p.getTime();return m>=l?(n.isAnimating=!1,n._translate(t,i),void(n.resetPosition(n.options.bounceTime)||n._execEvent("scrollEnd"))):(m=(m-h)/e,f=s(m),d=(t-r)*f+r,u=(i-a)*f+a,n._translate(d,u),n.isAnimating&&c(o),void(3==n.options.probeType&&n._execEvent("scroll")))}var n=this,r=this.x,a=this.y,h=p.getTime(),l=h+e;this.isAnimating=!0,o()},handleEvent:function(t){switch(t.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(t);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(t);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(t);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(t);break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._wheel(t);break;case"keydown":this._key(t);break;case"click":this.enabled&&!t._constructed&&(t.preventDefault(),t.stopPropagation())}}},l.prototype={handleEvent:function(t){switch(t.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(t);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(t);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(t)}},destroy:function(){this.options.fadeScrollbars&&(clearTimeout(this.fadeTimeout),this.fadeTimeout=null),this.options.interactive&&(p.removeEvent(this.indicator,"touchstart",this),p.removeEvent(this.indicator,p.prefixPointerEvent("pointerdown"),this),p.removeEvent(this.indicator,"mousedown",this),p.removeEvent(o,"touchmove",this),p.removeEvent(o,p.prefixPointerEvent("pointermove"),this),p.removeEvent(o,"mousemove",this),p.removeEvent(o,"touchend",this),p.removeEvent(o,p.prefixPointerEvent("pointerup"),this),p.removeEvent(o,"mouseup",this)),this.options.defaultScrollbars&&this.wrapper.parentNode.removeChild(this.wrapper)},_start:function(t){var i=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=i.pageX,this.lastPointY=i.pageY,this.startTime=p.getTime(),this.options.disableTouch||p.addEvent(o,"touchmove",this),this.options.disablePointer||p.addEvent(o,p.prefixPointerEvent("pointermove"),this),this.options.disableMouse||p.addEvent(o,"mousemove",this),this.scroller._execEvent("beforeScrollStart")},_move:function(t){var i,e,s,o,n=t.touches?t.touches[0]:t,r=p.getTime();this.moved||this.scroller._execEvent("scrollStart"),this.moved=!0,i=n.pageX-this.lastPointX,this.lastPointX=n.pageX,e=n.pageY-this.lastPointY,this.lastPointY=n.pageY,s=this.x+i,o=this.y+e,this._pos(s,o),1==this.scroller.options.probeType&&r-this.startTime>300?(this.startTime=r,this.scroller._execEvent("scroll")):this.scroller.options.probeType>1&&this.scroller._execEvent("scroll"),t.preventDefault(),t.stopPropagation()},_end:function(t){if(this.initiated){if(this.initiated=!1,t.preventDefault(),t.stopPropagation(),p.removeEvent(o,"touchmove",this),p.removeEvent(o,p.prefixPointerEvent("pointermove"),this),p.removeEvent(o,"mousemove",this),this.scroller.options.snap){var i=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),e=this.options.snapSpeed||r.max(r.max(r.min(r.abs(this.scroller.x-i.x),1e3),r.min(r.abs(this.scroller.y-i.y),1e3)),300);this.scroller.x==i.x&&this.scroller.y==i.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=i,this.scroller.scrollTo(i.x,i.y,e,this.scroller.options.bounceEasing))}this.moved&&this.scroller._execEvent("scrollEnd")}},transitionTime:function(t){t=t||0;var i=p.style.transitionDuration;if(this.indicatorStyle[i]=t+"ms",!t&&p.isBadAndroid){this.indicatorStyle[i]="0.0001ms";var e=this;c(function(){"0.0001ms"===e.indicatorStyle[i]&&(e.indicatorStyle[i]="0s")})}},transitionTimingFunction:function(t){this.indicatorStyle[p.style.transitionTimingFunction]=t},refresh:function(){this.transitionTime(),this.options.listenX&&!this.options.listenY?this.indicatorStyle.display=this.scroller.hasHorizontalScroll?"block":"none":this.options.listenY&&!this.options.listenX?this.indicatorStyle.display=this.scroller.hasVerticalScroll?"block":"none":this.indicatorStyle.display=this.scroller.hasHorizontalScroll||this.scroller.hasVerticalScroll?"block":"none",this.scroller.hasHorizontalScroll&&this.scroller.hasVerticalScroll?(p.addClass(this.wrapper,"iScrollBothScrollbars"),p.removeClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="8px":this.wrapper.style.bottom="8px")):(p.removeClass(this.wrapper,"iScrollBothScrollbars"),p.addClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="2px":this.wrapper.style.bottom="2px"));this.wrapper.offsetHeight;this.options.listenX&&(this.wrapperWidth=this.wrapper.clientWidth,this.options.resize?(this.indicatorWidth=r.max(r.round(this.wrapperWidth*this.wrapperWidth/(this.scroller.scrollerWidth||this.wrapperWidth||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px"):this.indicatorWidth=this.indicator.clientWidth,this.maxPosX=this.wrapperWidth-this.indicatorWidth,"clip"==this.options.shrink?(this.minBoundaryX=-this.indicatorWidth+8,this.maxBoundaryX=this.wrapperWidth-8):(this.minBoundaryX=0,this.maxBoundaryX=this.maxPosX),this.sizeRatioX=this.options.speedRatioX||this.scroller.maxScrollX&&this.maxPosX/this.scroller.maxScrollX),this.options.listenY&&(this.wrapperHeight=this.wrapper.clientHeight,this.options.resize?(this.indicatorHeight=r.max(r.round(this.wrapperHeight*this.wrapperHeight/(this.scroller.scrollerHeight||this.wrapperHeight||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px"):this.indicatorHeight=this.indicator.clientHeight,this.maxPosY=this.wrapperHeight-this.indicatorHeight,"clip"==this.options.shrink?(this.minBoundaryY=-this.indicatorHeight+8,this.maxBoundaryY=this.wrapperHeight-8):(this.minBoundaryY=0,this.maxBoundaryY=this.maxPosY),this.maxPosY=this.wrapperHeight-this.indicatorHeight,this.sizeRatioY=this.options.speedRatioY||this.scroller.maxScrollY&&this.maxPosY/this.scroller.maxScrollY),this.updatePosition()},updatePosition:function(){var t=this.options.listenX&&r.round(this.sizeRatioX*this.scroller.x)||0,i=this.options.listenY&&r.round(this.sizeRatioY*this.scroller.y)||0;this.options.ignoreBoundaries||(t<this.minBoundaryX?("scale"==this.options.shrink&&(this.width=r.max(this.indicatorWidth+t,8),this.indicatorStyle.width=this.width+"px"),t=this.minBoundaryX):t>this.maxBoundaryX?"scale"==this.options.shrink?(this.width=r.max(this.indicatorWidth-(t-this.maxPosX),8),this.indicatorStyle.width=this.width+"px",t=this.maxPosX+this.indicatorWidth-this.width):t=this.maxBoundaryX:"scale"==this.options.shrink&&this.width!=this.indicatorWidth&&(this.width=this.indicatorWidth,this.indicatorStyle.width=this.width+"px"),i<this.minBoundaryY?("scale"==this.options.shrink&&(this.height=r.max(this.indicatorHeight+3*i,8),
this.indicatorStyle.height=this.height+"px"),i=this.minBoundaryY):i>this.maxBoundaryY?"scale"==this.options.shrink?(this.height=r.max(this.indicatorHeight-3*(i-this.maxPosY),8),this.indicatorStyle.height=this.height+"px",i=this.maxPosY+this.indicatorHeight-this.height):i=this.maxBoundaryY:"scale"==this.options.shrink&&this.height!=this.indicatorHeight&&(this.height=this.indicatorHeight,this.indicatorStyle.height=this.height+"px")),this.x=t,this.y=i,this.scroller.options.useTransform?this.indicatorStyle[p.style.transform]="translate("+t+"px,"+i+"px)"+this.scroller.translateZ:(this.indicatorStyle.left=t+"px",this.indicatorStyle.top=i+"px")},_pos:function(t,i){0>t?t=0:t>this.maxPosX&&(t=this.maxPosX),0>i?i=0:i>this.maxPosY&&(i=this.maxPosY),t=this.options.listenX?r.round(t/this.sizeRatioX):this.scroller.x,i=this.options.listenY?r.round(i/this.sizeRatioY):this.scroller.y,this.scroller.scrollTo(t,i)},fade:function(t,i){if(!i||this.visible){clearTimeout(this.fadeTimeout),this.fadeTimeout=null;var e=t?250:500,s=t?0:300;t=t?"1":"0",this.wrapperStyle[p.style.transitionDuration]=e+"ms",this.fadeTimeout=setTimeout(function(t){this.wrapperStyle.opacity=t,this.visible=+t}.bind(this,t),s)}}},a.utils=p,"undefined"!=typeof t&&t.exports?t.exports=a:(s=function(){return a}.call(i,e,i,t),!(void 0!==s&&(t.exports=s)))}(window,document,Math)},28:function(t,i,e){function s(t,i){var e,s,r=o(window),a=!1;e=o(t),e.length&&(i.height&&e.height(i.height),this.iScroll=new n(e.get(0),{click:!0,bounce:!1,probeType:3}),this.iScroll.on("scrollStart",function(){0===this.y&&(a=!0),s=this.y,r.trigger("scroll")}),this.iScroll.on("scrollEnd",function(){a&&-1===this.directionY&&i.pullDown&&i.pullDown(),a=!1,s===this.y&&1===this.directionY&&i.pullUp&&i.pullUp(),r.trigger("scroll")}))}var o=e(1),n=e(19);t.exports=s}});
\ No newline at end of file
... ...
This diff could not be displayed because it is too large.
webpackJsonp([7],[function(e,t,i){function n(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),i=window.location.search.substr(1).match(t);return null!==i?i[2]:null}function o(e){var t;return t=e.hasClass("coat")?"coat":e.hasClass("trouser")?"trouser":e.hasClass("shoes")?"shoes":"other"}function a(e){var t,i,n,a,s,r={},d={};if(!c){if("object"===l.type(e)&&(e=[e]),e){for(t in q)q.hasOwnProperty(t)&&(q[t].reload=!0);for(s=0;s<e.length;s++){switch(e[s].type){case"gender":d={gender:e[s].id};break;case"brand":d={brand:e[s].id};break;case"sort":d={sort:e[s].id};break;case"color":d={color:e[s].id};break;case"size":d={size:e[s].id};break;case"price":d={price:e[s].id};break;case"discount":d={discount:e[s].id};break;case"p_d":d={p_d:e[s].id};break;case"breakSort":d={breakSort:e[s].id};break;case"breakSize":d={breakSize:e[s].id}}l.extend(z,d)}}if(n=o(E),i=q[n],a=i.page+1,i.reload)a=1;else if(i.end)return;l.extend(r,z,{type:"stock",order:0,page:a}),c=!0,m.showLoadingMask(),l.ajax({type:"GET",url:"/product/sale/search",data:r,success:function(e){var t,o;switch(n){case"coat":t=b;break;case"trouser":t=y;break;case"shoes":t=C;break;default:t=k}t.hasClass("hide")&&(t.siblings().addClass("hide"),t.removeClass("hide")),""===e?(i.end=!0,i.reload&&t.html(F)):i.reload?(t.html(e),f(t.find(".lazy"))):(o=t.find(".good-info").length,t.append(e),f(t.find(".good-info:gt("+(o-1)+") .lazy"))),i.reload=!1,i.page=a,c=!1,m.hideLoadingMask(),window.rePosFooter(),l(".good-detail-text .name").each(function(){var e=l(this),t=e.find("a");t[0].mlellipsis(2)})},error:function(){p.show("网络断开连接了~"),c=!1,m.hideLoadingMask()}})}}function s(){l.ajax({type:"GET",url:"/product/sale/filter",data:l.extend(z,{saleType:"1"}),success:function(e){d&&d.remove(),v.append(e),d=l(".filter-mask"),g.initFilter({fCbFn:a,hCbFn:function(){E.addClass("active"),E.siblings(".filter").removeClass("active"),l("#size-swiper-"+E.index()).show()},missStatus:!0})}})}function r(){l(window).scrollTop()+x>l(document).height()-.25*v.height()-50&&"undefined"!=typeof E&&a()}var d,c,l=i(1),h=i(11),u=i(10),f=i(6),p=i(2),g=i(9),m=i(5),v=l("#goods-container"),w=v.children(),b=l(w.get(0)),y=l(w.get(1)),C=l(w.get(2)),k=l(w.get(3)),x=l(window).height(),F='<p class="no-result">未找到相关搜索结果</p>',z=i(7),S={},T=l("#list-nav"),_=l(".swiper-size"),q={coat:{reload:!0,page:0,end:!1},trouser:{reload:!0,page:0,end:!1},shoes:{reload:!0,page:0,end:!1},other:{reload:!0,page:0,end:!1}},E=T.find(".active"),A=[],D=["coat","trouser","shoes","other"];i(8),i(3),u.init(),f(l("img.lazy")),z=l.extend({yh_channel:n("channel")||"boys",saleType:1},z),S=l.extend({},z),l(".banner-swiper .swiper-slide").length>1&&new h(".swiper-container",{observer:!0,observeParents:!0,lazyLoading:!0,lazyLoadingInPrevNext:!0,loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!0,paginationClickable:!0,pagination:".banner-top .pagination-inner"}),l.each(_,function(e){A[e]=new h("#size-swiper-"+e,{slidesPerView:"auto"})}),l.each(T.find("li"),function(e,t){l(t).addClass(D[e])}),s(),f(l(".lazy")),T.bind("contextmenu",function(){return!1}),T.on("touchend touchcancel",function(e){var t,i,n,r,d,c=l(e.target).closest("li");if(e.preventDefault(),c.hasClass("filter"))c.hasClass("active")?(g.hideFilter(),E.addClass("active"),c.removeClass("active"),_.eq(E.index()).show()):(E=c.siblings(".active"),_.hide(),E.removeClass("active"),c.addClass("active"),g.showFilter());else{if(r=o(c),t=q[r],!c.hasClass("active")){if(d=c.siblings(".active"),c.attr("class")!==E.attr("class")&&(g.resetFilter(),l(".classify .shower").removeClass("default"),z.breakSort=c.data("id"),z.breakSize=c.data("allsub"),s(),z=l.extend({},S)),E=c,d.hasClass("filter"))g.hideFilter();else switch(v.children(".container:not(.hide)").addClass("hide"),r){case"coat":b.removeClass("hide");break;case"trouser":y.removeClass("hide");break;case"shoes":C.removeClass("hide");break;case"other":k.removeClass("hide")}d.removeClass("active"),c.addClass("active"),i=c.data("id"),n=c.data("allsub"),_.hide(),l("#size-swiper-"+c.index()).show(),A[c.index()].onResize()}t.reload&&a([{type:"breakSort",id:i},{type:"breakSize",id:n}])}e.stopPropagation()}),_.on("click",function(e){var t,i,n,s,r,d=l(e.target).closest("li"),c=d.parents(".size-area").index(),h=T.find("li").eq(c);e.preventDefault(),"undefined"!=typeof d&&0!==d.length&&(s=o(h),t=q[s],d.hasClass("active")||(t.reload=!0,r=d.siblings(".active"),E=h,r.removeClass("active"),d.addClass("active"),i=h.data("id"),n=d.data("id"),t.reload&&a([{type:"breakSort",id:i},{type:"breakSize",id:n}]),e.stopPropagation()))}),l(window).scroll(function(){window.requestAnimationFrame(r)}),a([{type:"breakSort",id:l(".coat").data("id")},{type:"breakSize",id:l(".coat").data("allsub")}]),T.on("touchstart","li",function(){l(this).addClass("bytouch")}).on("touchend touchcancel",function(){T.find("li").removeClass("bytouch")})},,function(e,t,i){function n(e,t){var i,n;"undefined"!=typeof e&&(i=e.toString(),n=t&&t>0?t:2e3,o.text(i).show(),a=setTimeout(function(){"block"===o.css("display")&&o.hide()},n))}var o,a,s=i(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),o=s("#yoho-tip"),o.on("touchend",function(){o.hide(),clearTimeout(a)})}(),t.show=n},function(e,t,i){function n(e){var t,i,n=document.cookie;return document.cookie&&""!==document.cookie&&(i=n.indexOf(e+"="),i>-1&&(i+=e.length+1,t=decodeURIComponent(f.trim(n.substring(i,n.indexOf(";",i)))))),t}function o(e,t,i){var n,o,a,s,r="";"undefined"!=typeof t&&(i=i||{},null===t&&(t="",i.expires=-1),i.expires&&("number"==typeof i.expires||i.expires.toUTCString)&&("number"==typeof i.expires?(s=new Date,s.setTime(s.getTime()+24*i.expires*60*60*1e3)):s=i.expires,r="; expires="+s.toUTCString()),n=i.path?"; path="+i.path:"",o=i.domain?"; domain="+i.domain:"",a=i.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),r,n,o,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function s(){var e,t=n("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function r(){var e=s();return 0===e?0:e[1]}function d(){var e=n("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function c(){var e;0!==g.length&&(e=Math.min(f(window).height(),window.screen.availHeight),f("body").height()<=e-parseInt(g.css("height"),0)?g.addClass("bottom"):g.removeClass("bottom"))}function l(e){var t=f(e).outerHeight();e&&g.css("margin-bottom",t+"px")}function h(){var e,t,i=[],n=window.location.search.slice(1).split("&");for(t=0;t<n.length;t++)e=n[t].split("="),i.push(e[0]),i[e[0]]=e[1];return i}function u(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var f=i(1),p=i(4),g=f("#yoho-footer"),m=f(".yoho-page"),v=f(".yoho-header");!function(){var e,t=g.children(".op-row"),i=f(".back-to-top"),n=s();c(),0===n?t.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):t.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+n[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),i.length>0&&(e=new p(i[0]),e.on("tap",function(e){return f(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),g.removeClass("hide")}(),function(e,t,i,n,o){var a=t.createElement(i),s=t.getElementsByTagName(i)[0];e.YohoAcquisitionObject=o,e[o]=function(){e[o].p=arguments},a.async=1,a.src=n,s.parentNode.insertBefore(a,s)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),v.on("touchstart","a",function(){v.find("a").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel","a",function(){f(this).removeClass("highlight")}),m.on("touchstart",".tap-hightlight",function(){f(this).siblings(".tap-hightlight").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){f(this).removeClass("highlight")}),f(".nav-home").on("touchstart",function(){f(".homebuttom").toggleClass("hide")}),function(){var e,t,i=0,n="webkit moz ms o".split(" "),o=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(t=0;t<n.length&&(!o||!a);t++)e=n[t],o=o||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];o&&a||(o=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-i)),o=window.setTimeout(function(){e(t+n)},n);return i=t+n,o},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=o,window.cancelAnimationFrame=a}(),f.extend({queryString:h}),11===g.find(".user-name").text().length&&g.find(".user-name").html(u(g.find(".user-name").text())),window.cookie=n,window.setCookie=o,window.isCookiesEnabled=a,window.getUser=s,window.getUid=r,window.getShoppingKey=d,window.rePosFooter=c,window.reMarginFooter=l,window.queryString=h()},,function(e,t,i){function n(e){var t='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';c=!0,e||(e=d),e.append(t),s=e.children(".loading-mask"),r("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function o(){c||(n(),c=!0),s.removeClass("hide")}function a(){s.addClass("hide")}var s,r=i(1),d=r(".yoho-page"),c=!1;t.init=n,t.showLoadingMask=o,t.hideLoadingMask=a,t.show=o,t.hide=a},,function(e,t,i){var n=i(1),o={};n(".query-param").each(function(){var e=n(this);o[e.data("attr")]=e.val()}),e.exports=o},function(e,t,i){var n=i(1),o=n("#suspend-cart");n.ajax({type:"GET",url:"/cart/index/count",success:function(e){var t;200===e.code&&(t=e.data.cart_goods_count,t>99&&(t="99+"),0===t&&n(".cart-count").remove(),o.find(".cart-count").html(t).removeClass("hide"))}})},function(e,t,i){function n(){u.addClass("hide")}function o(){u.removeClass("hide")}function a(){var e=g(".filter-body .classify");e.on("touchstart",".shower",function(){e.removeClass("highlight"),g(this).addClass("highlight")}).on("touchend touchcancel",".shower",function(){g(this).removeClass("highlight")})}function s(){var e=g(".filter-body .sub-item");e.on("touchstart",function(){e.removeClass("highlight"),g(this).addClass("highlight")}).on("touchend touchcancel",function(){g(this).removeClass("highlight")})}function r(e){e.hasClass("active")||(e.siblings(".active").removeClass("active"),e.addClass("active"))}function d(e){var t,i,n=e.closest(".sub-classify"),o=n.siblings(".shower");return e.hasClass("chosed")?n:(n.children(".chosed").removeClass("chosed"),e.addClass("chosed"),t=g.trim(e.html()),i=g.trim(o.html()),o.html(i.substring(0,i.indexOf("</span>")+7)+t.substring(0,t.indexOf("<i"))),0===e.index()?o.addClass("default"):o.removeClass("default"),n)}function c(e){var t,i=e.data("id");t=d(e),f&&f({type:t.data("type"),id:i}),p&&p(),n()}function l(e){var t;f=e.fCbFn,p=e.hCbFn,window.missStatus=e.missStatus,a(),s(),u=g(".filter-mask"),t=new m(u[0]),t.on("tap",function(e){var t,i=g(e.target);e.preventDefault(),i.closest(".filter-body").length>0?(t=i.closest(".sub-item"),t.length>0?(t=i.closest("li"),c(t)):(t=i.closest(".classify-item"),e.srcEvent.stopPropagation(),r(t))):(n(),p&&p())})}function h(){"undefined"!=typeof u&&(g(".sub-classify").each(function(){d(g(this).children(":first-child"))}),r(g(".classify > :first-child")))}var u,f,p,g=i(1),m=i(4);t.initFilter=l,t.showFilter=o,t.hideFilter=n,t.resetFilter=h}]);
\ No newline at end of file
webpackJsonp([7],[function(e,t,i){function n(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),i=window.location.search.substr(1).match(t);return null!==i?i[2]:null}function o(e){var t;return t=e.hasClass("coat")?"coat":e.hasClass("trouser")?"trouser":e.hasClass("shoes")?"shoes":"other"}function a(e){var t,i,n,a,s,r={},d={};if(!c){if("object"===l.type(e)&&(e=[e]),e){for(t in q)q.hasOwnProperty(t)&&(q[t].reload=!0);for(s=0;s<e.length;s++){switch(e[s].type){case"gender":d={gender:e[s].id};break;case"brand":d={brand:e[s].id};break;case"sort":d={sort:e[s].id};break;case"color":d={color:e[s].id};break;case"size":d={size:e[s].id};break;case"price":d={price:e[s].id};break;case"discount":d={discount:e[s].id};break;case"p_d":d={p_d:e[s].id};break;case"breakSort":d={breakSort:e[s].id};break;case"breakSize":d={breakSize:e[s].id}}l.extend(z,d)}}if(n=o(E),i=q[n],a=i.page+1,i.reload)a=1;else if(i.end)return;l.extend(r,z,{type:"stock",order:0,page:a}),c=!0,m.showLoadingMask(),l.ajax({type:"GET",url:"/product/sale/search",data:r,success:function(e){var t,o;switch(n){case"coat":t=b;break;case"trouser":t=y;break;case"shoes":t=C;break;default:t=k}t.hasClass("hide")&&(t.siblings().addClass("hide"),t.removeClass("hide")),""===e?(i.end=!0,i.reload&&t.html(F)):i.reload?(t.html(e),f(t.find(".lazy"))):(o=t.find(".good-info").length,t.append(e),f(t.find(".good-info:gt("+(o-1)+") .lazy"))),i.reload=!1,i.page=a,c=!1,m.hideLoadingMask(),window.rePosFooter(),l(".good-detail-text .name").each(function(){var e=l(this),t=e.find("a");t[0].mlellipsis(2)})},error:function(){p.show("网络断开连接了~"),c=!1,m.hideLoadingMask()}})}}function s(){l.ajax({type:"GET",url:"/product/sale/filter",data:l.extend(z,{saleType:"1"}),success:function(e){d&&d.remove(),v.append(e),d=l(".filter-mask"),g.initFilter({fCbFn:a,hCbFn:function(){E.addClass("active"),E.siblings(".filter").removeClass("active"),l("#size-swiper-"+E.index()).show()},missStatus:!0})}})}function r(){l(window).scrollTop()+x>l(document).height()-.25*v.height()-50&&"undefined"!=typeof E&&a()}var d,c,l=i(1),h=i(11),u=i(10),f=i(6),p=i(2),g=i(9),m=i(5),v=l("#goods-container"),w=v.children(),b=l(w.get(0)),y=l(w.get(1)),C=l(w.get(2)),k=l(w.get(3)),x=l(window).height(),F='<p class="no-result">未找到相关搜索结果</p>',z=i(7),S={},T=l("#list-nav"),_=l(".swiper-size"),q={coat:{reload:!0,page:0,end:!1},trouser:{reload:!0,page:0,end:!1},shoes:{reload:!0,page:0,end:!1},other:{reload:!0,page:0,end:!1}},E=T.find(".active"),A=[],D=["coat","trouser","shoes","other"];i(8),i(3),u.init(),f(l("img.lazy")),z=l.extend({yh_channel:n("channel")||"boys",saleType:1},z),S=l.extend({},z),l(".banner-swiper .swiper-slide").length>1&&new h(".swiper-container",{observer:!0,observeParents:!0,lazyLoading:!0,lazyLoadingInPrevNext:!0,loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!0,paginationClickable:!0,pagination:".banner-top .pagination-inner"}),l.each(_,function(e){A[e]=new h("#size-swiper-"+e,{slidesPerView:"auto"})}),l.each(T.find("li"),function(e,t){l(t).addClass(D[e])}),s(),f(l(".lazy")),T.bind("contextmenu",function(){return!1}),T.on("touchend touchcancel",function(e){var t,i,n,r,d,c=l(e.target).closest("li");if(e.preventDefault(),c.hasClass("filter"))c.hasClass("active")?(g.hideFilter(),E.addClass("active"),c.removeClass("active"),_.eq(E.index()).show()):(E=c.siblings(".active"),_.hide(),E.removeClass("active"),c.addClass("active"),g.showFilter());else{if(r=o(c),t=q[r],!c.hasClass("active")){if(d=c.siblings(".active"),c.attr("class")!==E.attr("class")&&(g.resetFilter(),l(".classify .shower").removeClass("default"),z.breakSort=c.data("id"),z.breakSize=c.data("allsub"),s(),z=l.extend({},S)),E=c,d.hasClass("filter"))g.hideFilter();else switch(v.children(".container:not(.hide)").addClass("hide"),r){case"coat":b.removeClass("hide");break;case"trouser":y.removeClass("hide");break;case"shoes":C.removeClass("hide");break;case"other":k.removeClass("hide")}d.removeClass("active"),c.addClass("active"),i=c.data("id"),n=c.data("allsub"),_.hide(),l("#size-swiper-"+c.index()).show(),A[c.index()].onResize()}t.reload&&a([{type:"breakSort",id:i},{type:"breakSize",id:n}])}e.stopPropagation()}),_.on("click",function(e){var t,i,n,s,r,d=l(e.target).closest("li"),c=d.parents(".size-area").index(),h=T.find("li").eq(c);e.preventDefault(),"undefined"!=typeof d&&0!==d.length&&(s=o(h),t=q[s],d.hasClass("active")||(t.reload=!0,r=d.siblings(".active"),E=h,r.removeClass("active"),d.addClass("active"),i=h.data("id"),n=d.data("id"),t.reload&&a([{type:"breakSort",id:i},{type:"breakSize",id:n}]),e.stopPropagation()))}),l(window).scroll(function(){window.requestAnimationFrame(r)}),a([{type:"breakSort",id:l(".coat").data("id")},{type:"breakSize",id:l(".coat").data("allsub")}]),T.on("touchstart","li",function(){l(this).addClass("bytouch")}).on("touchend touchcancel",function(){T.find("li").removeClass("bytouch")})},,function(e,t,i){function n(e,t){var i,n;"undefined"!=typeof e&&(i=e.toString(),n=t&&t>0?t:2e3,o.text(i).show(),a=setTimeout(function(){"block"===o.css("display")&&o.hide()},n))}var o,a,s=i(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),o=s("#yoho-tip"),o.on("touchend",function(){o.hide(),clearTimeout(a)})}(),t.show=n},function(e,t,i){function n(e){var t,i,n=document.cookie;return document.cookie&&""!==document.cookie&&(i=n.indexOf(e+"="),i>-1&&(i+=e.length+1,t=decodeURIComponent(f.trim(n.substring(i,n.indexOf(";",i)))))),t}function o(e,t,i){var n,o,a,s,r="";"undefined"!=typeof t&&(i=i||{},null===t&&(t="",i.expires=-1),i.expires&&("number"==typeof i.expires||i.expires.toUTCString)&&("number"==typeof i.expires?(s=new Date,s.setTime(s.getTime()+24*i.expires*60*60*1e3)):s=i.expires,r="; expires="+s.toUTCString()),n=i.path?"; path="+i.path:"",o=i.domain?"; domain="+i.domain:"",a=i.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),r,n,o,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function s(){var e,t=n("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function r(){var e=s();return 0===e?0:e[1]}function d(){var e=n("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function c(){var e;0!==g.length&&(e=Math.min(f(window).height(),window.screen.availHeight),f("body").height()<=e-parseInt(g.css("height"),0)?g.addClass("bottom"):g.removeClass("bottom"))}function l(e){var t=f(e).outerHeight();e&&g.css("margin-bottom",t+"px")}function h(){var e,t,i=[],n=window.location.search.slice(1).split("&");for(t=0;t<n.length;t++)e=n[t].split("="),i.push(e[0]),i[e[0]]=e[1];return i}function u(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var f=i(1),p=i(4),g=f("#yoho-footer"),m=f(".yoho-page"),v=f(".yoho-header");!function(){var e,t=g.children(".op-row"),i=f(".back-to-top"),n=s();c(),0===n?t.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):t.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+n[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),i.length>0&&(e=new p(i[0]),e.on("tap",function(e){return f(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),g.removeClass("hide")}(),function(e,t,i,n,o){var a=t.createElement(i),s=t.getElementsByTagName(i)[0];e.YohoAcquisitionObject=o,e[o]=function(){e[o].p=arguments},a.async=1,a.src=n,s.parentNode.insertBefore(a,s)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),v.on("touchstart","a",function(){v.find("a").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel","a",function(){f(this).removeClass("highlight")}),m.on("touchstart",".tap-hightlight",function(){f(this).siblings(".tap-hightlight").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){f(this).removeClass("highlight")}),f(".nav-home").on("touchstart",function(){f(".homebuttom").toggleClass("hide")}),function(){var e,t,i=0,n="webkit moz ms o".split(" "),o=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(t=0;t<n.length&&(!o||!a);t++)e=n[t],o=o||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];o&&a||(o=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-i)),o=window.setTimeout(function(){e(t+n)},n);return i=t+n,o},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=o,window.cancelAnimationFrame=a}(),f.extend({queryString:h}),11===g.find(".user-name").text().length&&g.find(".user-name").html(u(g.find(".user-name").text())),window.cookie=n,window.setCookie=o,window.isCookiesEnabled=a,window.getUser=s,window.getUid=r,window.getShoppingKey=d,window.rePosFooter=c,window.reMarginFooter=l,window.queryString=h()},,function(e,t,i){function n(e){var t='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';c=!0,e||(e=d),e.append(t),s=e.children(".loading-mask"),r("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function o(){c||(n(),c=!0),s.removeClass("hide")}function a(){s.addClass("hide")}var s,r=i(1),d=r(".yoho-page"),c=!1;t.init=n,t.showLoadingMask=o,t.hideLoadingMask=a,t.show=o,t.hide=a},,function(e,t,i){var n=i(1),o={};n(".query-param").each(function(){var e=n(this);o[e.data("attr")]=e.val()}),e.exports=o},function(e,t,i){var n=i(1),o=n("#suspend-cart");n.ajax({type:"GET",url:"/cart/index/count",success:function(e){var t;200===e.code&&(t=e.data.cart_goods_count,t>99&&(t="99+"),0===t&&n(".cart-count").remove(),o.find(".cart-count").html(t).removeClass("hide"))}})},function(e,t,i){function n(){u.addClass("hide")}function o(){u.removeClass("hide")}function a(){var e=g(".filter-body .classify");e.on("touchstart",".shower",function(){e.removeClass("highlight"),g(this).addClass("highlight")}).on("touchend touchcancel",".shower",function(){g(this).removeClass("highlight")})}function s(){var e=g(".filter-body .sub-item");e.on("touchstart",function(){e.removeClass("highlight"),g(this).addClass("highlight")}).on("touchend touchcancel",function(){g(this).removeClass("highlight")})}function r(e){e.hasClass("active")||(e.siblings(".active").removeClass("active"),e.addClass("active"))}function d(e){var t,i,n=e.closest(".sub-classify"),o=n.siblings(".shower");return e.hasClass("chosed")?n:(n.children(".chosed").removeClass("chosed"),e.addClass("chosed"),t=g.trim(e.html()),i=g.trim(o.html()),o.html(i.substring(0,i.indexOf("</span>")+7)+t.substring(0,t.indexOf("<i"))),0===e.index()?o.addClass("default"):o.removeClass("default"),n)}function c(e){var t,i=e.data("id");t=d(e),f&&f({type:t.data("type"),id:i}),p&&p(),n()}function l(e){var t;f=e.fCbFn,p=e.hCbFn,window.missStatus=e.missStatus,a(),s(),u=g(".filter-mask"),u[0]&&(t=new m(u[0]),t.on("tap",function(e){var t,i=g(e.target);e.preventDefault(),i.closest(".filter-body").length>0?(t=i.closest(".sub-item"),t.length>0?(t=i.closest("li"),c(t)):(t=i.closest(".classify-item"),e.srcEvent.stopPropagation(),r(t))):(n(),p&&p())}))}function h(){"undefined"!=typeof u&&(g(".sub-classify").each(function(){d(g(this).children(":first-child"))}),r(g(".classify > :first-child")))}var u,f,p,g=i(1),m=i(4);t.initFilter=l,t.showFilter=o,t.hideFilter=n,t.resetFilter=h}]);
\ No newline at end of file
... ...
webpackJsonp([4],[function(e,t,n){var i=n(1),o=n(6),a=n(24),s=n(12);s.start(),o(i("img.lazy")),a()},,function(e,t,n){function i(e,t){var n,i;"undefined"!=typeof e&&(n=e.toString(),i=t&&t>0?t:2e3,o.text(n).show(),a=setTimeout(function(){"block"===o.css("display")&&o.hide()},i))}var o,a,s=n(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),o=s("#yoho-tip"),o.on("touchend",function(){o.hide(),clearTimeout(a)})}(),t.show=i},function(e,t,n){function i(e){var t,n,i=document.cookie;return document.cookie&&""!==document.cookie&&(n=i.indexOf(e+"="),n>-1&&(n+=e.length+1,t=decodeURIComponent(f.trim(i.substring(n,i.indexOf(";",n)))))),t}function o(e,t,n){var i,o,a,s,r="";"undefined"!=typeof t&&(n=n||{},null===t&&(t="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(s=new Date,s.setTime(s.getTime()+24*n.expires*60*60*1e3)):s=n.expires,r="; expires="+s.toUTCString()),i=n.path?"; path="+n.path:"",o=n.domain?"; domain="+n.domain:"",a=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),r,i,o,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function s(){var e,t=i("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function r(){var e=s();return 0===e?0:e[1]}function d(){var e=i("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function c(){var e;0!==p.length&&(e=Math.min(f(window).height(),window.screen.availHeight),f("body").height()<=e-parseInt(p.css("height"),0)?p.addClass("bottom"):p.removeClass("bottom"))}function l(e){var t=f(e).outerHeight();e&&p.css("margin-bottom",t+"px")}function h(){var e,t,n=[],i=window.location.search.slice(1).split("&");for(t=0;t<i.length;t++)e=i[t].split("="),n.push(e[0]),n[e[0]]=e[1];return n}function u(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var f=n(1),g=n(4),p=f("#yoho-footer"),m=f(".yoho-page"),v=f(".yoho-header");!function(){var e,t=p.children(".op-row"),n=f(".back-to-top"),i=s();c(),0===i?t.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):t.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+i[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),n.length>0&&(e=new g(n[0]),e.on("tap",function(e){return f(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),p.removeClass("hide")}(),function(e,t,n,i,o){var a=t.createElement(n),s=t.getElementsByTagName(n)[0];e.YohoAcquisitionObject=o,e[o]=function(){e[o].p=arguments},a.async=1,a.src=i,s.parentNode.insertBefore(a,s)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),v.on("touchstart","a",function(){v.find("a").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel","a",function(){f(this).removeClass("highlight")}),m.on("touchstart",".tap-hightlight",function(){f(this).siblings(".tap-hightlight").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){f(this).removeClass("highlight")}),f(".nav-home").on("touchstart",function(){f(".homebuttom").toggleClass("hide")}),function(){var e,t,n=0,i="webkit moz ms o".split(" "),o=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(t=0;t<i.length&&(!o||!a);t++)e=i[t],o=o||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];o&&a||(o=function(e){var t=(new Date).getTime(),i=Math.max(0,16-(t-n)),o=window.setTimeout(function(){e(t+i)},i);return n=t+i,o},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=o,window.cancelAnimationFrame=a}(),f.extend({queryString:h}),11===p.find(".user-name").text().length&&p.find(".user-name").html(u(p.find(".user-name").text())),window.cookie=i,window.setCookie=o,window.isCookiesEnabled=a,window.getUser=s,window.getUid=r,window.getShoppingKey=d,window.rePosFooter=c,window.reMarginFooter=l,window.queryString=h()},,function(e,t,n){function i(e){var t='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';c=!0,e||(e=d),e.append(t),s=e.children(".loading-mask"),r("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function o(){c||(i(),c=!0),s.removeClass("hide")}function a(){s.addClass("hide")}var s,r=n(1),d=r(".yoho-page"),c=!1;t.init=i,t.showLoadingMask=o,t.hideLoadingMask=a,t.show=o,t.hide=a},,function(e,t,n){var i=n(1),o={};i(".query-param").each(function(){var e=i(this);o[e.data("attr")]=e.val()}),e.exports=o},function(e,t,n){var i=n(1),o=i("#suspend-cart");i.ajax({type:"GET",url:"/cart/index/count",success:function(e){var t;200===e.code&&(t=e.data.cart_goods_count,t>99&&(t="99+"),0===t&&i(".cart-count").remove(),o.find(".cart-count").html(t).removeClass("hide"))}})},function(e,t,n){function i(){u.addClass("hide")}function o(){u.removeClass("hide")}function a(){var e=p(".filter-body .classify");e.on("touchstart",".shower",function(){e.removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel",".shower",function(){p(this).removeClass("highlight")})}function s(){var e=p(".filter-body .sub-item");e.on("touchstart",function(){e.removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel",function(){p(this).removeClass("highlight")})}function r(e){e.hasClass("active")||(e.siblings(".active").removeClass("active"),e.addClass("active"))}function d(e){var t,n,i=e.closest(".sub-classify"),o=i.siblings(".shower");return e.hasClass("chosed")?i:(i.children(".chosed").removeClass("chosed"),e.addClass("chosed"),t=p.trim(e.html()),n=p.trim(o.html()),o.html(n.substring(0,n.indexOf("</span>")+7)+t.substring(0,t.indexOf("<i"))),0===e.index()?o.addClass("default"):o.removeClass("default"),i)}function c(e){var t,n=e.data("id");t=d(e),f&&f({type:t.data("type"),id:n}),g&&g(),i()}function l(e){var t;f=e.fCbFn,g=e.hCbFn,window.missStatus=e.missStatus,a(),s(),u=p(".filter-mask"),t=new m(u[0]),t.on("tap",function(e){var t,n=p(e.target);e.preventDefault(),n.closest(".filter-body").length>0?(t=n.closest(".sub-item"),t.length>0?(t=n.closest("li"),c(t)):(t=n.closest(".classify-item"),e.srcEvent.stopPropagation(),r(t))):(i(),g&&g())})}function h(){"undefined"!=typeof u&&(p(".sub-classify").each(function(){d(p(this).children(":first-child"))}),r(p(".classify > :first-child")))}var u,f,g,p=n(1),m=n(4);t.initFilter=l,t.showFilter=o,t.hideFilter=i,t.resetFilter=h},,,function(e,t,n){function i(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!==n?n[2]:null}function o(e){var t="category";return e.hasClass("new")?t="newest":e.hasClass("price")?t="price":e.hasClass("discount")?t="discount":e.hasClass("sale")?t="sale":e.hasClass("all")?t="all":e.hasClass("category")&&(t="category"),t}function a(e,t){var n,i,a,s,r,h={};if(!c){if(e){for(i in _)_.hasOwnProperty(i)&&(_[i].reload=!0);switch(S.children(".active").removeClass("active"),E.addClass("active"),e.type){case"gender":n={gender:e.id};break;case"brand":n={brand:e.id};break;case"sort":n={sort:e.id};break;case"color":n={color:e.id};break;case"size":n={size:e.id};break;case"price":n={price:e.id};break;case"discount":n={discount:e.id};break;case"p_d":n={p_d:e.id}}l.extend(M,n)}if(l.extend(t||{},M),s=o(E),a=_[s||"all"],r=a.page+1,a.reload)r=1;else if(a.end)return;t?(d=t,l.extend(h,t,{type:s,order:a.order,page:r})):(d=null,l.extend(h,M,{type:s,order:a.order,page:r})),c=!0,p.showLoadingMask(),l.ajax({type:"GET",url:"/product/sale/search",data:h,success:function(e){var t,n;switch(s){case"newest":t=v;break;case"price":t=y;break;case"discount":t=w;break;case"sale":t=k;break;case"all":t=C;break;case"categroy":t=b;break;default:t=C}t.hasClass("hide")&&(t.siblings().addClass("hide"),t.removeClass("hide")),""===e?(a.end=!0,a.reload&&t.html(T)):("category"===s&&(a.page=1),a.reload||"category"===s?(t.html(e),u(t.find(".lazy"))):(n=t.find(".good-info").length,t.append(e),u(t.find(".good-info:gt("+(n-1)+") .lazy")))),a.reload=!1,a.page=r,c=!1,p.hideLoadingMask(),window.rePosFooter(),l(".good-detail-text .name").each(function(){var e=l(this),t=e.find("a");t[0].mlellipsis(2)})},error:function(){f.show("网络断开连接了~"),c=!1,p.hideLoadingMask()}})}}function s(){l.ajax({type:"GET",url:"/product/sale/filter",data:M,success:function(e){m.append(e),g.initFilter({fCbFn:a,hCbFn:function(){E.addClass("active"),E.siblings(".filter").removeClass("active")},missStatus:!0})}})}function r(){var e=l(window).scrollTop();e>F&&e+x>l(document).height()-.25*m.height()-50&&"undefined"!=typeof E&&(d?a(!1,d):a()),F=e}var d,c,l=n(1),h=n(10),u=n(6),f=n(2),g=n(9),p=n(5),m=l("#goods-container"),v=m.find(".new-goods"),w=m.find(".discount-goods"),y=m.find(".price-goods"),C=m.find(".all-goods"),b=m.find(".category-goods"),k=m.find(".sale-goods"),x=l(window).height(),T='<p class="no-result">未找到相关搜索结果</p>',F=0,M=n(7),S=l("#list-nav"),_={all:{order:0,reload:!0,page:0,end:!1},newest:{order:0,reload:!0,page:0,end:!1},price:{order:1,reload:!0,page:0,end:!1},discount:{order:1,reload:!0,page:0,end:!1},sale:{order:0,reload:!0,page:0,end:!1},category:{order:0,reload:!0,fuck:!0,page:0,end:!1}},E=S.find(".active");n(8),n(3),h.init(),u(l("img.lazy")),l(".sale-vip-page").length>0?M.saleType=2:l(".discount-detail-page").length>0&&(M.saleType=3,M.productPool=l(".discount-detail-page").data("product-pool")||""),l.extend(M,{yh_channel:i("channel")||"all"}),0===l(".outlet-index-page").length&&s(),u(l(".lazy")),S.bind("contextmenu",function(){return!1}),S.on("touchend touchcancel",function(e){var t,n,i,s=l(e.target).closest("li");if(e.preventDefault(),"undefined"!=typeof s&&0!==s.length){if(s.hasClass("filter"))s.hasClass("active")?(g.hideFilter(),E.addClass("active"),s.removeClass("active")):(E=s.siblings(".active"),E.removeClass("active"),s.addClass("active"),g.showFilter());else{if(n=o(s),t=_[n],s.hasClass("active")){if(s.hasClass("new")||s.hasClass("sale")||s.hasClass("all"))return;(s.hasClass("price")||s.hasClass("discount"))&&(s.find(".icon > .iconfont").toggleClass("cur"),E=s,t.reload=!0,t.order=0===t.order?1:0)}else{if(i=s.siblings(".active"),E=s,i.hasClass("filter"))g.hideFilter();else switch(m.children(".container:not(.hide)").addClass("hide"),n){case"newest":v.removeClass("hide");break;case"price":y.removeClass("hide");break;case"discount":w.removeClass("hide");break;case"sale":k.removeClass("hide");break;case"all":C.removeClass("hide")}i.removeClass("active"),s.addClass("active")}t.reload&&a()}e.stopPropagation()}}),l(window).scroll(function(){0===l(".outlet-index-page").length&&window.requestAnimationFrame(r)}),S.on("touchstart","li",function(){l(this).addClass("bytouch")}).on("touchend touchcancel",function(){S.find("li").removeClass("bytouch")}),e.exports={start:a}},,,,,,,,,,,,function(e,t,n){function i(e){var t="",n=0,i=0,o=0,s=0;e.timeDom.each(function(r,d){t="",e.endTime[r]=e.endTime[r]-e.aSecond,e.endTime[r]>e.aSecond?(n=Math.floor(e.endTime[r]/e.anHour/24),i=Math.floor(e.endTime[r]/e.anHour%24),o=Math.floor(e.endTime[r]/e.aMinute%60),s=Math.floor(e.endTime[r]/e.aSecond%60),t+=n>0?n+"天":"",t+=i>0?i+"小时":"",t+=o+"分钟",t+=s>0?s+"秒":"",""!==t.length&&(t="剩"+t),a(d).find("span").html(t),a(d).fadeIn()):a(d).hide()})}function o(e){a.extend(d,e||{}),setInterval(function(){i(d)},1e3)}var a=n(1),s=a(".activity-time"),r=s?s.data("time-ms"):"",d={anHour:3600,aMinute:60,aSecond:1,timeDom:s,endTime:[r]};e.exports=o}]);
\ No newline at end of file
webpackJsonp([4],[function(e,t,n){var i=n(1),o=n(6),a=n(24),s=n(12);s.start(),o(i("img.lazy")),a()},,function(e,t,n){function i(e,t){var n,i;"undefined"!=typeof e&&(n=e.toString(),i=t&&t>0?t:2e3,o.text(n).show(),a=setTimeout(function(){"block"===o.css("display")&&o.hide()},i))}var o,a,s=n(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),o=s("#yoho-tip"),o.on("touchend",function(){o.hide(),clearTimeout(a)})}(),t.show=i},function(e,t,n){function i(e){var t,n,i=document.cookie;return document.cookie&&""!==document.cookie&&(n=i.indexOf(e+"="),n>-1&&(n+=e.length+1,t=decodeURIComponent(f.trim(i.substring(n,i.indexOf(";",n)))))),t}function o(e,t,n){var i,o,a,s,r="";"undefined"!=typeof t&&(n=n||{},null===t&&(t="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(s=new Date,s.setTime(s.getTime()+24*n.expires*60*60*1e3)):s=n.expires,r="; expires="+s.toUTCString()),i=n.path?"; path="+n.path:"",o=n.domain?"; domain="+n.domain:"",a=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),r,i,o,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function s(){var e,t=i("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function r(){var e=s();return 0===e?0:e[1]}function d(){var e=i("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function c(){var e;0!==p.length&&(e=Math.min(f(window).height(),window.screen.availHeight),f("body").height()<=e-parseInt(p.css("height"),0)?p.addClass("bottom"):p.removeClass("bottom"))}function l(e){var t=f(e).outerHeight();e&&p.css("margin-bottom",t+"px")}function h(){var e,t,n=[],i=window.location.search.slice(1).split("&");for(t=0;t<i.length;t++)e=i[t].split("="),n.push(e[0]),n[e[0]]=e[1];return n}function u(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var f=n(1),g=n(4),p=f("#yoho-footer"),m=f(".yoho-page"),v=f(".yoho-header");!function(){var e,t=p.children(".op-row"),n=f(".back-to-top"),i=s();c(),0===i?t.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):t.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+i[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),n.length>0&&(e=new g(n[0]),e.on("tap",function(e){return f(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),p.removeClass("hide")}(),function(e,t,n,i,o){var a=t.createElement(n),s=t.getElementsByTagName(n)[0];e.YohoAcquisitionObject=o,e[o]=function(){e[o].p=arguments},a.async=1,a.src=i,s.parentNode.insertBefore(a,s)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),v.on("touchstart","a",function(){v.find("a").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel","a",function(){f(this).removeClass("highlight")}),m.on("touchstart",".tap-hightlight",function(){f(this).siblings(".tap-hightlight").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){f(this).removeClass("highlight")}),f(".nav-home").on("touchstart",function(){f(".homebuttom").toggleClass("hide")}),function(){var e,t,n=0,i="webkit moz ms o".split(" "),o=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(t=0;t<i.length&&(!o||!a);t++)e=i[t],o=o||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];o&&a||(o=function(e){var t=(new Date).getTime(),i=Math.max(0,16-(t-n)),o=window.setTimeout(function(){e(t+i)},i);return n=t+i,o},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=o,window.cancelAnimationFrame=a}(),f.extend({queryString:h}),11===p.find(".user-name").text().length&&p.find(".user-name").html(u(p.find(".user-name").text())),window.cookie=i,window.setCookie=o,window.isCookiesEnabled=a,window.getUser=s,window.getUid=r,window.getShoppingKey=d,window.rePosFooter=c,window.reMarginFooter=l,window.queryString=h()},,function(e,t,n){function i(e){var t='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';c=!0,e||(e=d),e.append(t),s=e.children(".loading-mask"),r("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function o(){c||(i(),c=!0),s.removeClass("hide")}function a(){s.addClass("hide")}var s,r=n(1),d=r(".yoho-page"),c=!1;t.init=i,t.showLoadingMask=o,t.hideLoadingMask=a,t.show=o,t.hide=a},,function(e,t,n){var i=n(1),o={};i(".query-param").each(function(){var e=i(this);o[e.data("attr")]=e.val()}),e.exports=o},function(e,t,n){var i=n(1),o=i("#suspend-cart");i.ajax({type:"GET",url:"/cart/index/count",success:function(e){var t;200===e.code&&(t=e.data.cart_goods_count,t>99&&(t="99+"),0===t&&i(".cart-count").remove(),o.find(".cart-count").html(t).removeClass("hide"))}})},function(e,t,n){function i(){u.addClass("hide")}function o(){u.removeClass("hide")}function a(){var e=p(".filter-body .classify");e.on("touchstart",".shower",function(){e.removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel",".shower",function(){p(this).removeClass("highlight")})}function s(){var e=p(".filter-body .sub-item");e.on("touchstart",function(){e.removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel",function(){p(this).removeClass("highlight")})}function r(e){e.hasClass("active")||(e.siblings(".active").removeClass("active"),e.addClass("active"))}function d(e){var t,n,i=e.closest(".sub-classify"),o=i.siblings(".shower");return e.hasClass("chosed")?i:(i.children(".chosed").removeClass("chosed"),e.addClass("chosed"),t=p.trim(e.html()),n=p.trim(o.html()),o.html(n.substring(0,n.indexOf("</span>")+7)+t.substring(0,t.indexOf("<i"))),0===e.index()?o.addClass("default"):o.removeClass("default"),i)}function c(e){var t,n=e.data("id");t=d(e),f&&f({type:t.data("type"),id:n}),g&&g(),i()}function l(e){var t;f=e.fCbFn,g=e.hCbFn,window.missStatus=e.missStatus,a(),s(),u=p(".filter-mask"),u[0]&&(t=new m(u[0]),t.on("tap",function(e){var t,n=p(e.target);e.preventDefault(),n.closest(".filter-body").length>0?(t=n.closest(".sub-item"),t.length>0?(t=n.closest("li"),c(t)):(t=n.closest(".classify-item"),e.srcEvent.stopPropagation(),r(t))):(i(),g&&g())}))}function h(){"undefined"!=typeof u&&(p(".sub-classify").each(function(){d(p(this).children(":first-child"))}),r(p(".classify > :first-child")))}var u,f,g,p=n(1),m=n(4);t.initFilter=l,t.showFilter=o,t.hideFilter=i,t.resetFilter=h},,,function(e,t,n){function i(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!==n?n[2]:null}function o(e){var t="category";return e.hasClass("new")?t="newest":e.hasClass("price")?t="price":e.hasClass("discount")?t="discount":e.hasClass("sale")?t="sale":e.hasClass("all")?t="all":e.hasClass("category")&&(t="category"),t}function a(e,t){var n,i,a,s,r,h={};if(!c){if(e){for(i in _)_.hasOwnProperty(i)&&(_[i].reload=!0);switch(S.children(".active").removeClass("active"),E.addClass("active"),e.type){case"gender":n={gender:e.id};break;case"brand":n={brand:e.id};break;case"sort":n={sort:e.id};break;case"color":n={color:e.id};break;case"size":n={size:e.id};break;case"price":n={price:e.id};break;case"discount":n={discount:e.id};break;case"p_d":n={p_d:e.id}}l.extend(M,n)}if(l.extend(t||{},M),s=o(E),a=_[s||"all"],r=a.page+1,a.reload)r=1;else if(a.end)return;t?(d=t,l.extend(h,t,{type:s,order:a.order,page:r})):(d=null,l.extend(h,M,{type:s,order:a.order,page:r})),c=!0,p.showLoadingMask(),l.ajax({type:"GET",url:"/product/sale/search",data:h,success:function(e){var t,n;switch(s){case"newest":t=v;break;case"price":t=y;break;case"discount":t=w;break;case"sale":t=k;break;case"all":t=C;break;case"categroy":t=b;break;default:t=C}t.hasClass("hide")&&(t.siblings().addClass("hide"),t.removeClass("hide")),""===e?(a.end=!0,a.reload&&t.html(T)):("category"===s&&(a.page=1),a.reload||"category"===s?(t.html(e),u(t.find(".lazy"))):(n=t.find(".good-info").length,t.append(e),u(t.find(".good-info:gt("+(n-1)+") .lazy")))),a.reload=!1,a.page=r,c=!1,p.hideLoadingMask(),window.rePosFooter(),l(".good-detail-text .name").each(function(){var e=l(this),t=e.find("a");t[0].mlellipsis(2)})},error:function(){f.show("网络断开连接了~"),c=!1,p.hideLoadingMask()}})}}function s(){l.ajax({type:"GET",url:"/product/sale/filter",data:M,success:function(e){m.append(e),g.initFilter({fCbFn:a,hCbFn:function(){E.addClass("active"),E.siblings(".filter").removeClass("active")},missStatus:!0})}})}function r(){var e=l(window).scrollTop();e>F&&e+x>l(document).height()-.25*m.height()-50&&"undefined"!=typeof E&&(d?a(!1,d):a()),F=e}var d,c,l=n(1),h=n(10),u=n(6),f=n(2),g=n(9),p=n(5),m=l("#goods-container"),v=m.find(".new-goods"),w=m.find(".discount-goods"),y=m.find(".price-goods"),C=m.find(".all-goods"),b=m.find(".category-goods"),k=m.find(".sale-goods"),x=l(window).height(),T='<p class="no-result">未找到相关搜索结果</p>',F=0,M=n(7),S=l("#list-nav"),_={all:{order:0,reload:!0,page:0,end:!1},newest:{order:0,reload:!0,page:0,end:!1},price:{order:1,reload:!0,page:0,end:!1},discount:{order:1,reload:!0,page:0,end:!1},sale:{order:0,reload:!0,page:0,end:!1},category:{order:0,reload:!0,fuck:!0,page:0,end:!1}},E=S.find(".active");n(8),n(3),h.init(),u(l("img.lazy")),l(".sale-vip-page").length>0?M.saleType=2:l(".discount-detail-page").length>0&&(M.saleType=3,M.productPool=l(".discount-detail-page").data("product-pool")||""),l.extend(M,{yh_channel:i("channel")||"all"}),0===l(".outlet-index-page").length&&s(),u(l(".lazy")),S.bind("contextmenu",function(){return!1}),S.on("touchend touchcancel",function(e){var t,n,i,s=l(e.target).closest("li");if(e.preventDefault(),"undefined"!=typeof s&&0!==s.length){if(s.hasClass("filter"))s.hasClass("active")?(g.hideFilter(),E.addClass("active"),s.removeClass("active")):(E=s.siblings(".active"),E.removeClass("active"),s.addClass("active"),g.showFilter());else{if(n=o(s),t=_[n],s.hasClass("active")){if(s.hasClass("new")||s.hasClass("sale")||s.hasClass("all"))return;(s.hasClass("price")||s.hasClass("discount"))&&(s.find(".icon > .iconfont").toggleClass("cur"),E=s,t.reload=!0,t.order=0===t.order?1:0)}else{if(i=s.siblings(".active"),E=s,i.hasClass("filter"))g.hideFilter();else switch(m.children(".container:not(.hide)").addClass("hide"),n){case"newest":v.removeClass("hide");break;case"price":y.removeClass("hide");break;case"discount":w.removeClass("hide");break;case"sale":k.removeClass("hide");break;case"all":C.removeClass("hide")}i.removeClass("active"),s.addClass("active")}t.reload&&a()}e.stopPropagation()}}),l(window).scroll(function(){0===l(".outlet-index-page").length&&window.requestAnimationFrame(r)}),S.on("touchstart","li",function(){l(this).addClass("bytouch")}).on("touchend touchcancel",function(){S.find("li").removeClass("bytouch")}),e.exports={start:a}},,,,,,,,,,,,function(e,t,n){function i(e){var t="",n=0,i=0,o=0,s=0;e.timeDom.each(function(r,d){t="",e.endTime[r]=e.endTime[r]-e.aSecond,e.endTime[r]>e.aSecond?(n=Math.floor(e.endTime[r]/e.anHour/24),i=Math.floor(e.endTime[r]/e.anHour%24),o=Math.floor(e.endTime[r]/e.aMinute%60),s=Math.floor(e.endTime[r]/e.aSecond%60),t+=n>0?n+"天":"",t+=i>0?i+"小时":"",t+=o+"分钟",t+=s>0?s+"秒":"",""!==t.length&&(t="剩"+t),a(d).find("span").html(t),a(d).fadeIn()):a(d).hide()})}function o(e){a.extend(d,e||{}),setInterval(function(){i(d)},1e3)}var a=n(1),s=a(".activity-time"),r=s?s.data("time-ms"):"",d={anHour:3600,aMinute:60,aSecond:1,timeDom:s,endTime:[r]};e.exports=o}]);
\ No newline at end of file
... ...
webpackJsonp([13],{0:function(t,e,n){(function(t){var e=n(14),i=n(13),a=t(".cd-lite");e({el:"#index_nav"})["goto"](t("#index_nav").find(".active").index()),new i.Countdown({el:a})}).call(e,n(1))},2:function(t,e,n){function i(t,e){var n,i;"undefined"!=typeof t&&(n=t.toString(),i=e&&e>0?e:2e3,a.text(n).show(),o=setTimeout(function(){"block"===a.css("display")&&a.hide()},i))}var a,o,l=n(1);!function(){var t='<div id="yoho-tip" class="yoho-tip"></div>';l(".yoho-page").append(t),a=l("#yoho-tip"),a.on("touchend",function(){a.hide(),clearTimeout(o)})}(),e.show=i},13:function(t,e,n){"use strict";function i(t){var e;return this instanceof i?(t.el=a(t.el),void(t.el&&(e=t.el.attr("data-config"),e&&(e=JSON.parse(e.replace(/'/g,'"')),t=a.extend(!0,{},r,e,t)),this.config=t,this._init()))):new i(t)}var a=n(1),o=n(2),l="afterPaint",r={el:{},stopPoint:0,leftTime:0,template:"",varRegular:/\$\{([\-\w]+)\}/g,clock:["d",100,2,"h",24,2,"m",60,2,"s",60,2,"u",10,1],effect:"normal"},f={normal:{paint:function(){var t,e=this;a.each(e.hands,function(n,i){i.lastValue!==i.value&&(t="",a.each(e._toDigitals(i.value,i.bits),function(n,i){t+=e._html(i,"","digital")}),i.node.html(t))})}}},c=function(){function t(){for(var e,a,o,l,r=+new Date-t.nextTime,f=1+Math.floor(r/100);i.length;)i.shift()();for(r=100-r%100,t.nextTime+=100*f,o=0,l=n.length;l>o;o+=2)e=n[o+1],0===e?n[o](f):(e+=2*f-1,a=Math.floor(e/20),a>0&&n[o](a),n[o+1]=e%20+1);setTimeout(t,r)}function e(t,e){var n,i;for(n=0,i=e.length;i>n;++n)if(e[n]===t)return n;return-1}var n=[],i=[];return t.nextTime=+new Date,t(),{add:function(t,e){i.push(function(){n.push(t),n.push(1e3===e?1:0)})},remove:function(t){var a;i.push(function(){a=e(t,n),-1!==a&&n.splice(e(t,n),2)})}}}();a.extend(i.prototype,{_init:function(){var t,e,n=this,i=n.config.el,o=[],l=i.html(),r=n.config.varRegular;n.hands=o,n.frequency=1e3,n._notify=[],r.lastIndex=0,i.html(l.replace(r,function(t,e){var i="";return"u"!==e&&"s-ext"!==e||(n.frequency=100),"s-ext"===e?(o.push({type:"s"}),o.push({type:"u"}),i=n._html("","s","handlet")+n._html(".","","digital")+n._html("","u","handlet")):o.push({type:e}),n._html(i,e,"hand")})),t=n.config.clock,a.each(o,function(e,n){var a,o=n.type,l=100;for(n.node=i.find(".hand-"+o),a=t.length-3;a>-1&&o!==t[a];a-=3)l*=t[a+1];n.base=l,n.radix=t[a+1],n.bits=t[a+2]}),n._getLeft(),n._reflow(),e=n._reflow,n._reflow=function(){return e.apply(n,arguments)},c.add(n._reflow,n.frequency),i.show()},_getLeft:function(){var t=1e3*this.config.leftTime,e=this.config.stopPoint;!t&&e&&(t=e-+new Date),this.left=t-t%this.frequency},_reflow:function(t){var e=this,n=e.config.el;return t=t||0,e.left=e.left-e.frequency*t,a.each(e.hands,function(t,n){n.lastValue=n.value,n.value=Math.floor(e.left/n.base)%n.radix}),e._repaint(),e._notify[e.left]&&a.each(e._notify[e.left],function(t,n){n.call(e)}),e.left<1&&(n.text("— 活动已结束 —"),n.parents(".back-ground-white").on("click",function(){return o.show("活动即将开始,敬请期待!"),!1}),c.remove(e._reflow)),e.left<864e5&&n.find(".left-day").hide(),e},_repaint:function(){f[this.config.effect].paint.apply(this),this.config.el.trigger(l)},_toDigitals:function(t,e){var n=[];for(t=0>t?0:t,e=t.toString().length>1?2:1;e--;)n[e]=t%10,t=Math.floor(t/10);return n},_html:function(t,e,n){switch(a.isArray(t)&&(t=t.join("")),n){case"hand":e=n+" hand-"+e;break;case"handlet":e=n+" hand-"+e;break;case"digital":e="."===t?n+" "+n+"-point "+e:n+" "+n+"-"+t+" "+e}return'<i class="'+e+'">'+t+"</i>"},notify:function(t,e){var n;return t=1e3*t,t-=t%this.frequency,n=this._notify[t]||[],n.push(e),this._notify[t]=n,this}}),e.Countdown=i},14:function(t,e,n){function i(t){function e(t){var e;e=n.find("li").eq(t),e.length>0&&setTimeout(function(){i.scrollToElement(e[0],400)},1)}var n,i,a,o={el:".outlet-nav"};return a=r.extend({},o,t),n=r(a.el),i=new f(n[0],{scrollX:!0,scrollY:!1,mouseWheel:!0,scrollbars:!0,probeType:3,preventDefault:!0,click:!0}),{"goto":e}}function a(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(e);return null!==n?decodeURIComponent(n[2]):null}function o(){r("#index_nav").find("li").each(function(){r(this).find("a").text()===s?r(this).attr({"data-nav":"other","data-type":3}):r(this).find("a").text()===c&&r(this).attr({"data-nav":"other","data-type":2})})}function l(){var t=r("#index_nav"),e=a("yh_channel");o(),null===e?(e=a("type"),null===e?t.find('li:not([data-nav="other"])').eq(0).addClass("active").siblings().removeClass("active"):t.find("li[data-type="+e+"]").addClass("active").siblings().removeClass("active")):t.find('li:not([data-nav="other"])').eq(e).addClass("active").siblings().removeClass("active")}var r=n(1),f=n(15),c="即将结束",s="上线预告";l(),t.exports=i}});
\ No newline at end of file
webpackJsonp([13],{0:function(t,n,e){(function(t){var n=e(14),i=e(13),a=t(".cd-lite");n({el:"#index_nav"})["goto"](t("#index_nav").find(".active").index()),new i.Countdown({el:a})}).call(n,e(1))},2:function(t,n,e){function i(t,n){var e,i;"undefined"!=typeof t&&(e=t.toString(),i=n&&n>0?n:2e3,a.text(e).show(),o=setTimeout(function(){"block"===a.css("display")&&a.hide()},i))}var a,o,l=e(1);!function(){var t='<div id="yoho-tip" class="yoho-tip"></div>';l(".yoho-page").append(t),a=l("#yoho-tip"),a.on("touchend",function(){a.hide(),clearTimeout(o)})}(),n.show=i},13:function(t,n,e){"use strict";function i(t){var n;return this instanceof i?(t.el=a(t.el),void(t.el&&(n=t.el.attr("data-config"),n&&(n=JSON.parse(n.replace(/'/g,'"')),t=a.extend(!0,{},r,n,t)),this.config=t,this._init()))):new i(t)}var a=e(1),o=e(2),l="afterPaint",r={el:{},stopPoint:0,leftTime:0,template:"",varRegular:/\$\{([\-\w]+)\}/g,clock:["d",100,2,"h",24,2,"m",60,2,"s",60,2,"u",10,1],effect:"normal"},f={normal:{paint:function(){var t,n=this;a.each(n.hands,function(e,i){i.lastValue!==i.value&&(t="",a.each(n._toDigitals(i.value,i.bits),function(e,i){t+=n._html(i,"","digital")}),i.node.html(t))})}}},c=function(){function t(){for(var n,a,o,l,r=+new Date-t.nextTime,f=1+Math.floor(r/100);i.length;)i.shift()();for(r=100-r%100,t.nextTime+=100*f,o=0,l=e.length;l>o;o+=2)n=e[o+1],0===n?e[o](f):(n+=2*f-1,a=Math.floor(n/20),a>0&&e[o](a),e[o+1]=n%20+1);setTimeout(t,r)}function n(t,n){var e,i;for(e=0,i=n.length;i>e;++e)if(n[e]===t)return e;return-1}var e=[],i=[];return t.nextTime=+new Date,t(),{add:function(t,n){i.push(function(){e.push(t),e.push(1e3===n?1:0)})},remove:function(t){var a;i.push(function(){a=n(t,e),-1!==a&&e.splice(n(t,e),2)})}}}();a.extend(i.prototype,{_init:function(){var t,n,e=this,i=e.config.el,o=[],l=i.html(),r=e.config.varRegular;e.hands=o,e.frequency=1e3,e._notify=[],r.lastIndex=0,i.html(l.replace(r,function(t,n){var i="";return"u"!==n&&"s-ext"!==n||(e.frequency=100),"s-ext"===n?(o.push({type:"s"}),o.push({type:"u"}),i=e._html("","s","handlet")+e._html(".","","digital")+e._html("","u","handlet")):o.push({type:n}),e._html(i,n,"hand")})),t=e.config.clock,a.each(o,function(n,e){var a,o=e.type,l=100;for(e.node=i.find(".hand-"+o),a=t.length-3;a>-1&&o!==t[a];a-=3)l*=t[a+1];e.base=l,e.radix=t[a+1],e.bits=t[a+2]}),e._getLeft(),e._reflow(),n=e._reflow,e._reflow=function(){return n.apply(e,arguments)},c.add(e._reflow,e.frequency),i.show()},_getLeft:function(){var t=1e3*this.config.leftTime,n=this.config.stopPoint;!t&&n&&(t=n-+new Date),this.left=t-t%this.frequency},_reflow:function(t){var n=this,e=n.config.el;return t=t||0,n.left=n.left-n.frequency*t,a.each(n.hands,function(t,e){e.lastValue=e.value,e.value=Math.floor(n.left/e.base)%e.radix}),n._repaint(),n._notify[n.left]&&a.each(n._notify[n.left],function(t,e){e.call(n)}),n.left<1&&(e.text("— 活动已结束 —"),e.parents(".back-ground-white").on("click",function(){return o.show("活动即将开始,敬请期待!"),!1}),c.remove(n._reflow)),n.left<864e5&&e.find(".left-day").hide(),n},_repaint:function(){f[this.config.effect].paint.apply(this),this.config.el.trigger(l)},_toDigitals:function(t,n){var e=[];for(t=0>t?0:t,n=t.toString().length>1?2:1;n--;)e[n]=t%10,t=Math.floor(t/10);return e},_html:function(t,n,e){switch(a.isArray(t)&&(t=t.join("")),e){case"hand":n=e+" hand-"+n;break;case"handlet":n=e+" hand-"+n;break;case"digital":n="."===t?e+" "+e+"-point "+n:e+" "+e+"-"+t+" "+n}return'<i class="'+n+'">'+t+"</i>"},notify:function(t,n){var e;return t=1e3*t,t-=t%this.frequency,e=this._notify[t]||[],e.push(n),this._notify[t]=e,this}}),n.Countdown=i},14:function(t,n,e){function i(t){function n(t){var n;n=e.find("li").eq(t),n.length>0&&setTimeout(function(){i.scrollToElement(n[0],400)},1)}var e,i,a,o={el:".outlet-nav"};return a=r.extend({},o,t),e=r(a.el),i=new f(e[0],{scrollX:!0,scrollY:!1,tap:!0,eventPassthrough:!0,preventDefault:!0}),{"goto":n}}function a(t){var n=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),e=window.location.search.substr(1).match(n);return null!==e?decodeURIComponent(e[2]):null}function o(){r("#index_nav").find("li").each(function(){r(this).find("a").text()===s?r(this).attr({"data-nav":"other","data-type":3}):r(this).find("a").text()===c&&r(this).attr({"data-nav":"other","data-type":2})})}function l(){var t=r("#index_nav"),n=a("yh_channel");o(),null===n?(n=a("type"),null===n?t.find('li:not([data-nav="other"])').eq(0).addClass("active").siblings().removeClass("active"):t.find("li[data-type="+n+"]").addClass("active").siblings().removeClass("active")):t.find('li:not([data-nav="other"])').eq(n).addClass("active").siblings().removeClass("active")}var r=e(1),f=e(15),c="即将结束",s="上线预告";l(),t.exports=i}});
\ No newline at end of file
... ...
webpackJsonp([3],[function(e,t,n){var i=n(1),o=n(13),a=n(12),s=i(".cd-lite");a.start(),new o.Countdown({el:s}),i(".back-ground-white").css("padding","0")},,function(e,t,n){function i(e,t){var n,i;"undefined"!=typeof e&&(n=e.toString(),i=t&&t>0?t:2e3,o.text(n).show(),a=setTimeout(function(){"block"===o.css("display")&&o.hide()},i))}var o,a,s=n(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),o=s("#yoho-tip"),o.on("touchend",function(){o.hide(),clearTimeout(a)})}(),t.show=i},function(e,t,n){function i(e){var t,n,i=document.cookie;return document.cookie&&""!==document.cookie&&(n=i.indexOf(e+"="),n>-1&&(n+=e.length+1,t=decodeURIComponent(f.trim(i.substring(n,i.indexOf(";",n)))))),t}function o(e,t,n){var i,o,a,s,r="";"undefined"!=typeof t&&(n=n||{},null===t&&(t="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(s=new Date,s.setTime(s.getTime()+24*n.expires*60*60*1e3)):s=n.expires,r="; expires="+s.toUTCString()),i=n.path?"; path="+n.path:"",o=n.domain?"; domain="+n.domain:"",a=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),r,i,o,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function s(){var e,t=i("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function r(){var e=s();return 0===e?0:e[1]}function c(){var e=i("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function l(){var e;0!==p.length&&(e=Math.min(f(window).height(),window.screen.availHeight),f("body").height()<=e-parseInt(p.css("height"),0)?p.addClass("bottom"):p.removeClass("bottom"))}function d(e){var t=f(e).outerHeight();e&&p.css("margin-bottom",t+"px")}function h(){var e,t,n=[],i=window.location.search.slice(1).split("&");for(t=0;t<i.length;t++)e=i[t].split("="),n.push(e[0]),n[e[0]]=e[1];return n}function u(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var f=n(1),g=n(4),p=f("#yoho-footer"),m=f(".yoho-page"),v=f(".yoho-header");!function(){var e,t=p.children(".op-row"),n=f(".back-to-top"),i=s();l(),0===i?t.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):t.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+i[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),n.length>0&&(e=new g(n[0]),e.on("tap",function(e){return f(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),p.removeClass("hide")}(),function(e,t,n,i,o){var a=t.createElement(n),s=t.getElementsByTagName(n)[0];e.YohoAcquisitionObject=o,e[o]=function(){e[o].p=arguments},a.async=1,a.src=i,s.parentNode.insertBefore(a,s)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),v.on("touchstart","a",function(){v.find("a").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel","a",function(){f(this).removeClass("highlight")}),m.on("touchstart",".tap-hightlight",function(){f(this).siblings(".tap-hightlight").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){f(this).removeClass("highlight")}),f(".nav-home").on("touchstart",function(){f(".homebuttom").toggleClass("hide")}),function(){var e,t,n=0,i="webkit moz ms o".split(" "),o=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(t=0;t<i.length&&(!o||!a);t++)e=i[t],o=o||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];o&&a||(o=function(e){var t=(new Date).getTime(),i=Math.max(0,16-(t-n)),o=window.setTimeout(function(){e(t+i)},i);return n=t+i,o},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=o,window.cancelAnimationFrame=a}(),f.extend({queryString:h}),11===p.find(".user-name").text().length&&p.find(".user-name").html(u(p.find(".user-name").text())),window.cookie=i,window.setCookie=o,window.isCookiesEnabled=a,window.getUser=s,window.getUid=r,window.getShoppingKey=c,window.rePosFooter=l,window.reMarginFooter=d,window.queryString=h()},,function(e,t,n){function i(e){var t='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';l=!0,e||(e=c),e.append(t),s=e.children(".loading-mask"),r("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function o(){l||(i(),l=!0),s.removeClass("hide")}function a(){s.addClass("hide")}var s,r=n(1),c=r(".yoho-page"),l=!1;t.init=i,t.showLoadingMask=o,t.hideLoadingMask=a,t.show=o,t.hide=a},,function(e,t,n){var i=n(1),o={};i(".query-param").each(function(){var e=i(this);o[e.data("attr")]=e.val()}),e.exports=o},function(e,t,n){var i=n(1),o=i("#suspend-cart");i.ajax({type:"GET",url:"/cart/index/count",success:function(e){var t;200===e.code&&(t=e.data.cart_goods_count,t>99&&(t="99+"),0===t&&i(".cart-count").remove(),o.find(".cart-count").html(t).removeClass("hide"))}})},function(e,t,n){function i(){u.addClass("hide")}function o(){u.removeClass("hide")}function a(){var e=p(".filter-body .classify");e.on("touchstart",".shower",function(){e.removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel",".shower",function(){p(this).removeClass("highlight")})}function s(){var e=p(".filter-body .sub-item");e.on("touchstart",function(){e.removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel",function(){p(this).removeClass("highlight")})}function r(e){e.hasClass("active")||(e.siblings(".active").removeClass("active"),e.addClass("active"))}function c(e){var t,n,i=e.closest(".sub-classify"),o=i.siblings(".shower");return e.hasClass("chosed")?i:(i.children(".chosed").removeClass("chosed"),e.addClass("chosed"),t=p.trim(e.html()),n=p.trim(o.html()),o.html(n.substring(0,n.indexOf("</span>")+7)+t.substring(0,t.indexOf("<i"))),0===e.index()?o.addClass("default"):o.removeClass("default"),i)}function l(e){var t,n=e.data("id");t=c(e),f&&f({type:t.data("type"),id:n}),g&&g(),i()}function d(e){var t;f=e.fCbFn,g=e.hCbFn,window.missStatus=e.missStatus,a(),s(),u=p(".filter-mask"),t=new m(u[0]),t.on("tap",function(e){var t,n=p(e.target);e.preventDefault(),n.closest(".filter-body").length>0?(t=n.closest(".sub-item"),t.length>0?(t=n.closest("li"),l(t)):(t=n.closest(".classify-item"),e.srcEvent.stopPropagation(),r(t))):(i(),g&&g())})}function h(){"undefined"!=typeof u&&(p(".sub-classify").each(function(){c(p(this).children(":first-child"))}),r(p(".classify > :first-child")))}var u,f,g,p=n(1),m=n(4);t.initFilter=d,t.showFilter=o,t.hideFilter=i,t.resetFilter=h},,,function(e,t,n){function i(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!==n?n[2]:null}function o(e){var t="category";return e.hasClass("new")?t="newest":e.hasClass("price")?t="price":e.hasClass("discount")?t="discount":e.hasClass("sale")?t="sale":e.hasClass("all")?t="all":e.hasClass("category")&&(t="category"),t}function a(e,t){var n,i,a,s,r,h={};if(!l){if(e){for(i in M)M.hasOwnProperty(i)&&(M[i].reload=!0);switch(q.children(".active").removeClass("active"),D.addClass("active"),e.type){case"gender":n={gender:e.id};break;case"brand":n={brand:e.id};break;case"sort":n={sort:e.id};break;case"color":n={color:e.id};break;case"size":n={size:e.id};break;case"price":n={price:e.id};break;case"discount":n={discount:e.id};break;case"p_d":n={p_d:e.id}}d.extend(T,n)}if(d.extend(t||{},T),s=o(D),a=M[s||"all"],r=a.page+1,a.reload)r=1;else if(a.end)return;t?(c=t,d.extend(h,t,{type:s,order:a.order,page:r})):(c=null,d.extend(h,T,{type:s,order:a.order,page:r})),l=!0,p.showLoadingMask(),d.ajax({type:"GET",url:"/product/sale/search",data:h,success:function(e){var t,n;switch(s){case"newest":t=v;break;case"price":t=y;break;case"discount":t=w;break;case"sale":t=k;break;case"all":t=C;break;case"categroy":t=b;break;default:t=C}t.hasClass("hide")&&(t.siblings().addClass("hide"),t.removeClass("hide")),""===e?(a.end=!0,a.reload&&t.html(_)):("category"===s&&(a.page=1),a.reload||"category"===s?(t.html(e),u(t.find(".lazy"))):(n=t.find(".good-info").length,t.append(e),u(t.find(".good-info:gt("+(n-1)+") .lazy")))),a.reload=!1,a.page=r,l=!1,p.hideLoadingMask(),window.rePosFooter(),d(".good-detail-text .name").each(function(){var e=d(this),t=e.find("a");t[0].mlellipsis(2)})},error:function(){f.show("网络断开连接了~"),l=!1,p.hideLoadingMask()}})}}function s(){d.ajax({type:"GET",url:"/product/sale/filter",data:T,success:function(e){m.append(e),g.initFilter({fCbFn:a,hCbFn:function(){D.addClass("active"),D.siblings(".filter").removeClass("active")},missStatus:!0})}})}function r(){var e=d(window).scrollTop();e>F&&e+x>d(document).height()-.25*m.height()-50&&"undefined"!=typeof D&&(c?a(!1,c):a()),F=e}var c,l,d=n(1),h=n(10),u=n(6),f=n(2),g=n(9),p=n(5),m=d("#goods-container"),v=m.find(".new-goods"),w=m.find(".discount-goods"),y=m.find(".price-goods"),C=m.find(".all-goods"),b=m.find(".category-goods"),k=m.find(".sale-goods"),x=d(window).height(),_='<p class="no-result">未找到相关搜索结果</p>',F=0,T=n(7),q=d("#list-nav"),M={all:{order:0,reload:!0,page:0,end:!1},newest:{order:0,reload:!0,page:0,end:!1},price:{order:1,reload:!0,page:0,end:!1},discount:{order:1,reload:!0,page:0,end:!1},sale:{order:0,reload:!0,page:0,end:!1},category:{order:0,reload:!0,fuck:!0,page:0,end:!1}},D=q.find(".active");n(8),n(3),h.init(),u(d("img.lazy")),d(".sale-vip-page").length>0?T.saleType=2:d(".discount-detail-page").length>0&&(T.saleType=3,T.productPool=d(".discount-detail-page").data("product-pool")||""),d.extend(T,{yh_channel:i("channel")||"all"}),0===d(".outlet-index-page").length&&s(),u(d(".lazy")),q.bind("contextmenu",function(){return!1}),q.on("touchend touchcancel",function(e){var t,n,i,s=d(e.target).closest("li");if(e.preventDefault(),"undefined"!=typeof s&&0!==s.length){if(s.hasClass("filter"))s.hasClass("active")?(g.hideFilter(),D.addClass("active"),s.removeClass("active")):(D=s.siblings(".active"),D.removeClass("active"),s.addClass("active"),g.showFilter());else{if(n=o(s),t=M[n],s.hasClass("active")){if(s.hasClass("new")||s.hasClass("sale")||s.hasClass("all"))return;(s.hasClass("price")||s.hasClass("discount"))&&(s.find(".icon > .iconfont").toggleClass("cur"),D=s,t.reload=!0,t.order=0===t.order?1:0)}else{if(i=s.siblings(".active"),D=s,i.hasClass("filter"))g.hideFilter();else switch(m.children(".container:not(.hide)").addClass("hide"),n){case"newest":v.removeClass("hide");break;case"price":y.removeClass("hide");break;case"discount":w.removeClass("hide");break;case"sale":k.removeClass("hide");break;case"all":C.removeClass("hide")}i.removeClass("active"),s.addClass("active")}t.reload&&a()}e.stopPropagation()}}),d(window).scroll(function(){0===d(".outlet-index-page").length&&window.requestAnimationFrame(r)}),q.on("touchstart","li",function(){d(this).addClass("bytouch")}).on("touchend touchcancel",function(){q.find("li").removeClass("bytouch")}),e.exports={start:a}},function(e,t,n){"use strict";function i(e){var t;return this instanceof i?(e.el=o(e.el),void(e.el&&(t=e.el.attr("data-config"),t&&(t=JSON.parse(t.replace(/'/g,'"')),e=o.extend(!0,{},r,t,e)),this.config=e,this._init()))):new i(e)}var o=n(1),a=n(2),s="afterPaint",r={el:{},stopPoint:0,leftTime:0,template:"",varRegular:/\$\{([\-\w]+)\}/g,clock:["d",100,2,"h",24,2,"m",60,2,"s",60,2,"u",10,1],effect:"normal"},c={normal:{paint:function(){var e,t=this;o.each(t.hands,function(n,i){i.lastValue!==i.value&&(e="",o.each(t._toDigitals(i.value,i.bits),function(n,i){e+=t._html(i,"","digital")}),i.node.html(e))})}}},l=function(){function e(){for(var t,o,a,s,r=+new Date-e.nextTime,c=1+Math.floor(r/100);i.length;)i.shift()();for(r=100-r%100,e.nextTime+=100*c,a=0,s=n.length;s>a;a+=2)t=n[a+1],0===t?n[a](c):(t+=2*c-1,o=Math.floor(t/20),o>0&&n[a](o),n[a+1]=t%20+1);setTimeout(e,r)}function t(e,t){var n,i;for(n=0,i=t.length;i>n;++n)if(t[n]===e)return n;return-1}var n=[],i=[];return e.nextTime=+new Date,e(),{add:function(e,t){i.push(function(){n.push(e),n.push(1e3===t?1:0)})},remove:function(e){var o;i.push(function(){o=t(e,n),-1!==o&&n.splice(t(e,n),2)})}}}();o.extend(i.prototype,{_init:function(){var e,t,n=this,i=n.config.el,a=[],s=i.html(),r=n.config.varRegular;n.hands=a,n.frequency=1e3,n._notify=[],r.lastIndex=0,i.html(s.replace(r,function(e,t){var i="";return"u"!==t&&"s-ext"!==t||(n.frequency=100),"s-ext"===t?(a.push({type:"s"}),a.push({type:"u"}),i=n._html("","s","handlet")+n._html(".","","digital")+n._html("","u","handlet")):a.push({type:t}),n._html(i,t,"hand")})),e=n.config.clock,o.each(a,function(t,n){var o,a=n.type,s=100;for(n.node=i.find(".hand-"+a),o=e.length-3;o>-1&&a!==e[o];o-=3)s*=e[o+1];n.base=s,n.radix=e[o+1],n.bits=e[o+2]}),n._getLeft(),n._reflow(),t=n._reflow,n._reflow=function(){return t.apply(n,arguments)},l.add(n._reflow,n.frequency),i.show()},_getLeft:function(){var e=1e3*this.config.leftTime,t=this.config.stopPoint;!e&&t&&(e=t-+new Date),this.left=e-e%this.frequency},_reflow:function(e){var t=this,n=t.config.el;return e=e||0,t.left=t.left-t.frequency*e,o.each(t.hands,function(e,n){n.lastValue=n.value,n.value=Math.floor(t.left/n.base)%n.radix}),t._repaint(),t._notify[t.left]&&o.each(t._notify[t.left],function(e,n){n.call(t)}),t.left<1&&(n.text("— 活动已结束 —"),n.parents(".back-ground-white").on("click",function(){return a.show("活动即将开始,敬请期待!"),!1}),l.remove(t._reflow)),t.left<864e5&&n.find(".left-day").hide(),t},_repaint:function(){c[this.config.effect].paint.apply(this),this.config.el.trigger(s)},_toDigitals:function(e,t){var n=[];for(e=0>e?0:e,t=e.toString().length>1?2:1;t--;)n[t]=e%10,e=Math.floor(e/10);return n},_html:function(e,t,n){switch(o.isArray(e)&&(e=e.join("")),n){case"hand":t=n+" hand-"+t;break;case"handlet":t=n+" hand-"+t;break;case"digital":t="."===e?n+" "+n+"-point "+t:n+" "+n+"-"+e+" "+t}return'<i class="'+t+'">'+e+"</i>"},notify:function(e,t){var n;return e=1e3*e,e-=e%this.frequency,n=this._notify[e]||[],n.push(t),this._notify[e]=n,this}}),t.Countdown=i}]);
\ No newline at end of file
webpackJsonp([3],[function(e,t,n){var i=n(1),o=n(13),a=n(12),s=i(".cd-lite");a.start(),new o.Countdown({el:s}),i(".back-ground-white").css("padding","0")},,function(e,t,n){function i(e,t){var n,i;"undefined"!=typeof e&&(n=e.toString(),i=t&&t>0?t:2e3,o.text(n).show(),a=setTimeout(function(){"block"===o.css("display")&&o.hide()},i))}var o,a,s=n(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),o=s("#yoho-tip"),o.on("touchend",function(){o.hide(),clearTimeout(a)})}(),t.show=i},function(e,t,n){function i(e){var t,n,i=document.cookie;return document.cookie&&""!==document.cookie&&(n=i.indexOf(e+"="),n>-1&&(n+=e.length+1,t=decodeURIComponent(f.trim(i.substring(n,i.indexOf(";",n)))))),t}function o(e,t,n){var i,o,a,s,r="";"undefined"!=typeof t&&(n=n||{},null===t&&(t="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(s=new Date,s.setTime(s.getTime()+24*n.expires*60*60*1e3)):s=n.expires,r="; expires="+s.toUTCString()),i=n.path?"; path="+n.path:"",o=n.domain?"; domain="+n.domain:"",a=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),r,i,o,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function s(){var e,t=i("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function r(){var e=s();return 0===e?0:e[1]}function c(){var e=i("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function l(){var e;0!==p.length&&(e=Math.min(f(window).height(),window.screen.availHeight),f("body").height()<=e-parseInt(p.css("height"),0)?p.addClass("bottom"):p.removeClass("bottom"))}function d(e){var t=f(e).outerHeight();e&&p.css("margin-bottom",t+"px")}function h(){var e,t,n=[],i=window.location.search.slice(1).split("&");for(t=0;t<i.length;t++)e=i[t].split("="),n.push(e[0]),n[e[0]]=e[1];return n}function u(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var f=n(1),g=n(4),p=f("#yoho-footer"),m=f(".yoho-page"),v=f(".yoho-header");!function(){var e,t=p.children(".op-row"),n=f(".back-to-top"),i=s();l(),0===i?t.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):t.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+i[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),n.length>0&&(e=new g(n[0]),e.on("tap",function(e){return f(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),p.removeClass("hide")}(),function(e,t,n,i,o){var a=t.createElement(n),s=t.getElementsByTagName(n)[0];e.YohoAcquisitionObject=o,e[o]=function(){e[o].p=arguments},a.async=1,a.src=i,s.parentNode.insertBefore(a,s)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),v.on("touchstart","a",function(){v.find("a").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel","a",function(){f(this).removeClass("highlight")}),m.on("touchstart",".tap-hightlight",function(){f(this).siblings(".tap-hightlight").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){f(this).removeClass("highlight")}),f(".nav-home").on("touchstart",function(){f(".homebuttom").toggleClass("hide")}),function(){var e,t,n=0,i="webkit moz ms o".split(" "),o=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(t=0;t<i.length&&(!o||!a);t++)e=i[t],o=o||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];o&&a||(o=function(e){var t=(new Date).getTime(),i=Math.max(0,16-(t-n)),o=window.setTimeout(function(){e(t+i)},i);return n=t+i,o},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=o,window.cancelAnimationFrame=a}(),f.extend({queryString:h}),11===p.find(".user-name").text().length&&p.find(".user-name").html(u(p.find(".user-name").text())),window.cookie=i,window.setCookie=o,window.isCookiesEnabled=a,window.getUser=s,window.getUid=r,window.getShoppingKey=c,window.rePosFooter=l,window.reMarginFooter=d,window.queryString=h()},,function(e,t,n){function i(e){var t='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';l=!0,e||(e=c),e.append(t),s=e.children(".loading-mask"),r("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function o(){l||(i(),l=!0),s.removeClass("hide")}function a(){s.addClass("hide")}var s,r=n(1),c=r(".yoho-page"),l=!1;t.init=i,t.showLoadingMask=o,t.hideLoadingMask=a,t.show=o,t.hide=a},,function(e,t,n){var i=n(1),o={};i(".query-param").each(function(){var e=i(this);o[e.data("attr")]=e.val()}),e.exports=o},function(e,t,n){var i=n(1),o=i("#suspend-cart");i.ajax({type:"GET",url:"/cart/index/count",success:function(e){var t;200===e.code&&(t=e.data.cart_goods_count,t>99&&(t="99+"),0===t&&i(".cart-count").remove(),o.find(".cart-count").html(t).removeClass("hide"))}})},function(e,t,n){function i(){u.addClass("hide")}function o(){u.removeClass("hide")}function a(){var e=p(".filter-body .classify");e.on("touchstart",".shower",function(){e.removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel",".shower",function(){p(this).removeClass("highlight")})}function s(){var e=p(".filter-body .sub-item");e.on("touchstart",function(){e.removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel",function(){p(this).removeClass("highlight")})}function r(e){e.hasClass("active")||(e.siblings(".active").removeClass("active"),e.addClass("active"))}function c(e){var t,n,i=e.closest(".sub-classify"),o=i.siblings(".shower");return e.hasClass("chosed")?i:(i.children(".chosed").removeClass("chosed"),e.addClass("chosed"),t=p.trim(e.html()),n=p.trim(o.html()),o.html(n.substring(0,n.indexOf("</span>")+7)+t.substring(0,t.indexOf("<i"))),0===e.index()?o.addClass("default"):o.removeClass("default"),i)}function l(e){var t,n=e.data("id");t=c(e),f&&f({type:t.data("type"),id:n}),g&&g(),i()}function d(e){var t;f=e.fCbFn,g=e.hCbFn,window.missStatus=e.missStatus,a(),s(),u=p(".filter-mask"),u[0]&&(t=new m(u[0]),t.on("tap",function(e){var t,n=p(e.target);e.preventDefault(),n.closest(".filter-body").length>0?(t=n.closest(".sub-item"),t.length>0?(t=n.closest("li"),l(t)):(t=n.closest(".classify-item"),e.srcEvent.stopPropagation(),r(t))):(i(),g&&g())}))}function h(){"undefined"!=typeof u&&(p(".sub-classify").each(function(){c(p(this).children(":first-child"))}),r(p(".classify > :first-child")))}var u,f,g,p=n(1),m=n(4);t.initFilter=d,t.showFilter=o,t.hideFilter=i,t.resetFilter=h},,,function(e,t,n){function i(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!==n?n[2]:null}function o(e){var t="category";return e.hasClass("new")?t="newest":e.hasClass("price")?t="price":e.hasClass("discount")?t="discount":e.hasClass("sale")?t="sale":e.hasClass("all")?t="all":e.hasClass("category")&&(t="category"),t}function a(e,t){var n,i,a,s,r,h={};if(!l){if(e){for(i in M)M.hasOwnProperty(i)&&(M[i].reload=!0);switch(q.children(".active").removeClass("active"),D.addClass("active"),e.type){case"gender":n={gender:e.id};break;case"brand":n={brand:e.id};break;case"sort":n={sort:e.id};break;case"color":n={color:e.id};break;case"size":n={size:e.id};break;case"price":n={price:e.id};break;case"discount":n={discount:e.id};break;case"p_d":n={p_d:e.id}}d.extend(T,n)}if(d.extend(t||{},T),s=o(D),a=M[s||"all"],r=a.page+1,a.reload)r=1;else if(a.end)return;t?(c=t,d.extend(h,t,{type:s,order:a.order,page:r})):(c=null,d.extend(h,T,{type:s,order:a.order,page:r})),l=!0,p.showLoadingMask(),d.ajax({type:"GET",url:"/product/sale/search",data:h,success:function(e){var t,n;switch(s){case"newest":t=v;break;case"price":t=y;break;case"discount":t=w;break;case"sale":t=k;break;case"all":t=C;break;case"categroy":t=b;break;default:t=C}t.hasClass("hide")&&(t.siblings().addClass("hide"),t.removeClass("hide")),""===e?(a.end=!0,a.reload&&t.html(_)):("category"===s&&(a.page=1),a.reload||"category"===s?(t.html(e),u(t.find(".lazy"))):(n=t.find(".good-info").length,t.append(e),u(t.find(".good-info:gt("+(n-1)+") .lazy")))),a.reload=!1,a.page=r,l=!1,p.hideLoadingMask(),window.rePosFooter(),d(".good-detail-text .name").each(function(){var e=d(this),t=e.find("a");t[0].mlellipsis(2)})},error:function(){f.show("网络断开连接了~"),l=!1,p.hideLoadingMask()}})}}function s(){d.ajax({type:"GET",url:"/product/sale/filter",data:T,success:function(e){m.append(e),g.initFilter({fCbFn:a,hCbFn:function(){D.addClass("active"),D.siblings(".filter").removeClass("active")},missStatus:!0})}})}function r(){var e=d(window).scrollTop();e>F&&e+x>d(document).height()-.25*m.height()-50&&"undefined"!=typeof D&&(c?a(!1,c):a()),F=e}var c,l,d=n(1),h=n(10),u=n(6),f=n(2),g=n(9),p=n(5),m=d("#goods-container"),v=m.find(".new-goods"),w=m.find(".discount-goods"),y=m.find(".price-goods"),C=m.find(".all-goods"),b=m.find(".category-goods"),k=m.find(".sale-goods"),x=d(window).height(),_='<p class="no-result">未找到相关搜索结果</p>',F=0,T=n(7),q=d("#list-nav"),M={all:{order:0,reload:!0,page:0,end:!1},newest:{order:0,reload:!0,page:0,end:!1},price:{order:1,reload:!0,page:0,end:!1},discount:{order:1,reload:!0,page:0,end:!1},sale:{order:0,reload:!0,page:0,end:!1},category:{order:0,reload:!0,fuck:!0,page:0,end:!1}},D=q.find(".active");n(8),n(3),h.init(),u(d("img.lazy")),d(".sale-vip-page").length>0?T.saleType=2:d(".discount-detail-page").length>0&&(T.saleType=3,T.productPool=d(".discount-detail-page").data("product-pool")||""),d.extend(T,{yh_channel:i("channel")||"all"}),0===d(".outlet-index-page").length&&s(),u(d(".lazy")),q.bind("contextmenu",function(){return!1}),q.on("touchend touchcancel",function(e){var t,n,i,s=d(e.target).closest("li");if(e.preventDefault(),"undefined"!=typeof s&&0!==s.length){if(s.hasClass("filter"))s.hasClass("active")?(g.hideFilter(),D.addClass("active"),s.removeClass("active")):(D=s.siblings(".active"),D.removeClass("active"),s.addClass("active"),g.showFilter());else{if(n=o(s),t=M[n],s.hasClass("active")){if(s.hasClass("new")||s.hasClass("sale")||s.hasClass("all"))return;(s.hasClass("price")||s.hasClass("discount"))&&(s.find(".icon > .iconfont").toggleClass("cur"),D=s,t.reload=!0,t.order=0===t.order?1:0)}else{if(i=s.siblings(".active"),D=s,i.hasClass("filter"))g.hideFilter();else switch(m.children(".container:not(.hide)").addClass("hide"),n){case"newest":v.removeClass("hide");break;case"price":y.removeClass("hide");break;case"discount":w.removeClass("hide");break;case"sale":k.removeClass("hide");break;case"all":C.removeClass("hide")}i.removeClass("active"),s.addClass("active")}t.reload&&a()}e.stopPropagation()}}),d(window).scroll(function(){0===d(".outlet-index-page").length&&window.requestAnimationFrame(r)}),q.on("touchstart","li",function(){d(this).addClass("bytouch")}).on("touchend touchcancel",function(){q.find("li").removeClass("bytouch")}),e.exports={start:a}},function(e,t,n){"use strict";function i(e){var t;return this instanceof i?(e.el=o(e.el),void(e.el&&(t=e.el.attr("data-config"),t&&(t=JSON.parse(t.replace(/'/g,'"')),e=o.extend(!0,{},r,t,e)),this.config=e,this._init()))):new i(e)}var o=n(1),a=n(2),s="afterPaint",r={el:{},stopPoint:0,leftTime:0,template:"",varRegular:/\$\{([\-\w]+)\}/g,clock:["d",100,2,"h",24,2,"m",60,2,"s",60,2,"u",10,1],effect:"normal"},c={normal:{paint:function(){var e,t=this;o.each(t.hands,function(n,i){i.lastValue!==i.value&&(e="",o.each(t._toDigitals(i.value,i.bits),function(n,i){e+=t._html(i,"","digital")}),i.node.html(e))})}}},l=function(){function e(){for(var t,o,a,s,r=+new Date-e.nextTime,c=1+Math.floor(r/100);i.length;)i.shift()();for(r=100-r%100,e.nextTime+=100*c,a=0,s=n.length;s>a;a+=2)t=n[a+1],0===t?n[a](c):(t+=2*c-1,o=Math.floor(t/20),o>0&&n[a](o),n[a+1]=t%20+1);setTimeout(e,r)}function t(e,t){var n,i;for(n=0,i=t.length;i>n;++n)if(t[n]===e)return n;return-1}var n=[],i=[];return e.nextTime=+new Date,e(),{add:function(e,t){i.push(function(){n.push(e),n.push(1e3===t?1:0)})},remove:function(e){var o;i.push(function(){o=t(e,n),-1!==o&&n.splice(t(e,n),2)})}}}();o.extend(i.prototype,{_init:function(){var e,t,n=this,i=n.config.el,a=[],s=i.html(),r=n.config.varRegular;n.hands=a,n.frequency=1e3,n._notify=[],r.lastIndex=0,i.html(s.replace(r,function(e,t){var i="";return"u"!==t&&"s-ext"!==t||(n.frequency=100),"s-ext"===t?(a.push({type:"s"}),a.push({type:"u"}),i=n._html("","s","handlet")+n._html(".","","digital")+n._html("","u","handlet")):a.push({type:t}),n._html(i,t,"hand")})),e=n.config.clock,o.each(a,function(t,n){var o,a=n.type,s=100;for(n.node=i.find(".hand-"+a),o=e.length-3;o>-1&&a!==e[o];o-=3)s*=e[o+1];n.base=s,n.radix=e[o+1],n.bits=e[o+2]}),n._getLeft(),n._reflow(),t=n._reflow,n._reflow=function(){return t.apply(n,arguments)},l.add(n._reflow,n.frequency),i.show()},_getLeft:function(){var e=1e3*this.config.leftTime,t=this.config.stopPoint;!e&&t&&(e=t-+new Date),this.left=e-e%this.frequency},_reflow:function(e){var t=this,n=t.config.el;return e=e||0,t.left=t.left-t.frequency*e,o.each(t.hands,function(e,n){n.lastValue=n.value,n.value=Math.floor(t.left/n.base)%n.radix}),t._repaint(),t._notify[t.left]&&o.each(t._notify[t.left],function(e,n){n.call(t)}),t.left<1&&(n.text("— 活动已结束 —"),n.parents(".back-ground-white").on("click",function(){return a.show("活动即将开始,敬请期待!"),!1}),l.remove(t._reflow)),t.left<864e5&&n.find(".left-day").hide(),t},_repaint:function(){c[this.config.effect].paint.apply(this),this.config.el.trigger(s)},_toDigitals:function(e,t){var n=[];for(e=0>e?0:e,t=e.toString().length>1?2:1;t--;)n[t]=e%10,e=Math.floor(e/10);return n},_html:function(e,t,n){switch(o.isArray(e)&&(e=e.join("")),n){case"hand":t=n+" hand-"+t;break;case"handlet":t=n+" hand-"+t;break;case"digital":t="."===e?n+" "+n+"-point "+t:n+" "+n+"-"+e+" "+t}return'<i class="'+t+'">'+e+"</i>"},notify:function(e,t){var n;return e=1e3*e,e-=e%this.frequency,n=this._notify[e]||[],n.push(t),this._notify[e]=n,this}}),t.Countdown=i}]);
\ No newline at end of file
... ...
webpackJsonp([10],[function(e,t,n){var o=n(1),i=n(13),a=n(14),r=o(".cd-lite");n(3),r.length>0&&r.each(function(){new i.Countdown({el:o(this)})}),o("#index_nav").length>0&&a({el:"#index_nav"})["goto"](o("#index_nav").find(".active").index()),o(".back-ground-white").length<1&&o(".empty").show()},,function(e,t,n){function o(e,t){var n,o;"undefined"!=typeof e&&(n=e.toString(),o=t&&t>0?t:2e3,i.text(n).show(),a=setTimeout(function(){"block"===i.css("display")&&i.hide()},o))}var i,a,r=n(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';r(".yoho-page").append(e),i=r("#yoho-tip"),i.on("touchend",function(){i.hide(),clearTimeout(a)})}(),t.show=o},function(e,t,n){function o(e){var t,n,o=document.cookie;return document.cookie&&""!==document.cookie&&(n=o.indexOf(e+"="),n>-1&&(n+=e.length+1,t=decodeURIComponent(d.trim(o.substring(n,o.indexOf(";",n)))))),t}function i(e,t,n){var o,i,a,r,s="";"undefined"!=typeof t&&(n=n||{},null===t&&(t="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(r=new Date,r.setTime(r.getTime()+24*n.expires*60*60*1e3)):r=n.expires,s="; expires="+r.toUTCString()),o=n.path?"; path="+n.path:"",i=n.domain?"; domain="+n.domain:"",a=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),s,o,i,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function r(){var e,t=o("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function s(){var e=r();return 0===e?0:e[1]}function c(){var e=o("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function h(){var e;0!==m.length&&(e=Math.min(d(window).height(),window.screen.availHeight),d("body").height()<=e-parseInt(m.css("height"),0)?m.addClass("bottom"):m.removeClass("bottom"))}function l(e){var t=d(e).outerHeight();e&&m.css("margin-bottom",t+"px")}function u(){var e,t,n=[],o=window.location.search.slice(1).split("&");for(t=0;t<o.length;t++)e=o[t].split("="),n.push(e[0]),n[e[0]]=e[1];return n}function f(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var d=n(1),p=n(4),m=d("#yoho-footer"),g=d(".yoho-page"),w=d(".yoho-header");!function(){var e,t=m.children(".op-row"),n=d(".back-to-top"),o=r();h(),0===o?t.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):t.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+o[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),n.length>0&&(e=new p(n[0]),e.on("tap",function(e){return d(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),m.removeClass("hide")}(),function(e,t,n,o,i){var a=t.createElement(n),r=t.getElementsByTagName(n)[0];e.YohoAcquisitionObject=i,e[i]=function(){e[i].p=arguments},a.async=1,a.src=o,r.parentNode.insertBefore(a,r)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=s();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),w.on("touchstart","a",function(){w.find("a").removeClass("highlight"),d(this).addClass("highlight")}).on("touchend touchcancel","a",function(){d(this).removeClass("highlight")}),g.on("touchstart",".tap-hightlight",function(){d(this).siblings(".tap-hightlight").removeClass("highlight"),d(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){d(this).removeClass("highlight")}),d(".nav-home").on("touchstart",function(){d(".homebuttom").toggleClass("hide")}),function(){var e,t,n=0,o="webkit moz ms o".split(" "),i=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(t=0;t<o.length&&(!i||!a);t++)e=o[t],i=i||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];i&&a||(i=function(e){var t=(new Date).getTime(),o=Math.max(0,16-(t-n)),i=window.setTimeout(function(){e(t+o)},o);return n=t+o,i},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=i,window.cancelAnimationFrame=a}(),d.extend({queryString:u}),11===m.find(".user-name").text().length&&m.find(".user-name").html(f(m.find(".user-name").text())),window.cookie=o,window.setCookie=i,window.isCookiesEnabled=a,window.getUser=r,window.getUid=s,window.getShoppingKey=c,window.rePosFooter=h,window.reMarginFooter=l,window.queryString=u()},,,,,,,,,,function(e,t,n){"use strict";function o(e){var t;return this instanceof o?(e.el=i(e.el),void(e.el&&(t=e.el.attr("data-config"),t&&(t=JSON.parse(t.replace(/'/g,'"')),e=i.extend(!0,{},s,t,e)),this.config=e,this._init()))):new o(e)}var i=n(1),a=n(2),r="afterPaint",s={el:{},stopPoint:0,leftTime:0,template:"",varRegular:/\$\{([\-\w]+)\}/g,clock:["d",100,2,"h",24,2,"m",60,2,"s",60,2,"u",10,1],effect:"normal"},c={normal:{paint:function(){var e,t=this;i.each(t.hands,function(n,o){o.lastValue!==o.value&&(e="",i.each(t._toDigitals(o.value,o.bits),function(n,o){e+=t._html(o,"","digital")}),o.node.html(e))})}}},h=function(){function e(){for(var t,i,a,r,s=+new Date-e.nextTime,c=1+Math.floor(s/100);o.length;)o.shift()();for(s=100-s%100,e.nextTime+=100*c,a=0,r=n.length;r>a;a+=2)t=n[a+1],0===t?n[a](c):(t+=2*c-1,i=Math.floor(t/20),i>0&&n[a](i),n[a+1]=t%20+1);setTimeout(e,s)}function t(e,t){var n,o;for(n=0,o=t.length;o>n;++n)if(t[n]===e)return n;return-1}var n=[],o=[];return e.nextTime=+new Date,e(),{add:function(e,t){o.push(function(){n.push(e),n.push(1e3===t?1:0)})},remove:function(e){var i;o.push(function(){i=t(e,n),-1!==i&&n.splice(t(e,n),2)})}}}();i.extend(o.prototype,{_init:function(){var e,t,n=this,o=n.config.el,a=[],r=o.html(),s=n.config.varRegular;n.hands=a,n.frequency=1e3,n._notify=[],s.lastIndex=0,o.html(r.replace(s,function(e,t){var o="";return"u"!==t&&"s-ext"!==t||(n.frequency=100),"s-ext"===t?(a.push({type:"s"}),a.push({type:"u"}),o=n._html("","s","handlet")+n._html(".","","digital")+n._html("","u","handlet")):a.push({type:t}),n._html(o,t,"hand")})),e=n.config.clock,i.each(a,function(t,n){var i,a=n.type,r=100;for(n.node=o.find(".hand-"+a),i=e.length-3;i>-1&&a!==e[i];i-=3)r*=e[i+1];n.base=r,n.radix=e[i+1],n.bits=e[i+2]}),n._getLeft(),n._reflow(),t=n._reflow,n._reflow=function(){return t.apply(n,arguments)},h.add(n._reflow,n.frequency),o.show()},_getLeft:function(){var e=1e3*this.config.leftTime,t=this.config.stopPoint;!e&&t&&(e=t-+new Date),this.left=e-e%this.frequency},_reflow:function(e){var t=this,n=t.config.el;return e=e||0,t.left=t.left-t.frequency*e,i.each(t.hands,function(e,n){n.lastValue=n.value,n.value=Math.floor(t.left/n.base)%n.radix}),t._repaint(),t._notify[t.left]&&i.each(t._notify[t.left],function(e,n){n.call(t)}),t.left<1&&(n.text("— 活动已结束 —"),n.parents(".back-ground-white").on("click",function(){return a.show("活动即将开始,敬请期待!"),!1}),h.remove(t._reflow)),t.left<864e5&&n.find(".left-day").hide(),t},_repaint:function(){c[this.config.effect].paint.apply(this),this.config.el.trigger(r)},_toDigitals:function(e,t){var n=[];for(e=0>e?0:e,t=e.toString().length>1?2:1;t--;)n[t]=e%10,e=Math.floor(e/10);return n},_html:function(e,t,n){switch(i.isArray(e)&&(e=e.join("")),n){case"hand":t=n+" hand-"+t;break;case"handlet":t=n+" hand-"+t;break;case"digital":t="."===e?n+" "+n+"-point "+t:n+" "+n+"-"+e+" "+t}return'<i class="'+t+'">'+e+"</i>"},notify:function(e,t){var n;return e=1e3*e,e-=e%this.frequency,n=this._notify[e]||[],n.push(t),this._notify[e]=n,this}}),t.Countdown=o},function(e,t,n){function o(e){function t(e){var t;t=n.find("li").eq(e),t.length>0&&setTimeout(function(){o.scrollToElement(t[0],400)},1)}var n,o,i,a={el:".outlet-nav"};return i=s.extend({},a,e),n=s(i.el),o=new c(n[0],{scrollX:!0,scrollY:!1,mouseWheel:!0,scrollbars:!0,probeType:3,preventDefault:!0,click:!0}),{"goto":t}}function i(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!==n?decodeURIComponent(n[2]):null}function a(){s("#index_nav").find("li").each(function(){s(this).find("a").text()===l?s(this).attr({"data-nav":"other","data-type":3}):s(this).find("a").text()===h&&s(this).attr({"data-nav":"other","data-type":2})})}function r(){var e=s("#index_nav"),t=i("yh_channel");a(),null===t?(t=i("type"),null===t?e.find('li:not([data-nav="other"])').eq(0).addClass("active").siblings().removeClass("active"):e.find("li[data-type="+t+"]").addClass("active").siblings().removeClass("active")):e.find('li:not([data-nav="other"])').eq(t).addClass("active").siblings().removeClass("active")}var s=n(1),c=n(15),h="即将结束",l="上线预告";r(),e.exports=o}]);
\ No newline at end of file
webpackJsonp([10],[function(t,e,n){var o=n(1),i=n(13),a=n(14),r=o(".cd-lite");n(3),r.length>0&&r.each(function(){new i.Countdown({el:o(this)})}),o("#index_nav").length>0&&a({el:"#index_nav"})["goto"](o("#index_nav").find(".active").index()),o(".back-ground-white").length<1&&o(".empty").show()},,function(t,e,n){function o(t,e){var n,o;"undefined"!=typeof t&&(n=t.toString(),o=e&&e>0?e:2e3,i.text(n).show(),a=setTimeout(function(){"block"===i.css("display")&&i.hide()},o))}var i,a,r=n(1);!function(){var t='<div id="yoho-tip" class="yoho-tip"></div>';r(".yoho-page").append(t),i=r("#yoho-tip"),i.on("touchend",function(){i.hide(),clearTimeout(a)})}(),e.show=o},function(t,e,n){function o(t){var e,n,o=document.cookie;return document.cookie&&""!==document.cookie&&(n=o.indexOf(t+"="),n>-1&&(n+=t.length+1,e=decodeURIComponent(d.trim(o.substring(n,o.indexOf(";",n)))))),e}function i(t,e,n){var o,i,a,r,s="";"undefined"!=typeof e&&(n=n||{},null===e&&(e="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(r=new Date,r.setTime(r.getTime()+24*n.expires*60*60*1e3)):r=n.expires,s="; expires="+r.toUTCString()),o=n.path?"; path="+n.path:"",i=n.domain?"; domain="+n.domain:"",a=n.secure?"; secure":"",document.cookie=[t,"=",encodeURIComponent(e),s,o,i,a].join(""))}function a(){var t=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||t||(document.cookie="testcookie",t=-1!==document.cookie.indexOf("testcookie")),t}function r(){var t,e=o("_UID");return"undefined"==typeof e?0:(t=e.split("::"),"undefined"==typeof t||t.length<4?0:t)}function s(){var t=r();return 0===t?0:t[1]}function c(){var t=o("_g");return"undefined"==typeof t?"":JSON.parse(t).k}function h(){var t;0!==m.length&&(t=Math.min(d(window).height(),window.screen.availHeight),d("body").height()<=t-parseInt(m.css("height"),0)?m.addClass("bottom"):m.removeClass("bottom"))}function l(t){var e=d(t).outerHeight();t&&m.css("margin-bottom",e+"px")}function u(){var t,e,n=[],o=window.location.search.slice(1).split("&");for(e=0;e<o.length;e++)t=o[e].split("="),n.push(t[0]),n[t[0]]=t[1];return n}function f(t){return t.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var d=n(1),p=n(4),m=d("#yoho-footer"),g=d(".yoho-page"),w=d(".yoho-header");!function(){var t,e=m.children(".op-row"),n=d(".back-to-top"),o=r();h(),0===o?e.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):e.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+o[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),n.length>0&&(t=new p(n[0]),t.on("tap",function(t){return d(window).scrollTop(0),t.srcEvent.preventDefault(),!1})),m.removeClass("hide")}(),function(t,e,n,o,i){var a=e.createElement(n),r=e.getElementsByTagName(n)[0];t.YohoAcquisitionObject=i,t[i]=function(){t[i].p=arguments},a.async=1,a.src=o,r.parentNode.insertBefore(a,r)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var t=s();t=0===t?"":t,window._ozuid=t,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",t,"","")}(),w.on("touchstart","a",function(){w.find("a").removeClass("highlight"),d(this).addClass("highlight")}).on("touchend touchcancel","a",function(){d(this).removeClass("highlight")}),g.on("touchstart",".tap-hightlight",function(){d(this).siblings(".tap-hightlight").removeClass("highlight"),d(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){d(this).removeClass("highlight")}),d(".nav-home").on("touchstart",function(){d(".homebuttom").toggleClass("hide")}),function(){var t,e,n=0,o="webkit moz ms o".split(" "),i=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(e=0;e<o.length&&(!i||!a);e++)t=o[e],i=i||window[t+"RequestAnimationFrame"],a=a||window[t+"CancelAnimationFrame"]||window[t+"CancelRequestAnimationFrame"];i&&a||(i=function(t){var e=(new Date).getTime(),o=Math.max(0,16-(e-n)),i=window.setTimeout(function(){t(e+o)},o);return n=e+o,i},a=function(t){window.clearTimeout(t)}),window.requestAnimationFrame=i,window.cancelAnimationFrame=a}(),d.extend({queryString:u}),11===m.find(".user-name").text().length&&m.find(".user-name").html(f(m.find(".user-name").text())),window.cookie=o,window.setCookie=i,window.isCookiesEnabled=a,window.getUser=r,window.getUid=s,window.getShoppingKey=c,window.rePosFooter=h,window.reMarginFooter=l,window.queryString=u()},,,,,,,,,,function(t,e,n){"use strict";function o(t){var e;return this instanceof o?(t.el=i(t.el),void(t.el&&(e=t.el.attr("data-config"),e&&(e=JSON.parse(e.replace(/'/g,'"')),t=i.extend(!0,{},s,e,t)),this.config=t,this._init()))):new o(t)}var i=n(1),a=n(2),r="afterPaint",s={el:{},stopPoint:0,leftTime:0,template:"",varRegular:/\$\{([\-\w]+)\}/g,clock:["d",100,2,"h",24,2,"m",60,2,"s",60,2,"u",10,1],effect:"normal"},c={normal:{paint:function(){var t,e=this;i.each(e.hands,function(n,o){o.lastValue!==o.value&&(t="",i.each(e._toDigitals(o.value,o.bits),function(n,o){t+=e._html(o,"","digital")}),o.node.html(t))})}}},h=function(){function t(){for(var e,i,a,r,s=+new Date-t.nextTime,c=1+Math.floor(s/100);o.length;)o.shift()();for(s=100-s%100,t.nextTime+=100*c,a=0,r=n.length;r>a;a+=2)e=n[a+1],0===e?n[a](c):(e+=2*c-1,i=Math.floor(e/20),i>0&&n[a](i),n[a+1]=e%20+1);setTimeout(t,s)}function e(t,e){var n,o;for(n=0,o=e.length;o>n;++n)if(e[n]===t)return n;return-1}var n=[],o=[];return t.nextTime=+new Date,t(),{add:function(t,e){o.push(function(){n.push(t),n.push(1e3===e?1:0)})},remove:function(t){var i;o.push(function(){i=e(t,n),-1!==i&&n.splice(e(t,n),2)})}}}();i.extend(o.prototype,{_init:function(){var t,e,n=this,o=n.config.el,a=[],r=o.html(),s=n.config.varRegular;n.hands=a,n.frequency=1e3,n._notify=[],s.lastIndex=0,o.html(r.replace(s,function(t,e){var o="";return"u"!==e&&"s-ext"!==e||(n.frequency=100),"s-ext"===e?(a.push({type:"s"}),a.push({type:"u"}),o=n._html("","s","handlet")+n._html(".","","digital")+n._html("","u","handlet")):a.push({type:e}),n._html(o,e,"hand")})),t=n.config.clock,i.each(a,function(e,n){var i,a=n.type,r=100;for(n.node=o.find(".hand-"+a),i=t.length-3;i>-1&&a!==t[i];i-=3)r*=t[i+1];n.base=r,n.radix=t[i+1],n.bits=t[i+2]}),n._getLeft(),n._reflow(),e=n._reflow,n._reflow=function(){return e.apply(n,arguments)},h.add(n._reflow,n.frequency),o.show()},_getLeft:function(){var t=1e3*this.config.leftTime,e=this.config.stopPoint;!t&&e&&(t=e-+new Date),this.left=t-t%this.frequency},_reflow:function(t){var e=this,n=e.config.el;return t=t||0,e.left=e.left-e.frequency*t,i.each(e.hands,function(t,n){n.lastValue=n.value,n.value=Math.floor(e.left/n.base)%n.radix}),e._repaint(),e._notify[e.left]&&i.each(e._notify[e.left],function(t,n){n.call(e)}),e.left<1&&(n.text("— 活动已结束 —"),n.parents(".back-ground-white").on("click",function(){return a.show("活动即将开始,敬请期待!"),!1}),h.remove(e._reflow)),e.left<864e5&&n.find(".left-day").hide(),e},_repaint:function(){c[this.config.effect].paint.apply(this),this.config.el.trigger(r)},_toDigitals:function(t,e){var n=[];for(t=0>t?0:t,e=t.toString().length>1?2:1;e--;)n[e]=t%10,t=Math.floor(t/10);return n},_html:function(t,e,n){switch(i.isArray(t)&&(t=t.join("")),n){case"hand":e=n+" hand-"+e;break;case"handlet":e=n+" hand-"+e;break;case"digital":e="."===t?n+" "+n+"-point "+e:n+" "+n+"-"+t+" "+e}return'<i class="'+e+'">'+t+"</i>"},notify:function(t,e){var n;return t=1e3*t,t-=t%this.frequency,n=this._notify[t]||[],n.push(e),this._notify[t]=n,this}}),e.Countdown=o},function(t,e,n){function o(t){function e(t){var e;e=n.find("li").eq(t),e.length>0&&setTimeout(function(){o.scrollToElement(e[0],400)},1)}var n,o,i,a={el:".outlet-nav"};return i=s.extend({},a,t),n=s(i.el),o=new c(n[0],{scrollX:!0,scrollY:!1,tap:!0,eventPassthrough:!0,preventDefault:!0}),{"goto":e}}function i(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(e);return null!==n?decodeURIComponent(n[2]):null}function a(){s("#index_nav").find("li").each(function(){s(this).find("a").text()===l?s(this).attr({"data-nav":"other","data-type":3}):s(this).find("a").text()===h&&s(this).attr({"data-nav":"other","data-type":2})})}function r(){var t=s("#index_nav"),e=i("yh_channel");a(),null===e?(e=i("type"),null===e?t.find('li:not([data-nav="other"])').eq(0).addClass("active").siblings().removeClass("active"):t.find("li[data-type="+e+"]").addClass("active").siblings().removeClass("active")):t.find('li:not([data-nav="other"])').eq(e).addClass("active").siblings().removeClass("active")}var s=n(1),c=n(15),h="即将结束",l="上线预告";r(),t.exports=o}]);
\ No newline at end of file
... ...
webpackJsonp([14],{0:function(e,n,t){var o=t(1),i=t(2),a=t(14);t(3),o("#index_nav").length>0&&a({el:"#index_nav"})["goto"](o("#index_nav").find(".active").index()),o(".back-ground-white").length<1&&o(".empty").show(),o(".back-ground-white").on("click",function(){return i.show("活动即将开始,敬请期待!"),!1}),o(".cd-medium").show()},2:function(e,n,t){function o(e,n){var t,o;"undefined"!=typeof e&&(t=e.toString(),o=n&&n>0?n:2e3,i.text(t).show(),a=setTimeout(function(){"block"===i.css("display")&&i.hide()},o))}var i,a,r=t(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';r(".yoho-page").append(e),i=r("#yoho-tip"),i.on("touchend",function(){i.hide(),clearTimeout(a)})}(),n.show=o},3:function(e,n,t){function o(e){var n,t,o=document.cookie;return document.cookie&&""!==document.cookie&&(t=o.indexOf(e+"="),t>-1&&(t+=e.length+1,n=decodeURIComponent(m.trim(o.substring(t,o.indexOf(";",t)))))),n}function i(e,n,t){var o,i,a,r,s="";"undefined"!=typeof n&&(t=t||{},null===n&&(n="",t.expires=-1),t.expires&&("number"==typeof t.expires||t.expires.toUTCString)&&("number"==typeof t.expires?(r=new Date,r.setTime(r.getTime()+24*t.expires*60*60*1e3)):r=t.expires,s="; expires="+r.toUTCString()),o=t.path?"; path="+t.path:"",i=t.domain?"; domain="+t.domain:"",a=t.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(n),s,o,i,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function r(){var e,n=o("_UID");return"undefined"==typeof n?0:(e=n.split("::"),"undefined"==typeof e||e.length<4?0:e)}function s(){var e=r();return 0===e?0:e[1]}function c(){var e=o("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function d(){var e;0!==f.length&&(e=Math.min(m(window).height(),window.screen.availHeight),m("body").height()<=e-parseInt(f.css("height"),0)?f.addClass("bottom"):f.removeClass("bottom"))}function h(e){var n=m(e).outerHeight();e&&f.css("margin-bottom",n+"px")}function u(){var e,n,t=[],o=window.location.search.slice(1).split("&");for(n=0;n<o.length;n++)e=o[n].split("="),t.push(e[0]),t[e[0]]=e[1];return t}function l(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var m=t(1),p=t(4),f=m("#yoho-footer"),w=m(".yoho-page"),g=m(".yoho-header");!function(){var e,n=f.children(".op-row"),t=m(".back-to-top"),o=r();d(),0===o?n.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):n.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+o[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),t.length>0&&(e=new p(t[0]),e.on("tap",function(e){return m(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),f.removeClass("hide")}(),function(e,n,t,o,i){var a=n.createElement(t),r=n.getElementsByTagName(t)[0];e.YohoAcquisitionObject=i,e[i]=function(){e[i].p=arguments},a.async=1,a.src=o,r.parentNode.insertBefore(a,r)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=s();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),g.on("touchstart","a",function(){g.find("a").removeClass("highlight"),m(this).addClass("highlight")}).on("touchend touchcancel","a",function(){m(this).removeClass("highlight")}),w.on("touchstart",".tap-hightlight",function(){m(this).siblings(".tap-hightlight").removeClass("highlight"),m(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){m(this).removeClass("highlight")}),m(".nav-home").on("touchstart",function(){m(".homebuttom").toggleClass("hide")}),function(){var e,n,t=0,o="webkit moz ms o".split(" "),i=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(n=0;n<o.length&&(!i||!a);n++)e=o[n],i=i||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];i&&a||(i=function(e){var n=(new Date).getTime(),o=Math.max(0,16-(n-t)),i=window.setTimeout(function(){e(n+o)},o);return t=n+o,i},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=i,window.cancelAnimationFrame=a}(),m.extend({queryString:u}),11===f.find(".user-name").text().length&&f.find(".user-name").html(l(f.find(".user-name").text())),window.cookie=o,window.setCookie=i,window.isCookiesEnabled=a,window.getUser=r,window.getUid=s,window.getShoppingKey=c,window.rePosFooter=d,window.reMarginFooter=h,window.queryString=u()},14:function(e,n,t){function o(e){function n(e){var n;n=t.find("li").eq(e),n.length>0&&setTimeout(function(){o.scrollToElement(n[0],400)},1)}var t,o,i,a={el:".outlet-nav"};return i=s.extend({},a,e),t=s(i.el),o=new c(t[0],{scrollX:!0,scrollY:!1,mouseWheel:!0,scrollbars:!0,probeType:3,preventDefault:!0,click:!0}),{"goto":n}}function i(e){var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),t=window.location.search.substr(1).match(n);return null!==t?decodeURIComponent(t[2]):null}function a(){s("#index_nav").find("li").each(function(){s(this).find("a").text()===h?s(this).attr({"data-nav":"other","data-type":3}):s(this).find("a").text()===d&&s(this).attr({"data-nav":"other","data-type":2})})}function r(){var e=s("#index_nav"),n=i("yh_channel");a(),null===n?(n=i("type"),null===n?e.find('li:not([data-nav="other"])').eq(0).addClass("active").siblings().removeClass("active"):e.find("li[data-type="+n+"]").addClass("active").siblings().removeClass("active")):e.find('li:not([data-nav="other"])').eq(n).addClass("active").siblings().removeClass("active")}var s=t(1),c=t(15),d="即将结束",h="上线预告";r(),e.exports=o}});
\ No newline at end of file
webpackJsonp([14],{0:function(e,n,t){var o=t(1),i=t(2),a=t(14);t(3),o("#index_nav").length>0&&a({el:"#index_nav"})["goto"](o("#index_nav").find(".active").index()),o(".back-ground-white").length<1&&o(".empty").show(),o(".back-ground-white").on("click",function(){return i.show("活动即将开始,敬请期待!"),!1}),o(".cd-medium").show()},2:function(e,n,t){function o(e,n){var t,o;"undefined"!=typeof e&&(t=e.toString(),o=n&&n>0?n:2e3,i.text(t).show(),a=setTimeout(function(){"block"===i.css("display")&&i.hide()},o))}var i,a,r=t(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';r(".yoho-page").append(e),i=r("#yoho-tip"),i.on("touchend",function(){i.hide(),clearTimeout(a)})}(),n.show=o},3:function(e,n,t){function o(e){var n,t,o=document.cookie;return document.cookie&&""!==document.cookie&&(t=o.indexOf(e+"="),t>-1&&(t+=e.length+1,n=decodeURIComponent(m.trim(o.substring(t,o.indexOf(";",t)))))),n}function i(e,n,t){var o,i,a,r,s="";"undefined"!=typeof n&&(t=t||{},null===n&&(n="",t.expires=-1),t.expires&&("number"==typeof t.expires||t.expires.toUTCString)&&("number"==typeof t.expires?(r=new Date,r.setTime(r.getTime()+24*t.expires*60*60*1e3)):r=t.expires,s="; expires="+r.toUTCString()),o=t.path?"; path="+t.path:"",i=t.domain?"; domain="+t.domain:"",a=t.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(n),s,o,i,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function r(){var e,n=o("_UID");return"undefined"==typeof n?0:(e=n.split("::"),"undefined"==typeof e||e.length<4?0:e)}function s(){var e=r();return 0===e?0:e[1]}function c(){var e=o("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function d(){var e;0!==f.length&&(e=Math.min(m(window).height(),window.screen.availHeight),m("body").height()<=e-parseInt(f.css("height"),0)?f.addClass("bottom"):f.removeClass("bottom"))}function h(e){var n=m(e).outerHeight();e&&f.css("margin-bottom",n+"px")}function u(){var e,n,t=[],o=window.location.search.slice(1).split("&");for(n=0;n<o.length;n++)e=o[n].split("="),t.push(e[0]),t[e[0]]=e[1];return t}function l(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var m=t(1),p=t(4),f=m("#yoho-footer"),w=m(".yoho-page"),g=m(".yoho-header");!function(){var e,n=f.children(".op-row"),t=m(".back-to-top"),o=r();d(),0===o?n.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):n.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+o[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),t.length>0&&(e=new p(t[0]),e.on("tap",function(e){return m(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),f.removeClass("hide")}(),function(e,n,t,o,i){var a=n.createElement(t),r=n.getElementsByTagName(t)[0];e.YohoAcquisitionObject=i,e[i]=function(){e[i].p=arguments},a.async=1,a.src=o,r.parentNode.insertBefore(a,r)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=s();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),g.on("touchstart","a",function(){g.find("a").removeClass("highlight"),m(this).addClass("highlight")}).on("touchend touchcancel","a",function(){m(this).removeClass("highlight")}),w.on("touchstart",".tap-hightlight",function(){m(this).siblings(".tap-hightlight").removeClass("highlight"),m(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){m(this).removeClass("highlight")}),m(".nav-home").on("touchstart",function(){m(".homebuttom").toggleClass("hide")}),function(){var e,n,t=0,o="webkit moz ms o".split(" "),i=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(n=0;n<o.length&&(!i||!a);n++)e=o[n],i=i||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];i&&a||(i=function(e){var n=(new Date).getTime(),o=Math.max(0,16-(n-t)),i=window.setTimeout(function(){e(n+o)},o);return t=n+o,i},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=i,window.cancelAnimationFrame=a}(),m.extend({queryString:u}),11===f.find(".user-name").text().length&&f.find(".user-name").html(l(f.find(".user-name").text())),window.cookie=o,window.setCookie=i,window.isCookiesEnabled=a,window.getUser=r,window.getUid=s,window.getShoppingKey=c,window.rePosFooter=d,window.reMarginFooter=h,window.queryString=u()},14:function(e,n,t){function o(e){function n(e){var n;n=t.find("li").eq(e),n.length>0&&setTimeout(function(){o.scrollToElement(n[0],400)},1)}var t,o,i,a={el:".outlet-nav"};return i=s.extend({},a,e),t=s(i.el),o=new c(t[0],{scrollX:!0,scrollY:!1,tap:!0,eventPassthrough:!0,preventDefault:!0}),{"goto":n}}function i(e){var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),t=window.location.search.substr(1).match(n);return null!==t?decodeURIComponent(t[2]):null}function a(){s("#index_nav").find("li").each(function(){s(this).find("a").text()===h?s(this).attr({"data-nav":"other","data-type":3}):s(this).find("a").text()===d&&s(this).attr({"data-nav":"other","data-type":2})})}function r(){var e=s("#index_nav"),n=i("yh_channel");a(),null===n?(n=i("type"),null===n?e.find('li:not([data-nav="other"])').eq(0).addClass("active").siblings().removeClass("active"):e.find("li[data-type="+n+"]").addClass("active").siblings().removeClass("active")):e.find('li:not([data-nav="other"])').eq(n).addClass("active").siblings().removeClass("active")}var s=t(1),c=t(15),d="即将结束",h="上线预告";r(),e.exports=o}});
\ No newline at end of file
... ...
webpackJsonp([1],[function(e,t,n){function i(e){var t=e.attr("href"),n=t.split("?")[1].split("&"),i={};return n.forEach(function(e){var t=e.split("="),n=t[0],o=t[1];"actiontype"!==n&&(i[n]=o)}),i}var o=n(1),a=n(11),s=n(6),r=n(13),c=o(".cd-lite"),l=o(".outlet-category-nav a"),d=n(12),h=n(14);n(35),s(o("img.lazy")),c.length>0&&c.each(function(){new r.Countdown({el:o(this)})}),o(".outlet-category-nav").fixNav(),o(".swiper-container .swiper-slide").length>1&&new a(".swiper-container",{lazyLoading:!0,lazyLoadingInPrevNext:!0,loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!0,paginationClickable:!0,pagination:".banner-top .pagination-inner"}),o(".nav-back").on("click",function(e){var t=window.cookie("_Channel")||"boys";e.preventDefault(),location.href="//m.yohobuy.com/"+t}),l.on("click",function(e){var t=i(o(this));o(".category a").removeClass("active"),o(this).addClass("active"),e.preventDefault(),d.start({type:"category"},t)}),l.length>0&&d.start({type:"category"},i(l.eq(0))),o("#index_nav").length>0&&h({el:"#index_nav"})["goto"](o("#index_nav").find(".active").index()),o(".outlet-category-nav").length>0&&h({el:".outlet-category-nav"})["goto"](0),o(".back-ground-white").length>10&&(o(".more-activity").show(),o(".back-ground-white").each(function(e,t){e>9&&o(t).hide()})),o(".more-activity").click(function(){o(".more-activity").hide(),o(".back-ground-white").each(function(e,t){e>9&&o(t).show()})})},,function(e,t,n){function i(e,t){var n,i;"undefined"!=typeof e&&(n=e.toString(),i=t&&t>0?t:2e3,o.text(n).show(),a=setTimeout(function(){"block"===o.css("display")&&o.hide()},i))}var o,a,s=n(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),o=s("#yoho-tip"),o.on("touchend",function(){o.hide(),clearTimeout(a)})}(),t.show=i},function(e,t,n){function i(e){var t,n,i=document.cookie;return document.cookie&&""!==document.cookie&&(n=i.indexOf(e+"="),n>-1&&(n+=e.length+1,t=decodeURIComponent(f.trim(i.substring(n,i.indexOf(";",n)))))),t}function o(e,t,n){var i,o,a,s,r="";"undefined"!=typeof t&&(n=n||{},null===t&&(t="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(s=new Date,s.setTime(s.getTime()+24*n.expires*60*60*1e3)):s=n.expires,r="; expires="+s.toUTCString()),i=n.path?"; path="+n.path:"",o=n.domain?"; domain="+n.domain:"",a=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),r,i,o,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function s(){var e,t=i("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function r(){var e=s();return 0===e?0:e[1]}function c(){var e=i("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function l(){var e;0!==g.length&&(e=Math.min(f(window).height(),window.screen.availHeight),f("body").height()<=e-parseInt(g.css("height"),0)?g.addClass("bottom"):g.removeClass("bottom"))}function d(e){var t=f(e).outerHeight();e&&g.css("margin-bottom",t+"px")}function h(){var e,t,n=[],i=window.location.search.slice(1).split("&");for(t=0;t<i.length;t++)e=i[t].split("="),n.push(e[0]),n[e[0]]=e[1];return n}function u(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var f=n(1),p=n(4),g=f("#yoho-footer"),v=f(".yoho-page"),m=f(".yoho-header");!function(){var e,t=g.children(".op-row"),n=f(".back-to-top"),i=s();l(),0===i?t.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):t.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+i[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),n.length>0&&(e=new p(n[0]),e.on("tap",function(e){return f(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),g.removeClass("hide")}(),function(e,t,n,i,o){var a=t.createElement(n),s=t.getElementsByTagName(n)[0];e.YohoAcquisitionObject=o,e[o]=function(){e[o].p=arguments},a.async=1,a.src=i,s.parentNode.insertBefore(a,s)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),m.on("touchstart","a",function(){m.find("a").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel","a",function(){f(this).removeClass("highlight")}),v.on("touchstart",".tap-hightlight",function(){f(this).siblings(".tap-hightlight").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){f(this).removeClass("highlight")}),f(".nav-home").on("touchstart",function(){f(".homebuttom").toggleClass("hide")}),function(){var e,t,n=0,i="webkit moz ms o".split(" "),o=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(t=0;t<i.length&&(!o||!a);t++)e=i[t],o=o||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];o&&a||(o=function(e){var t=(new Date).getTime(),i=Math.max(0,16-(t-n)),o=window.setTimeout(function(){e(t+i)},i);return n=t+i,o},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=o,window.cancelAnimationFrame=a}(),f.extend({queryString:h}),11===g.find(".user-name").text().length&&g.find(".user-name").html(u(g.find(".user-name").text())),window.cookie=i,window.setCookie=o,window.isCookiesEnabled=a,window.getUser=s,window.getUid=r,window.getShoppingKey=c,window.rePosFooter=l,window.reMarginFooter=d,window.queryString=h()},,function(e,t,n){function i(e){var t='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';l=!0,e||(e=c),e.append(t),s=e.children(".loading-mask"),r("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function o(){l||(i(),l=!0),s.removeClass("hide")}function a(){s.addClass("hide")}var s,r=n(1),c=r(".yoho-page"),l=!1;t.init=i,t.showLoadingMask=o,t.hideLoadingMask=a,t.show=o,t.hide=a},,function(e,t,n){var i=n(1),o={};i(".query-param").each(function(){var e=i(this);o[e.data("attr")]=e.val()}),e.exports=o},function(e,t,n){var i=n(1),o=i("#suspend-cart");i.ajax({type:"GET",url:"/cart/index/count",success:function(e){var t;200===e.code&&(t=e.data.cart_goods_count,t>99&&(t="99+"),0===t&&i(".cart-count").remove(),o.find(".cart-count").html(t).removeClass("hide"))}})},function(e,t,n){function i(){u.addClass("hide")}function o(){u.removeClass("hide")}function a(){var e=g(".filter-body .classify");e.on("touchstart",".shower",function(){e.removeClass("highlight"),g(this).addClass("highlight")}).on("touchend touchcancel",".shower",function(){g(this).removeClass("highlight")})}function s(){var e=g(".filter-body .sub-item");e.on("touchstart",function(){e.removeClass("highlight"),g(this).addClass("highlight")}).on("touchend touchcancel",function(){g(this).removeClass("highlight")})}function r(e){e.hasClass("active")||(e.siblings(".active").removeClass("active"),e.addClass("active"))}function c(e){var t,n,i=e.closest(".sub-classify"),o=i.siblings(".shower");return e.hasClass("chosed")?i:(i.children(".chosed").removeClass("chosed"),e.addClass("chosed"),t=g.trim(e.html()),n=g.trim(o.html()),o.html(n.substring(0,n.indexOf("</span>")+7)+t.substring(0,t.indexOf("<i"))),0===e.index()?o.addClass("default"):o.removeClass("default"),i)}function l(e){var t,n=e.data("id");t=c(e),f&&f({type:t.data("type"),id:n}),p&&p(),i()}function d(e){var t;f=e.fCbFn,p=e.hCbFn,window.missStatus=e.missStatus,a(),s(),u=g(".filter-mask"),t=new v(u[0]),t.on("tap",function(e){var t,n=g(e.target);e.preventDefault(),n.closest(".filter-body").length>0?(t=n.closest(".sub-item"),t.length>0?(t=n.closest("li"),l(t)):(t=n.closest(".classify-item"),e.srcEvent.stopPropagation(),r(t))):(i(),p&&p())})}function h(){"undefined"!=typeof u&&(g(".sub-classify").each(function(){c(g(this).children(":first-child"))}),r(g(".classify > :first-child")))}var u,f,p,g=n(1),v=n(4);t.initFilter=d,t.showFilter=o,t.hideFilter=i,t.resetFilter=h},,,function(e,t,n){function i(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!==n?n[2]:null}function o(e){var t="category";return e.hasClass("new")?t="newest":e.hasClass("price")?t="price":e.hasClass("discount")?t="discount":e.hasClass("sale")?t="sale":e.hasClass("all")?t="all":e.hasClass("category")&&(t="category"),t}function a(e,t){var n,i,a,s,r,h={};if(!l){if(e){for(i in D)D.hasOwnProperty(i)&&(D[i].reload=!0);switch(S.children(".active").removeClass("active"),q.addClass("active"),e.type){case"gender":n={gender:e.id};break;case"brand":n={brand:e.id};break;case"sort":n={sort:e.id};break;case"color":n={color:e.id};break;case"size":n={size:e.id};break;case"price":n={price:e.id};break;case"discount":n={discount:e.id};break;case"p_d":n={p_d:e.id}}d.extend(F,n)}if(d.extend(t||{},F),s=o(q),a=D[s||"all"],r=a.page+1,a.reload)r=1;else if(a.end)return;t?(c=t,d.extend(h,t,{type:s,order:a.order,page:r})):(c=null,d.extend(h,F,{type:s,order:a.order,page:r})),l=!0,g.showLoadingMask(),d.ajax({type:"GET",url:"/product/sale/search",data:h,success:function(e){var t,n;switch(s){case"newest":t=m;break;case"price":t=y;break;case"discount":t=w;break;case"sale":t=x;break;case"all":t=C;break;case"categroy":t=b;break;default:t=C}t.hasClass("hide")&&(t.siblings().addClass("hide"),t.removeClass("hide")),""===e?(a.end=!0,a.reload&&t.html(_)):("category"===s&&(a.page=1),a.reload||"category"===s?(t.html(e),u(t.find(".lazy"))):(n=t.find(".good-info").length,t.append(e),u(t.find(".good-info:gt("+(n-1)+") .lazy")))),a.reload=!1,a.page=r,l=!1,g.hideLoadingMask(),window.rePosFooter(),d(".good-detail-text .name").each(function(){var e=d(this),t=e.find("a");t[0].mlellipsis(2)})},error:function(){f.show("网络断开连接了~"),l=!1,g.hideLoadingMask()}})}}function s(){d.ajax({type:"GET",url:"/product/sale/filter",data:F,success:function(e){v.append(e),p.initFilter({fCbFn:a,hCbFn:function(){q.addClass("active"),q.siblings(".filter").removeClass("active")},missStatus:!0})}})}function r(){var e=d(window).scrollTop();e>T&&e+k>d(document).height()-.25*v.height()-50&&"undefined"!=typeof q&&(c?a(!1,c):a()),T=e}var c,l,d=n(1),h=n(10),u=n(6),f=n(2),p=n(9),g=n(5),v=d("#goods-container"),m=v.find(".new-goods"),w=v.find(".discount-goods"),y=v.find(".price-goods"),C=v.find(".all-goods"),b=v.find(".category-goods"),x=v.find(".sale-goods"),k=d(window).height(),_='<p class="no-result">未找到相关搜索结果</p>',T=0,F=n(7),S=d("#list-nav"),D={all:{order:0,reload:!0,page:0,end:!1},newest:{order:0,reload:!0,page:0,end:!1},price:{order:1,reload:!0,page:0,end:!1},discount:{order:1,reload:!0,page:0,end:!1},sale:{order:0,reload:!0,page:0,end:!1},category:{order:0,reload:!0,fuck:!0,page:0,end:!1}},q=S.find(".active");n(8),n(3),h.init(),u(d("img.lazy")),d(".sale-vip-page").length>0?F.saleType=2:d(".discount-detail-page").length>0&&(F.saleType=3,F.productPool=d(".discount-detail-page").data("product-pool")||""),d.extend(F,{yh_channel:i("channel")||"all"}),0===d(".outlet-index-page").length&&s(),u(d(".lazy")),S.bind("contextmenu",function(){return!1}),S.on("touchend touchcancel",function(e){var t,n,i,s=d(e.target).closest("li");if(e.preventDefault(),"undefined"!=typeof s&&0!==s.length){if(s.hasClass("filter"))s.hasClass("active")?(p.hideFilter(),q.addClass("active"),s.removeClass("active")):(q=s.siblings(".active"),q.removeClass("active"),s.addClass("active"),p.showFilter());else{if(n=o(s),t=D[n],s.hasClass("active")){if(s.hasClass("new")||s.hasClass("sale")||s.hasClass("all"))return;(s.hasClass("price")||s.hasClass("discount"))&&(s.find(".icon > .iconfont").toggleClass("cur"),q=s,t.reload=!0,t.order=0===t.order?1:0)}else{if(i=s.siblings(".active"),q=s,i.hasClass("filter"))p.hideFilter();else switch(v.children(".container:not(.hide)").addClass("hide"),n){case"newest":m.removeClass("hide");break;case"price":y.removeClass("hide");break;case"discount":w.removeClass("hide");break;case"sale":x.removeClass("hide");break;case"all":C.removeClass("hide")}i.removeClass("active"),s.addClass("active")}t.reload&&a()}e.stopPropagation()}}),d(window).scroll(function(){0===d(".outlet-index-page").length&&window.requestAnimationFrame(r)}),S.on("touchstart","li",function(){d(this).addClass("bytouch")}).on("touchend touchcancel",function(){S.find("li").removeClass("bytouch")}),e.exports={start:a}},function(e,t,n){"use strict";function i(e){var t;return this instanceof i?(e.el=o(e.el),void(e.el&&(t=e.el.attr("data-config"),t&&(t=JSON.parse(t.replace(/'/g,'"')),e=o.extend(!0,{},r,t,e)),this.config=e,this._init()))):new i(e)}var o=n(1),a=n(2),s="afterPaint",r={el:{},stopPoint:0,leftTime:0,template:"",varRegular:/\$\{([\-\w]+)\}/g,clock:["d",100,2,"h",24,2,"m",60,2,"s",60,2,"u",10,1],effect:"normal"},c={normal:{paint:function(){var e,t=this;o.each(t.hands,function(n,i){i.lastValue!==i.value&&(e="",o.each(t._toDigitals(i.value,i.bits),function(n,i){e+=t._html(i,"","digital")}),i.node.html(e))})}}},l=function(){function e(){for(var t,o,a,s,r=+new Date-e.nextTime,c=1+Math.floor(r/100);i.length;)i.shift()();for(r=100-r%100,e.nextTime+=100*c,a=0,s=n.length;s>a;a+=2)t=n[a+1],0===t?n[a](c):(t+=2*c-1,o=Math.floor(t/20),o>0&&n[a](o),n[a+1]=t%20+1);setTimeout(e,r)}function t(e,t){var n,i;for(n=0,i=t.length;i>n;++n)if(t[n]===e)return n;return-1}var n=[],i=[];return e.nextTime=+new Date,e(),{add:function(e,t){i.push(function(){n.push(e),n.push(1e3===t?1:0)})},remove:function(e){var o;i.push(function(){o=t(e,n),-1!==o&&n.splice(t(e,n),2)})}}}();o.extend(i.prototype,{_init:function(){var e,t,n=this,i=n.config.el,a=[],s=i.html(),r=n.config.varRegular;n.hands=a,n.frequency=1e3,n._notify=[],r.lastIndex=0,i.html(s.replace(r,function(e,t){var i="";return"u"!==t&&"s-ext"!==t||(n.frequency=100),"s-ext"===t?(a.push({type:"s"}),a.push({type:"u"}),i=n._html("","s","handlet")+n._html(".","","digital")+n._html("","u","handlet")):a.push({type:t}),n._html(i,t,"hand")})),e=n.config.clock,o.each(a,function(t,n){var o,a=n.type,s=100;for(n.node=i.find(".hand-"+a),o=e.length-3;o>-1&&a!==e[o];o-=3)s*=e[o+1];n.base=s,n.radix=e[o+1],n.bits=e[o+2]}),n._getLeft(),n._reflow(),t=n._reflow,n._reflow=function(){return t.apply(n,arguments)},l.add(n._reflow,n.frequency),i.show()},_getLeft:function(){var e=1e3*this.config.leftTime,t=this.config.stopPoint;!e&&t&&(e=t-+new Date),this.left=e-e%this.frequency},_reflow:function(e){var t=this,n=t.config.el;return e=e||0,t.left=t.left-t.frequency*e,o.each(t.hands,function(e,n){n.lastValue=n.value,n.value=Math.floor(t.left/n.base)%n.radix}),t._repaint(),t._notify[t.left]&&o.each(t._notify[t.left],function(e,n){n.call(t)}),t.left<1&&(n.text("— 活动已结束 —"),n.parents(".back-ground-white").on("click",function(){return a.show("活动即将开始,敬请期待!"),!1}),l.remove(t._reflow)),t.left<864e5&&n.find(".left-day").hide(),t},_repaint:function(){c[this.config.effect].paint.apply(this),this.config.el.trigger(s)},_toDigitals:function(e,t){var n=[];for(e=0>e?0:e,t=e.toString().length>1?2:1;t--;)n[t]=e%10,e=Math.floor(e/10);return n},_html:function(e,t,n){switch(o.isArray(e)&&(e=e.join("")),n){case"hand":t=n+" hand-"+t;break;case"handlet":t=n+" hand-"+t;break;case"digital":t="."===e?n+" "+n+"-point "+t:n+" "+n+"-"+e+" "+t}return'<i class="'+t+'">'+e+"</i>"},notify:function(e,t){var n;return e=1e3*e,e-=e%this.frequency,n=this._notify[e]||[],n.push(t),this._notify[e]=n,this}}),t.Countdown=i},function(e,t,n){function i(e){function t(e){var t;t=n.find("li").eq(e),t.length>0&&setTimeout(function(){i.scrollToElement(t[0],400)},1)}var n,i,o,a={el:".outlet-nav"};return o=r.extend({},a,e),n=r(o.el),i=new c(n[0],{scrollX:!0,scrollY:!1,mouseWheel:!0,scrollbars:!0,probeType:3,preventDefault:!0,click:!0}),{"goto":t}}function o(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!==n?decodeURIComponent(n[2]):null}function a(){r("#index_nav").find("li").each(function(){r(this).find("a").text()===d?r(this).attr({"data-nav":"other","data-type":3}):r(this).find("a").text()===l&&r(this).attr({"data-nav":"other","data-type":2})})}function s(){var e=r("#index_nav"),t=o("yh_channel");a(),null===t?(t=o("type"),null===t?e.find('li:not([data-nav="other"])').eq(0).addClass("active").siblings().removeClass("active"):e.find("li[data-type="+t+"]").addClass("active").siblings().removeClass("active")):e.find('li:not([data-nav="other"])').eq(t).addClass("active").siblings().removeClass("active")}var r=n(1),c=n(15),l="即将结束",d="上线预告";s(),e.exports=i},,,,,,,,,,,,,,,,,,,,,function(e,t,n){var i=n(1);!function(){i.fn.fixNav=function(){var e={direction:"",preScrollTop:0,curScrollTop:0,getDirection:function(){this.curScrollTop=i(window).scrollTop(),this.curScrollTop<this.preScrollTop?this.direction="up":this.direction="down",this.preScrollTop=this.curScrollTop},isUp:function(){return this.getDirection(),"up"===this.direction},isDown:function(){return this.getDirection(),"down"===this.direction}},t={isSet:!1,preStyle:"",preTop:null,$el:null,setFix:function(e,t){this.isSet||(this.$el=i(e),this.preStyle=this.$el.attr("style"),this.preTop=t,this.$el.css({position:"fixed",top:0,"z-index":9999}),this.isSet=!0)},clearFix:function(){var e;this.$el&&(e=i(window).scrollTop(),e<=this.preTop&&(this.preStyle?this.$el.attr("style",this.preStyle):this.$el.removeAttr("style"),this.isSet=!1))}};return this.each(function(n,o){var a=o.getBoundingClientRect(),s=a.top;i(window).scroll(function(){var n=o.getBoundingClientRect(),i=n.top;e.isDown()&&0>=i?t.setFix(o,s):t.clearFix()})})}}()}]);
\ No newline at end of file
webpackJsonp([1],[function(e,t,n){function i(e){var t=e.attr("href"),n=t.split("?")[1].split("&"),i={};return n.forEach(function(e){var t=e.split("="),n=t[0],o=t[1];"actiontype"!==n&&(i[n]=o)}),i}var o=n(1),a=n(11),s=n(6),r=n(13),l=o(".cd-lite"),c=o(".outlet-category-nav a"),d=o(".outlet-category-nav"),h=n(12),u=n(14);n(35),s(o("img.lazy")),l.length>0&&l.each(function(){new r.Countdown({el:o(this)})}),o(".swiper-container .swiper-slide").length>1&&new a(".swiper-container",{lazyLoading:!0,lazyLoadingInPrevNext:!0,loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!0,paginationClickable:!0,pagination:".banner-top .pagination-inner"}),o(".nav-back").on("click",function(e){var t=window.cookie("_Channel")||"boys";e.preventDefault(),location.href="//m.yohobuy.com/"+t}),c.on("click",function(e){var t=i(o(this));o(".category a").removeClass("active"),o(this).addClass("active"),e.preventDefault(),h.start({type:"category"},t)}),c.length>0&&h.start({type:"category"},i(c.eq(0))),o("#index_nav").length>0&&u({el:"#index_nav"})["goto"](o("#index_nav").find(".active").index()),o(".outlet-category-nav").length>0&&u({el:".outlet-category-nav"})["goto"](0),o(".back-ground-white").length>10&&(o(".more-activity").show(),o(".back-ground-white").each(function(e,t){e>9&&o(t).hide()})),o(".more-activity").click(function(){o(".more-activity").hide(),o(".back-ground-white").each(function(e,t){e>9&&o(t).show()})}),window.onload=function(){d.fixNav({autoRollTop:!0})},o(window).bind("beforeunload",function(){o("body").animate({scrollTop:0},100)})},,function(e,t,n){function i(e,t){var n,i;"undefined"!=typeof e&&(n=e.toString(),i=t&&t>0?t:2e3,o.text(n).show(),a=setTimeout(function(){"block"===o.css("display")&&o.hide()},i))}var o,a,s=n(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),o=s("#yoho-tip"),o.on("touchend",function(){o.hide(),clearTimeout(a)})}(),t.show=i},function(e,t,n){function i(e){var t,n,i=document.cookie;return document.cookie&&""!==document.cookie&&(n=i.indexOf(e+"="),n>-1&&(n+=e.length+1,t=decodeURIComponent(f.trim(i.substring(n,i.indexOf(";",n)))))),t}function o(e,t,n){var i,o,a,s,r="";"undefined"!=typeof t&&(n=n||{},null===t&&(t="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(s=new Date,s.setTime(s.getTime()+24*n.expires*60*60*1e3)):s=n.expires,r="; expires="+s.toUTCString()),i=n.path?"; path="+n.path:"",o=n.domain?"; domain="+n.domain:"",a=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),r,i,o,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function s(){var e,t=i("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function r(){var e=s();return 0===e?0:e[1]}function l(){var e=i("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function c(){var e;0!==g.length&&(e=Math.min(f(window).height(),window.screen.availHeight),f("body").height()<=e-parseInt(g.css("height"),0)?g.addClass("bottom"):g.removeClass("bottom"))}function d(e){var t=f(e).outerHeight();e&&g.css("margin-bottom",t+"px")}function h(){var e,t,n=[],i=window.location.search.slice(1).split("&");for(t=0;t<i.length;t++)e=i[t].split("="),n.push(e[0]),n[e[0]]=e[1];return n}function u(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var f=n(1),p=n(4),g=f("#yoho-footer"),v=f(".yoho-page"),m=f(".yoho-header");!function(){var e,t=g.children(".op-row"),n=f(".back-to-top"),i=s();c(),0===i?t.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):t.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+i[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),n.length>0&&(e=new p(n[0]),e.on("tap",function(e){return f(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),g.removeClass("hide")}(),function(e,t,n,i,o){var a=t.createElement(n),s=t.getElementsByTagName(n)[0];e.YohoAcquisitionObject=o,e[o]=function(){e[o].p=arguments},a.async=1,a.src=i,s.parentNode.insertBefore(a,s)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),m.on("touchstart","a",function(){m.find("a").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel","a",function(){f(this).removeClass("highlight")}),v.on("touchstart",".tap-hightlight",function(){f(this).siblings(".tap-hightlight").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){f(this).removeClass("highlight")}),f(".nav-home").on("touchstart",function(){f(".homebuttom").toggleClass("hide")}),function(){var e,t,n=0,i="webkit moz ms o".split(" "),o=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(t=0;t<i.length&&(!o||!a);t++)e=i[t],o=o||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];o&&a||(o=function(e){var t=(new Date).getTime(),i=Math.max(0,16-(t-n)),o=window.setTimeout(function(){e(t+i)},i);return n=t+i,o},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=o,window.cancelAnimationFrame=a}(),f.extend({queryString:h}),11===g.find(".user-name").text().length&&g.find(".user-name").html(u(g.find(".user-name").text())),window.cookie=i,window.setCookie=o,window.isCookiesEnabled=a,window.getUser=s,window.getUid=r,window.getShoppingKey=l,window.rePosFooter=c,window.reMarginFooter=d,window.queryString=h()},,function(e,t,n){function i(e){var t='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';c=!0,e||(e=l),e.append(t),s=e.children(".loading-mask"),r("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function o(){c||(i(),c=!0),s.removeClass("hide")}function a(){s.addClass("hide")}var s,r=n(1),l=r(".yoho-page"),c=!1;t.init=i,t.showLoadingMask=o,t.hideLoadingMask=a,t.show=o,t.hide=a},,function(e,t,n){var i=n(1),o={};i(".query-param").each(function(){var e=i(this);o[e.data("attr")]=e.val()}),e.exports=o},function(e,t,n){var i=n(1),o=i("#suspend-cart");i.ajax({type:"GET",url:"/cart/index/count",success:function(e){var t;200===e.code&&(t=e.data.cart_goods_count,t>99&&(t="99+"),0===t&&i(".cart-count").remove(),o.find(".cart-count").html(t).removeClass("hide"))}})},function(e,t,n){function i(){u.addClass("hide")}function o(){u.removeClass("hide")}function a(){var e=g(".filter-body .classify");e.on("touchstart",".shower",function(){e.removeClass("highlight"),g(this).addClass("highlight")}).on("touchend touchcancel",".shower",function(){g(this).removeClass("highlight")})}function s(){var e=g(".filter-body .sub-item");e.on("touchstart",function(){e.removeClass("highlight"),g(this).addClass("highlight")}).on("touchend touchcancel",function(){g(this).removeClass("highlight")})}function r(e){e.hasClass("active")||(e.siblings(".active").removeClass("active"),e.addClass("active"))}function l(e){var t,n,i=e.closest(".sub-classify"),o=i.siblings(".shower");return e.hasClass("chosed")?i:(i.children(".chosed").removeClass("chosed"),e.addClass("chosed"),t=g.trim(e.html()),n=g.trim(o.html()),o.html(n.substring(0,n.indexOf("</span>")+7)+t.substring(0,t.indexOf("<i"))),0===e.index()?o.addClass("default"):o.removeClass("default"),i)}function c(e){var t,n=e.data("id");t=l(e),f&&f({type:t.data("type"),id:n}),p&&p(),i()}function d(e){var t;f=e.fCbFn,p=e.hCbFn,window.missStatus=e.missStatus,a(),s(),u=g(".filter-mask"),u[0]&&(t=new v(u[0]),t.on("tap",function(e){var t,n=g(e.target);e.preventDefault(),n.closest(".filter-body").length>0?(t=n.closest(".sub-item"),t.length>0?(t=n.closest("li"),c(t)):(t=n.closest(".classify-item"),e.srcEvent.stopPropagation(),r(t))):(i(),p&&p())}))}function h(){"undefined"!=typeof u&&(g(".sub-classify").each(function(){l(g(this).children(":first-child"))}),r(g(".classify > :first-child")))}var u,f,p,g=n(1),v=n(4);t.initFilter=d,t.showFilter=o,t.hideFilter=i,t.resetFilter=h},,,function(e,t,n){function i(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!==n?n[2]:null}function o(e){var t="category";return e.hasClass("new")?t="newest":e.hasClass("price")?t="price":e.hasClass("discount")?t="discount":e.hasClass("sale")?t="sale":e.hasClass("all")?t="all":e.hasClass("category")&&(t="category"),t}function a(e,t){var n,i,a,s,r,h={};if(!c){if(e){for(i in D)D.hasOwnProperty(i)&&(D[i].reload=!0);switch(S.children(".active").removeClass("active"),q.addClass("active"),e.type){case"gender":n={gender:e.id};break;case"brand":n={brand:e.id};break;case"sort":n={sort:e.id};break;case"color":n={color:e.id};break;case"size":n={size:e.id};break;case"price":n={price:e.id};break;case"discount":n={discount:e.id};break;case"p_d":n={p_d:e.id}}d.extend(F,n)}if(d.extend(t||{},F),s=o(q),a=D[s||"all"],r=a.page+1,a.reload)r=1;else if(a.end)return;t?(l=t,d.extend(h,t,{type:s,order:a.order,page:r})):(l=null,d.extend(h,F,{type:s,order:a.order,page:r})),c=!0,g.showLoadingMask(),d.ajax({type:"GET",url:"/product/sale/search",data:h,success:function(e){var t,n;switch(s){case"newest":t=m;break;case"price":t=y;break;case"discount":t=w;break;case"sale":t=x;break;case"all":t=C;break;case"categroy":t=b;break;default:t=C}t.hasClass("hide")&&(t.siblings().addClass("hide"),t.removeClass("hide")),""===e?(a.end=!0,a.reload&&t.html(_)):("category"===s&&(a.page=1),a.reload||"category"===s?(t.html(e),u(t.find(".lazy"))):(n=t.find(".good-info").length,t.append(e),u(t.find(".good-info:gt("+(n-1)+") .lazy")))),a.reload=!1,a.page=r,c=!1,g.hideLoadingMask(),window.rePosFooter(),d(".good-detail-text .name").each(function(){var e=d(this),t=e.find("a");t[0].mlellipsis(2)})},error:function(){f.show("网络断开连接了~"),c=!1,g.hideLoadingMask()}})}}function s(){d.ajax({type:"GET",url:"/product/sale/filter",data:F,success:function(e){v.append(e),p.initFilter({fCbFn:a,hCbFn:function(){q.addClass("active"),q.siblings(".filter").removeClass("active")},missStatus:!0})}})}function r(){var e=d(window).scrollTop();e>T&&e+k>d(document).height()-.25*v.height()-50&&"undefined"!=typeof q&&(l?a(!1,l):a()),T=e}var l,c,d=n(1),h=n(10),u=n(6),f=n(2),p=n(9),g=n(5),v=d("#goods-container"),m=v.find(".new-goods"),w=v.find(".discount-goods"),y=v.find(".price-goods"),C=v.find(".all-goods"),b=v.find(".category-goods"),x=v.find(".sale-goods"),k=d(window).height(),_='<p class="no-result">未找到相关搜索结果</p>',T=0,F=n(7),S=d("#list-nav"),D={all:{order:0,reload:!0,page:0,end:!1},newest:{order:0,reload:!0,page:0,end:!1},price:{order:1,reload:!0,page:0,end:!1},discount:{order:1,reload:!0,page:0,end:!1},sale:{order:0,reload:!0,page:0,end:!1},category:{order:0,reload:!0,fuck:!0,page:0,end:!1}},q=S.find(".active");n(8),n(3),h.init(),u(d("img.lazy")),d(".sale-vip-page").length>0?F.saleType=2:d(".discount-detail-page").length>0&&(F.saleType=3,F.productPool=d(".discount-detail-page").data("product-pool")||""),d.extend(F,{yh_channel:i("channel")||"all"}),0===d(".outlet-index-page").length&&s(),u(d(".lazy")),S.bind("contextmenu",function(){return!1}),S.on("touchend touchcancel",function(e){var t,n,i,s=d(e.target).closest("li");if(e.preventDefault(),"undefined"!=typeof s&&0!==s.length){if(s.hasClass("filter"))s.hasClass("active")?(p.hideFilter(),q.addClass("active"),s.removeClass("active")):(q=s.siblings(".active"),q.removeClass("active"),s.addClass("active"),p.showFilter());else{if(n=o(s),t=D[n],s.hasClass("active")){if(s.hasClass("new")||s.hasClass("sale")||s.hasClass("all"))return;(s.hasClass("price")||s.hasClass("discount"))&&(s.find(".icon > .iconfont").toggleClass("cur"),q=s,t.reload=!0,t.order=0===t.order?1:0)}else{if(i=s.siblings(".active"),q=s,i.hasClass("filter"))p.hideFilter();else switch(v.children(".container:not(.hide)").addClass("hide"),n){case"newest":m.removeClass("hide");break;case"price":y.removeClass("hide");break;case"discount":w.removeClass("hide");break;case"sale":x.removeClass("hide");break;case"all":C.removeClass("hide")}i.removeClass("active"),s.addClass("active")}t.reload&&a()}e.stopPropagation()}}),d(window).scroll(function(){0===d(".outlet-index-page").length&&window.requestAnimationFrame(r)}),S.on("touchstart","li",function(){d(this).addClass("bytouch")}).on("touchend touchcancel",function(){S.find("li").removeClass("bytouch")}),e.exports={start:a}},function(e,t,n){"use strict";function i(e){var t;return this instanceof i?(e.el=o(e.el),void(e.el&&(t=e.el.attr("data-config"),t&&(t=JSON.parse(t.replace(/'/g,'"')),e=o.extend(!0,{},r,t,e)),this.config=e,this._init()))):new i(e)}var o=n(1),a=n(2),s="afterPaint",r={el:{},stopPoint:0,leftTime:0,template:"",varRegular:/\$\{([\-\w]+)\}/g,clock:["d",100,2,"h",24,2,"m",60,2,"s",60,2,"u",10,1],effect:"normal"},l={normal:{paint:function(){var e,t=this;o.each(t.hands,function(n,i){i.lastValue!==i.value&&(e="",o.each(t._toDigitals(i.value,i.bits),function(n,i){e+=t._html(i,"","digital")}),i.node.html(e))})}}},c=function(){function e(){for(var t,o,a,s,r=+new Date-e.nextTime,l=1+Math.floor(r/100);i.length;)i.shift()();for(r=100-r%100,e.nextTime+=100*l,a=0,s=n.length;s>a;a+=2)t=n[a+1],0===t?n[a](l):(t+=2*l-1,o=Math.floor(t/20),o>0&&n[a](o),n[a+1]=t%20+1);setTimeout(e,r)}function t(e,t){var n,i;for(n=0,i=t.length;i>n;++n)if(t[n]===e)return n;return-1}var n=[],i=[];return e.nextTime=+new Date,e(),{add:function(e,t){i.push(function(){n.push(e),n.push(1e3===t?1:0)})},remove:function(e){var o;i.push(function(){o=t(e,n),-1!==o&&n.splice(t(e,n),2)})}}}();o.extend(i.prototype,{_init:function(){var e,t,n=this,i=n.config.el,a=[],s=i.html(),r=n.config.varRegular;n.hands=a,n.frequency=1e3,n._notify=[],r.lastIndex=0,i.html(s.replace(r,function(e,t){var i="";return"u"!==t&&"s-ext"!==t||(n.frequency=100),"s-ext"===t?(a.push({type:"s"}),a.push({type:"u"}),i=n._html("","s","handlet")+n._html(".","","digital")+n._html("","u","handlet")):a.push({type:t}),n._html(i,t,"hand")})),e=n.config.clock,o.each(a,function(t,n){var o,a=n.type,s=100;for(n.node=i.find(".hand-"+a),o=e.length-3;o>-1&&a!==e[o];o-=3)s*=e[o+1];n.base=s,n.radix=e[o+1],n.bits=e[o+2]}),n._getLeft(),n._reflow(),t=n._reflow,n._reflow=function(){return t.apply(n,arguments)},c.add(n._reflow,n.frequency),i.show()},_getLeft:function(){var e=1e3*this.config.leftTime,t=this.config.stopPoint;!e&&t&&(e=t-+new Date),this.left=e-e%this.frequency},_reflow:function(e){var t=this,n=t.config.el;return e=e||0,t.left=t.left-t.frequency*e,o.each(t.hands,function(e,n){n.lastValue=n.value,n.value=Math.floor(t.left/n.base)%n.radix}),t._repaint(),t._notify[t.left]&&o.each(t._notify[t.left],function(e,n){n.call(t)}),t.left<1&&(n.text("— 活动已结束 —"),n.parents(".back-ground-white").on("click",function(){return a.show("活动即将开始,敬请期待!"),!1}),c.remove(t._reflow)),t.left<864e5&&n.find(".left-day").hide(),t},_repaint:function(){l[this.config.effect].paint.apply(this),this.config.el.trigger(s)},_toDigitals:function(e,t){var n=[];for(e=0>e?0:e,t=e.toString().length>1?2:1;t--;)n[t]=e%10,e=Math.floor(e/10);return n},_html:function(e,t,n){switch(o.isArray(e)&&(e=e.join("")),n){case"hand":t=n+" hand-"+t;break;case"handlet":t=n+" hand-"+t;break;case"digital":t="."===e?n+" "+n+"-point "+t:n+" "+n+"-"+e+" "+t}return'<i class="'+t+'">'+e+"</i>"},notify:function(e,t){var n;return e=1e3*e,e-=e%this.frequency,n=this._notify[e]||[],n.push(t),this._notify[e]=n,this}}),t.Countdown=i},function(e,t,n){function i(e){function t(e){var t;t=n.find("li").eq(e),t.length>0&&setTimeout(function(){i.scrollToElement(t[0],400)},1)}var n,i,o,a={el:".outlet-nav"};return o=r.extend({},a,e),n=r(o.el),i=new l(n[0],{scrollX:!0,scrollY:!1,tap:!0,eventPassthrough:!0,preventDefault:!0}),{"goto":t}}function o(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!==n?decodeURIComponent(n[2]):null}function a(){r("#index_nav").find("li").each(function(){r(this).find("a").text()===d?r(this).attr({"data-nav":"other","data-type":3}):r(this).find("a").text()===c&&r(this).attr({"data-nav":"other","data-type":2})})}function s(){var e=r("#index_nav"),t=o("yh_channel");a(),null===t?(t=o("type"),null===t?e.find('li:not([data-nav="other"])').eq(0).addClass("active").siblings().removeClass("active"):e.find("li[data-type="+t+"]").addClass("active").siblings().removeClass("active")):e.find('li:not([data-nav="other"])').eq(t).addClass("active").siblings().removeClass("active")}var r=n(1),l=n(15),c="即将结束",d="上线预告";s(),e.exports=i},,,,,,,,,,,,,,,,,,,,,function(e,t,n){var i=n(1);!function(){i.fn.fixNav=function(e){var t={autoRollTop:!1},n=i.extend({},t,e),o={direction:"",preScrollTop:0,curScrollTop:0,getDirection:function(){this.curScrollTop=i(window).scrollTop(),this.curScrollTop<this.preScrollTop?this.direction="up":this.direction="down",this.preScrollTop=this.curScrollTop},isUp:function(){return this.getDirection(),"up"===this.direction},isDown:function(){return this.getDirection(),"down"===this.direction}},a={isSet:!1,preStyle:"",preTop:null,$el:null,setFix:function(e,t){this.isSet||(this.$el=i(e),this.preStyle=this.$el.attr("style"),this.preTop=t,this.$el.css({position:"fixed",top:0,"z-index":9999}),n.autoRollTop&&this.$el.click(function(){"fixed"===i(e).css("position")&&i("body").animate({scrollTop:t},100)}),this.isSet=!0)},clearFix:function(){var e;this.$el&&(e=i(window).scrollTop(),e<=this.preTop&&(this.preStyle?this.$el.attr("style",this.preStyle):this.$el.removeAttr("style"),this.isSet=!1))}};return this.each(function(e,t){var n=t.getBoundingClientRect(),s=n.top;i(window).scroll(function(){var e=t.getBoundingClientRect(),n=e.top;o.isDown()&&0>=n?a.setFix(t,s):a.clearFix()})})}}()}]);
\ No newline at end of file
... ...
webpackJsonp([6],[function(e,t,n){var i=n(1),o=n(11),a=n(12);n(3),a.start(),i(".swiper-container .swiper-slide").length>1&&new o(".swiper-container",{lazyLoading:!0,lazyLoadingInPrevNext:!0,loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!0,paginationClickable:!0,pagination:".banner-top .pagination-inner"})},,function(e,t,n){function i(e,t){var n,i;"undefined"!=typeof e&&(n=e.toString(),i=t&&t>0?t:2e3,o.text(n).show(),a=setTimeout(function(){"block"===o.css("display")&&o.hide()},i))}var o,a,s=n(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),o=s("#yoho-tip"),o.on("touchend",function(){o.hide(),clearTimeout(a)})}(),t.show=i},function(e,t,n){function i(e){var t,n,i=document.cookie;return document.cookie&&""!==document.cookie&&(n=i.indexOf(e+"="),n>-1&&(n+=e.length+1,t=decodeURIComponent(f.trim(i.substring(n,i.indexOf(";",n)))))),t}function o(e,t,n){var i,o,a,s,r="";"undefined"!=typeof t&&(n=n||{},null===t&&(t="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(s=new Date,s.setTime(s.getTime()+24*n.expires*60*60*1e3)):s=n.expires,r="; expires="+s.toUTCString()),i=n.path?"; path="+n.path:"",o=n.domain?"; domain="+n.domain:"",a=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),r,i,o,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function s(){var e,t=i("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function r(){var e=s();return 0===e?0:e[1]}function d(){var e=i("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function c(){var e;0!==g.length&&(e=Math.min(f(window).height(),window.screen.availHeight),f("body").height()<=e-parseInt(g.css("height"),0)?g.addClass("bottom"):g.removeClass("bottom"))}function l(e){var t=f(e).outerHeight();e&&g.css("margin-bottom",t+"px")}function h(){var e,t,n=[],i=window.location.search.slice(1).split("&");for(t=0;t<i.length;t++)e=i[t].split("="),n.push(e[0]),n[e[0]]=e[1];return n}function u(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var f=n(1),p=n(4),g=f("#yoho-footer"),m=f(".yoho-page"),v=f(".yoho-header");!function(){var e,t=g.children(".op-row"),n=f(".back-to-top"),i=s();c(),0===i?t.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):t.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+i[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),n.length>0&&(e=new p(n[0]),e.on("tap",function(e){return f(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),g.removeClass("hide")}(),function(e,t,n,i,o){var a=t.createElement(n),s=t.getElementsByTagName(n)[0];e.YohoAcquisitionObject=o,e[o]=function(){e[o].p=arguments},a.async=1,a.src=i,s.parentNode.insertBefore(a,s)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),v.on("touchstart","a",function(){v.find("a").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel","a",function(){f(this).removeClass("highlight")}),m.on("touchstart",".tap-hightlight",function(){f(this).siblings(".tap-hightlight").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){f(this).removeClass("highlight")}),f(".nav-home").on("touchstart",function(){f(".homebuttom").toggleClass("hide")}),function(){var e,t,n=0,i="webkit moz ms o".split(" "),o=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(t=0;t<i.length&&(!o||!a);t++)e=i[t],o=o||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];o&&a||(o=function(e){var t=(new Date).getTime(),i=Math.max(0,16-(t-n)),o=window.setTimeout(function(){e(t+i)},i);return n=t+i,o},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=o,window.cancelAnimationFrame=a}(),f.extend({queryString:h}),11===g.find(".user-name").text().length&&g.find(".user-name").html(u(g.find(".user-name").text())),window.cookie=i,window.setCookie=o,window.isCookiesEnabled=a,window.getUser=s,window.getUid=r,window.getShoppingKey=d,window.rePosFooter=c,window.reMarginFooter=l,window.queryString=h()},,function(e,t,n){function i(e){var t='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';c=!0,e||(e=d),e.append(t),s=e.children(".loading-mask"),r("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function o(){c||(i(),c=!0),s.removeClass("hide")}function a(){s.addClass("hide")}var s,r=n(1),d=r(".yoho-page"),c=!1;t.init=i,t.showLoadingMask=o,t.hideLoadingMask=a,t.show=o,t.hide=a},,function(e,t,n){var i=n(1),o={};i(".query-param").each(function(){var e=i(this);o[e.data("attr")]=e.val()}),e.exports=o},function(e,t,n){var i=n(1),o=i("#suspend-cart");i.ajax({type:"GET",url:"/cart/index/count",success:function(e){var t;200===e.code&&(t=e.data.cart_goods_count,t>99&&(t="99+"),0===t&&i(".cart-count").remove(),o.find(".cart-count").html(t).removeClass("hide"))}})},function(e,t,n){function i(){u.addClass("hide")}function o(){u.removeClass("hide")}function a(){var e=g(".filter-body .classify");e.on("touchstart",".shower",function(){e.removeClass("highlight"),g(this).addClass("highlight")}).on("touchend touchcancel",".shower",function(){g(this).removeClass("highlight")})}function s(){var e=g(".filter-body .sub-item");e.on("touchstart",function(){e.removeClass("highlight"),g(this).addClass("highlight")}).on("touchend touchcancel",function(){g(this).removeClass("highlight")})}function r(e){e.hasClass("active")||(e.siblings(".active").removeClass("active"),e.addClass("active"))}function d(e){var t,n,i=e.closest(".sub-classify"),o=i.siblings(".shower");return e.hasClass("chosed")?i:(i.children(".chosed").removeClass("chosed"),e.addClass("chosed"),t=g.trim(e.html()),n=g.trim(o.html()),o.html(n.substring(0,n.indexOf("</span>")+7)+t.substring(0,t.indexOf("<i"))),0===e.index()?o.addClass("default"):o.removeClass("default"),i)}function c(e){var t,n=e.data("id");t=d(e),f&&f({type:t.data("type"),id:n}),p&&p(),i()}function l(e){var t;f=e.fCbFn,p=e.hCbFn,window.missStatus=e.missStatus,a(),s(),u=g(".filter-mask"),t=new m(u[0]),t.on("tap",function(e){var t,n=g(e.target);e.preventDefault(),n.closest(".filter-body").length>0?(t=n.closest(".sub-item"),t.length>0?(t=n.closest("li"),c(t)):(t=n.closest(".classify-item"),e.srcEvent.stopPropagation(),r(t))):(i(),p&&p())})}function h(){"undefined"!=typeof u&&(g(".sub-classify").each(function(){d(g(this).children(":first-child"))}),r(g(".classify > :first-child")))}var u,f,p,g=n(1),m=n(4);t.initFilter=l,t.showFilter=o,t.hideFilter=i,t.resetFilter=h},,,function(e,t,n){function i(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!==n?n[2]:null}function o(e){var t="category";return e.hasClass("new")?t="newest":e.hasClass("price")?t="price":e.hasClass("discount")?t="discount":e.hasClass("sale")?t="sale":e.hasClass("all")?t="all":e.hasClass("category")&&(t="category"),t}function a(e,t){var n,i,a,s,r,h={};if(!c){if(e){for(i in z)z.hasOwnProperty(i)&&(z[i].reload=!0);switch(E.children(".active").removeClass("active"),S.addClass("active"),e.type){case"gender":n={gender:e.id};break;case"brand":n={brand:e.id};break;case"sort":n={sort:e.id};break;case"color":n={color:e.id};break;case"size":n={size:e.id};break;case"price":n={price:e.id};break;case"discount":n={discount:e.id};break;case"p_d":n={p_d:e.id}}l.extend(_,n)}if(l.extend(t||{},_),s=o(S),a=z[s||"all"],r=a.page+1,a.reload)r=1;else if(a.end)return;t?(d=t,l.extend(h,t,{type:s,order:a.order,page:r})):(d=null,l.extend(h,_,{type:s,order:a.order,page:r})),c=!0,g.showLoadingMask(),l.ajax({type:"GET",url:"/product/sale/search",data:h,success:function(e){var t,n;switch(s){case"newest":t=v;break;case"price":t=y;break;case"discount":t=w;break;case"sale":t=k;break;case"all":t=C;break;case"categroy":t=b;break;default:t=C}t.hasClass("hide")&&(t.siblings().addClass("hide"),t.removeClass("hide")),""===e?(a.end=!0,a.reload&&t.html(F)):("category"===s&&(a.page=1),a.reload||"category"===s?(t.html(e),u(t.find(".lazy"))):(n=t.find(".good-info").length,t.append(e),u(t.find(".good-info:gt("+(n-1)+") .lazy")))),a.reload=!1,a.page=r,c=!1,g.hideLoadingMask(),window.rePosFooter(),l(".good-detail-text .name").each(function(){var e=l(this),t=e.find("a");t[0].mlellipsis(2)})},error:function(){f.show("网络断开连接了~"),c=!1,g.hideLoadingMask()}})}}function s(){l.ajax({type:"GET",url:"/product/sale/filter",data:_,success:function(e){m.append(e),p.initFilter({fCbFn:a,hCbFn:function(){S.addClass("active"),S.siblings(".filter").removeClass("active")},missStatus:!0})}})}function r(){var e=l(window).scrollTop();e>T&&e+x>l(document).height()-.25*m.height()-50&&"undefined"!=typeof S&&(d?a(!1,d):a()),T=e}var d,c,l=n(1),h=n(10),u=n(6),f=n(2),p=n(9),g=n(5),m=l("#goods-container"),v=m.find(".new-goods"),w=m.find(".discount-goods"),y=m.find(".price-goods"),C=m.find(".all-goods"),b=m.find(".category-goods"),k=m.find(".sale-goods"),x=l(window).height(),F='<p class="no-result">未找到相关搜索结果</p>',T=0,_=n(7),E=l("#list-nav"),z={all:{order:0,reload:!0,page:0,end:!1},newest:{order:0,reload:!0,page:0,end:!1},price:{order:1,reload:!0,page:0,end:!1},discount:{order:1,reload:!0,page:0,end:!1},sale:{order:0,reload:!0,page:0,end:!1},category:{order:0,reload:!0,fuck:!0,page:0,end:!1}},S=E.find(".active");n(8),n(3),h.init(),u(l("img.lazy")),l(".sale-vip-page").length>0?_.saleType=2:l(".discount-detail-page").length>0&&(_.saleType=3,_.productPool=l(".discount-detail-page").data("product-pool")||""),l.extend(_,{yh_channel:i("channel")||"all"}),0===l(".outlet-index-page").length&&s(),u(l(".lazy")),E.bind("contextmenu",function(){return!1}),E.on("touchend touchcancel",function(e){var t,n,i,s=l(e.target).closest("li");if(e.preventDefault(),"undefined"!=typeof s&&0!==s.length){if(s.hasClass("filter"))s.hasClass("active")?(p.hideFilter(),S.addClass("active"),s.removeClass("active")):(S=s.siblings(".active"),S.removeClass("active"),s.addClass("active"),p.showFilter());else{if(n=o(s),t=z[n],s.hasClass("active")){if(s.hasClass("new")||s.hasClass("sale")||s.hasClass("all"))return;(s.hasClass("price")||s.hasClass("discount"))&&(s.find(".icon > .iconfont").toggleClass("cur"),S=s,t.reload=!0,t.order=0===t.order?1:0)}else{if(i=s.siblings(".active"),S=s,i.hasClass("filter"))p.hideFilter();else switch(m.children(".container:not(.hide)").addClass("hide"),n){case"newest":v.removeClass("hide");break;case"price":y.removeClass("hide");break;case"discount":w.removeClass("hide");break;case"sale":k.removeClass("hide");break;case"all":C.removeClass("hide")}i.removeClass("active"),s.addClass("active")}t.reload&&a()}e.stopPropagation()}}),l(window).scroll(function(){0===l(".outlet-index-page").length&&window.requestAnimationFrame(r)}),E.on("touchstart","li",function(){l(this).addClass("bytouch")}).on("touchend touchcancel",function(){E.find("li").removeClass("bytouch")}),e.exports={start:a}}]);
\ No newline at end of file
webpackJsonp([6],[function(e,t,n){var i=n(1),o=n(11),a=n(12);n(3),a.start(),i(".swiper-container .swiper-slide").length>1&&new o(".swiper-container",{lazyLoading:!0,lazyLoadingInPrevNext:!0,loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!0,paginationClickable:!0,pagination:".banner-top .pagination-inner"})},,function(e,t,n){function i(e,t){var n,i;"undefined"!=typeof e&&(n=e.toString(),i=t&&t>0?t:2e3,o.text(n).show(),a=setTimeout(function(){"block"===o.css("display")&&o.hide()},i))}var o,a,s=n(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),o=s("#yoho-tip"),o.on("touchend",function(){o.hide(),clearTimeout(a)})}(),t.show=i},function(e,t,n){function i(e){var t,n,i=document.cookie;return document.cookie&&""!==document.cookie&&(n=i.indexOf(e+"="),n>-1&&(n+=e.length+1,t=decodeURIComponent(f.trim(i.substring(n,i.indexOf(";",n)))))),t}function o(e,t,n){var i,o,a,s,r="";"undefined"!=typeof t&&(n=n||{},null===t&&(t="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(s=new Date,s.setTime(s.getTime()+24*n.expires*60*60*1e3)):s=n.expires,r="; expires="+s.toUTCString()),i=n.path?"; path="+n.path:"",o=n.domain?"; domain="+n.domain:"",a=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),r,i,o,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function s(){var e,t=i("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function r(){var e=s();return 0===e?0:e[1]}function d(){var e=i("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function c(){var e;0!==g.length&&(e=Math.min(f(window).height(),window.screen.availHeight),f("body").height()<=e-parseInt(g.css("height"),0)?g.addClass("bottom"):g.removeClass("bottom"))}function l(e){var t=f(e).outerHeight();e&&g.css("margin-bottom",t+"px")}function h(){var e,t,n=[],i=window.location.search.slice(1).split("&");for(t=0;t<i.length;t++)e=i[t].split("="),n.push(e[0]),n[e[0]]=e[1];return n}function u(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var f=n(1),p=n(4),g=f("#yoho-footer"),m=f(".yoho-page"),v=f(".yoho-header");!function(){var e,t=g.children(".op-row"),n=f(".back-to-top"),i=s();c(),0===i?t.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):t.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+i[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),n.length>0&&(e=new p(n[0]),e.on("tap",function(e){return f(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),g.removeClass("hide")}(),function(e,t,n,i,o){var a=t.createElement(n),s=t.getElementsByTagName(n)[0];e.YohoAcquisitionObject=o,e[o]=function(){e[o].p=arguments},a.async=1,a.src=i,s.parentNode.insertBefore(a,s)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),v.on("touchstart","a",function(){v.find("a").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel","a",function(){f(this).removeClass("highlight")}),m.on("touchstart",".tap-hightlight",function(){f(this).siblings(".tap-hightlight").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){f(this).removeClass("highlight")}),f(".nav-home").on("touchstart",function(){f(".homebuttom").toggleClass("hide")}),function(){var e,t,n=0,i="webkit moz ms o".split(" "),o=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(t=0;t<i.length&&(!o||!a);t++)e=i[t],o=o||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];o&&a||(o=function(e){var t=(new Date).getTime(),i=Math.max(0,16-(t-n)),o=window.setTimeout(function(){e(t+i)},i);return n=t+i,o},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=o,window.cancelAnimationFrame=a}(),f.extend({queryString:h}),11===g.find(".user-name").text().length&&g.find(".user-name").html(u(g.find(".user-name").text())),window.cookie=i,window.setCookie=o,window.isCookiesEnabled=a,window.getUser=s,window.getUid=r,window.getShoppingKey=d,window.rePosFooter=c,window.reMarginFooter=l,window.queryString=h()},,function(e,t,n){function i(e){var t='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';c=!0,e||(e=d),e.append(t),s=e.children(".loading-mask"),r("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function o(){c||(i(),c=!0),s.removeClass("hide")}function a(){s.addClass("hide")}var s,r=n(1),d=r(".yoho-page"),c=!1;t.init=i,t.showLoadingMask=o,t.hideLoadingMask=a,t.show=o,t.hide=a},,function(e,t,n){var i=n(1),o={};i(".query-param").each(function(){var e=i(this);o[e.data("attr")]=e.val()}),e.exports=o},function(e,t,n){var i=n(1),o=i("#suspend-cart");i.ajax({type:"GET",url:"/cart/index/count",success:function(e){var t;200===e.code&&(t=e.data.cart_goods_count,t>99&&(t="99+"),0===t&&i(".cart-count").remove(),o.find(".cart-count").html(t).removeClass("hide"))}})},function(e,t,n){function i(){u.addClass("hide")}function o(){u.removeClass("hide")}function a(){var e=g(".filter-body .classify");e.on("touchstart",".shower",function(){e.removeClass("highlight"),g(this).addClass("highlight")}).on("touchend touchcancel",".shower",function(){g(this).removeClass("highlight")})}function s(){var e=g(".filter-body .sub-item");e.on("touchstart",function(){e.removeClass("highlight"),g(this).addClass("highlight")}).on("touchend touchcancel",function(){g(this).removeClass("highlight")})}function r(e){e.hasClass("active")||(e.siblings(".active").removeClass("active"),e.addClass("active"))}function d(e){var t,n,i=e.closest(".sub-classify"),o=i.siblings(".shower");return e.hasClass("chosed")?i:(i.children(".chosed").removeClass("chosed"),e.addClass("chosed"),t=g.trim(e.html()),n=g.trim(o.html()),o.html(n.substring(0,n.indexOf("</span>")+7)+t.substring(0,t.indexOf("<i"))),0===e.index()?o.addClass("default"):o.removeClass("default"),i)}function c(e){var t,n=e.data("id");t=d(e),f&&f({type:t.data("type"),id:n}),p&&p(),i()}function l(e){var t;f=e.fCbFn,p=e.hCbFn,window.missStatus=e.missStatus,a(),s(),u=g(".filter-mask"),u[0]&&(t=new m(u[0]),t.on("tap",function(e){var t,n=g(e.target);e.preventDefault(),n.closest(".filter-body").length>0?(t=n.closest(".sub-item"),t.length>0?(t=n.closest("li"),c(t)):(t=n.closest(".classify-item"),e.srcEvent.stopPropagation(),r(t))):(i(),p&&p())}))}function h(){"undefined"!=typeof u&&(g(".sub-classify").each(function(){d(g(this).children(":first-child"))}),r(g(".classify > :first-child")))}var u,f,p,g=n(1),m=n(4);t.initFilter=l,t.showFilter=o,t.hideFilter=i,t.resetFilter=h},,,function(e,t,n){function i(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!==n?n[2]:null}function o(e){var t="category";return e.hasClass("new")?t="newest":e.hasClass("price")?t="price":e.hasClass("discount")?t="discount":e.hasClass("sale")?t="sale":e.hasClass("all")?t="all":e.hasClass("category")&&(t="category"),t}function a(e,t){var n,i,a,s,r,h={};if(!c){if(e){for(i in z)z.hasOwnProperty(i)&&(z[i].reload=!0);switch(E.children(".active").removeClass("active"),S.addClass("active"),e.type){case"gender":n={gender:e.id};break;case"brand":n={brand:e.id};break;case"sort":n={sort:e.id};break;case"color":n={color:e.id};break;case"size":n={size:e.id};break;case"price":n={price:e.id};break;case"discount":n={discount:e.id};break;case"p_d":n={p_d:e.id}}l.extend(_,n)}if(l.extend(t||{},_),s=o(S),a=z[s||"all"],r=a.page+1,a.reload)r=1;else if(a.end)return;t?(d=t,l.extend(h,t,{type:s,order:a.order,page:r})):(d=null,l.extend(h,_,{type:s,order:a.order,page:r})),c=!0,g.showLoadingMask(),l.ajax({type:"GET",url:"/product/sale/search",data:h,success:function(e){var t,n;switch(s){case"newest":t=v;break;case"price":t=y;break;case"discount":t=w;break;case"sale":t=k;break;case"all":t=C;break;case"categroy":t=b;break;default:t=C}t.hasClass("hide")&&(t.siblings().addClass("hide"),t.removeClass("hide")),""===e?(a.end=!0,a.reload&&t.html(F)):("category"===s&&(a.page=1),a.reload||"category"===s?(t.html(e),u(t.find(".lazy"))):(n=t.find(".good-info").length,t.append(e),u(t.find(".good-info:gt("+(n-1)+") .lazy")))),a.reload=!1,a.page=r,c=!1,g.hideLoadingMask(),window.rePosFooter(),l(".good-detail-text .name").each(function(){var e=l(this),t=e.find("a");t[0].mlellipsis(2)})},error:function(){f.show("网络断开连接了~"),c=!1,g.hideLoadingMask()}})}}function s(){l.ajax({type:"GET",url:"/product/sale/filter",data:_,success:function(e){m.append(e),p.initFilter({fCbFn:a,hCbFn:function(){S.addClass("active"),S.siblings(".filter").removeClass("active")},missStatus:!0})}})}function r(){var e=l(window).scrollTop();e>T&&e+x>l(document).height()-.25*m.height()-50&&"undefined"!=typeof S&&(d?a(!1,d):a()),T=e}var d,c,l=n(1),h=n(10),u=n(6),f=n(2),p=n(9),g=n(5),m=l("#goods-container"),v=m.find(".new-goods"),w=m.find(".discount-goods"),y=m.find(".price-goods"),C=m.find(".all-goods"),b=m.find(".category-goods"),k=m.find(".sale-goods"),x=l(window).height(),F='<p class="no-result">未找到相关搜索结果</p>',T=0,_=n(7),E=l("#list-nav"),z={all:{order:0,reload:!0,page:0,end:!1},newest:{order:0,reload:!0,page:0,end:!1},price:{order:1,reload:!0,page:0,end:!1},discount:{order:1,reload:!0,page:0,end:!1},sale:{order:0,reload:!0,page:0,end:!1},category:{order:0,reload:!0,fuck:!0,page:0,end:!1}},S=E.find(".active");n(8),n(3),h.init(),u(l("img.lazy")),l(".sale-vip-page").length>0?_.saleType=2:l(".discount-detail-page").length>0&&(_.saleType=3,_.productPool=l(".discount-detail-page").data("product-pool")||""),l.extend(_,{yh_channel:i("channel")||"all"}),0===l(".outlet-index-page").length&&s(),u(l(".lazy")),E.bind("contextmenu",function(){return!1}),E.on("touchend touchcancel",function(e){var t,n,i,s=l(e.target).closest("li");if(e.preventDefault(),"undefined"!=typeof s&&0!==s.length){if(s.hasClass("filter"))s.hasClass("active")?(p.hideFilter(),S.addClass("active"),s.removeClass("active")):(S=s.siblings(".active"),S.removeClass("active"),s.addClass("active"),p.showFilter());else{if(n=o(s),t=z[n],s.hasClass("active")){if(s.hasClass("new")||s.hasClass("sale")||s.hasClass("all"))return;(s.hasClass("price")||s.hasClass("discount"))&&(s.find(".icon > .iconfont").toggleClass("cur"),S=s,t.reload=!0,t.order=0===t.order?1:0)}else{if(i=s.siblings(".active"),S=s,i.hasClass("filter"))p.hideFilter();else switch(m.children(".container:not(.hide)").addClass("hide"),n){case"newest":v.removeClass("hide");break;case"price":y.removeClass("hide");break;case"discount":w.removeClass("hide");break;case"sale":k.removeClass("hide");break;case"all":C.removeClass("hide")}i.removeClass("active"),s.addClass("active")}t.reload&&a()}e.stopPropagation()}}),l(window).scroll(function(){0===l(".outlet-index-page").length&&window.requestAnimationFrame(r)}),E.on("touchstart","li",function(){l(this).addClass("bytouch")}).on("touchend touchcancel",function(){E.find("li").removeClass("bytouch")}),e.exports={start:a}}]);
\ No newline at end of file
... ...
webpackJsonp([5],[function(e,t,n){var o=n(12);o.start()},,function(e,t,n){function o(e,t){var n,o;"undefined"!=typeof e&&(n=e.toString(),o=t&&t>0?t:2e3,i.text(n).show(),a=setTimeout(function(){"block"===i.css("display")&&i.hide()},o))}var i,a,s=n(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),i=s("#yoho-tip"),i.on("touchend",function(){i.hide(),clearTimeout(a)})}(),t.show=o},function(e,t,n){function o(e){var t,n,o=document.cookie;return document.cookie&&""!==document.cookie&&(n=o.indexOf(e+"="),n>-1&&(n+=e.length+1,t=decodeURIComponent(f.trim(o.substring(n,o.indexOf(";",n)))))),t}function i(e,t,n){var o,i,a,s,r="";"undefined"!=typeof t&&(n=n||{},null===t&&(t="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(s=new Date,s.setTime(s.getTime()+24*n.expires*60*60*1e3)):s=n.expires,r="; expires="+s.toUTCString()),o=n.path?"; path="+n.path:"",i=n.domain?"; domain="+n.domain:"",a=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),r,o,i,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function s(){var e,t=o("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function r(){var e=s();return 0===e?0:e[1]}function d(){var e=o("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function c(){var e;0!==p.length&&(e=Math.min(f(window).height(),window.screen.availHeight),f("body").height()<=e-parseInt(p.css("height"),0)?p.addClass("bottom"):p.removeClass("bottom"))}function l(e){var t=f(e).outerHeight();e&&p.css("margin-bottom",t+"px")}function h(){var e,t,n=[],o=window.location.search.slice(1).split("&");for(t=0;t<o.length;t++)e=o[t].split("="),n.push(e[0]),n[e[0]]=e[1];return n}function u(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var f=n(1),g=n(4),p=f("#yoho-footer"),m=f(".yoho-page"),v=f(".yoho-header");!function(){var e,t=p.children(".op-row"),n=f(".back-to-top"),o=s();c(),0===o?t.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):t.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+o[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),n.length>0&&(e=new g(n[0]),e.on("tap",function(e){return f(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),p.removeClass("hide")}(),function(e,t,n,o,i){var a=t.createElement(n),s=t.getElementsByTagName(n)[0];e.YohoAcquisitionObject=i,e[i]=function(){e[i].p=arguments},a.async=1,a.src=o,s.parentNode.insertBefore(a,s)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),v.on("touchstart","a",function(){v.find("a").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel","a",function(){f(this).removeClass("highlight")}),m.on("touchstart",".tap-hightlight",function(){f(this).siblings(".tap-hightlight").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){f(this).removeClass("highlight")}),f(".nav-home").on("touchstart",function(){f(".homebuttom").toggleClass("hide")}),function(){var e,t,n=0,o="webkit moz ms o".split(" "),i=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(t=0;t<o.length&&(!i||!a);t++)e=o[t],i=i||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];i&&a||(i=function(e){var t=(new Date).getTime(),o=Math.max(0,16-(t-n)),i=window.setTimeout(function(){e(t+o)},o);return n=t+o,i},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=i,window.cancelAnimationFrame=a}(),f.extend({queryString:h}),11===p.find(".user-name").text().length&&p.find(".user-name").html(u(p.find(".user-name").text())),window.cookie=o,window.setCookie=i,window.isCookiesEnabled=a,window.getUser=s,window.getUid=r,window.getShoppingKey=d,window.rePosFooter=c,window.reMarginFooter=l,window.queryString=h()},,function(e,t,n){function o(e){var t='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';c=!0,e||(e=d),e.append(t),s=e.children(".loading-mask"),r("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function i(){c||(o(),c=!0),s.removeClass("hide")}function a(){s.addClass("hide")}var s,r=n(1),d=r(".yoho-page"),c=!1;t.init=o,t.showLoadingMask=i,t.hideLoadingMask=a,t.show=i,t.hide=a},,function(e,t,n){var o=n(1),i={};o(".query-param").each(function(){var e=o(this);i[e.data("attr")]=e.val()}),e.exports=i},function(e,t,n){var o=n(1),i=o("#suspend-cart");o.ajax({type:"GET",url:"/cart/index/count",success:function(e){var t;200===e.code&&(t=e.data.cart_goods_count,t>99&&(t="99+"),0===t&&o(".cart-count").remove(),i.find(".cart-count").html(t).removeClass("hide"))}})},function(e,t,n){function o(){u.addClass("hide")}function i(){u.removeClass("hide")}function a(){var e=p(".filter-body .classify");e.on("touchstart",".shower",function(){e.removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel",".shower",function(){p(this).removeClass("highlight")})}function s(){var e=p(".filter-body .sub-item");e.on("touchstart",function(){e.removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel",function(){p(this).removeClass("highlight")})}function r(e){e.hasClass("active")||(e.siblings(".active").removeClass("active"),e.addClass("active"))}function d(e){var t,n,o=e.closest(".sub-classify"),i=o.siblings(".shower");return e.hasClass("chosed")?o:(o.children(".chosed").removeClass("chosed"),e.addClass("chosed"),t=p.trim(e.html()),n=p.trim(i.html()),i.html(n.substring(0,n.indexOf("</span>")+7)+t.substring(0,t.indexOf("<i"))),0===e.index()?i.addClass("default"):i.removeClass("default"),o)}function c(e){var t,n=e.data("id");t=d(e),f&&f({type:t.data("type"),id:n}),g&&g(),o()}function l(e){var t;f=e.fCbFn,g=e.hCbFn,window.missStatus=e.missStatus,a(),s(),u=p(".filter-mask"),t=new m(u[0]),t.on("tap",function(e){var t,n=p(e.target);e.preventDefault(),n.closest(".filter-body").length>0?(t=n.closest(".sub-item"),t.length>0?(t=n.closest("li"),c(t)):(t=n.closest(".classify-item"),e.srcEvent.stopPropagation(),r(t))):(o(),g&&g())})}function h(){"undefined"!=typeof u&&(p(".sub-classify").each(function(){d(p(this).children(":first-child"))}),r(p(".classify > :first-child")))}var u,f,g,p=n(1),m=n(4);t.initFilter=l,t.showFilter=i,t.hideFilter=o,t.resetFilter=h},,,function(e,t,n){function o(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!==n?n[2]:null}function i(e){var t="category";return e.hasClass("new")?t="newest":e.hasClass("price")?t="price":e.hasClass("discount")?t="discount":e.hasClass("sale")?t="sale":e.hasClass("all")?t="all":e.hasClass("category")&&(t="category"),t}function a(e,t){var n,o,a,s,r,h={};if(!c){if(e){for(o in S)S.hasOwnProperty(o)&&(S[o].reload=!0);switch(E.children(".active").removeClass("active"),q.addClass("active"),e.type){case"gender":n={gender:e.id};break;case"brand":n={brand:e.id};break;case"sort":n={sort:e.id};break;case"color":n={color:e.id};break;case"size":n={size:e.id};break;case"price":n={price:e.id};break;case"discount":n={discount:e.id};break;case"p_d":n={p_d:e.id}}l.extend(_,n)}if(l.extend(t||{},_),s=i(q),a=S[s||"all"],r=a.page+1,a.reload)r=1;else if(a.end)return;t?(d=t,l.extend(h,t,{type:s,order:a.order,page:r})):(d=null,l.extend(h,_,{type:s,order:a.order,page:r})),c=!0,p.showLoadingMask(),l.ajax({type:"GET",url:"/product/sale/search",data:h,success:function(e){var t,n;switch(s){case"newest":t=v;break;case"price":t=y;break;case"discount":t=w;break;case"sale":t=k;break;case"all":t=C;break;case"categroy":t=b;break;default:t=C}t.hasClass("hide")&&(t.siblings().addClass("hide"),t.removeClass("hide")),""===e?(a.end=!0,a.reload&&t.html(F)):("category"===s&&(a.page=1),a.reload||"category"===s?(t.html(e),u(t.find(".lazy"))):(n=t.find(".good-info").length,t.append(e),u(t.find(".good-info:gt("+(n-1)+") .lazy")))),a.reload=!1,a.page=r,c=!1,p.hideLoadingMask(),window.rePosFooter(),l(".good-detail-text .name").each(function(){var e=l(this),t=e.find("a");t[0].mlellipsis(2)})},error:function(){f.show("网络断开连接了~"),c=!1,p.hideLoadingMask()}})}}function s(){l.ajax({type:"GET",url:"/product/sale/filter",data:_,success:function(e){m.append(e),g.initFilter({fCbFn:a,hCbFn:function(){q.addClass("active"),q.siblings(".filter").removeClass("active")},missStatus:!0})}})}function r(){var e=l(window).scrollTop();e>T&&e+x>l(document).height()-.25*m.height()-50&&"undefined"!=typeof q&&(d?a(!1,d):a()),T=e}var d,c,l=n(1),h=n(10),u=n(6),f=n(2),g=n(9),p=n(5),m=l("#goods-container"),v=m.find(".new-goods"),w=m.find(".discount-goods"),y=m.find(".price-goods"),C=m.find(".all-goods"),b=m.find(".category-goods"),k=m.find(".sale-goods"),x=l(window).height(),F='<p class="no-result">未找到相关搜索结果</p>',T=0,_=n(7),E=l("#list-nav"),S={all:{order:0,reload:!0,page:0,end:!1},newest:{order:0,reload:!0,page:0,end:!1},price:{order:1,reload:!0,page:0,end:!1},discount:{order:1,reload:!0,page:0,end:!1},sale:{order:0,reload:!0,page:0,end:!1},category:{order:0,reload:!0,fuck:!0,page:0,end:!1}},q=E.find(".active");n(8),n(3),h.init(),u(l("img.lazy")),l(".sale-vip-page").length>0?_.saleType=2:l(".discount-detail-page").length>0&&(_.saleType=3,_.productPool=l(".discount-detail-page").data("product-pool")||""),l.extend(_,{yh_channel:o("channel")||"all"}),0===l(".outlet-index-page").length&&s(),u(l(".lazy")),E.bind("contextmenu",function(){return!1}),E.on("touchend touchcancel",function(e){var t,n,o,s=l(e.target).closest("li");if(e.preventDefault(),"undefined"!=typeof s&&0!==s.length){if(s.hasClass("filter"))s.hasClass("active")?(g.hideFilter(),q.addClass("active"),s.removeClass("active")):(q=s.siblings(".active"),q.removeClass("active"),s.addClass("active"),g.showFilter());else{if(n=i(s),t=S[n],s.hasClass("active")){if(s.hasClass("new")||s.hasClass("sale")||s.hasClass("all"))return;(s.hasClass("price")||s.hasClass("discount"))&&(s.find(".icon > .iconfont").toggleClass("cur"),q=s,t.reload=!0,t.order=0===t.order?1:0)}else{if(o=s.siblings(".active"),q=s,o.hasClass("filter"))g.hideFilter();else switch(m.children(".container:not(.hide)").addClass("hide"),n){case"newest":v.removeClass("hide");break;case"price":y.removeClass("hide");break;case"discount":w.removeClass("hide");break;case"sale":k.removeClass("hide");break;case"all":C.removeClass("hide")}o.removeClass("active"),s.addClass("active")}t.reload&&a()}e.stopPropagation()}}),l(window).scroll(function(){0===l(".outlet-index-page").length&&window.requestAnimationFrame(r)}),E.on("touchstart","li",function(){l(this).addClass("bytouch")}).on("touchend touchcancel",function(){E.find("li").removeClass("bytouch")}),e.exports={start:a}}]);
\ No newline at end of file
webpackJsonp([5],[function(e,t,n){var o=n(12);o.start()},,function(e,t,n){function o(e,t){var n,o;"undefined"!=typeof e&&(n=e.toString(),o=t&&t>0?t:2e3,i.text(n).show(),a=setTimeout(function(){"block"===i.css("display")&&i.hide()},o))}var i,a,s=n(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),i=s("#yoho-tip"),i.on("touchend",function(){i.hide(),clearTimeout(a)})}(),t.show=o},function(e,t,n){function o(e){var t,n,o=document.cookie;return document.cookie&&""!==document.cookie&&(n=o.indexOf(e+"="),n>-1&&(n+=e.length+1,t=decodeURIComponent(f.trim(o.substring(n,o.indexOf(";",n)))))),t}function i(e,t,n){var o,i,a,s,r="";"undefined"!=typeof t&&(n=n||{},null===t&&(t="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(s=new Date,s.setTime(s.getTime()+24*n.expires*60*60*1e3)):s=n.expires,r="; expires="+s.toUTCString()),o=n.path?"; path="+n.path:"",i=n.domain?"; domain="+n.domain:"",a=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),r,o,i,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function s(){var e,t=o("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function r(){var e=s();return 0===e?0:e[1]}function d(){var e=o("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function c(){var e;0!==p.length&&(e=Math.min(f(window).height(),window.screen.availHeight),f("body").height()<=e-parseInt(p.css("height"),0)?p.addClass("bottom"):p.removeClass("bottom"))}function l(e){var t=f(e).outerHeight();e&&p.css("margin-bottom",t+"px")}function h(){var e,t,n=[],o=window.location.search.slice(1).split("&");for(t=0;t<o.length;t++)e=o[t].split("="),n.push(e[0]),n[e[0]]=e[1];return n}function u(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var f=n(1),g=n(4),p=f("#yoho-footer"),m=f(".yoho-page"),v=f(".yoho-header");!function(){var e,t=p.children(".op-row"),n=f(".back-to-top"),o=s();c(),0===o?t.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):t.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+o[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),n.length>0&&(e=new g(n[0]),e.on("tap",function(e){return f(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),p.removeClass("hide")}(),function(e,t,n,o,i){var a=t.createElement(n),s=t.getElementsByTagName(n)[0];e.YohoAcquisitionObject=i,e[i]=function(){e[i].p=arguments},a.async=1,a.src=o,s.parentNode.insertBefore(a,s)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),v.on("touchstart","a",function(){v.find("a").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel","a",function(){f(this).removeClass("highlight")}),m.on("touchstart",".tap-hightlight",function(){f(this).siblings(".tap-hightlight").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){f(this).removeClass("highlight")}),f(".nav-home").on("touchstart",function(){f(".homebuttom").toggleClass("hide")}),function(){var e,t,n=0,o="webkit moz ms o".split(" "),i=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(t=0;t<o.length&&(!i||!a);t++)e=o[t],i=i||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];i&&a||(i=function(e){var t=(new Date).getTime(),o=Math.max(0,16-(t-n)),i=window.setTimeout(function(){e(t+o)},o);return n=t+o,i},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=i,window.cancelAnimationFrame=a}(),f.extend({queryString:h}),11===p.find(".user-name").text().length&&p.find(".user-name").html(u(p.find(".user-name").text())),window.cookie=o,window.setCookie=i,window.isCookiesEnabled=a,window.getUser=s,window.getUid=r,window.getShoppingKey=d,window.rePosFooter=c,window.reMarginFooter=l,window.queryString=h()},,function(e,t,n){function o(e){var t='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';c=!0,e||(e=d),e.append(t),s=e.children(".loading-mask"),r("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function i(){c||(o(),c=!0),s.removeClass("hide")}function a(){s.addClass("hide")}var s,r=n(1),d=r(".yoho-page"),c=!1;t.init=o,t.showLoadingMask=i,t.hideLoadingMask=a,t.show=i,t.hide=a},,function(e,t,n){var o=n(1),i={};o(".query-param").each(function(){var e=o(this);i[e.data("attr")]=e.val()}),e.exports=i},function(e,t,n){var o=n(1),i=o("#suspend-cart");o.ajax({type:"GET",url:"/cart/index/count",success:function(e){var t;200===e.code&&(t=e.data.cart_goods_count,t>99&&(t="99+"),0===t&&o(".cart-count").remove(),i.find(".cart-count").html(t).removeClass("hide"))}})},function(e,t,n){function o(){u.addClass("hide")}function i(){u.removeClass("hide")}function a(){var e=p(".filter-body .classify");e.on("touchstart",".shower",function(){e.removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel",".shower",function(){p(this).removeClass("highlight")})}function s(){var e=p(".filter-body .sub-item");e.on("touchstart",function(){e.removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel",function(){p(this).removeClass("highlight")})}function r(e){e.hasClass("active")||(e.siblings(".active").removeClass("active"),e.addClass("active"))}function d(e){var t,n,o=e.closest(".sub-classify"),i=o.siblings(".shower");return e.hasClass("chosed")?o:(o.children(".chosed").removeClass("chosed"),e.addClass("chosed"),t=p.trim(e.html()),n=p.trim(i.html()),i.html(n.substring(0,n.indexOf("</span>")+7)+t.substring(0,t.indexOf("<i"))),0===e.index()?i.addClass("default"):i.removeClass("default"),o)}function c(e){var t,n=e.data("id");t=d(e),f&&f({type:t.data("type"),id:n}),g&&g(),o()}function l(e){var t;f=e.fCbFn,g=e.hCbFn,window.missStatus=e.missStatus,a(),s(),u=p(".filter-mask"),u[0]&&(t=new m(u[0]),t.on("tap",function(e){var t,n=p(e.target);e.preventDefault(),n.closest(".filter-body").length>0?(t=n.closest(".sub-item"),t.length>0?(t=n.closest("li"),c(t)):(t=n.closest(".classify-item"),e.srcEvent.stopPropagation(),r(t))):(o(),g&&g())}))}function h(){"undefined"!=typeof u&&(p(".sub-classify").each(function(){d(p(this).children(":first-child"))}),r(p(".classify > :first-child")))}var u,f,g,p=n(1),m=n(4);t.initFilter=l,t.showFilter=i,t.hideFilter=o,t.resetFilter=h},,,function(e,t,n){function o(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!==n?n[2]:null}function i(e){var t="category";return e.hasClass("new")?t="newest":e.hasClass("price")?t="price":e.hasClass("discount")?t="discount":e.hasClass("sale")?t="sale":e.hasClass("all")?t="all":e.hasClass("category")&&(t="category"),t}function a(e,t){var n,o,a,s,r,h={};if(!c){if(e){for(o in S)S.hasOwnProperty(o)&&(S[o].reload=!0);switch(E.children(".active").removeClass("active"),q.addClass("active"),e.type){case"gender":n={gender:e.id};break;case"brand":n={brand:e.id};break;case"sort":n={sort:e.id};break;case"color":n={color:e.id};break;case"size":n={size:e.id};break;case"price":n={price:e.id};break;case"discount":n={discount:e.id};break;case"p_d":n={p_d:e.id}}l.extend(_,n)}if(l.extend(t||{},_),s=i(q),a=S[s||"all"],r=a.page+1,a.reload)r=1;else if(a.end)return;t?(d=t,l.extend(h,t,{type:s,order:a.order,page:r})):(d=null,l.extend(h,_,{type:s,order:a.order,page:r})),c=!0,p.showLoadingMask(),l.ajax({type:"GET",url:"/product/sale/search",data:h,success:function(e){var t,n;switch(s){case"newest":t=v;break;case"price":t=y;break;case"discount":t=w;break;case"sale":t=k;break;case"all":t=C;break;case"categroy":t=b;break;default:t=C}t.hasClass("hide")&&(t.siblings().addClass("hide"),t.removeClass("hide")),""===e?(a.end=!0,a.reload&&t.html(F)):("category"===s&&(a.page=1),a.reload||"category"===s?(t.html(e),u(t.find(".lazy"))):(n=t.find(".good-info").length,t.append(e),u(t.find(".good-info:gt("+(n-1)+") .lazy")))),a.reload=!1,a.page=r,c=!1,p.hideLoadingMask(),window.rePosFooter(),l(".good-detail-text .name").each(function(){var e=l(this),t=e.find("a");t[0].mlellipsis(2)})},error:function(){f.show("网络断开连接了~"),c=!1,p.hideLoadingMask()}})}}function s(){l.ajax({type:"GET",url:"/product/sale/filter",data:_,success:function(e){m.append(e),g.initFilter({fCbFn:a,hCbFn:function(){q.addClass("active"),q.siblings(".filter").removeClass("active")},missStatus:!0})}})}function r(){var e=l(window).scrollTop();e>T&&e+x>l(document).height()-.25*m.height()-50&&"undefined"!=typeof q&&(d?a(!1,d):a()),T=e}var d,c,l=n(1),h=n(10),u=n(6),f=n(2),g=n(9),p=n(5),m=l("#goods-container"),v=m.find(".new-goods"),w=m.find(".discount-goods"),y=m.find(".price-goods"),C=m.find(".all-goods"),b=m.find(".category-goods"),k=m.find(".sale-goods"),x=l(window).height(),F='<p class="no-result">未找到相关搜索结果</p>',T=0,_=n(7),E=l("#list-nav"),S={all:{order:0,reload:!0,page:0,end:!1},newest:{order:0,reload:!0,page:0,end:!1},price:{order:1,reload:!0,page:0,end:!1},discount:{order:1,reload:!0,page:0,end:!1},sale:{order:0,reload:!0,page:0,end:!1},category:{order:0,reload:!0,fuck:!0,page:0,end:!1}},q=E.find(".active");n(8),n(3),h.init(),u(l("img.lazy")),l(".sale-vip-page").length>0?_.saleType=2:l(".discount-detail-page").length>0&&(_.saleType=3,_.productPool=l(".discount-detail-page").data("product-pool")||""),l.extend(_,{yh_channel:o("channel")||"all"}),0===l(".outlet-index-page").length&&s(),u(l(".lazy")),E.bind("contextmenu",function(){return!1}),E.on("touchend touchcancel",function(e){var t,n,o,s=l(e.target).closest("li");if(e.preventDefault(),"undefined"!=typeof s&&0!==s.length){if(s.hasClass("filter"))s.hasClass("active")?(g.hideFilter(),q.addClass("active"),s.removeClass("active")):(q=s.siblings(".active"),q.removeClass("active"),s.addClass("active"),g.showFilter());else{if(n=i(s),t=S[n],s.hasClass("active")){if(s.hasClass("new")||s.hasClass("sale")||s.hasClass("all"))return;(s.hasClass("price")||s.hasClass("discount"))&&(s.find(".icon > .iconfont").toggleClass("cur"),q=s,t.reload=!0,t.order=0===t.order?1:0)}else{if(o=s.siblings(".active"),q=s,o.hasClass("filter"))g.hideFilter();else switch(m.children(".container:not(.hide)").addClass("hide"),n){case"newest":v.removeClass("hide");break;case"price":y.removeClass("hide");break;case"discount":w.removeClass("hide");break;case"sale":k.removeClass("hide");break;case"all":C.removeClass("hide")}o.removeClass("active"),s.addClass("active")}t.reload&&a()}e.stopPropagation()}}),l(window).scroll(function(){0===l(".outlet-index-page").length&&window.requestAnimationFrame(r)}),E.on("touchstart","li",function(){l(this).addClass("bytouch")}).on("touchend touchcancel",function(){E.find("li").removeClass("bytouch")}),e.exports={start:a}}]);
\ No newline at end of file
... ...
... ... @@ -191,8 +191,7 @@ function reMarginFooter(fixedElement) {
a.async = 1;
a.src = j;
m.parentNode.insertBefore(a, m);
})(window, document, 'script', ('https:' === document.location.protocol ? 'https' : 'http') + '://' +
'cdn.yoho.cn/yas-jssdk/1.0.17/yas.js', '_yas');
}(window, document, 'script', (document.location.protocol === 'https:' ? 'https' : 'http') + '://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js', '_yas'));
(function() {
var uid = getUid();
... ...
... ... @@ -80,6 +80,10 @@ function bindAvatar(dom) {
return false;
}
// else if (window.queryString.app_version) {
// return false;
// }
}
function setIndexAction() {
... ... @@ -251,10 +255,6 @@ getIndexHtml = function() {
$avatarClone.remove();
}
$('.avatar li').each(function() {
setAvatar($(this).find('span'));
});
$starMain.before($('.avatar-swiper').clone().addClass('avatar-clone').hide());
$avatarClone = $('.avatar-clone');
... ...
... ... @@ -128,6 +128,11 @@ function initFilter(opt) {
$filter = $('.filter-mask');
// 页面没有filter的时候什么都不做
if (!$filter[0]) {
return;
}
filterHammer = new Hammer($filter[0]);
filterHammer.on('tap', function(e) {
var $this = $(e.target),
... ...
... ... @@ -5,10 +5,12 @@
var $el = $('.cd-lite');
var $categoryNavItem = $('.outlet-category-nav a');
var $categoryNav = $('.outlet-category-nav');
var search = require('./sale/search');
var iscroll = require('./outlet/nav');
require('./outlet/fix-nav');
lazyLoad($('img.lazy'));
... ... @@ -43,7 +45,6 @@ if ($el.length > 0) {
});
}
$('.outlet-category-nav').fixNav();
if ($('.swiper-container .swiper-slide').length > 1) {
new Swiper('.swiper-container', {
... ... @@ -118,3 +119,18 @@ $('.more-activity').click(function() {
}
});
});
// 页面(包括图片在内)全部加载完才能设置导航悬浮效果,否则位置结算会不准
window.onload = function() {
$categoryNav.fixNav({
autoRollTop: true
});
};
// 刷新后前让页面回到顶部,否则影响导航悬浮效果设置
$(window).bind('beforeunload', function() {
$('body').animate({
scrollTop: 0
}, 100);
});
... ...
... ... @@ -8,12 +8,13 @@
var $ = require('yoho-jquery');
(function() {
$.fn.fixNav = function() {
$.fn.fixNav = function(options) {
// var defaults = {
// };
var defaults = {
autoRollTop: false
};
// var settings = $.extend({}, defaults, options);
var settings = $.extend({}, defaults, options);
var scrollDirection = {
direction: '',
... ... @@ -54,6 +55,16 @@ var $ = require('yoho-jquery');
'z-index': 9999
});
if (settings.autoRollTop) {
this.$el.click(function() {
if ($(el).css('position') === 'fixed') {
$('body').animate({
scrollTop: originTop
}, 100);
}
});
}
this.isSet = true;
}
},
... ... @@ -83,6 +94,7 @@ var $ = require('yoho-jquery');
var subViewportOffset = el.getBoundingClientRect();
var elementTop = subViewportOffset.top;
if (scrollDirection.isDown() && elementTop <= 0) {
styleCtrl.setFix(el, originPoistion);
} else {
... ...
... ... @@ -31,11 +31,9 @@ function initNavScroll(opt) {
iScroll = new IScroll($navBox[0], {
scrollX: true,
scrollY: false,
mouseWheel: true,
scrollbars: true,
probeType: 3,
preventDefault: true,
click: true
tap: true,
eventPassthrough: true,
preventDefault: true
});
return {
... ...
... ... @@ -11,7 +11,6 @@
li {
float: left;
width: 100%;
margin-top: 30px;
background: #000;
.cont-area {
... ...
... ... @@ -9,7 +9,6 @@
width: 100%;
float: left;
background: #000;
margin-top: 30px;
img {
width: 100%;
... ...
... ... @@ -139,7 +139,7 @@
width: 110px;
height: 110px;
margin-top: 34px;
background: #282828;
background: #000;
span {
display: block;
... ...