Authored by biao

gulp ge

... ... @@ -15,7 +15,7 @@ const renderData = {
// 奥莱首页控制器
exports.index = (req, res) => {
let backUrl = '//m.yohobuy.com/' + req.yoho.channel;
let backUrl = '//m.yohobuy.com/' + req.yoho.channel;
let headerData = headerModel.setNav({
navTitle: 'OUTLET',
backUrl: backUrl,
... ...
This diff could not be displayed because it is too large.
!function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n=window.webpackJsonp;window.webpackJsonp=function(s,a){for(var o,l,c=0,u=[];c<s.length;c++)l=s[c],r[l]&&u.push.apply(u,r[l]),r[l]=0;for(o in a)e[o]=a[o];for(n&&n(s,a);u.length;)u.shift().call(null,t);return a[0]?(i[0]=0,t(0)):void 0};var i={},r={0:0};return t.e=function(e,n){if(0===r[e])return n.call(null,t);if(void 0!==r[e])r[e].push(n);else{r[e]=[n];var i=document.getElementsByTagName("head")[0],s=document.createElement("script");s.type="text/javascript",s.charset="utf-8",s.async=!0,s.src=t.p+""+e+"."+({1:"product.detail",2:"product.outlet",3:"product.outlet-detail",4:"product.discount-detail",5:"product.vip",6:"product.sale",7:"product.break-code",8:"channel.home",9:"guang.star",10:"product.outlet-will-end",11:"guang.detail-list",12:"guang.collocation",13:"product.outlet-activity",14:"product.outlet-will-start",15:"channel.index",16:"product.discount",17:"guang.special",18:"coupon.index",19:"common.error"}[e]||e)+".js",i.appendChild(s)}},t.m=e,t.c=i,t.p="",t(0)}([function(e,t,n){n(1),n(17),n(4),n(18),n(15),n(6),n(10),e.exports=n(11)},function(e,t,n){var i,r;/*!
!function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n=window.webpackJsonp;window.webpackJsonp=function(s,a){for(var o,l,c=0,u=[];c<s.length;c++)l=s[c],r[l]&&u.push.apply(u,r[l]),r[l]=0;for(o in a)e[o]=a[o];for(n&&n(s,a);u.length;)u.shift().call(null,t);return a[0]?(i[0]=0,t(0)):void 0};var i={},r={0:0};return t.e=function(e,n){if(0===r[e])return n.call(null,t);if(void 0!==r[e])r[e].push(n);else{r[e]=[n];var i=document.getElementsByTagName("head")[0],s=document.createElement("script");s.type="text/javascript",s.charset="utf-8",s.async=!0,s.src=t.p+""+e+"."+({1:"product.outlet",2:"product.detail",3:"product.outlet-detail",4:"product.discount-detail",5:"product.vip",6:"product.sale",7:"product.break-code",8:"channel.home",9:"guang.star",10:"product.outlet-will-end",11:"guang.detail-list",12:"guang.collocation",13:"product.outlet-activity",14:"product.outlet-will-start",15:"channel.index",16:"product.discount",17:"guang.special",18:"coupon.index",19:"common.error"}[e]||e)+".js",i.appendChild(s)}},t.m=e,t.c=i,t.p="",t(0)}([function(e,t,n){n(1),n(17),n(4),n(18),n(15),n(6),n(10),e.exports=n(11)},function(e,t,n){var i,r;/*!
* jQuery JavaScript Library v2.2.4
* http://jquery.com/
*
... ...
webpackJsonp([1],[function(o,e,t){function n(){var o=a(".cart-bar"),e=setInterval(function(){o?(window.reMarginFooter(".cart-bar"),clearInterval(e)):o=a(".cart-bar")},200)}var a=t(1),i=t(11),s=t(4),d=t(6),l=a(".goodsDiscount .discount-folder"),c=a(".goodsDiscount .first-item span"),r=document.getElementById("goodsDiscount"),u=r&&new s(r),h=a(r).find(".first-item"),f=a(".cart-bar"),m=a('input[name="limitCodeUrl"]').val(),p=t(25);n(),t(33),d(a("img.lazy")),a("#goodsDiscount h1").length<1&&a(".dropdown").remove(),new i(".banner-swiper",{lazyLoading:!0,lazyLoadingInPrevNext:!0,paginationClickable:!0,pagination:".banner-top .pagination-inner",nextButton:".my-swiper-button-next",prevButton:".my-swiper-button-prev",spaceBetween:3}),0===l.children().length&&(l.css("display","none"),c.html("")),u&&l.children().length>0&&u.on("tap",function(){l.is(":hidden")?(h.removeClass("short-text"),c.removeClass("icon-down").addClass("icon-up").html("&#xe608;"),l.slideDown()):(h.addClass("short-text"),c.removeClass("icon-up").addClass("icon-down").html("&#xe609;"),l.slideUp())}),a("#limit-sale").on("touchend",function(o){var e,t,n=a("#loginUrl").val();o.stopPropagation(),n?window.location=n:(p.showDialog({dialogText:"进入有货APP,获取限购码",hasFooter:{rightBtnText:"打开Yoho!Buy有货APP"}},function(){t=document.createElement("iframe"),t.src=m,t.style.display="none",document.body.appendChild(t),window.location.href=m,e=Date.now(),window.setTimeout(function(){document.body.removeChild(t),Date.now()-e<3200&&(window.location.href="http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho")},3e3)},null,!0),a(".dialog-wrapper").off("touchstart").on("touchstart",function(o){o.stopPropagation(),a(o.target).hasClass("dialog-wrapper")&&p.hideDialog()}))}),t(31),t(30),t(34),a.ajax({type:"GET",url:"/cart/index/count",success:function(o){var e;if(200===o.code){if(e=o.data.cart_goods_count||0,0===e)return!1;e>99&&(e="99+"),f.find(".num-tag").html(e).removeClass("hide")}}}),a(".good-detail-page").length>0&&a("#yoho-footer").css("border-top","1px solid #e0e0e0")},,function(o,e,t){function n(o,e){var t,n;"undefined"!=typeof o&&(t=o.toString(),n=e&&e>0?e:2e3,a.text(t).show(),i=setTimeout(function(){"block"===a.css("display")&&a.hide()},n))}var a,i,s=t(1);!function(){var o='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(o),a=s("#yoho-tip"),a.on("touchend",function(){a.hide(),clearTimeout(i)})}(),e.show=n},,,function(o,e,t){function n(o){var e='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';c=!0,o||(o=l),o.append(e),s=o.children(".loading-mask"),d("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function a(){c||(n(),c=!0),s.removeClass("hide")}function i(){s.addClass("hide")}var s,d=t(1),l=d(".yoho-page"),c=!1;e.init=n,e.showLoadingMask=a,e.hideLoadingMask=i,e.show=a,e.hide=i},,,,,,,,,,,,,,,,function(o,e,t){function n(){var o=A(".chose-panel").find(".num .btn>.iconfont");o.hasClass("disabled")?null:o.addClass("disabled"),W.off("touchstart",".btn-minus"),W.off("touchstart",".btn-plus")}function a(){x=!1,T=!1,I=null,S=A.queryString(),v=A(".chose-panel").find(".thumb"),M=A(".chose-panel .main .chose-items"),E=A(".chose-items"),P=A(".size-list ul"),D=A(".color-list ul"),w=A("#left-num"),L=A(".cart-bar"),y=0,k=0,z=0}function i(o,e){A("#chose-btn-sure").html("确认"),z=1,j=o,_=e}function s(o,e){n(),A("#chose-btn-sure").html("立即购买"),F=o,H=e}function d(){var o=A(".chose-panel"),e=A("#promotionId");o&&o.remove(),e&&e.remove()}function l(){return x||T?x?T?!0:(O.show("请选择尺码~"),!1):(O.show("请选择颜色~"),!1):(O.show("请选择颜色和尺码~"),!1)}function c(o,e){o&&(G.html(o),""!==A("#promotionId").val()&&n(),a()),A(".chose-panel").show(),p=A("#good-num"),B=e,V.disableScroll(M)}function r(){A(".chose-panel").hide(),V.enableScroll(M),L.length>0&&L.show()}function u(){g=E.find(".chosed"),2===g.closest(".zero-stock").length?A("#chose-btn-sure").css("background-color","#c0c0c0").html("已售罄"):F?A("#chose-btn-sure").css("background-color","#eb0313").html("立即购买"):A("#chose-btn-sure").css("background-color","#eb0313").html(z?"确认":"加入购物车")}function h(o){o>0?(N.length>0?E.find(".num .left-num").html("即将售罄"):E.find(".num .left-num").html("剩余"+o+"件"),w.val(o)):(E.find(".num .left-num").html(""),w.val(0))}function f(o){var e,t;if(y&&I&&I.length>0){for(I.removeClass("chosed"),e=P.eq(o).children(),t=0;t<e.length;t++)if(A(e[t]).data("id")===I.data("id"))return I=A(e[t]),S="#"+I.data("id"),y=A(S).data("index"),I.addClass("chosed"),I.data("num");return I=null,T=!1,D.eq(y).addClass("hide"),D.eq(0).removeClass("hide"),y=0,-1}return 0}function m(o){return k&&q&&q.length>0?(q.removeClass("chosed"),q=A(D.eq(o).children().get(k-1)),q.addClass("chosed"),q.data("num")):0}var p,g,v,w,b,C,y,k,x,T,I,P,q,D,B,E,S,M,L,z,_,j,F,H,A=t(1),O=t(2),U=t(5),V=t(26),G=A("#chose-panel"),N=A(".soonSoldOut-tag"),W=A(".yoho-page");a(),W.on("touchstart",".chose-panel",function(o){var e=A(o.target);if(!(e.closest(".main").length>0))return r(),!1}),W.on("touchstart",".color-list .block",function(){var o,e=A(this),t=e.index();e.hasClass("chosed")?(E.find(".num .left-num").html(""),w.val(0),x=!1,P.eq(k).addClass("hide"),P.eq(0).removeClass("hide"),k=0,f(0)):(x=!0,P.eq(k).addClass("hide"),o=f(t+1),h(o),P.eq(t+1).removeClass("hide"),k=t+1,q=e,v.addClass("hide").eq(t).removeClass("hide")),e.siblings(".chosed").removeClass("chosed"),-1===o?(q=A(D.eq(0).children().get(t)),q.addClass("chosed")):e.toggleClass("chosed"),A("#good-num").val(1),u()}).on("touchstart",".size-list .block",function(){var o,e,t=A(this);t.hasClass("chosed")?(E.find(".num .left-num").html(""),w.val(0),T=!1,D.eq(y).addClass("hide"),D.eq(0).removeClass("hide"),y=0,m(0)):(T=!0,o=A("#"+t.data("id")).data("index")-1,D.eq(y).addClass("hide"),e=m(o+1),h(e),D.eq(o+1).removeClass("hide"),y=o+1,I=t),t.siblings(".chosed").removeClass("chosed"),t.toggleClass("chosed"),A("#good-num").val(1),u()}),W.on("touchstart",".btn-minus",function(){var o=parseInt(p.val(),10);return b=A("#left-num").val(),l()?1===o||b-0===0?void O.show("您选择的数量不能为零~"):0>o?void O.show("您选择的数量不能为负数~"):void p.val(o-1):void 0}).on("touchstart",".btn-plus",function(){var o=parseInt(p.val(),10);return b=A("#left-num").val(),l()&&o-0!==b&&0!==b?o>b-1?void O.show("您选择的数量超过了最大库存量~"):void p.val(o+1):void 0}).on("touchstart","#chose-btn-sure",function(){var o,e,t,n,a=A("#good-num").val()-0,i=parseInt(p.val(),10);if(l()&&"已售罄"!==A("#chose-btn-sure").html()){if(b=A("#left-num").val()-0,i>b)return void O.show("您选择的数量超过了最大库存量~");if(0>i)return void O.show("您选择的数量小于一件~");if(g=A(".block-list>ul>li.chosed"),2===g.length&&0===g.closest(".zero-stock").length){if(o=I.data("skuid"),e=A("#promotionId").val(),C)return!1;if(C=!0,U.showLoadingMask(),z)t={new_product_sku:o,old_product_sku:j,buy_number:a,selected:_},n="/cart/index/modify";else{if(F)return A(this).css("background-color","#ccc").removeAttr("id"),n=A("#limitProductPay").val()+"?limitproductcode="+F+"&sku="+o+"&skn="+H+"&buy_number="+a,d(),U.showLoadingMask(),A.ajax({url:n}).then(function(o){o.error?(O.show(o.message),setTimeout(function(){location.reload()},2e3)):location.href=n}).fail(function(){O.show("网络异常!"),setTimeout(function(){location.reload()},2e3)}),!1;t={productSku:o,buyNumber:a,promotionId:e,isEdit:z,cartType:S.cartType},n="/cart/index/add"}A.ajax({method:"POST",url:n,data:t}).done(function(o){var e;U.hideLoadingMask(),200!==o.code||z||(e=o.data.goods_count,e>99&&(e="99+"),A(".num-tag").html(e).removeClass("hide"),C=!1,B&&B()),o.message&&!z&&O.show(o.message),r(),z&&(U.showLoadingMask(),setTimeout(function(){window.location.href="/cart/index/index?cartType="+A("#cartType").val()},1))}).fail(function(){O.show("网络出了点问题~")}).always(function(){C=!1})}}}),e.init=a,e.show=c,e.remove=d,e.setEditModeWithSknId=i,e.disableNumEdit=n,e.setLimitGoodModeWithSknId=s},,,,function(o,e,t){function n(){return null===i&&(i='<div id="dialog-wrapper" class="dialog-wrapper"><div class="dialog-box">{{# hasHeader}}{{/ hasHeader}}<div class="dialog-content">{{dialogText}}</div>{{# hasFooter}}<div class="dialog-footer">{{# leftBtnText}}<span class="dialog-left-btn tap-hightlight">{{.}}</span>{{/ leftBtnText}}{{# rightBtnText}}<span class="dialog-right-btn tap-hightlight">{{.}}</span>{{/ rightBtnText}}</div>{{/ hasFooter}}</div></div>',s=l.compile(i)),s}var a,i,s,d=t(1),l=t(18),c=t(4);e.showDialog=function(o,e,t,i){var l,r,u,h=s(o);s=n(),d(".dialog-wrapper").remove(),d("body").append(d(h)),l=d(".dialog-box"),a=d(".dialog-wrapper"),u=new c(document.getElementById("dialog-wrapper")),o.fast?a.css({display:"block"}):a.fadeIn(),i&&(d(".dialog-wrapper .dialog-footer > span").css("width","100%"),d(".dialog-wrapper .dialog-content").css({"padding-left":"1.85rem","padding-right":"1.85rem"}),a.css("z-index","10")),l.css({top:"50%",marginTop:-(l.height()/2)}),o.autoHide&&(r=1e3,o.autoHide>1&&(r=o.autoHide),setTimeout(function(){a.fadeOut()},r)),a.on("touchmove",function(){return!1}),u.on("tap",function(o){if(d(o.target).hasClass("dialog-left-btn"))"function"==typeof t&&t(),a.fadeOut();else if(d(o.target).hasClass("dialog-right-btn"))return e();o.preventDefault(),o.srcEvent.stopPropagation()})},e.hideDialog=function(){d(".dialog-wrapper").remove()}},function(o,e,t){function n(o){o=o||window.event,o.preventDefault&&o.preventDefault(),o.returnValue=!1}function a(o){o=o||window.event,o.stopPropagation&&o.stopPropagation(),o.cancelBubble=!1}function i(o){var e=o.wheelDelta||o.originalEvent.wheelDelta||o.detail||0,t=l(this).get(0);return a(o),l(t).height()+t.scrollTop>=t.scrollHeight&&0>e?(n(o),!1):0===t.scrollTop&&e>0?(n(o),!1):void 0}function s(o){var e,t;o.on("mousewheel",i),o.on("touchstart",function(o){e=o.originalEvent.changedTouches[0].pageX,t=o.originalEvent.changedTouches[0].pageY}),o.on("touchmove",function(o){var n=o.originalEvent.changedTouches[0].pageX-e,a=o.originalEvent.changedTouches[0].pageY-t,i=l(this).get(0);return o.stopPropagation(),Math.abs(a)<Math.abs(n)?(o.preventDefault(),!1):l(i).height()+i.scrollTop>=i.scrollHeight&&0>a?(o.preventDefault(),!1):0===i.scrollTop&&a>0?(o.preventDefault(),!1):void 0}),l(document).on("mousewheel",n),l(document).on("touchmove",n)}function d(o){o.off("touchstart"),o.off("touchmove"),o.off("mousewheel"),l(document).off("mousewheel",n),l(document).off("touchmove",n)}var l=t(1);e.enableScroll=d,e.disableScroll=s},,,,function(o,e,t){var n,a,i=t(1),s=t(2),d=t(4),l=document.getElementById("nav-tab"),c=l&&new d(l),r=document.getElementById("goto-consult"),u=r&&new d(r),h=document.getElementById("readmore"),f=h&&new d(h);!function(){a=i("#nav-tab .consults-num").html()-0,n=i("#nav-tab .comments-num").html()-0,i("#nav-tab li").each(function(){i(this).removeClass("focus")}),i("#feedback-content .content").each(function(){i(this).addClass("hide")}),0!==n?(i("#nav-tab .comment-nav").addClass("focus"),i("#feedback-content .comment-content").removeClass("hide")):0!==a&&(i("#nav-tab .consult-nav").addClass("focus"),i("#feedback-content .consult-content").removeClass("hide"))}(),c&&c.on("tap",function(o){var e=i(o.target).closest("li"),t=e.index();e.hasClass("comment-nav")&&0===n?s.show("暂无商品评价"):e.hasClass("focus")||(i("#nav-tab li").each(function(){i(this).removeClass("focus")}),i("#feedback-content .content").each(function(){i(this).addClass("hide")}),e.addClass("focus"),i("#feedback-content .content:eq("+t+")").removeClass("hide"))}),u&&u.on("tap",function(){location.href=i(r).find("a").attr("href")}),i(".goods-consults-page").length>0&&i("#yoho-header").css("position","fixed").css("top","0"),i(".goods-consults-page").length>0&&i("#yoho-footer").css("border-top","1px solid #e0e0e0"),f&&f.on("tap",function(){return i(".readmore").hide(),i(".goods-consults.customer-consults").removeClass("customer-consults"),!1}),t(32)},function(o,e,t){function n(o){var e,t;o.length>0&&(e=o[0].getBoundingClientRect().right,t=o.find(".swiper-slide:last-child")[0].getBoundingClientRect().right,0>t-e?o.next(".tips").css("display","none"):o.next(".tips").css("display","block"))}function a(o,e){var t=null;l(o).each(function(n){t=l(o).slice(n,n+e),t.length===e&&n%e===0&&l(t).wrapAll(l('<div class="js-wraper"></div>'))})}function i(){p||g||(p=!0,u.showLoadingMask(),l.ajax({type:"GET",url:f,success:function(o){d=l("#productDesc"),d.append(o),window.rePosFooter(),c(d.find("img.lazy")),new r("#size-swiper-container",{slidesPerView:"auto"}),new r("#reference-swiper-container",{slidesPerView:"auto"}),n(l("#size-swiper-container")),n(l("#reference-swiper-container")),a(".detail .column",2),p=!1,g=!0,u.hideLoadingMask()},error:function(){h.show("网络断开连接了~"),p=!1,u.hideLoadingMask()}}))}function s(){(!g||l(window).scrollTop()+m>=l(document).height()-200)&&i()}var d,l=t(1),c=t(6),r=t(11),u=t(5),h=t(2),f=l("#introUrl").val(),m=l(window).height(),p=!1,g=!1;l(window).scroll(function(){window.requestAnimationFrame(s)})},function(o,e,t){function n(o){var e=o.find(".animate-count");e.css("display","inline"),e.animate({opacity:.25,fontSize:"0.7rem",right:"-=5"},300,function(){e.css("display","none")})}var a,i,s=t(1),d=t(4),l=t(2),c=s("#goods-consults")[0],r=c&&new d(c);!function(){var o=window.location.search.substring(1);a=o.split("&")[0].split("=")[1],i=o.split("&")[1]?o.split("&")[1].split("=")[1]:null}(),r&&r.on("tap",function(o){var e,t=s(o.target).closest("li"),d=t.closest(".consult-item").data("id"),c=t.find(".count").html()-0;t.hasClass("highlight")||(t.hasClass("fav")?e="/product/detail/consultupvote":t.hasClass("useful")&&(e="/product/detail/consultuseful"),s.ajax({method:"post",url:e,data:{id:d,productId:a,total:i}}).done(function(o){200===o.code?(n(t),t.addClass("highlight"),t.find(".count").html(c+1)):401===o.code&&(location.href=o.data)}).fail(function(){l.show("网络断开连接了~")}))})},function(o,e,t){var n=t(1),a=t(2),i=t(21),s=n("#productId").val(),d=n("#productSkn").val(),l=n("#limitProductCode").val();n("#likeBtn").on("touchstart",function(){var o,e,t=n(this);return t.hasClass("liked")?(o="cancel",e=0):(o="ok",e=1),n.ajax({type:"POST",url:"/product/opt/favoriteProduct",data:{id:s,opt:o},success:function(e){200===e.code?(t.toggleClass("liked"),"cancel"===o?a.show("取消收藏成功"):"ok"===o&&a.show("收藏成功")):400===e.code?location.href=e.data:a.show(e.message)},error:function(){a.show("网络断开连接了~")}}),window._yas&&window._yas.sendCustomInfo({pd:s,fa:e},!0),!1}),n("#addtoCart").on("touchstart",function(){return n(".cart-bar").hide(),l&&i.setLimitGoodModeWithSknId(l,d),i.show(),window._yas&&window._yas.sendCustomInfo({pd:s,by:1},!0),!1})},function(o,e,t){function n(){u||r||(u=!0,l&&s.get(l).then(function(o){o.length<5?d.css("display","none"):(d.html(o).show(),s("#swiper-recommend").length&&new i("#swiper-recommend",{slidesPerView:"auto",grabCursor:!0,slideElement:"a",lazyLoading:!0,watchSlidesVisibility:!0})),u=!1,r=!0,window.rePosFooter()}).fail(function(){d.hide()}))}function a(){(!r||s(window).scrollTop()+c>=s(document).height()-200)&&n()}var i=t(11),s=t(1),d=s(".recommend-for-you"),l=s("#preferenceUrl").val(),c=s(window).height(),r=!1,u=!1;s(window).scroll(function(){window.requestAnimationFrame(a)})}]);
\ No newline at end of file
webpackJsonp([2],[function(o,e,t){function n(){var o=a(".cart-bar"),e=setInterval(function(){o?(window.reMarginFooter(".cart-bar"),clearInterval(e)):o=a(".cart-bar")},200)}var a=t(1),i=t(11),s=t(4),d=t(6),l=a(".goodsDiscount .discount-folder"),c=a(".goodsDiscount .first-item span"),r=document.getElementById("goodsDiscount"),u=r&&new s(r),h=a(r).find(".first-item"),f=a(".cart-bar"),m=a('input[name="limitCodeUrl"]').val(),p=t(25);n(),t(33),d(a("img.lazy")),a("#goodsDiscount h1").length<1&&a(".dropdown").remove(),new i(".banner-swiper",{lazyLoading:!0,lazyLoadingInPrevNext:!0,paginationClickable:!0,pagination:".banner-top .pagination-inner",nextButton:".my-swiper-button-next",prevButton:".my-swiper-button-prev",spaceBetween:3}),0===l.children().length&&(l.css("display","none"),c.html("")),u&&l.children().length>0&&u.on("tap",function(){l.is(":hidden")?(h.removeClass("short-text"),c.removeClass("icon-down").addClass("icon-up").html("&#xe608;"),l.slideDown()):(h.addClass("short-text"),c.removeClass("icon-up").addClass("icon-down").html("&#xe609;"),l.slideUp())}),a("#limit-sale").on("touchend",function(o){var e,t,n=a("#loginUrl").val();o.stopPropagation(),n?window.location=n:(p.showDialog({dialogText:"进入有货APP,获取限购码",hasFooter:{rightBtnText:"打开Yoho!Buy有货APP"}},function(){t=document.createElement("iframe"),t.src=m,t.style.display="none",document.body.appendChild(t),window.location.href=m,e=Date.now(),window.setTimeout(function(){document.body.removeChild(t),Date.now()-e<3200&&(window.location.href="http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho")},3e3)},null,!0),a(".dialog-wrapper").off("touchstart").on("touchstart",function(o){o.stopPropagation(),a(o.target).hasClass("dialog-wrapper")&&p.hideDialog()}))}),t(31),t(30),t(34),a.ajax({type:"GET",url:"/cart/index/count",success:function(o){var e;if(200===o.code){if(e=o.data.cart_goods_count||0,0===e)return!1;e>99&&(e="99+"),f.find(".num-tag").html(e).removeClass("hide")}}}),a(".good-detail-page").length>0&&a("#yoho-footer").css("border-top","1px solid #e0e0e0")},,function(o,e,t){function n(o,e){var t,n;"undefined"!=typeof o&&(t=o.toString(),n=e&&e>0?e:2e3,a.text(t).show(),i=setTimeout(function(){"block"===a.css("display")&&a.hide()},n))}var a,i,s=t(1);!function(){var o='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(o),a=s("#yoho-tip"),a.on("touchend",function(){a.hide(),clearTimeout(i)})}(),e.show=n},,,function(o,e,t){function n(o){var e='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';c=!0,o||(o=l),o.append(e),s=o.children(".loading-mask"),d("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function a(){c||(n(),c=!0),s.removeClass("hide")}function i(){s.addClass("hide")}var s,d=t(1),l=d(".yoho-page"),c=!1;e.init=n,e.showLoadingMask=a,e.hideLoadingMask=i,e.show=a,e.hide=i},,,,,,,,,,,,,,,,function(o,e,t){function n(){var o=A(".chose-panel").find(".num .btn>.iconfont");o.hasClass("disabled")?null:o.addClass("disabled"),W.off("touchstart",".btn-minus"),W.off("touchstart",".btn-plus")}function a(){x=!1,T=!1,I=null,S=A.queryString(),v=A(".chose-panel").find(".thumb"),M=A(".chose-panel .main .chose-items"),E=A(".chose-items"),P=A(".size-list ul"),D=A(".color-list ul"),w=A("#left-num"),L=A(".cart-bar"),y=0,k=0,z=0}function i(o,e){A("#chose-btn-sure").html("确认"),z=1,j=o,_=e}function s(o,e){n(),A("#chose-btn-sure").html("立即购买"),F=o,H=e}function d(){var o=A(".chose-panel"),e=A("#promotionId");o&&o.remove(),e&&e.remove()}function l(){return x||T?x?T?!0:(O.show("请选择尺码~"),!1):(O.show("请选择颜色~"),!1):(O.show("请选择颜色和尺码~"),!1)}function c(o,e){o&&(G.html(o),""!==A("#promotionId").val()&&n(),a()),A(".chose-panel").show(),p=A("#good-num"),B=e,V.disableScroll(M)}function r(){A(".chose-panel").hide(),V.enableScroll(M),L.length>0&&L.show()}function u(){g=E.find(".chosed"),2===g.closest(".zero-stock").length?A("#chose-btn-sure").css("background-color","#c0c0c0").html("已售罄"):F?A("#chose-btn-sure").css("background-color","#eb0313").html("立即购买"):A("#chose-btn-sure").css("background-color","#eb0313").html(z?"确认":"加入购物车")}function h(o){o>0?(N.length>0?E.find(".num .left-num").html("即将售罄"):E.find(".num .left-num").html("剩余"+o+"件"),w.val(o)):(E.find(".num .left-num").html(""),w.val(0))}function f(o){var e,t;if(y&&I&&I.length>0){for(I.removeClass("chosed"),e=P.eq(o).children(),t=0;t<e.length;t++)if(A(e[t]).data("id")===I.data("id"))return I=A(e[t]),S="#"+I.data("id"),y=A(S).data("index"),I.addClass("chosed"),I.data("num");return I=null,T=!1,D.eq(y).addClass("hide"),D.eq(0).removeClass("hide"),y=0,-1}return 0}function m(o){return k&&q&&q.length>0?(q.removeClass("chosed"),q=A(D.eq(o).children().get(k-1)),q.addClass("chosed"),q.data("num")):0}var p,g,v,w,b,C,y,k,x,T,I,P,q,D,B,E,S,M,L,z,_,j,F,H,A=t(1),O=t(2),U=t(5),V=t(26),G=A("#chose-panel"),N=A(".soonSoldOut-tag"),W=A(".yoho-page");a(),W.on("touchstart",".chose-panel",function(o){var e=A(o.target);if(!(e.closest(".main").length>0))return r(),!1}),W.on("touchstart",".color-list .block",function(){var o,e=A(this),t=e.index();e.hasClass("chosed")?(E.find(".num .left-num").html(""),w.val(0),x=!1,P.eq(k).addClass("hide"),P.eq(0).removeClass("hide"),k=0,f(0)):(x=!0,P.eq(k).addClass("hide"),o=f(t+1),h(o),P.eq(t+1).removeClass("hide"),k=t+1,q=e,v.addClass("hide").eq(t).removeClass("hide")),e.siblings(".chosed").removeClass("chosed"),-1===o?(q=A(D.eq(0).children().get(t)),q.addClass("chosed")):e.toggleClass("chosed"),A("#good-num").val(1),u()}).on("touchstart",".size-list .block",function(){var o,e,t=A(this);t.hasClass("chosed")?(E.find(".num .left-num").html(""),w.val(0),T=!1,D.eq(y).addClass("hide"),D.eq(0).removeClass("hide"),y=0,m(0)):(T=!0,o=A("#"+t.data("id")).data("index")-1,D.eq(y).addClass("hide"),e=m(o+1),h(e),D.eq(o+1).removeClass("hide"),y=o+1,I=t),t.siblings(".chosed").removeClass("chosed"),t.toggleClass("chosed"),A("#good-num").val(1),u()}),W.on("touchstart",".btn-minus",function(){var o=parseInt(p.val(),10);return b=A("#left-num").val(),l()?1===o||b-0===0?void O.show("您选择的数量不能为零~"):0>o?void O.show("您选择的数量不能为负数~"):void p.val(o-1):void 0}).on("touchstart",".btn-plus",function(){var o=parseInt(p.val(),10);return b=A("#left-num").val(),l()&&o-0!==b&&0!==b?o>b-1?void O.show("您选择的数量超过了最大库存量~"):void p.val(o+1):void 0}).on("touchstart","#chose-btn-sure",function(){var o,e,t,n,a=A("#good-num").val()-0,i=parseInt(p.val(),10);if(l()&&"已售罄"!==A("#chose-btn-sure").html()){if(b=A("#left-num").val()-0,i>b)return void O.show("您选择的数量超过了最大库存量~");if(0>i)return void O.show("您选择的数量小于一件~");if(g=A(".block-list>ul>li.chosed"),2===g.length&&0===g.closest(".zero-stock").length){if(o=I.data("skuid"),e=A("#promotionId").val(),C)return!1;if(C=!0,U.showLoadingMask(),z)t={new_product_sku:o,old_product_sku:j,buy_number:a,selected:_},n="/cart/index/modify";else{if(F)return A(this).css("background-color","#ccc").removeAttr("id"),n=A("#limitProductPay").val()+"?limitproductcode="+F+"&sku="+o+"&skn="+H+"&buy_number="+a,d(),U.showLoadingMask(),A.ajax({url:n}).then(function(o){o.error?(O.show(o.message),setTimeout(function(){location.reload()},2e3)):location.href=n}).fail(function(){O.show("网络异常!"),setTimeout(function(){location.reload()},2e3)}),!1;t={productSku:o,buyNumber:a,promotionId:e,isEdit:z,cartType:S.cartType},n="/cart/index/add"}A.ajax({method:"POST",url:n,data:t}).done(function(o){var e;U.hideLoadingMask(),200!==o.code||z||(e=o.data.goods_count,e>99&&(e="99+"),A(".num-tag").html(e).removeClass("hide"),C=!1,B&&B()),o.message&&!z&&O.show(o.message),r(),z&&(U.showLoadingMask(),setTimeout(function(){window.location.href="/cart/index/index?cartType="+A("#cartType").val()},1))}).fail(function(){O.show("网络出了点问题~")}).always(function(){C=!1})}}}),e.init=a,e.show=c,e.remove=d,e.setEditModeWithSknId=i,e.disableNumEdit=n,e.setLimitGoodModeWithSknId=s},,,,function(o,e,t){function n(){return null===i&&(i='<div id="dialog-wrapper" class="dialog-wrapper"><div class="dialog-box">{{# hasHeader}}{{/ hasHeader}}<div class="dialog-content">{{dialogText}}</div>{{# hasFooter}}<div class="dialog-footer">{{# leftBtnText}}<span class="dialog-left-btn tap-hightlight">{{.}}</span>{{/ leftBtnText}}{{# rightBtnText}}<span class="dialog-right-btn tap-hightlight">{{.}}</span>{{/ rightBtnText}}</div>{{/ hasFooter}}</div></div>',s=l.compile(i)),s}var a,i,s,d=t(1),l=t(18),c=t(4);e.showDialog=function(o,e,t,i){var l,r,u,h=s(o);s=n(),d(".dialog-wrapper").remove(),d("body").append(d(h)),l=d(".dialog-box"),a=d(".dialog-wrapper"),u=new c(document.getElementById("dialog-wrapper")),o.fast?a.css({display:"block"}):a.fadeIn(),i&&(d(".dialog-wrapper .dialog-footer > span").css("width","100%"),d(".dialog-wrapper .dialog-content").css({"padding-left":"1.85rem","padding-right":"1.85rem"}),a.css("z-index","10")),l.css({top:"50%",marginTop:-(l.height()/2)}),o.autoHide&&(r=1e3,o.autoHide>1&&(r=o.autoHide),setTimeout(function(){a.fadeOut()},r)),a.on("touchmove",function(){return!1}),u.on("tap",function(o){if(d(o.target).hasClass("dialog-left-btn"))"function"==typeof t&&t(),a.fadeOut();else if(d(o.target).hasClass("dialog-right-btn"))return e();o.preventDefault(),o.srcEvent.stopPropagation()})},e.hideDialog=function(){d(".dialog-wrapper").remove()}},function(o,e,t){function n(o){o=o||window.event,o.preventDefault&&o.preventDefault(),o.returnValue=!1}function a(o){o=o||window.event,o.stopPropagation&&o.stopPropagation(),o.cancelBubble=!1}function i(o){var e=o.wheelDelta||o.originalEvent.wheelDelta||o.detail||0,t=l(this).get(0);return a(o),l(t).height()+t.scrollTop>=t.scrollHeight&&0>e?(n(o),!1):0===t.scrollTop&&e>0?(n(o),!1):void 0}function s(o){var e,t;o.on("mousewheel",i),o.on("touchstart",function(o){e=o.originalEvent.changedTouches[0].pageX,t=o.originalEvent.changedTouches[0].pageY}),o.on("touchmove",function(o){var n=o.originalEvent.changedTouches[0].pageX-e,a=o.originalEvent.changedTouches[0].pageY-t,i=l(this).get(0);return o.stopPropagation(),Math.abs(a)<Math.abs(n)?(o.preventDefault(),!1):l(i).height()+i.scrollTop>=i.scrollHeight&&0>a?(o.preventDefault(),!1):0===i.scrollTop&&a>0?(o.preventDefault(),!1):void 0}),l(document).on("mousewheel",n),l(document).on("touchmove",n)}function d(o){o.off("touchstart"),o.off("touchmove"),o.off("mousewheel"),l(document).off("mousewheel",n),l(document).off("touchmove",n)}var l=t(1);e.enableScroll=d,e.disableScroll=s},,,,function(o,e,t){var n,a,i=t(1),s=t(2),d=t(4),l=document.getElementById("nav-tab"),c=l&&new d(l),r=document.getElementById("goto-consult"),u=r&&new d(r),h=document.getElementById("readmore"),f=h&&new d(h);!function(){a=i("#nav-tab .consults-num").html()-0,n=i("#nav-tab .comments-num").html()-0,i("#nav-tab li").each(function(){i(this).removeClass("focus")}),i("#feedback-content .content").each(function(){i(this).addClass("hide")}),0!==n?(i("#nav-tab .comment-nav").addClass("focus"),i("#feedback-content .comment-content").removeClass("hide")):0!==a&&(i("#nav-tab .consult-nav").addClass("focus"),i("#feedback-content .consult-content").removeClass("hide"))}(),c&&c.on("tap",function(o){var e=i(o.target).closest("li"),t=e.index();e.hasClass("comment-nav")&&0===n?s.show("暂无商品评价"):e.hasClass("focus")||(i("#nav-tab li").each(function(){i(this).removeClass("focus")}),i("#feedback-content .content").each(function(){i(this).addClass("hide")}),e.addClass("focus"),i("#feedback-content .content:eq("+t+")").removeClass("hide"))}),u&&u.on("tap",function(){location.href=i(r).find("a").attr("href")}),i(".goods-consults-page").length>0&&i("#yoho-header").css("position","fixed").css("top","0"),i(".goods-consults-page").length>0&&i("#yoho-footer").css("border-top","1px solid #e0e0e0"),f&&f.on("tap",function(){return i(".readmore").hide(),i(".goods-consults.customer-consults").removeClass("customer-consults"),!1}),t(32)},function(o,e,t){function n(o){var e,t;o.length>0&&(e=o[0].getBoundingClientRect().right,t=o.find(".swiper-slide:last-child")[0].getBoundingClientRect().right,0>t-e?o.next(".tips").css("display","none"):o.next(".tips").css("display","block"))}function a(o,e){var t=null;l(o).each(function(n){t=l(o).slice(n,n+e),t.length===e&&n%e===0&&l(t).wrapAll(l('<div class="js-wraper"></div>'))})}function i(){p||g||(p=!0,u.showLoadingMask(),l.ajax({type:"GET",url:f,success:function(o){d=l("#productDesc"),d.append(o),window.rePosFooter(),c(d.find("img.lazy")),new r("#size-swiper-container",{slidesPerView:"auto"}),new r("#reference-swiper-container",{slidesPerView:"auto"}),n(l("#size-swiper-container")),n(l("#reference-swiper-container")),a(".detail .column",2),p=!1,g=!0,u.hideLoadingMask()},error:function(){h.show("网络断开连接了~"),p=!1,u.hideLoadingMask()}}))}function s(){(!g||l(window).scrollTop()+m>=l(document).height()-200)&&i()}var d,l=t(1),c=t(6),r=t(11),u=t(5),h=t(2),f=l("#introUrl").val(),m=l(window).height(),p=!1,g=!1;l(window).scroll(function(){window.requestAnimationFrame(s)})},function(o,e,t){function n(o){var e=o.find(".animate-count");e.css("display","inline"),e.animate({opacity:.25,fontSize:"0.7rem",right:"-=5"},300,function(){e.css("display","none")})}var a,i,s=t(1),d=t(4),l=t(2),c=s("#goods-consults")[0],r=c&&new d(c);!function(){var o=window.location.search.substring(1);a=o.split("&")[0].split("=")[1],i=o.split("&")[1]?o.split("&")[1].split("=")[1]:null}(),r&&r.on("tap",function(o){var e,t=s(o.target).closest("li"),d=t.closest(".consult-item").data("id"),c=t.find(".count").html()-0;t.hasClass("highlight")||(t.hasClass("fav")?e="/product/detail/consultupvote":t.hasClass("useful")&&(e="/product/detail/consultuseful"),s.ajax({method:"post",url:e,data:{id:d,productId:a,total:i}}).done(function(o){200===o.code?(n(t),t.addClass("highlight"),t.find(".count").html(c+1)):401===o.code&&(location.href=o.data)}).fail(function(){l.show("网络断开连接了~")}))})},function(o,e,t){var n=t(1),a=t(2),i=t(21),s=n("#productId").val(),d=n("#productSkn").val(),l=n("#limitProductCode").val();n("#likeBtn").on("touchstart",function(){var o,e,t=n(this);return t.hasClass("liked")?(o="cancel",e=0):(o="ok",e=1),n.ajax({type:"POST",url:"/product/opt/favoriteProduct",data:{id:s,opt:o},success:function(e){200===e.code?(t.toggleClass("liked"),"cancel"===o?a.show("取消收藏成功"):"ok"===o&&a.show("收藏成功")):400===e.code?location.href=e.data:a.show(e.message)},error:function(){a.show("网络断开连接了~")}}),window._yas&&window._yas.sendCustomInfo({pd:s,fa:e},!0),!1}),n("#addtoCart").on("touchstart",function(){return n(".cart-bar").hide(),l&&i.setLimitGoodModeWithSknId(l,d),i.show(),window._yas&&window._yas.sendCustomInfo({pd:s,by:1},!0),!1})},function(o,e,t){function n(){u||r||(u=!0,l&&s.get(l).then(function(o){o.length<5?d.css("display","none"):(d.html(o).show(),s("#swiper-recommend").length&&new i("#swiper-recommend",{slidesPerView:"auto",grabCursor:!0,slideElement:"a",lazyLoading:!0,watchSlidesVisibility:!0})),u=!1,r=!0,window.rePosFooter()}).fail(function(){d.hide()}))}function a(){(!r||s(window).scrollTop()+c>=s(document).height()-200)&&n()}var i=t(11),s=t(1),d=s(".recommend-for-you"),l=s("#preferenceUrl").val(),c=s(window).height(),r=!1,u=!1;s(window).scroll(function(){window.requestAnimationFrame(a)})}]);
\ No newline at end of file
... ...
webpackJsonp([13],{0:function(t,n,e){(function(t){var n=e(14),i=e(13),a=t(".cd-lite");n({el:"#index_nav"})["goto"](t("#index_nav").find(".active").index()),new i.Countdown({el:a})}).call(n,e(1))},2:function(t,n,e){function i(t,n){var e,i;"undefined"!=typeof t&&(e=t.toString(),i=n&&n>0?n:2e3,a.text(e).show(),o=setTimeout(function(){"block"===a.css("display")&&a.hide()},i))}var a,o,l=e(1);!function(){var t='<div id="yoho-tip" class="yoho-tip"></div>';l(".yoho-page").append(t),a=l("#yoho-tip"),a.on("touchend",function(){a.hide(),clearTimeout(o)})}(),n.show=i},13:function(t,n,e){"use strict";function i(t){var n;return this instanceof i?(t.el=a(t.el),void(t.el&&(n=t.el.attr("data-config"),n&&(n=JSON.parse(n.replace(/'/g,'"')),t=a.extend(!0,{},r,n,t)),this.config=t,this._init()))):new i(t)}var a=e(1),o=e(2),l="afterPaint",r={el:{},stopPoint:0,leftTime:0,template:"",varRegular:/\$\{([\-\w]+)\}/g,clock:["d",100,2,"h",24,2,"m",60,2,"s",60,2,"u",10,1],effect:"normal"},f={normal:{paint:function(){var t,n=this;a.each(n.hands,function(e,i){i.lastValue!==i.value&&(t="",a.each(n._toDigitals(i.value,i.bits),function(e,i){t+=n._html(i,"","digital")}),i.node.html(t))})}}},c=function(){function t(){for(var n,a,o,l,r=+new Date-t.nextTime,f=1+Math.floor(r/100);i.length;)i.shift()();for(r=100-r%100,t.nextTime+=100*f,o=0,l=e.length;l>o;o+=2)n=e[o+1],0===n?e[o](f):(n+=2*f-1,a=Math.floor(n/20),a>0&&e[o](a),e[o+1]=n%20+1);setTimeout(t,r)}function n(t,n){var e,i;for(e=0,i=n.length;i>e;++e)if(n[e]===t)return e;return-1}var e=[],i=[];return t.nextTime=+new Date,t(),{add:function(t,n){i.push(function(){e.push(t),e.push(1e3===n?1:0)})},remove:function(t){var a;i.push(function(){a=n(t,e),-1!==a&&e.splice(n(t,e),2)})}}}();a.extend(i.prototype,{_init:function(){var t,n,e=this,i=e.config.el,o=[],l=i.html(),r=e.config.varRegular;e.hands=o,e.frequency=1e3,e._notify=[],r.lastIndex=0,i.html(l.replace(r,function(t,n){var i="";return"u"!==n&&"s-ext"!==n||(e.frequency=100),"s-ext"===n?(o.push({type:"s"}),o.push({type:"u"}),i=e._html("","s","handlet")+e._html(".","","digital")+e._html("","u","handlet")):o.push({type:n}),e._html(i,n,"hand")})),t=e.config.clock,a.each(o,function(n,e){var a,o=e.type,l=100;for(e.node=i.find(".hand-"+o),a=t.length-3;a>-1&&o!==t[a];a-=3)l*=t[a+1];e.base=l,e.radix=t[a+1],e.bits=t[a+2]}),e._getLeft(),e._reflow(),n=e._reflow,e._reflow=function(){return n.apply(e,arguments)},c.add(e._reflow,e.frequency),i.show()},_getLeft:function(){var t=1e3*this.config.leftTime,n=this.config.stopPoint;!t&&n&&(t=n-+new Date),this.left=t-t%this.frequency},_reflow:function(t){var n=this,e=n.config.el;return t=t||0,n.left=n.left-n.frequency*t,a.each(n.hands,function(t,e){e.lastValue=e.value,e.value=Math.floor(n.left/e.base)%e.radix}),n._repaint(),n._notify[n.left]&&a.each(n._notify[n.left],function(t,e){e.call(n)}),n.left<1&&(e.text("— 活动已结束 —"),e.parents(".back-ground-white").on("click",function(){return o.show("活动即将开始,敬请期待!"),!1}),c.remove(n._reflow)),n.left<864e5&&e.find(".left-day").hide(),n},_repaint:function(){f[this.config.effect].paint.apply(this),this.config.el.trigger(l)},_toDigitals:function(t,n){var e=[];for(t=0>t?0:t,n=t.toString().length>1?2:1;n--;)e[n]=t%10,t=Math.floor(t/10);return e},_html:function(t,n,e){switch(a.isArray(t)&&(t=t.join("")),e){case"hand":n=e+" hand-"+n;break;case"handlet":n=e+" hand-"+n;break;case"digital":n="."===t?e+" "+e+"-point "+n:e+" "+e+"-"+t+" "+n}return'<i class="'+n+'">'+t+"</i>"},notify:function(t,n){var e;return t=1e3*t,t-=t%this.frequency,e=this._notify[t]||[],e.push(n),this._notify[t]=e,this}}),n.Countdown=i},14:function(t,n,e){function i(t){function n(t){var n;n=e.find("li").eq(t),n.length>0&&setTimeout(function(){i.scrollToElement(n[0],400)},1)}var e,i,a,o={el:".outlet-nav"};return a=f.extend({},o,t),e=f(a.el),i=new c(e[0],{scrollX:!0,scrollY:!1,mouseWheel:!0,scrollbars:!0,probeType:3,preventDefault:!0,click:!0}),{"goto":n}}function a(t){var n=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),e=window.location.search.substr(1).match(n);return null!==e?decodeURIComponent(e[2]):null}function o(){f("#index_nav").find("li").each(function(){f(this).find("a").text()===u?f(this).attr({"data-nav":"other","data-type":3}):f(this).find("a").text()===s&&f(this).attr({"data-nav":"other","data-type":2})})}function l(){var t=f("#index_nav"),n=a("yh_channel");o(),null===n?(n=a("type"),null===n?t.find('li:not([data-nav="other"])').eq(0).addClass("active").siblings().removeClass("active"):t.find("li[data-type="+n+"]").addClass("active").siblings().removeClass("active")):t.find('li:not([data-nav="other"])').eq(n).addClass("active").siblings().removeClass("active")}function r(){var t=0,n=f("#index_nav");n.size()>0&&(t=n.height(),f(window).on("scroll",function(){var e=f(window).scrollTop();e>=t?n.addClass("nav-fix"):n.removeClass("nav-fix")}))}var f=e(1),c=e(15),s="即将结束",u="上线预告";l(),r(),t.exports=i}});
\ No newline at end of file
webpackJsonp([13],{0:function(t,e,n){(function(t){var e=n(14),i=n(13),a=t(".cd-lite");e({el:"#index_nav"})["goto"](t("#index_nav").find(".active").index()),new i.Countdown({el:a})}).call(e,n(1))},2:function(t,e,n){function i(t,e){var n,i;"undefined"!=typeof t&&(n=t.toString(),i=e&&e>0?e:2e3,a.text(n).show(),o=setTimeout(function(){"block"===a.css("display")&&a.hide()},i))}var a,o,l=n(1);!function(){var t='<div id="yoho-tip" class="yoho-tip"></div>';l(".yoho-page").append(t),a=l("#yoho-tip"),a.on("touchend",function(){a.hide(),clearTimeout(o)})}(),e.show=i},13:function(t,e,n){"use strict";function i(t){var e;return this instanceof i?(t.el=a(t.el),void(t.el&&(e=t.el.attr("data-config"),e&&(e=JSON.parse(e.replace(/'/g,'"')),t=a.extend(!0,{},r,e,t)),this.config=t,this._init()))):new i(t)}var a=n(1),o=n(2),l="afterPaint",r={el:{},stopPoint:0,leftTime:0,template:"",varRegular:/\$\{([\-\w]+)\}/g,clock:["d",100,2,"h",24,2,"m",60,2,"s",60,2,"u",10,1],effect:"normal"},f={normal:{paint:function(){var t,e=this;a.each(e.hands,function(n,i){i.lastValue!==i.value&&(t="",a.each(e._toDigitals(i.value,i.bits),function(n,i){t+=e._html(i,"","digital")}),i.node.html(t))})}}},c=function(){function t(){for(var e,a,o,l,r=+new Date-t.nextTime,f=1+Math.floor(r/100);i.length;)i.shift()();for(r=100-r%100,t.nextTime+=100*f,o=0,l=n.length;l>o;o+=2)e=n[o+1],0===e?n[o](f):(e+=2*f-1,a=Math.floor(e/20),a>0&&n[o](a),n[o+1]=e%20+1);setTimeout(t,r)}function e(t,e){var n,i;for(n=0,i=e.length;i>n;++n)if(e[n]===t)return n;return-1}var n=[],i=[];return t.nextTime=+new Date,t(),{add:function(t,e){i.push(function(){n.push(t),n.push(1e3===e?1:0)})},remove:function(t){var a;i.push(function(){a=e(t,n),-1!==a&&n.splice(e(t,n),2)})}}}();a.extend(i.prototype,{_init:function(){var t,e,n=this,i=n.config.el,o=[],l=i.html(),r=n.config.varRegular;n.hands=o,n.frequency=1e3,n._notify=[],r.lastIndex=0,i.html(l.replace(r,function(t,e){var i="";return"u"!==e&&"s-ext"!==e||(n.frequency=100),"s-ext"===e?(o.push({type:"s"}),o.push({type:"u"}),i=n._html("","s","handlet")+n._html(".","","digital")+n._html("","u","handlet")):o.push({type:e}),n._html(i,e,"hand")})),t=n.config.clock,a.each(o,function(e,n){var a,o=n.type,l=100;for(n.node=i.find(".hand-"+o),a=t.length-3;a>-1&&o!==t[a];a-=3)l*=t[a+1];n.base=l,n.radix=t[a+1],n.bits=t[a+2]}),n._getLeft(),n._reflow(),e=n._reflow,n._reflow=function(){return e.apply(n,arguments)},c.add(n._reflow,n.frequency),i.show()},_getLeft:function(){var t=1e3*this.config.leftTime,e=this.config.stopPoint;!t&&e&&(t=e-+new Date),this.left=t-t%this.frequency},_reflow:function(t){var e=this,n=e.config.el;return t=t||0,e.left=e.left-e.frequency*t,a.each(e.hands,function(t,n){n.lastValue=n.value,n.value=Math.floor(e.left/n.base)%n.radix}),e._repaint(),e._notify[e.left]&&a.each(e._notify[e.left],function(t,n){n.call(e)}),e.left<1&&(n.text("— 活动已结束 —"),n.parents(".back-ground-white").on("click",function(){return o.show("活动即将开始,敬请期待!"),!1}),c.remove(e._reflow)),e.left<864e5&&n.find(".left-day").hide(),e},_repaint:function(){f[this.config.effect].paint.apply(this),this.config.el.trigger(l)},_toDigitals:function(t,e){var n=[];for(t=0>t?0:t,e=t.toString().length>1?2:1;e--;)n[e]=t%10,t=Math.floor(t/10);return n},_html:function(t,e,n){switch(a.isArray(t)&&(t=t.join("")),n){case"hand":e=n+" hand-"+e;break;case"handlet":e=n+" hand-"+e;break;case"digital":e="."===t?n+" "+n+"-point "+e:n+" "+n+"-"+t+" "+e}return'<i class="'+e+'">'+t+"</i>"},notify:function(t,e){var n;return t=1e3*t,t-=t%this.frequency,n=this._notify[t]||[],n.push(e),this._notify[t]=n,this}}),e.Countdown=i},14:function(t,e,n){function i(t){function e(t){var e;e=n.find("li").eq(t),e.length>0&&setTimeout(function(){i.scrollToElement(e[0],400)},1)}var n,i,a,o={el:".outlet-nav"};return a=r.extend({},o,t),n=r(a.el),i=new f(n[0],{scrollX:!0,scrollY:!1,mouseWheel:!0,scrollbars:!0,probeType:3,preventDefault:!0,click:!0}),{"goto":e}}function a(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(e);return null!==n?decodeURIComponent(n[2]):null}function o(){r("#index_nav").find("li").each(function(){r(this).find("a").text()===s?r(this).attr({"data-nav":"other","data-type":3}):r(this).find("a").text()===c&&r(this).attr({"data-nav":"other","data-type":2})})}function l(){var t=r("#index_nav"),e=a("yh_channel");o(),null===e?(e=a("type"),null===e?t.find('li:not([data-nav="other"])').eq(0).addClass("active").siblings().removeClass("active"):t.find("li[data-type="+e+"]").addClass("active").siblings().removeClass("active")):t.find('li:not([data-nav="other"])').eq(e).addClass("active").siblings().removeClass("active")}var r=n(1),f=n(15),c="即将结束",s="上线预告";l(),t.exports=i}});
\ No newline at end of file
... ...
webpackJsonp([10],[function(e,t,n){var o=n(1),i=n(13),a=n(14),r=o(".cd-lite");n(3),r.length>0&&r.each(function(){new i.Countdown({el:o(this)})}),o("#index_nav").length>0&&a({el:"#index_nav"})["goto"](o("#index_nav").find(".active").index()),o(".back-ground-white").length<1&&o(".empty").show()},,function(e,t,n){function o(e,t){var n,o;"undefined"!=typeof e&&(n=e.toString(),o=t&&t>0?t:2e3,i.text(n).show(),a=setTimeout(function(){"block"===i.css("display")&&i.hide()},o))}var i,a,r=n(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';r(".yoho-page").append(e),i=r("#yoho-tip"),i.on("touchend",function(){i.hide(),clearTimeout(a)})}(),t.show=o},function(e,t,n){function o(e){var t,n,o=document.cookie;return document.cookie&&""!==document.cookie&&(n=o.indexOf(e+"="),n>-1&&(n+=e.length+1,t=decodeURIComponent(d.trim(o.substring(n,o.indexOf(";",n)))))),t}function i(e,t,n){var o,i,a,r,s="";"undefined"!=typeof t&&(n=n||{},null===t&&(t="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(r=new Date,r.setTime(r.getTime()+24*n.expires*60*60*1e3)):r=n.expires,s="; expires="+r.toUTCString()),o=n.path?"; path="+n.path:"",i=n.domain?"; domain="+n.domain:"",a=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),s,o,i,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function r(){var e,t=o("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function s(){var e=r();return 0===e?0:e[1]}function c(){var e=o("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function l(){var e;0!==m.length&&(e=Math.min(d(window).height(),window.screen.availHeight),d("body").height()<=e-parseInt(m.css("height"),0)?m.addClass("bottom"):m.removeClass("bottom"))}function h(e){var t=d(e).outerHeight();e&&m.css("margin-bottom",t+"px")}function u(){var e,t,n=[],o=window.location.search.slice(1).split("&");for(t=0;t<o.length;t++)e=o[t].split("="),n.push(e[0]),n[e[0]]=e[1];return n}function f(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var d=n(1),p=n(4),m=d("#yoho-footer"),g=d(".yoho-page"),w=d(".yoho-header");!function(){var e,t=m.children(".op-row"),n=d(".back-to-top"),o=r();l(),0===o?t.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):t.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+o[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),n.length>0&&(e=new p(n[0]),e.on("tap",function(e){return d(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),m.removeClass("hide")}(),function(e,t,n,o,i){var a=t.createElement(n),r=t.getElementsByTagName(n)[0];e.YohoAcquisitionObject=i,e[i]=function(){e[i].p=arguments},a.async=1,a.src=o,r.parentNode.insertBefore(a,r)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=s();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),w.on("touchstart","a",function(){w.find("a").removeClass("highlight"),d(this).addClass("highlight")}).on("touchend touchcancel","a",function(){d(this).removeClass("highlight")}),g.on("touchstart",".tap-hightlight",function(){d(this).siblings(".tap-hightlight").removeClass("highlight"),d(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){d(this).removeClass("highlight")}),d(".nav-home").on("touchstart",function(){d(".homebuttom").toggleClass("hide")}),function(){var e,t,n=0,o="webkit moz ms o".split(" "),i=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(t=0;t<o.length&&(!i||!a);t++)e=o[t],i=i||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];i&&a||(i=function(e){var t=(new Date).getTime(),o=Math.max(0,16-(t-n)),i=window.setTimeout(function(){e(t+o)},o);return n=t+o,i},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=i,window.cancelAnimationFrame=a}(),d.extend({queryString:u}),11===m.find(".user-name").text().length&&m.find(".user-name").html(f(m.find(".user-name").text())),window.cookie=o,window.setCookie=i,window.isCookiesEnabled=a,window.getUser=r,window.getUid=s,window.getShoppingKey=c,window.rePosFooter=l,window.reMarginFooter=h,window.queryString=u()},,,,,,,,,,function(e,t,n){"use strict";function o(e){var t;return this instanceof o?(e.el=i(e.el),void(e.el&&(t=e.el.attr("data-config"),t&&(t=JSON.parse(t.replace(/'/g,'"')),e=i.extend(!0,{},s,t,e)),this.config=e,this._init()))):new o(e)}var i=n(1),a=n(2),r="afterPaint",s={el:{},stopPoint:0,leftTime:0,template:"",varRegular:/\$\{([\-\w]+)\}/g,clock:["d",100,2,"h",24,2,"m",60,2,"s",60,2,"u",10,1],effect:"normal"},c={normal:{paint:function(){var e,t=this;i.each(t.hands,function(n,o){o.lastValue!==o.value&&(e="",i.each(t._toDigitals(o.value,o.bits),function(n,o){e+=t._html(o,"","digital")}),o.node.html(e))})}}},l=function(){function e(){for(var t,i,a,r,s=+new Date-e.nextTime,c=1+Math.floor(s/100);o.length;)o.shift()();for(s=100-s%100,e.nextTime+=100*c,a=0,r=n.length;r>a;a+=2)t=n[a+1],0===t?n[a](c):(t+=2*c-1,i=Math.floor(t/20),i>0&&n[a](i),n[a+1]=t%20+1);setTimeout(e,s)}function t(e,t){var n,o;for(n=0,o=t.length;o>n;++n)if(t[n]===e)return n;return-1}var n=[],o=[];return e.nextTime=+new Date,e(),{add:function(e,t){o.push(function(){n.push(e),n.push(1e3===t?1:0)})},remove:function(e){var i;o.push(function(){i=t(e,n),-1!==i&&n.splice(t(e,n),2)})}}}();i.extend(o.prototype,{_init:function(){var e,t,n=this,o=n.config.el,a=[],r=o.html(),s=n.config.varRegular;n.hands=a,n.frequency=1e3,n._notify=[],s.lastIndex=0,o.html(r.replace(s,function(e,t){var o="";return"u"!==t&&"s-ext"!==t||(n.frequency=100),"s-ext"===t?(a.push({type:"s"}),a.push({type:"u"}),o=n._html("","s","handlet")+n._html(".","","digital")+n._html("","u","handlet")):a.push({type:t}),n._html(o,t,"hand")})),e=n.config.clock,i.each(a,function(t,n){var i,a=n.type,r=100;for(n.node=o.find(".hand-"+a),i=e.length-3;i>-1&&a!==e[i];i-=3)r*=e[i+1];n.base=r,n.radix=e[i+1],n.bits=e[i+2]}),n._getLeft(),n._reflow(),t=n._reflow,n._reflow=function(){return t.apply(n,arguments)},l.add(n._reflow,n.frequency),o.show()},_getLeft:function(){var e=1e3*this.config.leftTime,t=this.config.stopPoint;!e&&t&&(e=t-+new Date),this.left=e-e%this.frequency},_reflow:function(e){var t=this,n=t.config.el;return e=e||0,t.left=t.left-t.frequency*e,i.each(t.hands,function(e,n){n.lastValue=n.value,n.value=Math.floor(t.left/n.base)%n.radix}),t._repaint(),t._notify[t.left]&&i.each(t._notify[t.left],function(e,n){n.call(t)}),t.left<1&&(n.text("— 活动已结束 —"),n.parents(".back-ground-white").on("click",function(){return a.show("活动即将开始,敬请期待!"),!1}),l.remove(t._reflow)),t.left<864e5&&n.find(".left-day").hide(),t},_repaint:function(){c[this.config.effect].paint.apply(this),this.config.el.trigger(r)},_toDigitals:function(e,t){var n=[];for(e=0>e?0:e,t=e.toString().length>1?2:1;t--;)n[t]=e%10,e=Math.floor(e/10);return n},_html:function(e,t,n){switch(i.isArray(e)&&(e=e.join("")),n){case"hand":t=n+" hand-"+t;break;case"handlet":t=n+" hand-"+t;break;case"digital":t="."===e?n+" "+n+"-point "+t:n+" "+n+"-"+e+" "+t}return'<i class="'+t+'">'+e+"</i>"},notify:function(e,t){var n;return e=1e3*e,e-=e%this.frequency,n=this._notify[e]||[],n.push(t),this._notify[e]=n,this}}),t.Countdown=o},function(e,t,n){function o(e){function t(e){var t;t=n.find("li").eq(e),t.length>0&&setTimeout(function(){o.scrollToElement(t[0],400)},1)}var n,o,i,a={el:".outlet-nav"};return i=c.extend({},a,e),n=c(i.el),o=new l(n[0],{scrollX:!0,scrollY:!1,mouseWheel:!0,scrollbars:!0,probeType:3,preventDefault:!0,click:!0}),{"goto":t}}function i(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!==n?decodeURIComponent(n[2]):null}function a(){c("#index_nav").find("li").each(function(){c(this).find("a").text()===u?c(this).attr({"data-nav":"other","data-type":3}):c(this).find("a").text()===h&&c(this).attr({"data-nav":"other","data-type":2})})}function r(){var e=c("#index_nav"),t=i("yh_channel");a(),null===t?(t=i("type"),null===t?e.find('li:not([data-nav="other"])').eq(0).addClass("active").siblings().removeClass("active"):e.find("li[data-type="+t+"]").addClass("active").siblings().removeClass("active")):e.find('li:not([data-nav="other"])').eq(t).addClass("active").siblings().removeClass("active")}function s(){var e=0,t=c("#index_nav");t.size()>0&&(e=t.height(),c(window).on("scroll",function(){var n=c(window).scrollTop();n>=e?t.addClass("nav-fix"):t.removeClass("nav-fix")}))}var c=n(1),l=n(15),h="即将结束",u="上线预告";r(),s(),e.exports=o}]);
\ No newline at end of file
webpackJsonp([10],[function(e,t,n){var o=n(1),i=n(13),a=n(14),r=o(".cd-lite");n(3),r.length>0&&r.each(function(){new i.Countdown({el:o(this)})}),o("#index_nav").length>0&&a({el:"#index_nav"})["goto"](o("#index_nav").find(".active").index()),o(".back-ground-white").length<1&&o(".empty").show()},,function(e,t,n){function o(e,t){var n,o;"undefined"!=typeof e&&(n=e.toString(),o=t&&t>0?t:2e3,i.text(n).show(),a=setTimeout(function(){"block"===i.css("display")&&i.hide()},o))}var i,a,r=n(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';r(".yoho-page").append(e),i=r("#yoho-tip"),i.on("touchend",function(){i.hide(),clearTimeout(a)})}(),t.show=o},function(e,t,n){function o(e){var t,n,o=document.cookie;return document.cookie&&""!==document.cookie&&(n=o.indexOf(e+"="),n>-1&&(n+=e.length+1,t=decodeURIComponent(d.trim(o.substring(n,o.indexOf(";",n)))))),t}function i(e,t,n){var o,i,a,r,s="";"undefined"!=typeof t&&(n=n||{},null===t&&(t="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(r=new Date,r.setTime(r.getTime()+24*n.expires*60*60*1e3)):r=n.expires,s="; expires="+r.toUTCString()),o=n.path?"; path="+n.path:"",i=n.domain?"; domain="+n.domain:"",a=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),s,o,i,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function r(){var e,t=o("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function s(){var e=r();return 0===e?0:e[1]}function c(){var e=o("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function h(){var e;0!==m.length&&(e=Math.min(d(window).height(),window.screen.availHeight),d("body").height()<=e-parseInt(m.css("height"),0)?m.addClass("bottom"):m.removeClass("bottom"))}function l(e){var t=d(e).outerHeight();e&&m.css("margin-bottom",t+"px")}function u(){var e,t,n=[],o=window.location.search.slice(1).split("&");for(t=0;t<o.length;t++)e=o[t].split("="),n.push(e[0]),n[e[0]]=e[1];return n}function f(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var d=n(1),p=n(4),m=d("#yoho-footer"),g=d(".yoho-page"),w=d(".yoho-header");!function(){var e,t=m.children(".op-row"),n=d(".back-to-top"),o=r();h(),0===o?t.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):t.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+o[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),n.length>0&&(e=new p(n[0]),e.on("tap",function(e){return d(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),m.removeClass("hide")}(),function(e,t,n,o,i){var a=t.createElement(n),r=t.getElementsByTagName(n)[0];e.YohoAcquisitionObject=i,e[i]=function(){e[i].p=arguments},a.async=1,a.src=o,r.parentNode.insertBefore(a,r)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=s();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),w.on("touchstart","a",function(){w.find("a").removeClass("highlight"),d(this).addClass("highlight")}).on("touchend touchcancel","a",function(){d(this).removeClass("highlight")}),g.on("touchstart",".tap-hightlight",function(){d(this).siblings(".tap-hightlight").removeClass("highlight"),d(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){d(this).removeClass("highlight")}),d(".nav-home").on("touchstart",function(){d(".homebuttom").toggleClass("hide")}),function(){var e,t,n=0,o="webkit moz ms o".split(" "),i=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(t=0;t<o.length&&(!i||!a);t++)e=o[t],i=i||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];i&&a||(i=function(e){var t=(new Date).getTime(),o=Math.max(0,16-(t-n)),i=window.setTimeout(function(){e(t+o)},o);return n=t+o,i},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=i,window.cancelAnimationFrame=a}(),d.extend({queryString:u}),11===m.find(".user-name").text().length&&m.find(".user-name").html(f(m.find(".user-name").text())),window.cookie=o,window.setCookie=i,window.isCookiesEnabled=a,window.getUser=r,window.getUid=s,window.getShoppingKey=c,window.rePosFooter=h,window.reMarginFooter=l,window.queryString=u()},,,,,,,,,,function(e,t,n){"use strict";function o(e){var t;return this instanceof o?(e.el=i(e.el),void(e.el&&(t=e.el.attr("data-config"),t&&(t=JSON.parse(t.replace(/'/g,'"')),e=i.extend(!0,{},s,t,e)),this.config=e,this._init()))):new o(e)}var i=n(1),a=n(2),r="afterPaint",s={el:{},stopPoint:0,leftTime:0,template:"",varRegular:/\$\{([\-\w]+)\}/g,clock:["d",100,2,"h",24,2,"m",60,2,"s",60,2,"u",10,1],effect:"normal"},c={normal:{paint:function(){var e,t=this;i.each(t.hands,function(n,o){o.lastValue!==o.value&&(e="",i.each(t._toDigitals(o.value,o.bits),function(n,o){e+=t._html(o,"","digital")}),o.node.html(e))})}}},h=function(){function e(){for(var t,i,a,r,s=+new Date-e.nextTime,c=1+Math.floor(s/100);o.length;)o.shift()();for(s=100-s%100,e.nextTime+=100*c,a=0,r=n.length;r>a;a+=2)t=n[a+1],0===t?n[a](c):(t+=2*c-1,i=Math.floor(t/20),i>0&&n[a](i),n[a+1]=t%20+1);setTimeout(e,s)}function t(e,t){var n,o;for(n=0,o=t.length;o>n;++n)if(t[n]===e)return n;return-1}var n=[],o=[];return e.nextTime=+new Date,e(),{add:function(e,t){o.push(function(){n.push(e),n.push(1e3===t?1:0)})},remove:function(e){var i;o.push(function(){i=t(e,n),-1!==i&&n.splice(t(e,n),2)})}}}();i.extend(o.prototype,{_init:function(){var e,t,n=this,o=n.config.el,a=[],r=o.html(),s=n.config.varRegular;n.hands=a,n.frequency=1e3,n._notify=[],s.lastIndex=0,o.html(r.replace(s,function(e,t){var o="";return"u"!==t&&"s-ext"!==t||(n.frequency=100),"s-ext"===t?(a.push({type:"s"}),a.push({type:"u"}),o=n._html("","s","handlet")+n._html(".","","digital")+n._html("","u","handlet")):a.push({type:t}),n._html(o,t,"hand")})),e=n.config.clock,i.each(a,function(t,n){var i,a=n.type,r=100;for(n.node=o.find(".hand-"+a),i=e.length-3;i>-1&&a!==e[i];i-=3)r*=e[i+1];n.base=r,n.radix=e[i+1],n.bits=e[i+2]}),n._getLeft(),n._reflow(),t=n._reflow,n._reflow=function(){return t.apply(n,arguments)},h.add(n._reflow,n.frequency),o.show()},_getLeft:function(){var e=1e3*this.config.leftTime,t=this.config.stopPoint;!e&&t&&(e=t-+new Date),this.left=e-e%this.frequency},_reflow:function(e){var t=this,n=t.config.el;return e=e||0,t.left=t.left-t.frequency*e,i.each(t.hands,function(e,n){n.lastValue=n.value,n.value=Math.floor(t.left/n.base)%n.radix}),t._repaint(),t._notify[t.left]&&i.each(t._notify[t.left],function(e,n){n.call(t)}),t.left<1&&(n.text("— 活动已结束 —"),n.parents(".back-ground-white").on("click",function(){return a.show("活动即将开始,敬请期待!"),!1}),h.remove(t._reflow)),t.left<864e5&&n.find(".left-day").hide(),t},_repaint:function(){c[this.config.effect].paint.apply(this),this.config.el.trigger(r)},_toDigitals:function(e,t){var n=[];for(e=0>e?0:e,t=e.toString().length>1?2:1;t--;)n[t]=e%10,e=Math.floor(e/10);return n},_html:function(e,t,n){switch(i.isArray(e)&&(e=e.join("")),n){case"hand":t=n+" hand-"+t;break;case"handlet":t=n+" hand-"+t;break;case"digital":t="."===e?n+" "+n+"-point "+t:n+" "+n+"-"+e+" "+t}return'<i class="'+t+'">'+e+"</i>"},notify:function(e,t){var n;return e=1e3*e,e-=e%this.frequency,n=this._notify[e]||[],n.push(t),this._notify[e]=n,this}}),t.Countdown=o},function(e,t,n){function o(e){function t(e){var t;t=n.find("li").eq(e),t.length>0&&setTimeout(function(){o.scrollToElement(t[0],400)},1)}var n,o,i,a={el:".outlet-nav"};return i=s.extend({},a,e),n=s(i.el),o=new c(n[0],{scrollX:!0,scrollY:!1,mouseWheel:!0,scrollbars:!0,probeType:3,preventDefault:!0,click:!0}),{"goto":t}}function i(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!==n?decodeURIComponent(n[2]):null}function a(){s("#index_nav").find("li").each(function(){s(this).find("a").text()===l?s(this).attr({"data-nav":"other","data-type":3}):s(this).find("a").text()===h&&s(this).attr({"data-nav":"other","data-type":2})})}function r(){var e=s("#index_nav"),t=i("yh_channel");a(),null===t?(t=i("type"),null===t?e.find('li:not([data-nav="other"])').eq(0).addClass("active").siblings().removeClass("active"):e.find("li[data-type="+t+"]").addClass("active").siblings().removeClass("active")):e.find('li:not([data-nav="other"])').eq(t).addClass("active").siblings().removeClass("active")}var s=n(1),c=n(15),h="即将结束",l="上线预告";r(),e.exports=o}]);
\ No newline at end of file
... ...
webpackJsonp([14],{0:function(e,n,t){var o=t(1),i=t(2),a=t(14);t(3),o("#index_nav").length>0&&a({el:"#index_nav"})["goto"](o("#index_nav").find(".active").index()),o(".back-ground-white").length<1&&o(".empty").show(),o(".back-ground-white").on("click",function(){return i.show("活动即将开始,敬请期待!"),!1}),o(".cd-medium").show()},2:function(e,n,t){function o(e,n){var t,o;"undefined"!=typeof e&&(t=e.toString(),o=n&&n>0?n:2e3,i.text(t).show(),a=setTimeout(function(){"block"===i.css("display")&&i.hide()},o))}var i,a,r=t(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';r(".yoho-page").append(e),i=r("#yoho-tip"),i.on("touchend",function(){i.hide(),clearTimeout(a)})}(),n.show=o},3:function(e,n,t){function o(e){var n,t,o=document.cookie;return document.cookie&&""!==document.cookie&&(t=o.indexOf(e+"="),t>-1&&(t+=e.length+1,n=decodeURIComponent(m.trim(o.substring(t,o.indexOf(";",t)))))),n}function i(e,n,t){var o,i,a,r,s="";"undefined"!=typeof n&&(t=t||{},null===n&&(n="",t.expires=-1),t.expires&&("number"==typeof t.expires||t.expires.toUTCString)&&("number"==typeof t.expires?(r=new Date,r.setTime(r.getTime()+24*t.expires*60*60*1e3)):r=t.expires,s="; expires="+r.toUTCString()),o=t.path?"; path="+t.path:"",i=t.domain?"; domain="+t.domain:"",a=t.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(n),s,o,i,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function r(){var e,n=o("_UID");return"undefined"==typeof n?0:(e=n.split("::"),"undefined"==typeof e||e.length<4?0:e)}function s(){var e=r();return 0===e?0:e[1]}function c(){var e=o("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function d(){var e;0!==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",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=s();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),g.on("touchstart","a",function(){g.find("a").removeClass("highlight"),m(this).addClass("highlight")}).on("touchend touchcancel","a",function(){m(this).removeClass("highlight")}),w.on("touchstart",".tap-hightlight",function(){m(this).siblings(".tap-hightlight").removeClass("highlight"),m(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){m(this).removeClass("highlight")}),m(".nav-home").on("touchstart",function(){m(".homebuttom").toggleClass("hide")}),function(){var e,n,t=0,o="webkit moz ms o".split(" "),i=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(n=0;n<o.length&&(!i||!a);n++)e=o[n],i=i||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];i&&a||(i=function(e){var n=(new Date).getTime(),o=Math.max(0,16-(n-t)),i=window.setTimeout(function(){e(n+o)},o);return t=n+o,i},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=i,window.cancelAnimationFrame=a}(),m.extend({queryString:u}),11===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()},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=c.extend({},a,e),t=c(i.el),o=new d(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(){c("#index_nav").find("li").each(function(){c(this).find("a").text()===u?c(this).attr({"data-nav":"other","data-type":3}):c(this).find("a").text()===h&&c(this).attr({"data-nav":"other","data-type":2})})}function r(){var e=c("#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")}function s(){var e=0,n=c("#index_nav");n.size()>0&&(e=n.height(),c(window).on("scroll",function(){var t=c(window).scrollTop();t>=e?n.addClass("nav-fix"):n.removeClass("nav-fix")}))}var c=t(1),d=t(15),h="即将结束",u="上线预告";r(),s(),e.exports=o}});
\ No newline at end of file
webpackJsonp([14],{0:function(e,n,t){var o=t(1),i=t(2),a=t(14);t(3),o("#index_nav").length>0&&a({el:"#index_nav"})["goto"](o("#index_nav").find(".active").index()),o(".back-ground-white").length<1&&o(".empty").show(),o(".back-ground-white").on("click",function(){return i.show("活动即将开始,敬请期待!"),!1}),o(".cd-medium").show()},2:function(e,n,t){function o(e,n){var t,o;"undefined"!=typeof e&&(t=e.toString(),o=n&&n>0?n:2e3,i.text(t).show(),a=setTimeout(function(){"block"===i.css("display")&&i.hide()},o))}var i,a,r=t(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';r(".yoho-page").append(e),i=r("#yoho-tip"),i.on("touchend",function(){i.hide(),clearTimeout(a)})}(),n.show=o},3:function(e,n,t){function o(e){var n,t,o=document.cookie;return document.cookie&&""!==document.cookie&&(t=o.indexOf(e+"="),t>-1&&(t+=e.length+1,n=decodeURIComponent(m.trim(o.substring(t,o.indexOf(";",t)))))),n}function i(e,n,t){var o,i,a,r,s="";"undefined"!=typeof n&&(t=t||{},null===n&&(n="",t.expires=-1),t.expires&&("number"==typeof t.expires||t.expires.toUTCString)&&("number"==typeof t.expires?(r=new Date,r.setTime(r.getTime()+24*t.expires*60*60*1e3)):r=t.expires,s="; expires="+r.toUTCString()),o=t.path?"; path="+t.path:"",i=t.domain?"; domain="+t.domain:"",a=t.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(n),s,o,i,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function r(){var e,n=o("_UID");return"undefined"==typeof n?0:(e=n.split("::"),"undefined"==typeof e||e.length<4?0:e)}function s(){var e=r();return 0===e?0:e[1]}function c(){var e=o("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function d(){var e;0!==f.length&&(e=Math.min(m(window).height(),window.screen.availHeight),m("body").height()<=e-parseInt(f.css("height"),0)?f.addClass("bottom"):f.removeClass("bottom"))}function h(e){var n=m(e).outerHeight();e&&f.css("margin-bottom",n+"px")}function u(){var e,n,t=[],o=window.location.search.slice(1).split("&");for(n=0;n<o.length;n++)e=o[n].split("="),t.push(e[0]),t[e[0]]=e[1];return t}function l(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var m=t(1),p=t(4),f=m("#yoho-footer"),w=m(".yoho-page"),g=m(".yoho-header");!function(){var e,n=f.children(".op-row"),t=m(".back-to-top"),o=r();d(),0===o?n.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):n.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+o[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),t.length>0&&(e=new p(t[0]),e.on("tap",function(e){return m(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),f.removeClass("hide")}(),function(e,n,t,o,i){var a=n.createElement(t),r=n.getElementsByTagName(t)[0];e.YohoAcquisitionObject=i,e[i]=function(){e[i].p=arguments},a.async=1,a.src=o,r.parentNode.insertBefore(a,r)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=s();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),g.on("touchstart","a",function(){g.find("a").removeClass("highlight"),m(this).addClass("highlight")}).on("touchend touchcancel","a",function(){m(this).removeClass("highlight")}),w.on("touchstart",".tap-hightlight",function(){m(this).siblings(".tap-hightlight").removeClass("highlight"),m(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){m(this).removeClass("highlight")}),m(".nav-home").on("touchstart",function(){m(".homebuttom").toggleClass("hide")}),function(){var e,n,t=0,o="webkit moz ms o".split(" "),i=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(n=0;n<o.length&&(!i||!a);n++)e=o[n],i=i||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];i&&a||(i=function(e){var n=(new Date).getTime(),o=Math.max(0,16-(n-t)),i=window.setTimeout(function(){e(n+o)},o);return t=n+o,i},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=i,window.cancelAnimationFrame=a}(),m.extend({queryString:u}),11===f.find(".user-name").text().length&&f.find(".user-name").html(l(f.find(".user-name").text())),window.cookie=o,window.setCookie=i,window.isCookiesEnabled=a,window.getUser=r,window.getUid=s,window.getShoppingKey=c,window.rePosFooter=d,window.reMarginFooter=h,window.queryString=u()},14:function(e,n,t){function o(e){function n(e){var n;n=t.find("li").eq(e),n.length>0&&setTimeout(function(){o.scrollToElement(n[0],400)},1)}var t,o,i,a={el:".outlet-nav"};return i=s.extend({},a,e),t=s(i.el),o=new c(t[0],{scrollX:!0,scrollY:!1,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){function i(e){var t=e.attr("href"),n=t.split("?")[1].split("&"),i={};return n.forEach(function(e){var t=e.split("="),n=t[0],a=t[1];"actiontype"!==n&&(i[n]=a)}),i}var a=n(1),o=n(11),s=n(6),r=n(13),c=a(".cd-lite"),l=a(".outlet-category-nav a"),d=n(12),h=n(14);s(a("img.lazy")),c.length>0&&c.each(function(){new r.Countdown({el:a(this)})}),a(".swiper-container .swiper-slide").length>1&&new o(".swiper-container",{lazyLoading:!0,lazyLoadingInPrevNext:!0,loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!0,paginationClickable:!0,pagination:".banner-top .pagination-inner"}),l.on("click",function(e){var t=i(a(this));a(".category a").removeClass("active"),a(this).addClass("active"),e.preventDefault(),d.start({type:"category"},t)}),l.length>0&&d.start({type:"category"},i(l.eq(0))),a("#index_nav").length>0&&h({el:"#index_nav"})["goto"](a("#index_nav").find(".active").index()),a(".outlet-category-nav").length>0&&h({el:".outlet-category-nav"})["goto"](0),a(".back-ground-white").length>10&&(a(".more-activity").show(),a(".back-ground-white").each(function(e,t){e>9&&a(t).hide()})),a(".more-activity").click(function(){a(".more-activity").hide(),a(".back-ground-white").each(function(e,t){e>9&&a(t).show()})})},,function(e,t,n){function i(e,t){var n,i;"undefined"!=typeof e&&(n=e.toString(),i=t&&t>0?t:2e3,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,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",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),m.on("touchstart","a",function(){m.find("a").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel","a",function(){f(this).removeClass("highlight")}),v.on("touchstart",".tap-hightlight",function(){f(this).siblings(".tap-hightlight").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){f(this).removeClass("highlight")}),f(".nav-home").on("touchstart",function(){f(".homebuttom").toggleClass("hide")}),function(){var e,t,n=0,i="webkit moz ms o".split(" "),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){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,r,h={};if(!l){if(e){for(i in D)D.hasOwnProperty(i)&&(D[i].reload=!0);switch(q.children(".active").removeClass("active"),E.addClass("active"),e.type){case"gender":n={gender:e.id};break;case"brand":n={brand:e.id};break;case"sort":n={sort:e.id};break;case"color":n={color:e.id};break;case"size":n={size:e.id};break;case"price":n={price:e.id};break;case"discount":n={discount:e.id};break;case"p_d":n={p_d:e.id}}d.extend(F,n)}if(d.extend(t||{},F),s=a(E),o=D[s||"all"],r=o.page+1,o.reload)r=1;else if(o.end)return;t?(c=t,d.extend(h,t,{type:s,order:o.order,page:r})):(c=null,d.extend(h,F,{type:s,order:o.order,page:r})),l=!0,p.showLoadingMask(),d.ajax({type:"GET",url:"/product/sale/search",data:h,success:function(e){var t,n;switch(s){case"newest":t=m;break;case"price":t=y;break;case"discount":t=w;break;case"sale":t=x;break;case"all":t=C;break;case"categroy":t=b;break;default:t=C}t.hasClass("hide")&&(t.siblings().addClass("hide"),t.removeClass("hide")),""===e?(o.end=!0,o.reload&&t.html(_)):("category"===s&&(o.page=1),o.reload||"category"===s?(t.html(e),u(t.find(".lazy"))):(n=t.find(".good-info").length,t.append(e),u(t.find(".good-info:gt("+(n-1)+") .lazy")))),o.reload=!1,o.page=r,l=!1,p.hideLoadingMask(),window.rePosFooter(),d(".good-detail-text .name").each(function(){var e=d(this),t=e.find("a");t[0].mlellipsis(2)})},error:function(){f.show("网络断开连接了~"),l=!1,p.hideLoadingMask()}})}}function s(){d.ajax({type:"GET",url:"/product/sale/filter",data:F,success:function(e){v.append(e),g.initFilter({fCbFn:o,hCbFn:function(){E.addClass("active"),E.siblings(".filter").removeClass("active")},missStatus:!0})}})}function r(){var e=d(window).scrollTop();e>T&&e+k>d(document).height()-.25*v.height()-50&&"undefined"!=typeof E&&(c?o(!1,c):o()),T=e}var c,l,d=n(1),h=n(10),u=n(6),f=n(2),g=n(9),p=n(5),v=d("#goods-container"),m=v.find(".new-goods"),w=v.find(".discount-goods"),y=v.find(".price-goods"),C=v.find(".all-goods"),b=v.find(".category-goods"),x=v.find(".sale-goods"),k=d(window).height(),_='<p class="no-result">未找到相关搜索结果</p>',T=0,F=n(7),q=d("#list-nav"),D={all:{order:0,reload:!0,page:0,end:!1},newest:{order:0,reload:!0,page:0,end:!1},price:{order:1,reload:!0,page:0,end:!1},discount:{order:1,reload:!0,page:0,end:!1},sale:{order:0,reload:!0,page:0,end:!1},category:{order:0,reload:!0,fuck:!0,page:0,end:!1}},E=q.find(".active");n(8),n(3),h.init(),u(d("img.lazy")),d(".sale-vip-page").length>0?F.saleType=2:d(".discount-detail-page").length>0&&(F.saleType=3,F.productPool=d(".discount-detail-page").data("product-pool")||""),d.extend(F,{yh_channel:i("channel")||"all"}),0===d(".outlet-index-page").length&&s(),u(d(".lazy")),q.bind("contextmenu",function(){return!1}),q.on("touchend touchcancel",function(e){var t,n,i,s=d(e.target).closest("li");if(e.preventDefault(),"undefined"!=typeof s&&0!==s.length){if(s.hasClass("filter"))s.hasClass("active")?(g.hideFilter(),E.addClass("active"),s.removeClass("active")):(E=s.siblings(".active"),E.removeClass("active"),s.addClass("active"),g.showFilter());else{if(n=a(s),t=D[n],s.hasClass("active")){if(s.hasClass("new")||s.hasClass("sale")||s.hasClass("all"))return;(s.hasClass("price")||s.hasClass("discount"))&&(s.find(".icon > .iconfont").toggleClass("cur"),E=s,t.reload=!0,t.order=0===t.order?1:0)}else{if(i=s.siblings(".active"),E=s,i.hasClass("filter"))g.hideFilter();else switch(v.children(".container:not(.hide)").addClass("hide"),n){case"newest":m.removeClass("hide");break;case"price":y.removeClass("hide");break;case"discount":w.removeClass("hide");break;case"sale":x.removeClass("hide");break;case"all":C.removeClass("hide")}i.removeClass("active"),s.addClass("active")}t.reload&&o()}e.stopPropagation()}}),d(window).scroll(function(){0===d(".outlet-index-page").length&&window.requestAnimationFrame(r)}),q.on("touchstart","li",function(){d(this).addClass("bytouch")}).on("touchend touchcancel",function(){q.find("li").removeClass("bytouch")}),e.exports={start: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,{},r,t,e)),this.config=e,this._init()))):new i(e)}var a=n(1),o=n(2),s="afterPaint",r={el:{},stopPoint:0,leftTime:0,template:"",varRegular:/\$\{([\-\w]+)\}/g,clock:["d",100,2,"h",24,2,"m",60,2,"s",60,2,"u",10,1],effect:"normal"},c={normal:{paint:function(){var e,t=this;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))})}}},l=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)},l.add(n._reflow,n.frequency),i.show()},_getLeft:function(){var e=1e3*this.config.leftTime,t=this.config.stopPoint;!e&&t&&(e=t-+new Date),this.left=e-e%this.frequency},_reflow:function(e){var t=this,n=t.config.el;return e=e||0,t.left=t.left-t.frequency*e,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("— 活动已结束 —"),n.parents(".back-ground-white").on("click",function(){return o.show("活动即将开始,敬请期待!"),!1}),l.remove(t._reflow)),t.left<864e5&&n.find(".left-day").hide(),t},_repaint:function(){c[this.config.effect].paint.apply(this),this.config.el.trigger(s)},_toDigitals:function(e,t){var n=[];for(e=0>e?0:e,t=e.toString().length>1?2:1;t--;)n[t]=e%10,e=Math.floor(e/10);return n},_html:function(e,t,n){switch(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=c.extend({},o,e),n=c(a.el),i=new l(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(){c("#index_nav").find("li").each(function(){c(this).find("a").text()===h?c(this).attr({"data-nav":"other","data-type":3}):c(this).find("a").text()===d&&c(this).attr({"data-nav":"other","data-type":2})})}function s(){var e=c("#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")}function r(){var e=0,t=c("#index_nav");t.size()>0&&(e=t.height(),c(window).on("scroll",function(){var n=c(window).scrollTop();n>=e?t.addClass("nav-fix"):t.removeClass("nav-fix")}))}var c=n(1),l=n(15),d="即将结束",h="上线预告";s(),r(),e.exports=i}]);
\ No newline at end of file
webpackJsonp([1],[function(e,t,n){function i(e){var t=e.attr("href"),n=t.split("?")[1].split("&"),i={};return n.forEach(function(e){var t=e.split("="),n=t[0],o=t[1];"actiontype"!==n&&(i[n]=o)}),i}var o=n(1),a=n(11),s=n(6),r=n(13),l=o(".cd-lite"),c=o(".outlet-category-nav a"),d=n(12),h=n(14);n(35),s(o("img.lazy")),l.length>0&&l.each(function(){new r.Countdown({el:o(this)})}),o(".outlet-category-nav").fixNav(),o(".swiper-container .swiper-slide").length>1&&new a(".swiper-container",{lazyLoading:!0,lazyLoadingInPrevNext:!0,loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!0,paginationClickable:!0,pagination:".banner-top .pagination-inner"}),c.on("click",function(e){var t=i(o(this));o(".category a").removeClass("active"),o(this).addClass("active"),e.preventDefault(),d.start({type:"category"},t)}),c.length>0&&d.start({type:"category"},i(c.eq(0))),o("#index_nav").length>0&&h({el:"#index_nav"})["goto"](o("#index_nav").find(".active").index()),o(".outlet-category-nav").length>0&&h({el:".outlet-category-nav"})["goto"](0),o(".back-ground-white").length>10&&(o(".more-activity").show(),o(".back-ground-white").each(function(e,t){e>9&&o(t).hide()})),o(".more-activity").click(function(){o(".more-activity").hide(),o(".back-ground-white").each(function(e,t){e>9&&o(t).show()})})},,function(e,t,n){function i(e,t){var n,i;"undefined"!=typeof e&&(n=e.toString(),i=t&&t>0?t:2e3,o.text(n).show(),a=setTimeout(function(){"block"===o.css("display")&&o.hide()},i))}var o,a,s=n(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),o=s("#yoho-tip"),o.on("touchend",function(){o.hide(),clearTimeout(a)})}(),t.show=i},function(e,t,n){function i(e){var t,n,i=document.cookie;return document.cookie&&""!==document.cookie&&(n=i.indexOf(e+"="),n>-1&&(n+=e.length+1,t=decodeURIComponent(f.trim(i.substring(n,i.indexOf(";",n)))))),t}function o(e,t,n){var i,o,a,s,r="";"undefined"!=typeof t&&(n=n||{},null===t&&(t="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(s=new Date,s.setTime(s.getTime()+24*n.expires*60*60*1e3)):s=n.expires,r="; expires="+s.toUTCString()),i=n.path?"; path="+n.path:"",o=n.domain?"; domain="+n.domain:"",a=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),r,i,o,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function s(){var e,t=i("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function r(){var e=s();return 0===e?0:e[1]}function l(){var e=i("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function c(){var e;0!==g.length&&(e=Math.min(f(window).height(),window.screen.availHeight),f("body").height()<=e-parseInt(g.css("height"),0)?g.addClass("bottom"):g.removeClass("bottom"))}function d(e){var t=f(e).outerHeight();e&&g.css("margin-bottom",t+"px")}function h(){var e,t,n=[],i=window.location.search.slice(1).split("&");for(t=0;t<i.length;t++)e=i[t].split("="),n.push(e[0]),n[e[0]]=e[1];return n}function u(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var f=n(1),p=n(4),g=f("#yoho-footer"),v=f(".yoho-page"),m=f(".yoho-header");!function(){var e,t=g.children(".op-row"),n=f(".back-to-top"),i=s();c(),0===i?t.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):t.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+i[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),n.length>0&&(e=new p(n[0]),e.on("tap",function(e){return f(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),g.removeClass("hide")}(),function(e,t,n,i,o){var a=t.createElement(n),s=t.getElementsByTagName(n)[0];e.YohoAcquisitionObject=o,e[o]=function(){e[o].p=arguments},a.async=1,a.src=i,s.parentNode.insertBefore(a,s)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),m.on("touchstart","a",function(){m.find("a").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel","a",function(){f(this).removeClass("highlight")}),v.on("touchstart",".tap-hightlight",function(){f(this).siblings(".tap-hightlight").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){f(this).removeClass("highlight")}),f(".nav-home").on("touchstart",function(){f(".homebuttom").toggleClass("hide")}),function(){var e,t,n=0,i="webkit moz ms o".split(" "),o=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(t=0;t<i.length&&(!o||!a);t++)e=i[t],o=o||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];o&&a||(o=function(e){var t=(new Date).getTime(),i=Math.max(0,16-(t-n)),o=window.setTimeout(function(){e(t+i)},i);return n=t+i,o},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=o,window.cancelAnimationFrame=a}(),f.extend({queryString:h}),11===g.find(".user-name").text().length&&g.find(".user-name").html(u(g.find(".user-name").text())),window.cookie=i,window.setCookie=o,window.isCookiesEnabled=a,window.getUser=s,window.getUid=r,window.getShoppingKey=l,window.rePosFooter=c,window.reMarginFooter=d,window.queryString=h()},,function(e,t,n){function i(e){var t='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';c=!0,e||(e=l),e.append(t),s=e.children(".loading-mask"),r("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function o(){c||(i(),c=!0),s.removeClass("hide")}function a(){s.addClass("hide")}var s,r=n(1),l=r(".yoho-page"),c=!1;t.init=i,t.showLoadingMask=o,t.hideLoadingMask=a,t.show=o,t.hide=a},,function(e,t,n){var i=n(1),o={};i(".query-param").each(function(){var e=i(this);o[e.data("attr")]=e.val()}),e.exports=o},function(e,t,n){var i=n(1),o=i("#suspend-cart");i.ajax({type:"GET",url:"/cart/index/count",success:function(e){var t;200===e.code&&(t=e.data.cart_goods_count,t>99&&(t="99+"),0===t&&i(".cart-count").remove(),o.find(".cart-count").html(t).removeClass("hide"))}})},function(e,t,n){function i(){u.addClass("hide")}function o(){u.removeClass("hide")}function a(){var e=g(".filter-body .classify");e.on("touchstart",".shower",function(){e.removeClass("highlight"),g(this).addClass("highlight")}).on("touchend touchcancel",".shower",function(){g(this).removeClass("highlight")})}function s(){var e=g(".filter-body .sub-item");e.on("touchstart",function(){e.removeClass("highlight"),g(this).addClass("highlight")}).on("touchend touchcancel",function(){g(this).removeClass("highlight")})}function r(e){e.hasClass("active")||(e.siblings(".active").removeClass("active"),e.addClass("active"))}function l(e){var t,n,i=e.closest(".sub-classify"),o=i.siblings(".shower");return e.hasClass("chosed")?i:(i.children(".chosed").removeClass("chosed"),e.addClass("chosed"),t=g.trim(e.html()),n=g.trim(o.html()),o.html(n.substring(0,n.indexOf("</span>")+7)+t.substring(0,t.indexOf("<i"))),0===e.index()?o.addClass("default"):o.removeClass("default"),i)}function c(e){var t,n=e.data("id");t=l(e),f&&f({type:t.data("type"),id:n}),p&&p(),i()}function d(e){var t;f=e.fCbFn,p=e.hCbFn,window.missStatus=e.missStatus,a(),s(),u=g(".filter-mask"),t=new v(u[0]),t.on("tap",function(e){var t,n=g(e.target);e.preventDefault(),n.closest(".filter-body").length>0?(t=n.closest(".sub-item"),t.length>0?(t=n.closest("li"),c(t)):(t=n.closest(".classify-item"),e.srcEvent.stopPropagation(),r(t))):(i(),p&&p())})}function h(){"undefined"!=typeof u&&(g(".sub-classify").each(function(){l(g(this).children(":first-child"))}),r(g(".classify > :first-child")))}var u,f,p,g=n(1),v=n(4);t.initFilter=d,t.showFilter=o,t.hideFilter=i,t.resetFilter=h},,,function(e,t,n){function i(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!==n?n[2]:null}function o(e){var t="category";return e.hasClass("new")?t="newest":e.hasClass("price")?t="price":e.hasClass("discount")?t="discount":e.hasClass("sale")?t="sale":e.hasClass("all")?t="all":e.hasClass("category")&&(t="category"),t}function a(e,t){var n,i,a,s,r,h={};if(!c){if(e){for(i in D)D.hasOwnProperty(i)&&(D[i].reload=!0);switch(S.children(".active").removeClass("active"),q.addClass("active"),e.type){case"gender":n={gender:e.id};break;case"brand":n={brand:e.id};break;case"sort":n={sort:e.id};break;case"color":n={color:e.id};break;case"size":n={size:e.id};break;case"price":n={price:e.id};break;case"discount":n={discount:e.id};break;case"p_d":n={p_d:e.id}}d.extend(F,n)}if(d.extend(t||{},F),s=o(q),a=D[s||"all"],r=a.page+1,a.reload)r=1;else if(a.end)return;t?(l=t,d.extend(h,t,{type:s,order:a.order,page:r})):(l=null,d.extend(h,F,{type:s,order:a.order,page:r})),c=!0,g.showLoadingMask(),d.ajax({type:"GET",url:"/product/sale/search",data:h,success:function(e){var t,n;switch(s){case"newest":t=m;break;case"price":t=y;break;case"discount":t=w;break;case"sale":t=x;break;case"all":t=C;break;case"categroy":t=b;break;default:t=C}t.hasClass("hide")&&(t.siblings().addClass("hide"),t.removeClass("hide")),""===e?(a.end=!0,a.reload&&t.html(_)):("category"===s&&(a.page=1),a.reload||"category"===s?(t.html(e),u(t.find(".lazy"))):(n=t.find(".good-info").length,t.append(e),u(t.find(".good-info:gt("+(n-1)+") .lazy")))),a.reload=!1,a.page=r,c=!1,g.hideLoadingMask(),window.rePosFooter(),d(".good-detail-text .name").each(function(){var e=d(this),t=e.find("a");t[0].mlellipsis(2)})},error:function(){f.show("网络断开连接了~"),c=!1,g.hideLoadingMask()}})}}function s(){d.ajax({type:"GET",url:"/product/sale/filter",data:F,success:function(e){v.append(e),p.initFilter({fCbFn:a,hCbFn:function(){q.addClass("active"),q.siblings(".filter").removeClass("active")},missStatus:!0})}})}function r(){var e=d(window).scrollTop();e>T&&e+k>d(document).height()-.25*v.height()-50&&"undefined"!=typeof q&&(l?a(!1,l):a()),T=e}var l,c,d=n(1),h=n(10),u=n(6),f=n(2),p=n(9),g=n(5),v=d("#goods-container"),m=v.find(".new-goods"),w=v.find(".discount-goods"),y=v.find(".price-goods"),C=v.find(".all-goods"),b=v.find(".category-goods"),x=v.find(".sale-goods"),k=d(window).height(),_='<p class="no-result">未找到相关搜索结果</p>',T=0,F=n(7),S=d("#list-nav"),D={all:{order:0,reload:!0,page:0,end:!1},newest:{order:0,reload:!0,page:0,end:!1},price:{order:1,reload:!0,page:0,end:!1},discount:{order:1,reload:!0,page:0,end:!1},sale:{order:0,reload:!0,page:0,end:!1},category:{order:0,reload:!0,fuck:!0,page:0,end:!1}},q=S.find(".active");n(8),n(3),h.init(),u(d("img.lazy")),d(".sale-vip-page").length>0?F.saleType=2:d(".discount-detail-page").length>0&&(F.saleType=3,F.productPool=d(".discount-detail-page").data("product-pool")||""),d.extend(F,{yh_channel:i("channel")||"all"}),0===d(".outlet-index-page").length&&s(),u(d(".lazy")),S.bind("contextmenu",function(){return!1}),S.on("touchend touchcancel",function(e){var t,n,i,s=d(e.target).closest("li");if(e.preventDefault(),"undefined"!=typeof s&&0!==s.length){if(s.hasClass("filter"))s.hasClass("active")?(p.hideFilter(),q.addClass("active"),s.removeClass("active")):(q=s.siblings(".active"),q.removeClass("active"),s.addClass("active"),p.showFilter());else{if(n=o(s),t=D[n],s.hasClass("active")){if(s.hasClass("new")||s.hasClass("sale")||s.hasClass("all"))return;(s.hasClass("price")||s.hasClass("discount"))&&(s.find(".icon > .iconfont").toggleClass("cur"),q=s,t.reload=!0,t.order=0===t.order?1:0)}else{if(i=s.siblings(".active"),q=s,i.hasClass("filter"))p.hideFilter();else switch(v.children(".container:not(.hide)").addClass("hide"),n){case"newest":m.removeClass("hide");break;case"price":y.removeClass("hide");break;case"discount":w.removeClass("hide");break;case"sale":x.removeClass("hide");break;case"all":C.removeClass("hide")}i.removeClass("active"),s.addClass("active")}t.reload&&a()}e.stopPropagation()}}),d(window).scroll(function(){0===d(".outlet-index-page").length&&window.requestAnimationFrame(r)}),S.on("touchstart","li",function(){d(this).addClass("bytouch")}).on("touchend touchcancel",function(){S.find("li").removeClass("bytouch")}),e.exports={start:a}},function(e,t,n){"use strict";function i(e){var t;return this instanceof i?(e.el=o(e.el),void(e.el&&(t=e.el.attr("data-config"),t&&(t=JSON.parse(t.replace(/'/g,'"')),e=o.extend(!0,{},r,t,e)),this.config=e,this._init()))):new i(e)}var o=n(1),a=n(2),s="afterPaint",r={el:{},stopPoint:0,leftTime:0,template:"",varRegular:/\$\{([\-\w]+)\}/g,clock:["d",100,2,"h",24,2,"m",60,2,"s",60,2,"u",10,1],effect:"normal"},l={normal:{paint:function(){var e,t=this;o.each(t.hands,function(n,i){i.lastValue!==i.value&&(e="",o.each(t._toDigitals(i.value,i.bits),function(n,i){e+=t._html(i,"","digital")}),i.node.html(e))})}}},c=function(){function e(){for(var t,o,a,s,r=+new Date-e.nextTime,l=1+Math.floor(r/100);i.length;)i.shift()();for(r=100-r%100,e.nextTime+=100*l,a=0,s=n.length;s>a;a+=2)t=n[a+1],0===t?n[a](l):(t+=2*l-1,o=Math.floor(t/20),o>0&&n[a](o),n[a+1]=t%20+1);setTimeout(e,r)}function t(e,t){var n,i;for(n=0,i=t.length;i>n;++n)if(t[n]===e)return n;return-1}var n=[],i=[];return e.nextTime=+new Date,e(),{add:function(e,t){i.push(function(){n.push(e),n.push(1e3===t?1:0)})},remove:function(e){var o;i.push(function(){o=t(e,n),-1!==o&&n.splice(t(e,n),2)})}}}();o.extend(i.prototype,{_init:function(){var e,t,n=this,i=n.config.el,a=[],s=i.html(),r=n.config.varRegular;n.hands=a,n.frequency=1e3,n._notify=[],r.lastIndex=0,i.html(s.replace(r,function(e,t){var i="";return"u"!==t&&"s-ext"!==t||(n.frequency=100),"s-ext"===t?(a.push({type:"s"}),a.push({type:"u"}),i=n._html("","s","handlet")+n._html(".","","digital")+n._html("","u","handlet")):a.push({type:t}),n._html(i,t,"hand")})),e=n.config.clock,o.each(a,function(t,n){var o,a=n.type,s=100;for(n.node=i.find(".hand-"+a),o=e.length-3;o>-1&&a!==e[o];o-=3)s*=e[o+1];n.base=s,n.radix=e[o+1],n.bits=e[o+2]}),n._getLeft(),n._reflow(),t=n._reflow,n._reflow=function(){return t.apply(n,arguments)},c.add(n._reflow,n.frequency),i.show()},_getLeft:function(){var e=1e3*this.config.leftTime,t=this.config.stopPoint;!e&&t&&(e=t-+new Date),this.left=e-e%this.frequency},_reflow:function(e){var t=this,n=t.config.el;return e=e||0,t.left=t.left-t.frequency*e,o.each(t.hands,function(e,n){n.lastValue=n.value,n.value=Math.floor(t.left/n.base)%n.radix}),t._repaint(),t._notify[t.left]&&o.each(t._notify[t.left],function(e,n){n.call(t)}),t.left<1&&(n.text("— 活动已结束 —"),n.parents(".back-ground-white").on("click",function(){return a.show("活动即将开始,敬请期待!"),!1}),c.remove(t._reflow)),t.left<864e5&&n.find(".left-day").hide(),t},_repaint:function(){l[this.config.effect].paint.apply(this),this.config.el.trigger(s)},_toDigitals:function(e,t){var n=[];for(e=0>e?0:e,t=e.toString().length>1?2:1;t--;)n[t]=e%10,e=Math.floor(e/10);return n},_html:function(e,t,n){switch(o.isArray(e)&&(e=e.join("")),n){case"hand":t=n+" hand-"+t;break;case"handlet":t=n+" hand-"+t;break;case"digital":t="."===e?n+" "+n+"-point "+t:n+" "+n+"-"+e+" "+t}return'<i class="'+t+'">'+e+"</i>"},notify:function(e,t){var n;return e=1e3*e,e-=e%this.frequency,n=this._notify[e]||[],n.push(t),this._notify[e]=n,this}}),t.Countdown=i},function(e,t,n){function i(e){function t(e){var t;t=n.find("li").eq(e),t.length>0&&setTimeout(function(){i.scrollToElement(t[0],400)},1)}var n,i,o,a={el:".outlet-nav"};return o=r.extend({},a,e),n=r(o.el),i=new l(n[0],{scrollX:!0,scrollY:!1,mouseWheel:!0,scrollbars:!0,probeType:3,preventDefault:!0,click:!0}),{"goto":t}}function o(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!==n?decodeURIComponent(n[2]):null}function a(){r("#index_nav").find("li").each(function(){r(this).find("a").text()===d?r(this).attr({"data-nav":"other","data-type":3}):r(this).find("a").text()===c&&r(this).attr({"data-nav":"other","data-type":2})})}function s(){var e=r("#index_nav"),t=o("yh_channel");a(),null===t?(t=o("type"),null===t?e.find('li:not([data-nav="other"])').eq(0).addClass("active").siblings().removeClass("active"):e.find("li[data-type="+t+"]").addClass("active").siblings().removeClass("active")):e.find('li:not([data-nav="other"])').eq(t).addClass("active").siblings().removeClass("active")}var r=n(1),l=n(15),c="即将结束",d="上线预告";s(),e.exports=i},,,,,,,,,,,,,,,,,,,,,function(e,t,n){var i=n(1);!function(){i.fn.fixNav=function(){var e={direction:"",preScrollTop:0,curScrollTop:0,getDirection:function(){this.curScrollTop=i(window).scrollTop(),this.curScrollTop<this.preScrollTop?this.direction="up":this.direction="down",this.preScrollTop=this.curScrollTop},isUp:function(){return this.getDirection(),"up"===this.direction},isDown:function(){return this.getDirection(),"down"===this.direction}},t={isSet:!1,preStyle:"",preTop:null,$el:null,setFix:function(e,t){this.isSet||(this.$el=i(e),this.preStyle=this.$el.attr("style"),this.preTop=t,this.$el.css({position:"fixed",top:0,"z-index":9999}),this.isSet=!0)},clearFix:function(){var e;this.$el&&(e=i(window).scrollTop(),e<=this.preTop&&(this.preStyle?this.$el.attr("style",this.preStyle):this.$el.removeAttr("style"),this.isSet=!1))}};return this.each(function(n,o){var a=o.getBoundingClientRect(),s=a.top;i(window).scroll(function(){var n=o.getBoundingClientRect(),i=n.top;e.isDown()&&0>=i?t.setFix(o,s):t.clearFix()})})}}()}]);
\ No newline at end of file
... ...