chunk-5f0512f8.043d888f.js
47.5 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5f0512f8"],{1076:function(t,e,i){"use strict";var n,r=i("7e35"),s=i("c5f4"),o=i("d4c2"),a=i("4ee9"),c=i("35ea");function l(t,e,i){Object(a["a"])(n);var r=0,s=t.scrollLeft,o=0===i?1:Math.round(1e3*i/16);function c(){t.scrollLeft+=(e-s)/o,++r<o&&(n=Object(a["c"])(c))}c()}function u(t,e,i){var n=Object(c["b"])(),r=n<t,s=0===e?1:Math.round(1e3*e/16),o=(t-n)/s;function l(){n+=o,(r&&n>t||!r&&n<t)&&(n=t),Object(c["g"])(n),r&&n<t||!r&&n>t?Object(a["c"])(l):i&&i()}l()}var h=i("839f"),d=i("8bf3"),f=i("1470"),p=i("7ee0"),v=i("13c0"),b=i("8719"),g=i("f082"),m=Object(r["a"])("tab"),y=m[0],w=m[1],_=y({props:{dot:Boolean,type:String,info:[Number,String],color:String,title:String,isActive:Boolean,ellipsis:Boolean,disabled:Boolean,scrollable:Boolean,activeColor:String,inactiveColor:String,swipeThreshold:Number},computed:{style:function(){var t={},e=this.color,i=this.isActive,n="card"===this.type;e&&n&&(t.borderColor=e,this.disabled||(i?t.backgroundColor=e:t.color=e));var r=i?this.activeColor:this.inactiveColor;return r&&(t.color=r),this.scrollable&&this.ellipsis&&(t.flexBasis=88/this.swipeThreshold+"%"),t}},methods:{onClick:function(){this.$emit("click")}},render:function(){var t=arguments[0];return t("div",{attrs:{role:"tab","aria-selected":this.isActive},class:[w({active:this.isActive,disabled:this.disabled,complete:!this.ellipsis}),{"van-ellipsis":this.ellipsis}],style:this.style,on:{click:this.onClick}},[t("span",{class:w("text")},[this.slots()||this.title,t(g["a"],{attrs:{dot:this.dot,info:this.info}})])])}}),x=i("9ed5"),S=i("b47e"),O=Object(r["a"])("tabs"),k=O[0],j=O[1],C=50,I=k({mixins:[S["a"]],props:{count:Number,duration:Number,animated:Boolean,swipeable:Boolean,currentIndex:Number},computed:{style:function(){if(this.animated)return{transform:"translate3d("+-1*this.currentIndex*100+"%, 0, 0)",transitionDuration:this.duration+"s"}},listeners:function(){if(this.swipeable)return{touchstart:this.touchStart,touchmove:this.touchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}}},methods:{onTouchEnd:function(){var t=this.direction,e=this.deltaX,i=this.currentIndex;"horizontal"===t&&this.offsetX>=C&&(e>0&&0!==i?this.$emit("change",i-1):e<0&&i!==this.count-1&&this.$emit("change",i+1))},genChildren:function(){var t=this.$createElement;return this.animated?t("div",{class:j("track"),style:this.style},[this.slots()]):this.slots()}},render:function(){var t=arguments[0];return t("div",{class:j("content",{animated:this.animated}),on:Object(x["a"])({},this.listeners)},[this.genChildren()])}}),T=Object(r["a"])("sticky"),L=T[0],$=T[1],A=L({mixins:[Object(v["a"])((function(t){this.scroller||(this.scroller=Object(c["c"])(this.$el)),t(this.scroller,"scroll",this.onScroll,!0),this.onScroll()}))],props:{zIndex:Number,container:null,offsetTop:{type:Number,default:0}},data:function(){return{fixed:!1,height:0,transform:0}},computed:{style:function(){if(this.fixed){var t={};return Object(s["b"])(this.zIndex)&&(t.zIndex=this.zIndex),this.offsetTop&&this.fixed&&(t.top=this.offsetTop+"px"),this.transform&&(t.transform="translate3d(0, "+this.transform+"px, 0)"),t}}},methods:{onScroll:function(){var t=this;this.height=this.$el.offsetHeight;var e=this.container,i=this.offsetTop,n=Object(c["d"])(window),r=Object(c["a"])(this.$el),s=function(){t.$emit("scroll",{scrollTop:n,isFixed:t.fixed})};if(e){var o=r+e.offsetHeight;if(n+i+this.height>o){var a=this.height+n-o;return a<this.height?(this.fixed=!0,this.transform=-(a+i)):this.fixed=!1,void s()}}n+i>r?(this.fixed=!0,this.transform=0):this.fixed=!1,s()}},render:function(){var t=arguments[0],e=this.fixed,i={height:e?this.height+"px":null};return t("div",{style:i},[t("div",{class:$({fixed:e}),style:this.style},[this.slots()])])}}),z=Object(r["a"])("tabs"),E=z[0],N=z[1];e["a"]=E({mixins:[Object(p["b"])("vanTabs"),Object(v["a"])((function(t){t(window,"resize",this.resize,!0),this.scrollspy&&t(window,"scroll",this.onScroll,!0)}))],model:{prop:"active"},props:{color:String,sticky:Boolean,animated:Boolean,swipeable:Boolean,scrollspy:Boolean,background:String,lineWidth:[Number,String],lineHeight:[Number,String],titleActiveColor:String,titleInactiveColor:String,type:{type:String,default:"line"},active:{type:[Number,String],default:0},border:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},duration:{type:Number,default:.3},offsetTop:{type:Number,default:0},lazyRender:{type:Boolean,default:!0},swipeThreshold:{type:Number,default:4}},data:function(){return{position:"",currentIndex:null,lineStyle:{backgroundColor:this.color}}},computed:{scrollable:function(){return this.children.length>this.swipeThreshold||!this.ellipsis},navStyle:function(){return{borderColor:this.color,background:this.background}},currentName:function(){var t=this.children[this.currentIndex];if(t)return t.computedName},scrollOffset:function(){return this.sticky?this.offsetTop+this.tabHeight:0}},watch:{color:"setLine",active:function(t){t!==this.currentName&&this.setCurrentIndexByName(t)},children:function(){var t=this;this.setCurrentIndexByName(this.currentName||this.active),this.setLine(),this.$nextTick((function(){t.scrollIntoView(!0)}))},currentIndex:function(){this.scrollIntoView(),this.setLine(),this.stickyFixed&&!this.scrollspy&&Object(c["g"])(Math.ceil(Object(c["a"])(this.$el)-this.offsetTop))},scrollspy:function(t){t?Object(f["b"])(window,"scroll",this.onScroll,!0):Object(f["a"])(window,"scroll",this.onScroll)}},mounted:function(){this.onShow()},activated:function(){this.onShow(),this.setLine()},methods:{resize:function(){this.setLine()},onShow:function(){var t=this;this.$nextTick((function(){t.inited=!0,t.tabHeight=Object(c["e"])(t.$refs.wrap),t.scrollIntoView(!0)}))},setLine:function(){var t=this,e=this.inited;this.$nextTick((function(){var i=t.$refs.titles;if(i&&i[t.currentIndex]&&"line"===t.type&&!Object(d["a"])(t.$el)){var n=i[t.currentIndex].$el,r=t.lineWidth,a=t.lineHeight,c=Object(s["b"])(r)?r:n.offsetWidth/2,l=n.offsetLeft+n.offsetWidth/2,u={width:Object(o["a"])(c),backgroundColor:t.color,transform:"translateX("+l+"px) translateX(-50%)"};if(e&&(u.transitionDuration=t.duration+"s"),Object(s["b"])(a)){var h=Object(o["a"])(a);u.height=h,u.borderRadius=h}t.lineStyle=u}}))},setCurrentIndexByName:function(t){var e=this.children.filter((function(e){return e.computedName===t})),i=(this.children[0]||{}).index||0;this.setCurrentIndex(e.length?e[0].index:i)},setCurrentIndex:function(t){if(t=this.findAvailableTab(t),Object(s["b"])(t)&&t!==this.currentIndex){var e=null!==this.currentIndex;this.currentIndex=t,this.$emit("input",this.currentName),e&&this.$emit("change",this.currentName,this.children[t].title)}},findAvailableTab:function(t){var e=t<this.currentIndex?-1:1;while(t>=0&&t<this.children.length){if(!this.children[t].disabled)return t;t+=e}},onClick:function(t){var e=this.children[t],i=e.title,n=e.disabled,r=e.computedName;n?this.$emit("disabled",r,i):(this.setCurrentIndex(t),this.scrollToCurrentContent(),this.$emit("click",r,i))},scrollIntoView:function(t){var e=this.$refs.titles;if(this.scrollable&&e&&e[this.currentIndex]){var i=this.$refs.nav,n=e[this.currentIndex].$el,r=n.offsetLeft-(i.offsetWidth-n.offsetWidth)/2;l(i,r,t?0:this.duration)}},onSticktScroll:function(t){this.stickyFixed=t.isFixed,this.$emit("scroll",t)},scrollToCurrentContent:function(){var t=this;if(this.scrollspy){this.clickedScroll=!0;var e=this.children[this.currentIndex],i=e&&e.$el;if(i){var n=Math.ceil(Object(c["a"])(i))-this.scrollOffset;u(n,this.duration,(function(){t.clickedScroll=!1}))}}},onScroll:function(){if(this.scrollspy&&!this.clickedScroll){var t=this.getCurrentIndexOnScroll();this.setCurrentIndex(t)}},getCurrentIndexOnScroll:function(){for(var t=this.children,e=0;e<t.length;e++){var i=Object(c["f"])(t[e].$el);if(i>this.scrollOffset)return 0===e?0:e-1}return t.length-1}},render:function(){var t,e=this,i=arguments[0],n=this.type,r=this.ellipsis,s=this.animated,o=this.scrollable,a=this.children.map((function(t,s){return i(_,{ref:"titles",refInFor:!0,attrs:{type:n,dot:t.dot,info:t.info,title:t.title,color:e.color,isActive:s===e.currentIndex,ellipsis:r,disabled:t.disabled,scrollable:o,activeColor:e.titleActiveColor,inactiveColor:e.titleInactiveColor,swipeThreshold:e.swipeThreshold},style:t.titleStyle,scopedSlots:{default:function(){return t.slots("title")}},on:{click:function(){e.onClick(s),Object(h["b"])(t.$router,t)}}})})),c=i("div",{ref:"wrap",class:[N("wrap",{scrollable:o}),(t={},t[b["g"]]="line"===n&&this.border,t)]},[i("div",{ref:"nav",attrs:{role:"tablist"},class:N("nav",[n]),style:this.navStyle},[this.slots("nav-left"),a,"line"===n&&i("div",{class:N("line"),style:this.lineStyle}),this.slots("nav-right")])]);return i("div",{class:N([n])},[this.sticky?i(A,{attrs:{container:this.$el,offsetTop:this.offsetTop},on:{scroll:this.onSticktScroll}},[c]):c,i(I,{attrs:{count:this.children.length,animated:s,duration:this.duration,swipeable:this.swipeable,currentIndex:this.currentIndex},on:{change:this.setCurrentIndex}},[this.slots()])])}})},"166e":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div")},r=[],s=(i("5ab2"),i("6d57"),i("e44b"),i("e10e"),i("9d37")),o=(i("5490"),i("08c1")),a=i("4260");function c(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function l(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?c(Object(i),!0).forEach((function(e){Object(s["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var u={name:"wxShare",props:{isLogin:{type:Boolean,default:!0},url:{type:String,default:window.location.href},title:{type:String,default:"好物分享给你,帮我助力,我们一起免费拿样品"},desc:{type:String,default:"在吗?拜托帮我点一下,你也能免费申请元器件样品~帮我助力 你拿样品"},link:{type:String,default:window.location.origin+"/v3/samplereg?uid="+a["a"].getCookie("Yo4teW_uid")},imgUrl:{type:String,default:"http://img.ichunt.com/images/ichunt/self_sample/apply.png"}},data:function(){return{shareObj:{title:this.title,desc:this.desc,link:this.link,imgUrl:this.imgUrl,success:function(t){},error:function(){}}}},computed:l({},Object(o["c"])({wxShareInfo:function(t){return t.common.wxShareInfo},wxShareState:function(t){return t.common.wxShareState}})),watch:{wxShareState:function(t){t&&this.share()}},created:function(){this.isLogin||this.$store.dispatch({type:"wxShare",current_url:window.location.href}),a["a"].getCookie("Yo4teW_uid")&&this.$store.dispatch({type:"wxShare",current_url:window.location.href})},methods:{share:function(){var t=this;try{setShareInfo({title:t.shareObj.title,summary:t.shareObj.title,pic:t.shareObj.imgUrl,url:t.shareObj.link,WXconfig:{swapTitleInWX:!0,appId:t.wxShareInfo.appId,timestamp:t.wxShareInfo.timestamp,nonceStr:t.wxShareInfo.nonceStr,signature:t.wxShareInfo.signature}})}catch(e){}wx.config({debug:!1,appId:t.wxShareInfo.appId,timestamp:t.wxShareInfo.timestamp,nonceStr:t.wxShareInfo.nonceStr,signature:t.wxShareInfo.signature,jsApiList:["onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","onMenuShareQZone","updateAppMessageShareData","updateTimelineShareData"]}),wx.ready((function(){wx.checkJsApi({jsApiList:["onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","onMenuShareQZone","updateAppMessageShareData","updateTimelineShareData"],success:function(t){}}),wx.onMenuShareTimeline(t.shareObj),wx.onMenuShareAppMessage(t.shareObj),wx.onMenuShareWeibo(t.shareObj),wx.onMenuShareQZone(t.shareObj),wx.onMenuShareQQ?wx.onMenuShareQQ(t.shareObj):wx.updateAppMessageShareData(t.shareObj),wx.updateTimelineShareData(t.shareObj)}))}}},h=u,d=i("5511"),f=Object(d["a"])(h,n,r,!1,null,null,null);e["a"]=f.exports},"26d8":function(t,e,i){"use strict";var n=i("7e35"),r=i("1470"),s=i("b47e"),o=i("13c0"),a=i("4ee9"),c=i("8311"),l=Object(n["a"])("swipe"),u=l[0],h=l[1];e["a"]=u({mixins:[s["a"],Object(o["a"])((function(t,e){t(window,"resize",this.resize,!0),e?this.initialize():this.clear()}))],props:{width:Number,height:Number,autoplay:Number,vertical:Boolean,indicatorColor:String,loop:{type:Boolean,default:!0},duration:{type:Number,default:500},touchable:{type:Boolean,default:!0},initialSwipe:{type:Number,default:0},showIndicators:{type:Boolean,default:!0},stopPropagation:{type:Boolean,default:!0}},data:function(){return{computedWidth:0,computedHeight:0,offset:0,active:0,deltaX:0,deltaY:0,swipes:[],swiping:!1}},watch:{swipes:function(){this.initialize()},initialSwipe:function(){this.initialize()},autoplay:function(t){t?this.autoPlay():this.clear()}},computed:{count:function(){return this.swipes.length},delta:function(){return this.vertical?this.deltaY:this.deltaX},size:function(){return this[this.vertical?"computedHeight":"computedWidth"]},trackSize:function(){return this.count*this.size},activeIndicator:function(){return(this.active+this.count)%this.count},isCorrectDirection:function(){var t=this.vertical?"vertical":"horizontal";return this.direction===t},trackStyle:function(){var t,e=this.vertical?"height":"width",i=this.vertical?"width":"height";return t={},t[e]=this.trackSize+"px",t[i]=this[i]?this[i]+"px":"",t.transitionDuration=(this.swiping?0:this.duration)+"ms",t.transform="translate"+(this.vertical?"Y":"X")+"("+this.offset+"px)",t},indicatorStyle:function(){return{backgroundColor:this.indicatorColor}},minOffset:function(){var t=this.$el.getBoundingClientRect();return(this.vertical?t.height:t.width)-this.size*this.count}},mounted:function(){this.bindTouchEvent(this.$refs.track)},methods:{initialize:function(t){if(void 0===t&&(t=this.initialSwipe),clearTimeout(this.timer),this.$el){var e=this.$el.getBoundingClientRect();this.computedWidth=this.width||e.width,this.computedHeight=this.height||e.height}this.swiping=!0,this.active=t,this.offset=this.count>1?-this.size*this.active:0,this.swipes.forEach((function(t){t.offset=0})),this.autoPlay()},resize:function(){this.initialize(this.activeIndicator)},onTouchStart:function(t){this.touchable&&(this.clear(),this.swiping=!0,this.touchStart(t),this.correctPosition())},onTouchMove:function(t){this.touchable&&this.swiping&&(this.touchMove(t),this.isCorrectDirection&&(Object(r["c"])(t,this.stopPropagation),this.move({offset:this.delta})))},onTouchEnd:function(){if(this.touchable&&this.swiping){if(this.delta&&this.isCorrectDirection){var t=this.vertical?this.offsetY:this.offsetX;this.move({pace:t>0?this.delta>0?-1:1:0,emitChange:!0})}this.swiping=!1,this.autoPlay()}},getTargetActive:function(t){var e=this.active,i=this.count;return t?this.loop?Object(c["a"])(e+t,-1,i):Object(c["a"])(e+t,0,i-1):e},getTargetOffset:function(t,e){var i=t*this.size;this.loop||(i=Math.min(i,-this.minOffset));var n=Math.round(e-i);return this.loop||(n=Object(c["a"])(n,this.minOffset,0)),n},move:function(t){var e=t.pace,i=void 0===e?0:e,n=t.offset,r=void 0===n?0:n,s=t.emitChange,o=this.loop,a=this.count,c=this.active,l=this.swipes,u=this.trackSize,h=this.minOffset;if(!(a<=1)){var d=this.getTargetActive(i),f=this.getTargetOffset(d,r);if(o){if(l[0]){var p=f<h;l[0].offset=p?u:0}if(l[a-1]){var v=f>0;l[a-1].offset=v?-u:0}}this.active=d,this.offset=f,s&&d!==c&&this.$emit("change",this.activeIndicator)}},swipeTo:function(t,e){var i=this;void 0===e&&(e={}),this.swiping=!0,this.resetTouchStatus(),this.correctPosition(),Object(a["b"])((function(){var n;n=i.loop&&t===i.count?0===i.active?0:t:t%i.count,i.move({pace:n-i.active,emitChange:!0}),e.immediate?Object(a["b"])((function(){i.swiping=!1})):i.swiping=!1}))},correctPosition:function(){this.active<=-1&&this.move({pace:this.count}),this.active>=this.count&&this.move({pace:-this.count})},clear:function(){clearTimeout(this.timer)},autoPlay:function(){var t=this,e=this.autoplay;e&&this.count>1&&(this.clear(),this.timer=setTimeout((function(){t.swiping=!0,t.resetTouchStatus(),t.correctPosition(),Object(a["b"])((function(){t.swiping=!1,t.move({pace:1,emitChange:!0}),t.autoPlay()}))}),e))},genIndicator:function(){var t=this,e=this.$createElement,i=this.count,n=this.activeIndicator,r=this.slots("indicator");return r||(this.showIndicators&&i>1?e("div",{class:h("indicators",{vertical:this.vertical})},[Array.apply(void 0,Array(i)).map((function(i,r){return e("i",{class:h("indicator",{active:r===n}),style:r===n?t.indicatorStyle:null})}))]):void 0)}},render:function(){var t=arguments[0];return t("div",{class:h()},[t("div",{ref:"track",style:this.trackStyle,class:h("track")},[this.slots()]),this.genIndicator()])}})},"2a15":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"sample"},[i("Header",{attrs:{title:t.title,meaushow:t.meaushow,bgcolor:t.bgcolor}}),i("wxShare",{attrs:{url:t.shareUrl}}),i("div",{staticClass:"banner"},[i("van-swipe",{attrs:{autoplay:3e3,"indicator-color":"white",height:t.bannerHeight}},t._l(t.getsamplebanner,(function(t,e){return i("van-swipe-item",{key:e},[i("a",{attrs:{href:t.url,target:t.window_open>0?"_blank":"_self"}},[i("img",{attrs:{src:t.images,alt:""}})])])})),1)],1),t.fxType?i("div",{staticClass:"fx_text"},[1==t.fxType?i("div",{staticClass:"fx_text_one"},[t._v("\n 我已邀请好友\n "),i("span",[t._v(t._s(t.inviteCount))]),t._v(" 人,剩余领取次数\n "),i("span",[t._v(t._s(t.applyCount))]),t._v(" 次\n ")]):2==t.fxType?i("div",{staticClass:"fx_text_two"},[t._v("\n 当前可领取次数为:\n "),i("span",[t._v(t._s(t.applyCount))]),t._v(" 次,分享可额外获得领取机会\n ")]):i("div",{staticClass:"fx_text_three"},[t._v("分享可额外获得领取机会")])]):t._e(),t.aggSample.length?i("div",{staticClass:"nav"},[i("van-tabs",{attrs:{ellipsis:!1,color:t.color,"swipe-threshold":t.swipeThreshold,"title-active-color":t.color,"title-inactive-color":t.defaultcolor},on:{click:t.onClick,change:t.changeTab},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},t._l(t.aggSample,(function(t,e){return i("van-tab",{key:e,attrs:{title:t.smaple_class_name,name:t.smaple_class_id}})})),1),t.layer?i("div",{staticClass:"sample-search"},[i("ul",[t._l(t.aggs.aggs,(function(e,n,r){return[i("li",["brand_id"==n?[i("p",{staticClass:"tit"},[t._v("制造商")])]:"class_id2"==n?[i("p",{staticClass:"tit"},[t._v("分类筛选")])]:"encap"==n?[i("p",{staticClass:"tit"},[t._v("封装规格")])]:"packing"==n?[i("p",{staticClass:"tit"},[t._v("包装筛选")])]:[i("p",{staticClass:"tit"},[t._v(t._s(n))])],i("dl",{staticClass:"boxsiz"},[t._l(e.list,(function(e,r,s){return[i("dd",{staticClass:"boxsiz",class:{curr:e.check},on:{click:function(i){return t.screenFn(e.id,n,e.flag)}}},[t._v(t._s(e.name)+"("+t._s(e.num)+")")])]}))],2)],2)]}))],2),i("div",{staticClass:"button"},[i("a",{staticClass:"cancel",on:{click:function(e){return t.canel()}}},[t._v("重置")]),i("a",{staticClass:"confirm",on:{click:function(e){return t.submit()}}},[t._v("确定")])])]):t._e()],1):t._e(),t.ziYingIndex.data?i("div",{staticClass:"con"},[i("van-list",{attrs:{finished:t.finished,"finished-text":"我是有底线的噢","immediate-check":!1},on:{load:t.onLoad},model:{value:t.loadingYp,callback:function(e){t.loadingYp=e},expression:"loadingYp"}},t._l(t.ziYingIndex.data["data_list"],(function(e,n){return i("div",{staticClass:"con-group clr"},[i("div",{directives:[{name:"lazy-container",rawName:"v-lazy-container",value:{selector:"img"},expression:"{selector:'img'}"}],staticClass:"fl img-box"},[i("img",{staticClass:"lazy img-lazy",attrs:{alt:e.goods_name,"data-src":e.goods_images,"data-error":"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png"}})]),i("div",{staticClass:"fr cb-box van-hairline--bottom"},[i("div",{staticClass:"title"},[t._v(t._s(e.goods_name))]),i("p",[i("span",[t._v("类别:")]),t._v("\n "+t._s(e.class_id1_name)+"\n ")]),i("p",[i("span",[t._v("品牌:")]),t._v("\n "+t._s(e.brand_name)+"\n ")]),i("p",[i("span",[t._v("最大可申请数量:")]),t._v("\n "+t._s(e.sample_max_number)+"\n ")]),i("div",{staticClass:"btn-wrap clr"},[i("div",{directives:[{name:"shareMask",rawName:"v-shareMask"}],staticClass:"btnw fl"},[t._v("送朋友")]),i("div",{staticClass:"btnx fr",on:{click:function(i){return t.yaoqing(e)}}},[t._v("领取样品")])])])])})),0)],1):t._e(),i("div",{directives:[{name:"shareMask",rawName:"v-shareMask"}],staticClass:"fix-btns"},[t._v("送好友样片")]),t.getPop?i("div",{staticClass:"get-user-pop"},[i("div",{staticClass:"mask"}),i("div",{staticClass:"get-user-con"},[i("h3",[t._v("\n 您已将所有样片机会用完\n "),i("i",{staticClass:"icon iconfont icon-guanbi",on:{click:t.getuserf}})]),i("h2",[t._v("邀请好友注册可额外获得一次样品申请机会,多邀多得")]),i("span",{directives:[{name:"shareMask",rawName:"v-shareMask"}]},[t._v("点击邀请")])])]):t._e(),t.getPops?i("div",{staticClass:"get-user-pop"},[i("div",{staticClass:"mask"}),i("div",{staticClass:"get-user-con"},[i("h3",[t._v("\n 该样品需要邀请"+t._s(t.quota)+"个好友才能申请哦\n "),i("i",{staticClass:"icon iconfont icon-guanbi",on:{click:function(e){t.getPops=!1}}})]),i("h2",[t._v("再邀请"+t._s(t.quotaNum)+"个好友即可申请该样片,多邀多得")]),i("span",{directives:[{name:"shareMask",rawName:"v-shareMask"}]},[t._v("点击邀请")])])]):t._e()],1)},r=[],s=(i("5ab2"),i("6d57"),i("e44b"),i("e10e"),i("5f54"),i("9d37")),o=i("0261"),a=i("08c1"),c=i("57af"),l=i("166e"),u=i("365c"),h=i("4260"),d=i("e863"),f=i("1076"),p=i("8846"),v=i("e096"),b=i("26d8"),g=i("37ed"),m=i("e790");function y(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function w(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?y(Object(i),!0).forEach((function(e){Object(s["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):y(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}o["a"].use(d["a"]).use(f["a"]).use(p["a"]).use(v["a"]).use(b["a"]).use(g["a"]);var _={name:"sample",data:function(){return{bannerHeight:173,title:"猎芯网-自营样片",meaushow:!0,bgcolor:"#fafafa",color:"#1080d0",defaultcolor:"#333",swipeThreshold:4,active:0,getPop:!1,getPops:!1,quota:"",finished:!1,quotaNum:"",loadingYp:!1,applyCount:0,inviteCount:0,p:1,classId:"",fxType:0,layer:!1,type:"",sample_class_id:"",brand_id:{},packing:{},encap:{},attrs:{},curr:!1,id:[],shareUrl:window.location.origin+"/v3/samplereg?uid="+h["a"].getCookie("Yo4teW_uid")}},computed:w({},Object(a["c"])({aggSample:function(t){return t.sample.aggSample},ziYingIndex:function(t){return t.sample.ziYingIndex},aggs:function(t){return t.sample.aggs},goodList:function(t){return t.sample.goodList},loading:function(t){return t.sample.loading},getsamplebanner:function(t){return t.sample.getsamplebanner}})),watch:{loading:function(t){this.loadingYp=t},classList:function(t){}},beforeCreate:function(){if(!/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){var t="";for(var e in this.$route.query)t+=e+"="+this.$route.query[e]+"&";switch(t=t.slice(0,-1),window.location.hostname){case"m.liexin.com":window.location.href=t?"http://www.liexin.com/v3/sample?"+t:"http://www.liexin.com/v3/sample";break;default:window.location.href=window.location.origin+(t?"/v3/sample?"+t:"/v3/sample");break}}},created:function(){this.$store.dispatch({type:"aggSample"}),this.$store.dispatch({type:"ziYingIndex",params:{"sample_class_id/eq":1}}),this.$store.dispatch({type:"getsamplebanner"}),this.judgeLogin()},methods:{judgeLogin:function(){getCookie("Yo4teW_uid")?this.getCount():this.fxType=3},getGoodList:function(){this.$store.dispatch({type:"getGoodList",data:{p:this.p,class_id:this.classId}})},onClick:function(t){this.sample_class_id=t,this.layer=!this.layer,this.getAggData(t)},changeTab:function(t){this.layer=!1,this.sample_class_id=t,this.$store.dispatch({type:"ziYingIndex",params:{"sample_class_id/eq":t}})},onLoad:function(){this.p++,this.finished=!0},getuserf:function(){this.getPop=!1},getAggData:function(t){var e=Object.assign({},{reset:!0,"sample_class_id/eq":t});this.id=[],this.brand_id={},this.packing={},this.encap={},this.attrs={},this.$store.dispatch(Object(s["a"])({type:"aggs",params:e},"params",e))},submit:function(){var t=Object.assign({},{"sample_class_id/eq":this.sample_class_id},this.brand_id,this.packing,this.encap,this.attrs,{id:this.id.join(",")});this.$store.dispatch({type:"ziYingIndex",params:t}),this.layer=!1},canel:function(){var t=Object.assign({},{reset:!0,"sample_class_id/eq":this.sample_class_id});this.id=[],this.brand_id={},this.packing={},this.encap={},this.attrs={},this.$store.dispatch(Object(s["a"])({type:"aggs",params:t},"params",t))},screenFn:function(t,e,i){if("brand_id"==e)this.brand_id={"brand_id/condition":t},i&&(this.brand_id={});else if("packing"==e)this.packing={"packing/condition":t},i&&(this.packing={});else if("encap"==e)this.encap={"encap/condition":t},i&&(this.encap={});else{var n={};n[e]=[t],this.attrs={"attrs/nested":JSON.stringify(n)},i&&(this.attrs={})}this.id.push(t);var r=Object.assign({},{"sample_class_id/eq":this.sample_class_id},this.brand_id,this.packing,this.encap,this.attrs,{id:this.id.join(",")});this.$store.dispatch({type:"aggs",params:r})},getCount:function(){var t=this;u["c"].getUserSampleInfo().then((function(e){var i=e.data;0==i.err_code?(t.applyCount=i.data.apply_count||0,t.inviteCount=i.data.invite_count||0,0==t.inviteCount?t.fxType=2:t.fxType=1):"11012"==i.err_code&&(window.location.href="/v3/login?referer="+encodeURIComponent(window.location.href))})).catch((function(t){}))},yaoqing:function(t){var e=h["a"].isLogin();if(1==e){var i=h["a"].aggxde(t.stock);0!=this.applyCount?i?1*this.applyCount<1*t.quota?(this.getPops=!0,this.quota=t.quota,this.quotaNum=1*t.quota-1*this.applyCount):this.$router.push({path:"/sampleapply",query:{id:t.goods_id}}):Object(v["a"])("样品库存不足"):this.getPop=!0}else window.location.href="/v3/login?referer="+encodeURIComponent(window.location.href)}},components:{Header:c["a"],wxShare:l["a"],"van-list":m["a"]}},x=_,S=(i("96b0"),i("5511")),O=Object(S["a"])(x,n,r,!1,null,"4326ec44",null);e["default"]=O.exports},"37ed":function(t,e,i){"use strict";var n=i("9ed5"),r=i("7e35"),s=Object(r["a"])("swipe-item"),o=s[0],a=s[1];e["a"]=o({data:function(){return{offset:0}},beforeCreate:function(){this.$parent.swipes.push(this)},destroyed:function(){this.$parent.swipes.splice(this.$parent.swipes.indexOf(this),1)},render:function(){var t=arguments[0],e=this.$parent,i=e.vertical,r=e.computedWidth,s=e.computedHeight,o={width:r+"px",height:i?s+"px":"100%",transform:"translate"+(i?"Y":"X")+"("+this.offset+"px)"};return t("div",{class:a(),style:o,on:Object(n["a"])({},this.$listeners)},[this.slots()])}})},"4ee9":function(t,e,i){"use strict";(function(t){i.d(e,"c",(function(){return l})),i.d(e,"b",(function(){return u})),i.d(e,"a",(function(){return h}));var n=i("c5f4"),r=Date.now();function s(t){var e=Date.now(),i=Math.max(0,16-(e-r)),n=setTimeout(t,i);return r=e+i,n}var o=n["d"]?t:window,a=o.requestAnimationFrame||s,c=o.cancelAnimationFrame||o.clearTimeout;function l(t){return a.call(o,t)}function u(t){l((function(){l(t)}))}function h(t){c.call(o,t)}}).call(this,i("d1c9"))},5490:function(t,e,i){"use strict";i("9a0e")("link",(function(t){return function(e){return t(this,"a","href",e)}}))},"5a2a":function(t,e,i){
/*!
* Vue-Lazyload.js v1.2.3
* (c) 2018 Awe <hilongjw@gmail.com>
* Released under the MIT License.
*/
!function(e,i){t.exports=i()}(0,(function(){"use strict";function t(t){return t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function e(t){t=t||{};var e=arguments.length,r=0;if(1===e)return t;for(;++r<e;){var s=arguments[r];m(t)&&(t=s),n(s)&&i(t,s)}return t}function i(t,i){for(var s in y(t,i),i)if("__proto__"!==s&&r(i,s)){var o=i[s];n(o)?("undefined"===_(t[s])&&"function"===_(o)&&(t[s]=o),t[s]=e(t[s]||{},o)):t[s]=o}return t}function n(t){return"object"===_(t)||"function"===_(t)}function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function s(t,e){if(t.length){var i=t.indexOf(e);return i>-1?t.splice(i,1):void 0}}function o(t,e){for(var i=!1,n=0,r=t.length;n<r;n++)if(e(t[n])){i=!0;break}return i}function a(t,e){if("IMG"===t.tagName&&t.getAttribute("data-srcset")){var i=t.getAttribute("data-srcset"),n=[],r=t.parentNode,s=r.offsetWidth*e,o=void 0,a=void 0,c=void 0;i=i.trim().split(","),i.map((function(t){t=t.trim(),o=t.lastIndexOf(" "),-1===o?(a=t,c=999998):(a=t.substr(0,o),c=parseInt(t.substr(o+1,t.length-o-2),10)),n.push([c,a])})),n.sort((function(t,e){if(t[0]<e[0])return-1;if(t[0]>e[0])return 1;if(t[0]===e[0]){if(-1!==e[1].indexOf(".webp",e[1].length-5))return 1;if(-1!==t[1].indexOf(".webp",t[1].length-5))return-1}return 0}));for(var l="",u=void 0,h=n.length,d=0;d<h;d++)if(u=n[d],u[0]>=s){l=u[1];break}return l}}function c(t,e){for(var i=void 0,n=0,r=t.length;n<r;n++)if(e(t[n])){i=t[n];break}return i}function l(){if(!S)return!1;var t=!0,e=document;try{var i=e.createElement("object");i.type="image/webp",i.style.visibility="hidden",i.innerHTML="!",e.body.appendChild(i),t=!i.offsetWidth,e.body.removeChild(i)}catch(e){t=!1}return t}function u(t,e){var i=null,n=0;return function(){if(!i){var r=Date.now()-n,s=this,o=arguments,a=function(){n=Date.now(),i=!1,t.apply(s,o)};r>=e?a():i=setTimeout(a,e)}}}function h(t){return null!==t&&"object"===(void 0===t?"undefined":v(t))}function d(t){if(!(t instanceof Object))return[];if(Object.keys)return Object.keys(t);var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);return e}function f(t){for(var e=t.length,i=[],n=0;n<e;n++)i.push(t[n]);return i}function p(){}var v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},g=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),m=function(t){return null==t||"function"!=typeof t&&"object"!==(void 0===t?"undefined":v(t))},y=function(t,e){if(null===t||void 0===t)throw new TypeError("expected first argument to be an object.");if(void 0===e||"undefined"==typeof Symbol)return t;if("function"!=typeof Object.getOwnPropertySymbols)return t;for(var i=Object.prototype.propertyIsEnumerable,n=Object(t),r=arguments.length,s=0;++s<r;)for(var o=Object(arguments[s]),a=Object.getOwnPropertySymbols(o),c=0;c<a.length;c++){var l=a[c];i.call(o,l)&&(n[l]=o[l])}return n},w=Object.prototype.toString,_=function(e){var i=void 0===e?"undefined":v(e);return"undefined"===i?"undefined":null===e?"null":!0===e||!1===e||e instanceof Boolean?"boolean":"string"===i||e instanceof String?"string":"number"===i||e instanceof Number?"number":"function"===i||e instanceof Function?void 0!==e.constructor.name&&"Generator"===e.constructor.name.slice(0,9)?"generatorfunction":"function":void 0!==Array.isArray&&Array.isArray(e)?"array":e instanceof RegExp?"regexp":e instanceof Date?"date":(i=w.call(e),"[object RegExp]"===i?"regexp":"[object Date]"===i?"date":"[object Arguments]"===i?"arguments":"[object Error]"===i?"error":"[object Promise]"===i?"promise":t(e)?"buffer":"[object Set]"===i?"set":"[object WeakSet]"===i?"weakset":"[object Map]"===i?"map":"[object WeakMap]"===i?"weakmap":"[object Symbol]"===i?"symbol":"[object Map Iterator]"===i?"mapiterator":"[object Set Iterator]"===i?"setiterator":"[object String Iterator]"===i?"stringiterator":"[object Array Iterator]"===i?"arrayiterator":"[object Int8Array]"===i?"int8array":"[object Uint8Array]"===i?"uint8array":"[object Uint8ClampedArray]"===i?"uint8clampedarray":"[object Int16Array]"===i?"int16array":"[object Uint16Array]"===i?"uint16array":"[object Int32Array]"===i?"int32array":"[object Uint32Array]"===i?"uint32array":"[object Float32Array]"===i?"float32array":"[object Float64Array]"===i?"float64array":"object")},x=e,S="undefined"!=typeof window,O=S&&"IntersectionObserver"in window,k={event:"event",observer:"observer"},j=function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i}if(S)return"function"==typeof window.CustomEvent?window.CustomEvent:(t.prototype=window.Event.prototype,t)}(),C=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return S&&window.devicePixelRatio||t},I=function(){if(S){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}}(),T={on:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];I?t.addEventListener(e,i,{capture:n,passive:!0}):t.addEventListener(e,i,n)},off:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.removeEventListener(e,i,n)}},L=function(t,e,i){var n=new Image;n.src=t.src,n.onload=function(){e({naturalHeight:n.naturalHeight,naturalWidth:n.naturalWidth,src:n.src})},n.onerror=function(t){i(t)}},$=function(t,e){return"undefined"!=typeof getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.style[e]},A=function(t){return $(t,"overflow")+$(t,"overflow-y")+$(t,"overflow-x")},z=function(t){if(S){if(!(t instanceof HTMLElement))return window;for(var e=t;e&&e!==document.body&&e!==document.documentElement&&e.parentNode;){if(/(scroll|auto)/.test(A(e)))return e;e=e.parentNode}return window}},E={},N=function(){function t(e){var i=e.el,n=e.src,r=e.error,s=e.loading,o=e.bindType,a=e.$parent,c=e.options,l=e.elRenderer;b(this,t),this.el=i,this.src=n,this.error=r,this.loading=s,this.bindType=o,this.attempt=0,this.naturalHeight=0,this.naturalWidth=0,this.options=c,this.rect=null,this.$parent=a,this.elRenderer=l,this.performanceData={init:Date.now(),loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}return g(t,[{key:"initState",value:function(){this.el.dataset.src=this.src,this.state={error:!1,loaded:!1,rendered:!1}}},{key:"record",value:function(t){this.performanceData[t]=Date.now()}},{key:"update",value:function(t){var e=t.src,i=t.loading,n=t.error,r=this.src;this.src=e,this.loading=i,this.error=n,this.filter(),r!==this.src&&(this.attempt=0,this.initState())}},{key:"getRect",value:function(){this.rect=this.el.getBoundingClientRect()}},{key:"checkInView",value:function(){return this.getRect(),this.rect.top<window.innerHeight*this.options.preLoad&&this.rect.bottom>this.options.preLoadTop&&this.rect.left<window.innerWidth*this.options.preLoad&&this.rect.right>0}},{key:"filter",value:function(){var t=this;d(this.options.filter).map((function(e){t.options.filter[e](t,t.options)}))}},{key:"renderLoading",value:function(t){var e=this;L({src:this.loading},(function(i){e.render("loading",!1),t()}),(function(){t(),e.options.silent}))}},{key:"load",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return this.attempt>this.options.attempt-1&&this.state.error?(this.options.silent,void e()):this.state.loaded||E[this.src]?(this.state.loaded=!0,e(),this.render("loaded",!0)):void this.renderLoading((function(){t.attempt++,t.record("loadStart"),L({src:t.src},(function(i){t.naturalHeight=i.naturalHeight,t.naturalWidth=i.naturalWidth,t.state.loaded=!0,t.state.error=!1,t.record("loadEnd"),t.render("loaded",!1),E[t.src]=1,e()}),(function(e){t.options.silent,t.state.error=!0,t.state.loaded=!1,t.render("error",!1)}))}))}},{key:"render",value:function(t,e){this.elRenderer(this,t,e)}},{key:"performance",value:function(){var t="loading",e=0;return this.state.loaded&&(t="loaded",e=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(t="error"),{src:this.src,state:t,time:e}}},{key:"destroy",value:function(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}]),t}(),M="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",P=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],B={rootMargin:"0px",threshold:0},H=function(t){return function(){function e(t){var i=t.preLoad,n=t.error,r=t.throttleWait,s=t.preLoadTop,o=t.dispatchEvent,a=t.loading,c=t.attempt,h=t.silent,d=void 0===h||h,f=t.scale,p=t.listenEvents,v=(t.hasbind,t.filter),g=t.adapter,m=t.observer,y=t.observerOptions;b(this,e),this.version="1.2.3",this.mode=k.event,this.ListenerQueue=[],this.TargetIndex=0,this.TargetQueue=[],this.options={silent:d,dispatchEvent:!!o,throttleWait:r||200,preLoad:i||1.3,preLoadTop:s||0,error:n||M,loading:a||M,attempt:c||3,scale:f||C(f),ListenEvents:p||P,hasbind:!1,supportWebp:l(),filter:v||{},adapter:g||{},observer:!!m,observerOptions:y||B},this._initEvent(),this.lazyLoadHandler=u(this._lazyLoadHandler.bind(this),this.options.throttleWait),this.setMode(this.options.observer?k.observer:k.event)}return g(e,[{key:"config",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};x(this.options,t)}},{key:"performance",value:function(){var t=[];return this.ListenerQueue.map((function(e){t.push(e.performance())})),t}},{key:"addLazyBox",value:function(t){this.ListenerQueue.push(t),S&&(this._addListenerTarget(window),this._observer&&this._observer.observe(t.el),t.$el&&t.$el.parentNode&&this._addListenerTarget(t.$el.parentNode))}},{key:"add",value:function(e,i,n){var r=this;if(o(this.ListenerQueue,(function(t){return t.el===e})))return this.update(e,i),t.nextTick(this.lazyLoadHandler);var s=this._valueFormatter(i.value),c=s.src,l=s.loading,u=s.error;t.nextTick((function(){c=a(e,r.options.scale)||c,r._observer&&r._observer.observe(e);var s=Object.keys(i.modifiers)[0],o=void 0;s&&(o=n.context.$refs[s],o=o?o.$el||o:document.getElementById(s)),o||(o=z(e));var h=new N({bindType:i.arg,$parent:o,el:e,loading:l,error:u,src:c,elRenderer:r._elRenderer.bind(r),options:r.options});r.ListenerQueue.push(h),S&&(r._addListenerTarget(window),r._addListenerTarget(o)),r.lazyLoadHandler(),t.nextTick((function(){return r.lazyLoadHandler()}))}))}},{key:"update",value:function(e,i){var n=this,r=this._valueFormatter(i.value),s=r.src,o=r.loading,l=r.error;s=a(e,this.options.scale)||s;var u=c(this.ListenerQueue,(function(t){return t.el===e}));u&&u.update({src:s,loading:o,error:l}),this._observer&&(this._observer.unobserve(e),this._observer.observe(e)),this.lazyLoadHandler(),t.nextTick((function(){return n.lazyLoadHandler()}))}},{key:"remove",value:function(t){if(t){this._observer&&this._observer.unobserve(t);var e=c(this.ListenerQueue,(function(e){return e.el===t}));e&&(this._removeListenerTarget(e.$parent),this._removeListenerTarget(window),s(this.ListenerQueue,e)&&e.destroy())}}},{key:"removeComponent",value:function(t){t&&(s(this.ListenerQueue,t),this._observer&&this._observer.unobserve(t.el),t.$parent&&t.$el.parentNode&&this._removeListenerTarget(t.$el.parentNode),this._removeListenerTarget(window))}},{key:"setMode",value:function(t){var e=this;O||t!==k.observer||(t=k.event),this.mode=t,t===k.event?(this._observer&&(this.ListenerQueue.forEach((function(t){e._observer.unobserve(t.el)})),this._observer=null),this.TargetQueue.forEach((function(t){e._initListen(t.el,!0)}))):(this.TargetQueue.forEach((function(t){e._initListen(t.el,!1)})),this._initIntersectionObserver())}},{key:"_addListenerTarget",value:function(t){if(t){var e=c(this.TargetQueue,(function(e){return e.el===t}));return e?e.childrenCount++:(e={el:t,id:++this.TargetIndex,childrenCount:1,listened:!0},this.mode===k.event&&this._initListen(e.el,!0),this.TargetQueue.push(e)),this.TargetIndex}}},{key:"_removeListenerTarget",value:function(t){var e=this;this.TargetQueue.forEach((function(i,n){i.el===t&&(--i.childrenCount||(e._initListen(i.el,!1),e.TargetQueue.splice(n,1),i=null))}))}},{key:"_initListen",value:function(t,e){var i=this;this.options.ListenEvents.forEach((function(n){return T[e?"on":"off"](t,n,i.lazyLoadHandler)}))}},{key:"_initEvent",value:function(){var t=this;this.Event={listeners:{loading:[],loaded:[],error:[]}},this.$on=function(e,i){t.Event.listeners[e].push(i)},this.$once=function(e,i){function n(){r.$off(e,n),i.apply(r,arguments)}var r=t;t.$on(e,n)},this.$off=function(e,i){i?s(t.Event.listeners[e],i):t.Event.listeners[e]=[]},this.$emit=function(e,i,n){t.Event.listeners[e].forEach((function(t){return t(i,n)}))}}},{key:"_lazyLoadHandler",value:function(){var t=this;this.ListenerQueue.forEach((function(e,i){e.state.loaded||e.checkInView()&&e.load((function(){!e.error&&e.loaded&&t.ListenerQueue.splice(i,1)}))}))}},{key:"_initIntersectionObserver",value:function(){var t=this;O&&(this._observer=new IntersectionObserver(this._observerHandler.bind(this),this.options.observerOptions),this.ListenerQueue.length&&this.ListenerQueue.forEach((function(e){t._observer.observe(e.el)})))}},{key:"_observerHandler",value:function(t,e){var i=this;t.forEach((function(t){t.isIntersecting&&i.ListenerQueue.forEach((function(e){if(e.el===t.target){if(e.state.loaded)return i._observer.unobserve(e.el);e.load()}}))}))}},{key:"_elRenderer",value:function(t,e,i){if(t.el){var n=t.el,r=t.bindType,s=void 0;switch(e){case"loading":s=t.loading;break;case"error":s=t.error;break;default:s=t.src}if(r?n.style[r]='url("'+s+'")':n.getAttribute("src")!==s&&n.setAttribute("src",s),n.setAttribute("lazy",e),this.$emit(e,t,i),this.options.adapter[e]&&this.options.adapter[e](t,this.options),this.options.dispatchEvent){var o=new j(e,{detail:t});n.dispatchEvent(o)}}}},{key:"_valueFormatter",value:function(t){var e=t,i=this.options.loading,n=this.options.error;return h(t)&&(t.src||this.options.silent,e=t.src,i=t.loading||this.options.loading,n=t.error||this.options.error),{src:e,loading:i,error:n}}}]),e}()},D=function(t){return{props:{tag:{type:String,default:"div"}},render:function(t){return!1===this.show?t(this.tag):t(this.tag,null,this.$slots.default)},data:function(){return{el:null,state:{loaded:!1},rect:{},show:!1}},mounted:function(){this.el=this.$el,t.addLazyBox(this),t.lazyLoadHandler()},beforeDestroy:function(){t.removeComponent(this)},methods:{getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),S&&this.rect.top<window.innerHeight*t.options.preLoad&&this.rect.bottom>0&&this.rect.left<window.innerWidth*t.options.preLoad&&this.rect.right>0},load:function(){this.show=!0,this.state.loaded=!0,this.$emit("show",this)}}}},Q=function(){function t(e){var i=e.lazy;b(this,t),this.lazy=i,i.lazyContainerMananger=this,this._queue=[]}return g(t,[{key:"bind",value:function(t,e,i){var n=new q({el:t,binding:e,vnode:i,lazy:this.lazy});this._queue.push(n)}},{key:"update",value:function(t,e,i){var n=c(this._queue,(function(e){return e.el===t}));n&&n.update({el:t,binding:e,vnode:i})}},{key:"unbind",value:function(t,e,i){var n=c(this._queue,(function(e){return e.el===t}));n&&(n.clear(),s(this._queue,n))}}]),t}(),W={selector:"img"},q=function(){function t(e){var i=e.el,n=e.binding,r=e.vnode,s=e.lazy;b(this,t),this.el=null,this.vnode=r,this.binding=n,this.options={},this.lazy=s,this._queue=[],this.update({el:i,binding:n})}return g(t,[{key:"update",value:function(t){var e=this,i=t.el,n=t.binding;this.el=i,this.options=x({},W,n.value),this.getImgs().forEach((function(t){e.lazy.add(t,x({},e.binding,{value:{src:t.dataset.src,error:t.dataset.error,loading:t.dataset.loading}}),e.vnode)}))}},{key:"getImgs",value:function(){return f(this.el.querySelectorAll(this.options.selector))}},{key:"clear",value:function(){var t=this;this.getImgs().forEach((function(e){return t.lazy.remove(e)})),this.vnode=null,this.binding=null,this.lazy=null}}]),t}();return{install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=H(t),n=new i(e),r=new Q({lazy:n}),s="2"===t.version.split(".")[0];t.prototype.$Lazyload=n,e.lazyComponent&&t.component("lazy-component",D(n)),s?(t.directive("lazy",{bind:n.add.bind(n),update:n.update.bind(n),componentUpdated:n.lazyLoadHandler.bind(n),unbind:n.remove.bind(n)}),t.directive("lazy-container",{bind:r.bind.bind(r),update:r.update.bind(r),unbind:r.unbind.bind(r)})):(t.directive("lazy",{bind:n.lazyLoadHandler.bind(n),update:function(t,e){x(this.vm.$refs,this.vm.$els),n.add(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){n.remove(this.el)}}),t.directive("lazy-container",{update:function(t,e){r.update(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){r.unbind(this.el)}}))}}}))},"7ee0":function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return o}));var n=i("0261");function r(t){var e=[];function i(t){t.forEach((function(t){e.push(t),t.children&&i(t.children)}))}return i(t),e}function s(t,e){var i,s;void 0===e&&(e={});var o=e.indexKey||"index";return n["a"].extend({inject:(i={},i[t]={default:null},i),computed:(s={parent:function(){return this.disableBindRelation?null:this[t]}},s[o]=function(){return this.bindRelation(),this.parent.children.indexOf(this)},s),mounted:function(){this.bindRelation()},beforeDestroy:function(){var t=this;this.parent&&(this.parent.children=this.parent.children.filter((function(e){return e!==t})))},methods:{bindRelation:function(){if(this.parent&&-1===this.parent.children.indexOf(this)){var t=[].concat(this.parent.children,[this]),e=r(this.parent.slots());t.sort((function(t,i){return e.indexOf(t.$vnode)-e.indexOf(i.$vnode)})),this.parent.children=t}}}})}function o(t){return{provide:function(){var e;return e={},e[t]=this,e},data:function(){return{children:[]}}}}},8311:function(t,e,i){"use strict";function n(t,e,i){return Math.min(Math.max(t,e),i)}i.d(e,"a",(function(){return n}))},8719:function(t,e,i){"use strict";i.d(e,"a",(function(){return n})),i.d(e,"i",(function(){return r})),i.d(e,"j",(function(){return s})),i.d(e,"b",(function(){return o})),i.d(e,"f",(function(){return a})),i.d(e,"d",(function(){return c})),i.d(e,"c",(function(){return l})),i.d(e,"e",(function(){return u})),i.d(e,"g",(function(){return h})),i.d(e,"h",(function(){return d}));var n="#1989fa",r="#07c160",s="#fff",o="van-hairline",a=o+"--top",c=o+"--left",l=o+"--bottom",u=o+"--surround",h=o+"--top-bottom",d=o+"-unset--top-bottom"},8846:function(t,e,i){"use strict";var n=i("5a2a"),r=i.n(n);e["a"]=r.a},"96b0":function(t,e,i){"use strict";var n=i("b1de"),r=i.n(n);r.a},"9a0e":function(t,e,i){var n=i("e46b"),r=i("238a"),s=i("f6b4"),o=/"/g,a=function(t,e,i,n){var r=String(s(t)),a="<"+e;return""!==i&&(a+=" "+i+'="'+String(n).replace(o,""")+'"'),a+">"+r+"</"+e+">"};t.exports=function(t,e){var i={};i[t]=e(a),n(n.P+n.F*r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",i)}},b1de:function(t,e,i){},e863:function(t,e,i){"use strict";var n=i("9ed5"),r=i("7e35"),s=i("c5f4"),o=i("7ee0"),a=i("839f"),c=Object(r["a"])("tab"),l=c[0],u=c[1];e["a"]=l({mixins:[Object(o["a"])("vanTabs")],props:Object(n["a"])({},a["c"],{dot:Boolean,info:[Number,String],name:[Number,String],title:String,titleStyle:null,disabled:Boolean}),data:function(){return{inited:!1}},computed:{computedName:function(){return Object(s["b"])(this.name)?this.name:this.index},isActive:function(){return this.computedName===this.parent.currentName}},watch:{"parent.currentIndex":function(){this.inited=this.inited||this.isActive},title:function(){this.parent.setLine()},inited:function(t){var e=this;this.parent.lazyRender&&t&&this.$nextTick((function(){e.parent.$emit("rendered",e.computedName,e.title)}))}},render:function(t){var e=this.slots,i=this.parent,n=this.isActive,r=this.inited||i.scrollspy||!i.lazyRender,s=i.scrollspy||n,o=r?e():t();return i.animated?t("div",{attrs:{role:"tabpanel","aria-hidden":!n},class:u("pane-wrapper",{inactive:!n})},[t("div",{class:u("pane")},[o])]):t("div",{directives:[{name:"show",value:s}],attrs:{role:"tabpanel"},class:u("pane")},[o])}})}}]);