Authored by yyq

Merge branch 'release/4.6' of git.yoho.cn:fe/yohobuywap-node into release/4.6

... ... @@ -85,12 +85,13 @@ const wechat = {
calcSignature: Promise.coroutine(function* (data) {
data = Object.assign({
noncestr: Math.random().toString(36).substr(2, 15),
nonceStr: Math.random().toString(36).substr(2, 15),
timestamp: Math.floor(Date.now() / 1000) + '',
ticket: yield this.getTicket()
ticket: yield this.getTicket(),
appId: appId
}, data);
const str = `jsapi_ticket=${data.ticket}&noncestr=${data.noncestr}&timestamp=${data.timestamp}&url=${data.url}`;
const str = `jsapi_ticket=${data.ticket}&noncestr=${data.nonceStr}&timestamp=${data.timestamp}&url=${data.url}`;
data.signature = sha1(str);
return data;
... ...
... ... @@ -109,7 +109,7 @@ const _discount = (params) => {
return api.get('', sign.apiSign(Object.assign({
method: 'app.activity.get',
sort: 2,
plateform: 2
plateform: 3
}, params)));
};
... ...
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(12),u=i(10),f=i(6),p=i(3),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(2),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"),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){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","http://cdn.yoho.cn/yas-jssdk/1.0.14/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.14","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,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='<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 a(e){var t;return t=e.hasClass("coat")?"coat":e.hasClass("trouser")?"trouser":e.hasClass("shoes")?"shoes":"other"}function o(e){var t,i,n,o,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=a(E),i=q[n],o=i.page+1,i.reload)o=1;else if(i.end)return;l.extend(r,z,{type:"stock",order:0,page:o}),c=!0,m.showLoadingMask(),l.ajax({type:"GET",url:"/product/sale/search",data:r,success:function(e){var t,a;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"))):(a=t.find(".good-info").length,t.append(e),f(t.find(".good-info:gt("+(a-1)+") .lazy"))),i.reload=!1,i.page=o,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:o,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&&o()}var d,c,l=i(1),h=i(12),u=i(10),f=i(6),p=i(3),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(2),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=a(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&&o([{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=a(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&&o([{type:"breakSort",id:i},{type:"breakSize",id:n}]),e.stopPropagation()))}),l(window).scroll(function(){window.requestAnimationFrame(r)}),o([{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){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 a(e,t,i){var n,a,o,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:"",a=i.domain?"; domain="+i.domain:"",o=i.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),r,n,a,o].join(""))}function o(){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,a){var o=t.createElement(i),s=t.getElementsByTagName(i)[0];e.YohoAcquisitionObject=a,e[a]=function(){e[a].p=arguments},o.async=1,o.src=n,s.parentNode.insertBefore(o,s)}(window,document,"script","http://cdn.yoho.cn/yas-jssdk/1.0.14/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.14","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(" "),a=window.requestAnimationFrame,o=window.cancelAnimationFrame;for(t=0;t<n.length&&(!a||!o);t++)e=n[t],a=a||window[e+"RequestAnimationFrame"],o=o||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];a&&o||(a=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-i)),a=window.setTimeout(function(){e(t+n)},n);return i=t+n,a},o=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=a,window.cancelAnimationFrame=o}(),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=a,window.isCookiesEnabled=o,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,t){var i,n;"undefined"!=typeof e&&(i=e.toString(),n=t&&t>0?t:2e3,a.text(i).show(),o=setTimeout(function(){"block"===a.css("display")&&a.hide()},n))}var a,o,s=i(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),a=s("#yoho-tip"),a.on("touchend",function(){a.hide(),clearTimeout(o)})}(),t.show=n},,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 a(){c||(n(),c=!0),s.removeClass("hide")}function o(){s.addClass("hide")}var s,r=i(1),d=r(".yoho-page"),c=!1;t.init=n,t.showLoadingMask=a,t.hideLoadingMask=o,t.show=a,t.hide=o},,function(e,t,i){var n=i(1),a={};n(".query-param").each(function(){var e=n(this);a[e.data("attr")]=e.val()}),e.exports=a},function(e,t,i){var n=i(1),a=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(),a.find(".cart-count").html(t).removeClass("hide"))}})},function(e,t,i){function n(){u.addClass("hide")}function a(){u.removeClass("hide")}function o(){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"),a=n.siblings(".shower");return e.hasClass("chosed")?n:(n.children(".chosed").removeClass("chosed"),e.addClass("chosed"),t=g.trim(e.html()),i=g.trim(a.html()),a.html(i.substring(0,i.indexOf("</span>")+7)+t.substring(0,t.indexOf("<i"))),0===e.index()?a.addClass("default"):a.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,o(),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=a,t.hideFilter=n,t.resetFilter=h}]);
\ No newline at end of file
... ...
webpackJsonp([15],{0:function(e,t,n){(function(e){var t=n(14),i=n(13),o=e(".cd-lite");t({el:"#index_nav"})["goto"](e("#index_nav").find(".active").index()),new i.Countdown({el:o})}).call(t,n(1))},13: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,{},l,t,e)),this.config=e,this._init()))):new i(e)}var o=n(1),a="afterPaint",l={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"},r={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))})}}},f=function(){function e(){for(var t,o,a,l,r=+new Date-e.nextTime,f=1+Math.floor(r/100);i.length;)i.shift()();for(r=100-r%100,e.nextTime+=100*f,a=0,l=n.length;l>a;a+=2)t=n[a+1],0===t?n[a](f):(t+=2*f-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=[],l=i.html(),r=n.config.varRegular;n.hands=a,n.frequency=1e3,n._notify=[],r.lastIndex=0,i.html(l.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,l=100;for(n.node=i.find(".hand-"+a),o=e.length-3;o>-1&&a!==e[o];o-=3)l*=e[o+1];n.base=l,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)},f.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("活动结束"),f.remove(t._reflow)),t.left<864e5&&n.find(".left-day").hide(),t},_repaint:function(){r[this.config.effect].paint.apply(this),this.config.el.trigger(a)},_toDigitals:function(e,t){var n=[];for(e=0>e?0:e;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},14: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=l.extend({},a,e),n=l(o.el),i=new r(n[0],{scrollX:!0,scrollY:!1,mouseWheel:!0,scrollbars:!0,probeType:3,preventDefault:!1,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(){var e=l("#index_nav"),t=o("yh_channel")||o("type");null===t&&(t=0),e.find("li").eq(t).addClass("active").siblings().removeClass("active")}var l=n(1),r=n(15);a(),e.exports=i}});
\ No newline at end of file
webpackJsonp([15],{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))},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,{},l,e,t)),this.config=t,this._init()))):new i(t)}var a=n(1),o="afterPaint",l={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"},r={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))})}}},f=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)},f.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("— 活动已结束 —"),f.remove(e._reflow)),e.left<864e5&&n.find(".left-day").hide(),e},_repaint:function(){r[this.config.effect].paint.apply(this),this.config.el.trigger(o)},_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([3],[function(e,t,n){var i=n(1),o=n(13),a=n(11),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){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 d(){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();d(),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","http://cdn.yoho.cn/yas-jssdk/1.0.14/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.14","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=c,window.rePosFooter=d,window.reMarginFooter=l,window.queryString=h()},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='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';d=!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(){d||(i(),d=!0),s.removeClass("hide")}function a(){s.addClass("hide")}var s,r=n(1),c=r(".yoho-page"),d=!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 d(e){var t,n=e.data("id");t=c(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"),d(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),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,l,f={};if(!c){if(e){for(i in q)q.hasOwnProperty(i)&&(q[i].reload=!0);switch(T.children(".active").removeClass("active"),M.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(M),a=q[s||"all"],l=a.page+1,a.reload)l=1;else if(a.end)return;t?(r=t,d.extend(f,t,{type:s,order:a.order,page:l})):(r=null,d.extend(f,F,{type:s,order:a.order,page:l})),c=!0,p.showLoadingMask(),d.ajax({type:"GET",url:"/product/sale/search",data:f,success:function(e){var t,n;switch(s){case"newest":t=m;break;case"price":t=w;break;case"discount":t=v;break;case"sale":t=b;break;case"all":t=y;break;case"categroy":t=C;break;default:t=y}t.hasClass("hide")&&(t.siblings().addClass("hide"),t.removeClass("hide")),""===e?(a.end=!0,a.reload&&t.html(x)):("category"===s&&(a.page=1),a.reload||"category"===s?(t.html(e),h(t.find(".lazy"))):(n=t.find(".good-info").length,t.append(e),h(t.find(".good-info:gt("+(n-1)+") .lazy")))),a.reload=!1,a.page=l,c=!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(){u.show("网络断开连接了~"),c=!1,p.hideLoadingMask()}})}}function s(){var e=d(window).scrollTop();e>_&&e+k>d(document).height()-.25*g.height()-50&&"undefined"!=typeof M&&(r?a({type:"category"},r):a()),_=e}var r,c,d=n(1),l=n(10),h=n(6),u=n(3),f=n(9),p=n(5),g=d("#goods-container"),m=g.find(".new-goods"),v=g.find(".discount-goods"),w=g.find(".price-goods"),y=g.find(".all-goods"),C=g.find(".category-goods"),b=g.find(".sale-goods"),k=d(window).height(),x='<p class="no-result">未找到相关搜索结果</p>',_=0,F=n(7),T=d("#list-nav"),q={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}},M=T.find(".active");n(8),n(2),l.init(),h(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"}),d.ajax({type:"GET",url:"/product/sale/filter",data:F,success:function(e){g.append(e),f.initFilter({fCbFn:a,hCbFn:function(){M.addClass("active"),M.siblings(".filter").removeClass("active")},missStatus:!0})}}),h(d(".lazy")),T.bind("contextmenu",function(){return!1}),T.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")?(f.hideFilter(),M.addClass("active"),s.removeClass("active")):(M=s.siblings(".active"),M.removeClass("active"),s.addClass("active"),f.showFilter());else{if(n=o(s),t=q[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"),M=s,t.reload=!0,t.order=0===t.order?1:0)}else{if(i=s.siblings(".active"),M=s,i.hasClass("filter"))f.hideFilter();else switch(g.children(".container:not(.hide)").addClass("hide"),n){case"newest":m.removeClass("hide");break;case"price":w.removeClass("hide");break;case"discount":v.removeClass("hide");break;case"sale":b.removeClass("hide");break;case"all":y.removeClass("hide")}i.removeClass("active"),s.addClass("active")}t.reload&&a()}e.stopPropagation()}}),d(window).scroll(function(){window.requestAnimationFrame(s)}),T.on("touchstart","li",function(){d(this).addClass("bytouch")}).on("touchend touchcancel",function(){T.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,{},s,t,e)),this.config=e,this._init()))):new i(e)}var o=n(1),a="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"},r={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,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)},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("活动结束"),c.remove(t._reflow)),t.left<864e5&&n.find(".left-day").hide(),t},_repaint:function(){r[this.config.effect].paint.apply(this),this.config.el.trigger(a)},_toDigitals:function(e,t){var n=[];for(e=0>e?0:e;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(11),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){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","http://cdn.yoho.cn/yas-jssdk/1.0.14/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.14","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,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='<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,d,f={};if(!c){if(e){for(i in q)q.hasOwnProperty(i)&&(q[i].reload=!0);switch(T.children(".active").removeClass("active"),M.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(F,n)}if(l.extend(t||{},F),s=o(M),a=q[s||"all"],d=a.page+1,a.reload)d=1;else if(a.end)return;t?(r=t,l.extend(f,t,{type:s,order:a.order,page:d})):(r=null,l.extend(f,F,{type:s,order:a.order,page:d})),c=!0,g.showLoadingMask(),l.ajax({type:"GET",url:"/product/sale/search",data:f,success:function(e){var t,n;switch(s){case"newest":t=m;break;case"price":t=w;break;case"discount":t=v;break;case"sale":t=b;break;case"all":t=y;break;case"categroy":t=C;break;default:t=y}t.hasClass("hide")&&(t.siblings().addClass("hide"),t.removeClass("hide")),""===e?(a.end=!0,a.reload&&t.html(x)):("category"===s&&(a.page=1),a.reload||"category"===s?(t.html(e),h(t.find(".lazy"))):(n=t.find(".good-info").length,t.append(e),h(t.find(".good-info:gt("+(n-1)+") .lazy")))),a.reload=!1,a.page=d,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(){u.show("网络断开连接了~"),c=!1,g.hideLoadingMask()}})}}function s(){var e=l(window).scrollTop();e>_&&e+k>l(document).height()-.25*p.height()-50&&"undefined"!=typeof M&&(r?a({type:"category"},r):a()),_=e}var r,c,l=n(1),d=n(10),h=n(6),u=n(3),f=n(9),g=n(5),p=l("#goods-container"),m=p.find(".new-goods"),v=p.find(".discount-goods"),w=p.find(".price-goods"),y=p.find(".all-goods"),C=p.find(".category-goods"),b=p.find(".sale-goods"),k=l(window).height(),x='<p class="no-result">未找到相关搜索结果</p>',_=0,F=n(7),T=l("#list-nav"),q={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}},M=T.find(".active");n(8),n(2),d.init(),h(l("img.lazy")),l(".sale-vip-page").length>0?F.saleType=2:l(".discount-detail-page").length>0&&(F.saleType=3,F.productPool=l(".discount-detail-page").data("product-pool")||""),l.extend(F,{yh_channel:i("channel")||"all"}),l.ajax({type:"GET",url:"/product/sale/filter",data:F,success:function(e){p.append(e),f.initFilter({fCbFn:a,hCbFn:function(){M.addClass("active"),M.siblings(".filter").removeClass("active")},missStatus:!0})}}),h(l(".lazy")),T.bind("contextmenu",function(){return!1}),T.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")?(f.hideFilter(),M.addClass("active"),s.removeClass("active")):(M=s.siblings(".active"),M.removeClass("active"),s.addClass("active"),f.showFilter());else{if(n=o(s),t=q[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"),M=s,t.reload=!0,t.order=0===t.order?1:0)}else{if(i=s.siblings(".active"),M=s,i.hasClass("filter"))f.hideFilter();else switch(p.children(".container:not(.hide)").addClass("hide"),n){case"newest":m.removeClass("hide");break;case"price":w.removeClass("hide");break;case"discount":v.removeClass("hide");break;case"sale":b.removeClass("hide");break;case"all":y.removeClass("hide")}i.removeClass("active"),s.addClass("active")}t.reload&&a()}e.stopPropagation()}}),l(window).scroll(function(){window.requestAnimationFrame(s)}),T.on("touchstart","li",function(){l(this).addClass("bytouch")}).on("touchend touchcancel",function(){T.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,{},s,t,e)),this.config=e,this._init()))):new i(e)}var o=n(1),a="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"},r={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,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)},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("— 活动已结束 —"),c.remove(t._reflow)),t.left<864e5&&n.find(".left-day").hide(),t},_repaint:function(){r[this.config.effect].paint.apply(this),this.config.el.trigger(a)},_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([12],{0:function(e,n,t){var o=t(1),i=t(13),a=t(14),r=o(".cd-medium");t(2),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()},2: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(d.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 h(){var e;0!==p.length&&(e=Math.min(d(window).height(),window.screen.availHeight),d("body").height()<=e-parseInt(p.css("height"),0)?p.addClass("bottom"):p.removeClass("bottom"))}function l(e){var n=d(e).outerHeight();e&&p.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 f(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var d=t(1),m=t(4),p=d("#yoho-footer"),g=d(".yoho-page"),w=d(".yoho-header");!function(){var e,n=p.children(".op-row"),t=d(".back-to-top"),o=r();h(),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 m(t[0]),e.on("tap",function(e){return d(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),p.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","http://cdn.yoho.cn/yas-jssdk/1.0.14/yas.js","_yas"),function(){var e=s();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.14","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,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}(),d.extend({queryString:u}),11===p.find(".user-name").text().length&&p.find(".user-name").html(f(p.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()},13:function(e,n,t){"use strict";function o(e){var n;return this instanceof o?(e.el=i(e.el),void(e.el&&(n=e.el.attr("data-config"),n&&(n=JSON.parse(n.replace(/'/g,'"')),e=i.extend(!0,{},r,n,e)),this.config=e,this._init()))):new o(e)}var i=t(1),a="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"},s={normal:{paint:function(){var e,n=this;i.each(n.hands,function(t,o){o.lastValue!==o.value&&(e="",i.each(n._toDigitals(o.value,o.bits),function(t,o){e+=n._html(o,"","digital")}),o.node.html(e))})}}},c=function(){function e(){for(var n,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=t.length;r>a;a+=2)n=t[a+1],0===n?t[a](c):(n+=2*c-1,i=Math.floor(n/20),i>0&&t[a](i),t[a+1]=n%20+1);setTimeout(e,s)}function n(e,n){var t,o;for(t=0,o=n.length;o>t;++t)if(n[t]===e)return t;return-1}var t=[],o=[];return e.nextTime=+new Date,e(),{add:function(e,n){o.push(function(){t.push(e),t.push(1e3===n?1:0)})},remove:function(e){var i;o.push(function(){i=n(e,t),-1!==i&&t.splice(n(e,t),2)})}}}();i.extend(o.prototype,{_init:function(){var e,n,t=this,o=t.config.el,a=[],r=o.html(),s=t.config.varRegular;t.hands=a,t.frequency=1e3,t._notify=[],s.lastIndex=0,o.html(r.replace(s,function(e,n){var o="";return"u"!==n&&"s-ext"!==n||(t.frequency=100),"s-ext"===n?(a.push({type:"s"}),a.push({type:"u"}),o=t._html("","s","handlet")+t._html(".","","digital")+t._html("","u","handlet")):a.push({type:n}),t._html(o,n,"hand")})),e=t.config.clock,i.each(a,function(n,t){var i,a=t.type,r=100;for(t.node=o.find(".hand-"+a),i=e.length-3;i>-1&&a!==e[i];i-=3)r*=e[i+1];t.base=r,t.radix=e[i+1],t.bits=e[i+2]}),t._getLeft(),t._reflow(),n=t._reflow,t._reflow=function(){return n.apply(t,arguments)},c.add(t._reflow,t.frequency),o.show()},_getLeft:function(){var e=1e3*this.config.leftTime,n=this.config.stopPoint;!e&&n&&(e=n-+new Date),this.left=e-e%this.frequency},_reflow:function(e){var n=this,t=n.config.el;return e=e||0,n.left=n.left-n.frequency*e,i.each(n.hands,function(e,t){t.lastValue=t.value,t.value=Math.floor(n.left/t.base)%t.radix}),n._repaint(),n._notify[n.left]&&i.each(n._notify[n.left],function(e,t){t.call(n)}),n.left<1&&(t.text("活动结束"),c.remove(n._reflow)),n.left<864e5&&t.find(".left-day").hide(),n},_repaint:function(){s[this.config.effect].paint.apply(this),this.config.el.trigger(a)},_toDigitals:function(e,n){var t=[];for(e=0>e?0:e;n--;)t[n]=e%10,e=Math.floor(e/10);return t},_html:function(e,n,t){switch(i.isArray(e)&&(e=e.join("")),t){case"hand":n=t+" hand-"+n;break;case"handlet":n=t+" hand-"+n;break;case"digital":n="."===e?t+" "+t+"-point "+n:t+" "+t+"-"+e+" "+n}return'<i class="'+n+'">'+e+"</i>"},notify:function(e,n){var t;return e=1e3*e,e-=e%this.frequency,t=this._notify[e]||[],t.push(n),this._notify[e]=t,this}}),n.Countdown=o},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=r.extend({},a,e),t=r(i.el),o=new s(t[0],{scrollX:!0,scrollY:!1,mouseWheel:!0,scrollbars:!0,probeType:3,preventDefault:!1,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(){var e=r("#index_nav"),n=i("yh_channel")||i("type");null===n&&(n=0),e.find("li").eq(n).addClass("active").siblings().removeClass("active")}var r=t(1),s=t(15);a(),e.exports=o}});
\ No newline at end of file
webpackJsonp([12],{0:function(e,t,n){var i=n(1),o=n(13),a=n(14),r=i(".cd-medium");n(2),r.length>0&&r.each(function(){new o.Countdown({el:i(this)})}),i("#index_nav").length>0&&a({el:"#index_nav"})["goto"](i("#index_nav").find(".active").index()),i(".back-ground-white").length<1&&i(".empty").show()},2: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(d.trim(i.substring(n,i.indexOf(";",n)))))),t}function o(e,t,n){var i,o,a,r,s="";"undefined"!=typeof t&&(n=n||{},null===t&&(t="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(r=new Date,r.setTime(r.getTime()+24*n.expires*60*60*1e3)):r=n.expires,s="; expires="+r.toUTCString()),i=n.path?"; path="+n.path:"",o=n.domain?"; domain="+n.domain:"",a=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),s,i,o,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function r(){var e,t=i("_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=i("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function l(){var e;0!==p.length&&(e=Math.min(d(window).height(),window.screen.availHeight),d("body").height()<=e-parseInt(p.css("height"),0)?p.addClass("bottom"):p.removeClass("bottom"))}function h(e){var t=d(e).outerHeight();e&&p.css("margin-bottom",t+"px")}function u(){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 f(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var d=n(1),m=n(4),p=d("#yoho-footer"),g=d(".yoho-page"),w=d(".yoho-header");!function(){var e,t=p.children(".op-row"),n=d(".back-to-top"),i=r();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 m(n[0]),e.on("tap",function(e){return d(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),p.removeClass("hide")}(),function(e,t,n,i,o){var a=t.createElement(n),r=t.getElementsByTagName(n)[0];e.YohoAcquisitionObject=o,e[o]=function(){e[o].p=arguments},a.async=1,a.src=i,r.parentNode.insertBefore(a,r)}(window,document,"script","http://cdn.yoho.cn/yas-jssdk/1.0.14/yas.js","_yas"),function(){var e=s();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.14","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,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}(),d.extend({queryString:u}),11===p.find(".user-name").text().length&&p.find(".user-name").html(f(p.find(".user-name").text())),window.cookie=i,window.setCookie=o,window.isCookiesEnabled=a,window.getUser=r,window.getUid=s,window.getShoppingKey=c,window.rePosFooter=l,window.reMarginFooter=h,window.queryString=u()},13: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="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"},s={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,r,s=+new Date-e.nextTime,c=1+Math.floor(s/100);i.length;)i.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,o=Math.floor(t/20),o>0&&n[a](o),n[a+1]=t%20+1);setTimeout(e,s)}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=[],r=i.html(),s=n.config.varRegular;n.hands=a,n.frequency=1e3,n._notify=[],s.lastIndex=0,i.html(r.replace(s,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,r=100;for(n.node=i.find(".hand-"+a),o=e.length-3;o>-1&&a!==e[o];o-=3)r*=e[o+1];n.base=r,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("— 活动已结束 —"),c.remove(t._reflow)),t.left<864e5&&n.find(".left-day").hide(),t},_repaint:function(){s[this.config.effect].paint.apply(this),this.config.el.trigger(a)},_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},14: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=s.extend({},a,e),n=s(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(){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()===l&&s(this).attr({"data-nav":"other","data-type":2})})}function r(){var e=s("#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 s=n(1),c=n(15),l="即将结束",h="上限预告";r(),e.exports=i}});
\ No newline at end of file
... ...
webpackJsonp([13],{0:function(e,n,o){var t=o(1),i=o(3),a=o(14);o(2),t("#index_nav").length>0&&a({el:"#index_nav"})["goto"](t("#index_nav").find(".active").index()),t(".back-ground-white").length<1&&t(".empty").show(),t(".back-ground-white").on("click",function(){return i.show("活动即将开始,敬请期待!"),!1}),t(".cd-medium").show()},2:function(e,n,o){function t(e){var n,o,t=document.cookie;return document.cookie&&""!==document.cookie&&(o=t.indexOf(e+"="),o>-1&&(o+=e.length+1,n=decodeURIComponent(m.trim(t.substring(o,t.indexOf(";",o)))))),n}function i(e,n,o){var t,i,a,r,s="";"undefined"!=typeof n&&(o=o||{},null===n&&(n="",o.expires=-1),o.expires&&("number"==typeof o.expires||o.expires.toUTCString)&&("number"==typeof o.expires?(r=new Date,r.setTime(r.getTime()+24*o.expires*60*60*1e3)):r=o.expires,s="; expires="+r.toUTCString()),t=o.path?"; path="+o.path:"",i=o.domain?"; domain="+o.domain:"",a=o.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(n),s,t,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=t("_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=t("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function h(){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 u(e){var n=m(e).outerHeight();e&&f.css("margin-bottom",n+"px")}function d(){var e,n,o=[],t=window.location.search.slice(1).split("&");for(n=0;n<t.length;n++)e=t[n].split("="),o.push(e[0]),o[e[0]]=e[1];return o}function l(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var m=o(1),p=o(4),f=m("#yoho-footer"),w=m(".yoho-page"),g=m(".yoho-header");!function(){var e,n=f.children(".op-row"),o=m(".back-to-top"),t=r();h(),0===t?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()+'">'+t[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),o.length>0&&(e=new p(o[0]),e.on("tap",function(e){return m(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),f.removeClass("hide")}(),function(e,n,o,t,i){var a=n.createElement(o),r=n.getElementsByTagName(o)[0];e.YohoAcquisitionObject=i,e[i]=function(){e[i].p=arguments},a.async=1,a.src=t,r.parentNode.insertBefore(a,r)}(window,document,"script","http://cdn.yoho.cn/yas-jssdk/1.0.14/yas.js","_yas"),function(){var e=s();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.14","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,o=0,t="webkit moz ms o".split(" "),i=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(n=0;n<t.length&&(!i||!a);n++)e=t[n],i=i||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];i&&a||(i=function(e){var n=(new Date).getTime(),t=Math.max(0,16-(n-o)),i=window.setTimeout(function(){e(n+t)},t);return o=n+t,i},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=i,window.cancelAnimationFrame=a}(),m.extend({queryString:d}),11===f.find(".user-name").text().length&&f.find(".user-name").html(l(f.find(".user-name").text())),window.cookie=t,window.setCookie=i,window.isCookiesEnabled=a,window.getUser=r,window.getUid=s,window.getShoppingKey=c,window.rePosFooter=h,window.reMarginFooter=u,window.queryString=d()},3:function(e,n,o){function t(e,n){var o,t;"undefined"!=typeof e&&(o=e.toString(),t=n&&n>0?n:2e3,i.text(o).show(),a=setTimeout(function(){"block"===i.css("display")&&i.hide()},t))}var i,a,r=o(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=t},14:function(e,n,o){function t(e){function n(e){var n;n=o.find("li").eq(e),n.length>0&&setTimeout(function(){t.scrollToElement(n[0],400)},1)}var o,t,i,a={el:".outlet-nav"};return i=r.extend({},a,e),o=r(i.el),t=new s(o[0],{scrollX:!0,scrollY:!1,mouseWheel:!0,scrollbars:!0,probeType:3,preventDefault:!1,click:!0}),{"goto":n}}function i(e){var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),o=window.location.search.substr(1).match(n);return null!==o?decodeURIComponent(o[2]):null}function a(){var e=r("#index_nav"),n=i("yh_channel")||i("type");null===n&&(n=0),e.find("li").eq(n).addClass("active").siblings().removeClass("active")}var r=o(1),s=o(15);a(),e.exports=t}});
\ No newline at end of file
webpackJsonp([13],{0:function(e,n,t){var o=t(1),i=t(3),a=t(14);t(2),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){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!==p.length&&(e=Math.min(m(window).height(),window.screen.availHeight),m("body").height()<=e-parseInt(p.css("height"),0)?p.addClass("bottom"):p.removeClass("bottom"))}function h(e){var n=m(e).outerHeight();e&&p.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),f=t(4),p=m("#yoho-footer"),w=m(".yoho-page"),g=m(".yoho-header");!function(){var e,n=p.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 f(t[0]),e.on("tap",function(e){return m(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),p.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","http://cdn.yoho.cn/yas-jssdk/1.0.14/yas.js","_yas"),function(){var e=s();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.14","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===p.find(".user-name").text().length&&p.find(".user-name").html(l(p.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()},3: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},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([2],[function(e,t,n){var i=n(1),a=n(12),o=n(6),s=n(13),r=i(".cd-lite"),c=i(".outlet-category-nav a"),l=n(11),d=n(14);n(11),o(i("img.lazy")),r.length>0&&r.each(function(){new s.Countdown({el:i(this)})}),i(".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"}),c.on("click",function(e){var t=i(this).attr("href"),n=t.split("?")[1].split("&"),a={};i(".category a").removeClass("active"),i(this).addClass("active"),e.preventDefault(),n.forEach(function(e){var t=e.split("="),n=t[0],i=t[1];a[n]=i}),l.start({type:"category"},a)}),c.length>0&&c.eq(0).trigger("click"),i("#index_nav").length>0&&d({el:"#index_nav"})["goto"](i("#index_nav").find(".active").index()),i(".outlet-category-nav").length>0&&d({el:".outlet-category-nav"})["goto"](0),i(".back-ground-white").length>10&&(i(".more-activity").show(),i(".back-ground-white").each(function(e,t){e>9&&i(t).hide()})),i(".more-activity").click(function(){i(".more-activity").hide(),i(".back-ground-white").each(function(e,t){e>9&&i(t).show()})})},,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 a(e,t,n){var i,a,o,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:"",a=n.domain?"; domain="+n.domain:"",o=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),r,i,a,o].join(""))}function o(){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"),v=f(".yoho-page"),m=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,a){var o=t.createElement(n),s=t.getElementsByTagName(n)[0];e.YohoAcquisitionObject=a,e[a]=function(){e[a].p=arguments},o.async=1,o.src=i,s.parentNode.insertBefore(o,s)}(window,document,"script","http://cdn.yoho.cn/yas-jssdk/1.0.14/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.14","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(" "),a=window.requestAnimationFrame,o=window.cancelAnimationFrame;for(t=0;t<i.length&&(!a||!o);t++)e=i[t],a=a||window[e+"RequestAnimationFrame"],o=o||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];a&&o||(a=function(e){var t=(new Date).getTime(),i=Math.max(0,16-(t-n)),a=window.setTimeout(function(){e(t+i)},i);return n=t+i,a},o=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=a,window.cancelAnimationFrame=o}(),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=a,window.isCookiesEnabled=o,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,t){var n,i;"undefined"!=typeof e&&(n=e.toString(),i=t&&t>0?t:2e3,a.text(n).show(),o=setTimeout(function(){"block"===a.css("display")&&a.hide()},i))}var a,o,s=n(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),a=s("#yoho-tip"),a.on("touchend",function(){a.hide(),clearTimeout(o)})}(),t.show=i},,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 a(){l||(i(),l=!0),s.removeClass("hide")}function o(){s.addClass("hide")}var s,r=n(1),c=r(".yoho-page"),l=!1;t.init=i,t.showLoadingMask=a,t.hideLoadingMask=o,t.show=a,t.hide=o},,function(e,t,n){var i=n(1),a={};i(".query-param").each(function(){var e=i(this);a[e.data("attr")]=e.val()}),e.exports=a},function(e,t,n){var i=n(1),a=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(),a.find(".cart-count").html(t).removeClass("hide"))}})},function(e,t,n){function i(){u.addClass("hide")}function a(){u.removeClass("hide")}function o(){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"),a=i.siblings(".shower");return e.hasClass("chosed")?i:(i.children(".chosed").removeClass("chosed"),e.addClass("chosed"),t=p.trim(e.html()),n=p.trim(a.html()),a.html(n.substring(0,n.indexOf("</span>")+7)+t.substring(0,t.indexOf("<i"))),0===e.index()?a.addClass("default"):a.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,o(),s(),u=p(".filter-mask"),t=new v(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),v=n(4);t.initFilter=d,t.showFilter=a,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 a(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 o(e,t){var n,i,o,s,d,f={};if(!c){if(e){for(i in q)q.hasOwnProperty(i)&&(q[i].reload=!0);switch(F.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}}l.extend(T,n)}if(l.extend(t||{},T),s=a(D),o=q[s||"all"],d=o.page+1,o.reload)d=1;else if(o.end)return;t?(r=t,l.extend(f,t,{type:s,order:o.order,page:d})):(r=null,l.extend(f,T,{type:s,order:o.order,page:d})),c=!0,g.showLoadingMask(),l.ajax({type:"GET",url:"/product/sale/search",data:f,success:function(e){var t,n;switch(s){case"newest":t=v;break;case"price":t=w;break;case"discount":t=m;break;case"sale":t=b;break;case"all":t=y;break;case"categroy":t=C;break;default:t=y}t.hasClass("hide")&&(t.siblings().addClass("hide"),t.removeClass("hide")),""===e?(o.end=!0,o.reload&&t.html(x)):("category"===s&&(o.page=1),o.reload||"category"===s?(t.html(e),h(t.find(".lazy"))):(n=t.find(".good-info").length,t.append(e),h(t.find(".good-info:gt("+(n-1)+") .lazy")))),o.reload=!1,o.page=d,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(){u.show("网络断开连接了~"),c=!1,g.hideLoadingMask()}})}}function s(){var e=l(window).scrollTop();e>_&&e+k>l(document).height()-.25*p.height()-50&&"undefined"!=typeof D&&(r?o({type:"category"},r):o()),_=e}var r,c,l=n(1),d=n(10),h=n(6),u=n(3),f=n(9),g=n(5),p=l("#goods-container"),v=p.find(".new-goods"),m=p.find(".discount-goods"),w=p.find(".price-goods"),y=p.find(".all-goods"),C=p.find(".category-goods"),b=p.find(".sale-goods"),k=l(window).height(),x='<p class="no-result">未找到相关搜索结果</p>',_=0,T=n(7),F=l("#list-nav"),q={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=F.find(".active");n(8),n(2),d.init(),h(l("img.lazy")),l(".sale-vip-page").length>0?T.saleType=2:l(".discount-detail-page").length>0&&(T.saleType=3,T.productPool=l(".discount-detail-page").data("product-pool")||""),l.extend(T,{yh_channel:i("channel")||"all"}),l.ajax({type:"GET",url:"/product/sale/filter",data:T,success:function(e){p.append(e),f.initFilter({fCbFn:o,hCbFn:function(){D.addClass("active"),D.siblings(".filter").removeClass("active")},missStatus:!0})}}),h(l(".lazy")),F.bind("contextmenu",function(){return!1}),F.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")?(f.hideFilter(),D.addClass("active"),s.removeClass("active")):(D=s.siblings(".active"),D.removeClass("active"),s.addClass("active"),f.showFilter());else{if(n=a(s),t=q[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"))f.hideFilter();else switch(p.children(".container:not(.hide)").addClass("hide"),n){case"newest":v.removeClass("hide");break;case"price":w.removeClass("hide");break;case"discount":m.removeClass("hide");break;case"sale":b.removeClass("hide");break;case"all":y.removeClass("hide")}i.removeClass("active"),s.addClass("active")}t.reload&&o()}e.stopPropagation()}}),l(window).scroll(function(){window.requestAnimationFrame(s)}),F.on("touchstart","li",function(){l(this).addClass("bytouch")}).on("touchend touchcancel",function(){F.find("li").removeClass("bytouch")}),e.exports={start:o}},,function(e,t,n){"use strict";function i(e){var t;return this instanceof i?(e.el=a(e.el),void(e.el&&(t=e.el.attr("data-config"),t&&(t=JSON.parse(t.replace(/'/g,'"')),e=a.extend(!0,{},s,t,e)),this.config=e,this._init()))):new i(e)}var a=n(1),o="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"},r={normal:{paint:function(){var e,t=this;a.each(t.hands,function(n,i){i.lastValue!==i.value&&(e="",a.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,a,o,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,o=0,s=n.length;s>o;o+=2)t=n[o+1],0===t?n[o](c):(t+=2*c-1,a=Math.floor(t/20),a>0&&n[o](a),n[o+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 a;i.push(function(){a=t(e,n),-1!==a&&n.splice(t(e,n),2)})}}}();a.extend(i.prototype,{_init:function(){var e,t,n=this,i=n.config.el,o=[],s=i.html(),r=n.config.varRegular;n.hands=o,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?(o.push({type:"s"}),o.push({type:"u"}),i=n._html("","s","handlet")+n._html(".","","digital")+n._html("","u","handlet")):o.push({type:t}),n._html(i,t,"hand")})),e=n.config.clock,a.each(o,function(t,n){var a,o=n.type,s=100;for(n.node=i.find(".hand-"+o),a=e.length-3;a>-1&&o!==e[a];a-=3)s*=e[a+1];n.base=s,n.radix=e[a+1],n.bits=e[a+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,a.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]&&a.each(t._notify[t.left],function(e,n){n.call(t)}),t.left<1&&(n.text("活动结束"),c.remove(t._reflow)),t.left<864e5&&n.find(".left-day").hide(),t},_repaint:function(){r[this.config.effect].paint.apply(this),this.config.el.trigger(o)},_toDigitals:function(e,t){var n=[];for(e=0>e?0:e;t--;)n[t]=e%10,e=Math.floor(e/10);return n},_html:function(e,t,n){switch(a.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,a,o={el:".outlet-nav"};return a=s.extend({},o,e),n=s(a.el),i=new r(n[0],{scrollX:!0,scrollY:!1,mouseWheel:!0,scrollbars:!0,probeType:3,preventDefault:!1,click:!0}),{"goto":t}}function a(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!==n?decodeURIComponent(n[2]):null}function o(){var e=s("#index_nav"),t=a("yh_channel")||a("type");null===t&&(t=0),e.find("li").eq(t).addClass("active").siblings().removeClass("active")}var s=n(1),r=n(15);o(),e.exports=i}]);
\ No newline at end of file
webpackJsonp([2],[function(e,t,n){var i=n(1),a=n(12),o=n(6),s=n(13),r=i(".cd-lite"),c=i(".outlet-category-nav a"),l=n(11),d=n(14);n(11),o(i("img.lazy")),r.length>0&&r.each(function(){new s.Countdown({el:i(this)})}),i(".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"}),c.on("click",function(e){var t=i(this).attr("href"),n=t.split("?")[1].split("&"),a={};i(".category a").removeClass("active"),i(this).addClass("active"),e.preventDefault(),n.forEach(function(e){var t=e.split("="),n=t[0],i=t[1];a[n]=i}),l.start({type:"category"},a)}),c.length>0&&c.eq(0).trigger("click"),i("#index_nav").length>0&&d({el:"#index_nav"})["goto"](i("#index_nav").find(".active").index()),i(".outlet-category-nav").length>0&&d({el:".outlet-category-nav"})["goto"](0),i(".back-ground-white").length>10&&(i(".more-activity").show(),i(".back-ground-white").each(function(e,t){e>9&&i(t).hide()})),i(".more-activity").click(function(){i(".more-activity").hide(),i(".back-ground-white").each(function(e,t){e>9&&i(t).show()})})},,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 a(e,t,n){var i,a,o,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:"",a=n.domain?"; domain="+n.domain:"",o=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),r,i,a,o].join(""))}function o(){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"),v=f(".yoho-page"),m=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,a){var o=t.createElement(n),s=t.getElementsByTagName(n)[0];e.YohoAcquisitionObject=a,e[a]=function(){e[a].p=arguments},o.async=1,o.src=i,s.parentNode.insertBefore(o,s)}(window,document,"script","http://cdn.yoho.cn/yas-jssdk/1.0.14/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.14","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(" "),a=window.requestAnimationFrame,o=window.cancelAnimationFrame;for(t=0;t<i.length&&(!a||!o);t++)e=i[t],a=a||window[e+"RequestAnimationFrame"],o=o||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];a&&o||(a=function(e){var t=(new Date).getTime(),i=Math.max(0,16-(t-n)),a=window.setTimeout(function(){e(t+i)},i);return n=t+i,a},o=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=a,window.cancelAnimationFrame=o}(),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=a,window.isCookiesEnabled=o,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,t){var n,i;"undefined"!=typeof e&&(n=e.toString(),i=t&&t>0?t:2e3,a.text(n).show(),o=setTimeout(function(){"block"===a.css("display")&&a.hide()},i))}var a,o,s=n(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),a=s("#yoho-tip"),a.on("touchend",function(){a.hide(),clearTimeout(o)})}(),t.show=i},,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 a(){l||(i(),l=!0),s.removeClass("hide")}function o(){s.addClass("hide")}var s,r=n(1),c=r(".yoho-page"),l=!1;t.init=i,t.showLoadingMask=a,t.hideLoadingMask=o,t.show=a,t.hide=o},,function(e,t,n){var i=n(1),a={};i(".query-param").each(function(){var e=i(this);a[e.data("attr")]=e.val()}),e.exports=a},function(e,t,n){var i=n(1),a=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(),a.find(".cart-count").html(t).removeClass("hide"))}})},function(e,t,n){function i(){u.addClass("hide")}function a(){u.removeClass("hide")}function o(){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"),a=i.siblings(".shower");return e.hasClass("chosed")?i:(i.children(".chosed").removeClass("chosed"),e.addClass("chosed"),t=p.trim(e.html()),n=p.trim(a.html()),a.html(n.substring(0,n.indexOf("</span>")+7)+t.substring(0,t.indexOf("<i"))),0===e.index()?a.addClass("default"):a.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,o(),s(),u=p(".filter-mask"),t=new v(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),v=n(4);t.initFilter=d,t.showFilter=a,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 a(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 o(e,t){var n,i,o,s,d,f={};if(!c){if(e){for(i in q)q.hasOwnProperty(i)&&(q[i].reload=!0);switch(F.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}}l.extend(T,n)}if(l.extend(t||{},T),s=a(D),o=q[s||"all"],d=o.page+1,o.reload)d=1;else if(o.end)return;t?(r=t,l.extend(f,t,{type:s,order:o.order,page:d})):(r=null,l.extend(f,T,{type:s,order:o.order,page:d})),c=!0,g.showLoadingMask(),l.ajax({type:"GET",url:"/product/sale/search",data:f,success:function(e){var t,n;switch(s){case"newest":t=v;break;case"price":t=w;break;case"discount":t=m;break;case"sale":t=b;break;case"all":t=y;break;case"categroy":t=C;break;default:t=y}t.hasClass("hide")&&(t.siblings().addClass("hide"),t.removeClass("hide")),""===e?(o.end=!0,o.reload&&t.html(x)):("category"===s&&(o.page=1),o.reload||"category"===s?(t.html(e),h(t.find(".lazy"))):(n=t.find(".good-info").length,t.append(e),h(t.find(".good-info:gt("+(n-1)+") .lazy")))),o.reload=!1,o.page=d,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(){u.show("网络断开连接了~"),c=!1,g.hideLoadingMask()}})}}function s(){var e=l(window).scrollTop();e>_&&e+k>l(document).height()-.25*p.height()-50&&"undefined"!=typeof D&&(r?o({type:"category"},r):o()),_=e}var r,c,l=n(1),d=n(10),h=n(6),u=n(3),f=n(9),g=n(5),p=l("#goods-container"),v=p.find(".new-goods"),m=p.find(".discount-goods"),w=p.find(".price-goods"),y=p.find(".all-goods"),C=p.find(".category-goods"),b=p.find(".sale-goods"),k=l(window).height(),x='<p class="no-result">未找到相关搜索结果</p>',_=0,T=n(7),F=l("#list-nav"),q={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=F.find(".active");n(8),n(2),d.init(),h(l("img.lazy")),l(".sale-vip-page").length>0?T.saleType=2:l(".discount-detail-page").length>0&&(T.saleType=3,T.productPool=l(".discount-detail-page").data("product-pool")||""),l.extend(T,{yh_channel:i("channel")||"all"}),l.ajax({type:"GET",url:"/product/sale/filter",data:T,success:function(e){p.append(e),f.initFilter({fCbFn:o,hCbFn:function(){D.addClass("active"),D.siblings(".filter").removeClass("active")},missStatus:!0})}}),h(l(".lazy")),F.bind("contextmenu",function(){return!1}),F.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")?(f.hideFilter(),D.addClass("active"),s.removeClass("active")):(D=s.siblings(".active"),D.removeClass("active"),s.addClass("active"),f.showFilter());else{if(n=a(s),t=q[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"))f.hideFilter();else switch(p.children(".container:not(.hide)").addClass("hide"),n){case"newest":v.removeClass("hide");break;case"price":w.removeClass("hide");break;case"discount":m.removeClass("hide");break;case"sale":b.removeClass("hide");break;case"all":y.removeClass("hide")}i.removeClass("active"),s.addClass("active")}t.reload&&o()}e.stopPropagation()}}),l(window).scroll(function(){window.requestAnimationFrame(s)}),F.on("touchstart","li",function(){l(this).addClass("bytouch")}).on("touchend touchcancel",function(){F.find("li").removeClass("bytouch")}),e.exports={start:o}},,function(e,t,n){"use strict";function i(e){var t;return this instanceof i?(e.el=a(e.el),void(e.el&&(t=e.el.attr("data-config"),t&&(t=JSON.parse(t.replace(/'/g,'"')),e=a.extend(!0,{},s,t,e)),this.config=e,this._init()))):new i(e)}var a=n(1),o="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"},r={normal:{paint:function(){var e,t=this;a.each(t.hands,function(n,i){i.lastValue!==i.value&&(e="",a.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,a,o,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,o=0,s=n.length;s>o;o+=2)t=n[o+1],0===t?n[o](c):(t+=2*c-1,a=Math.floor(t/20),a>0&&n[o](a),n[o+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 a;i.push(function(){a=t(e,n),-1!==a&&n.splice(t(e,n),2)})}}}();a.extend(i.prototype,{_init:function(){var e,t,n=this,i=n.config.el,o=[],s=i.html(),r=n.config.varRegular;n.hands=o,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?(o.push({type:"s"}),o.push({type:"u"}),i=n._html("","s","handlet")+n._html(".","","digital")+n._html("","u","handlet")):o.push({type:t}),n._html(i,t,"hand")})),e=n.config.clock,a.each(o,function(t,n){var a,o=n.type,s=100;for(n.node=i.find(".hand-"+o),a=e.length-3;a>-1&&o!==e[a];a-=3)s*=e[a+1];n.base=s,n.radix=e[a+1],n.bits=e[a+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,a.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]&&a.each(t._notify[t.left],function(e,n){n.call(t)}),t.left<1&&(n.text("— 活动已结束 —"),c.remove(t._reflow)),t.left<864e5&&n.find(".left-day").hide(),t},_repaint:function(){r[this.config.effect].paint.apply(this),this.config.el.trigger(o)},_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(a.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,a,o={el:".outlet-nav"};return a=r.extend({},o,e),n=r(a.el),i=new c(n[0],{scrollX:!0,scrollY:!1,mouseWheel:!0,scrollbars:!0,probeType:3,preventDefault:!0,click:!0}),{"goto":t}}function a(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!==n?decodeURIComponent(n[2]):null}function o(){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=a("yh_channel");o(),null===t?(t=a("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}]);
\ No newline at end of file
... ...
... ... @@ -315,6 +315,7 @@ function search(opt) {
// 筛选初始化
function filterInit() {
$.ajax({
type: 'GET',
url: '/product/sale/filter',
... ... @@ -393,6 +394,10 @@ $listNav.on('touchend touchcancel', function(e) {
// 重置筛选项
filter.resetFilter();
$('.classify .shower').removeClass('default');
defaultOpt.breakSort = $this.data('id');
defaultOpt.breakSize = $this.data('allsub');
filterInit();
defaultOpt = $.extend({}, storeOpt);
}
... ...
... ... @@ -5,7 +5,7 @@ var $ = require('yoho-jquery'),
Countdown = require('./outlet/countdown'),
iscroll = require('./outlet/nav');
var $el = $('.cd-medium');
var $el = $('.cd-lite');
require('../common');
... ...
... ... @@ -5,6 +5,7 @@
*/
'use strict';
var $ = require('yoho-jquery');
var tip = require('../../plugin/tip');
var EVENT_AFTER_PAINT = 'afterPaint';
var defaultOPtions = {
el: {},
... ... @@ -285,6 +286,10 @@ $.extend(Countdown.prototype, {
// notify 可能更新me.left
if (me.left < 1) {
el.text('— 活动已结束 —');
el.parents('.back-ground-white').on('click', function() {
tip.show('活动即将开始,敬请期待!');
return false;
});
timer.remove(me._reflow);
}
... ... @@ -314,6 +319,7 @@ $.extend(Countdown.prototype, {
var digitals = [];
value = value < 0 ? 0 : value;
value.toString().length > 1 ? bits = 2 : bits = 1;
// 把时、分、秒等换算成数字.
while (bits--) {
... ...
var $ = require('yoho-jquery'),
IScroll = require('yoho-iscroll');
//var WILL_BEGIN = '即将开始';
var WILL_END = '即将结束';
var ONLINE_FORECAST = '上限预告';
// nav 滚动
function initNavScroll(opt) {
var $navBox,
... ... @@ -30,7 +34,7 @@ function initNavScroll(opt) {
mouseWheel: true,
scrollbars: true,
probeType: 3,
preventDefault: false,
preventDefault: true,
click: true
});
... ... @@ -52,15 +56,40 @@ function getUrlParam(name) {
}
}
// 获取创意生活和即将结束的index
function getOtherIndex() {
$('#index_nav').find('li').each(function() {
if ($(this).find('a').text() === ONLINE_FORECAST) {
$(this).attr({
'data-nav': 'other',
'data-type': 3
});
} else if ($(this).find('a').text() === WILL_END) {
$(this).attr({
'data-nav': 'other',
'data-type': 2
});
}
});
}
// 选中顶部导航
function activeNav() {
var $nav = $('#index_nav');
var index = getUrlParam('yh_channel') || getUrlParam('type');
var index = getUrlParam('yh_channel');
getOtherIndex();
if (index === null) {
index = 0;
index = getUrlParam('type');
if (index === null) {
$nav.find('li:not([data-nav="other"])').eq(0).addClass('active').siblings().removeClass('active');
} else {
$nav.find('li[data-type=' + index + ']').addClass('active').siblings().removeClass('active');
}
} else {
$nav.find('li:not([data-nav="other"])').eq(index).addClass('active').siblings().removeClass('active');
}
$nav.find('li').eq(index).addClass('active').siblings().removeClass('active');
}
... ...
... ... @@ -7,7 +7,7 @@
left: 50%;
margin-left: -2.5rem;
margin-top: -2.5rem;
background: url('/common/404.png') no-repeat;
background: resolve('common/404.png') no-repeat;
background-size: 100% 100%;
}
}
... ...