(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-68fb707c"],{"0b33":function(t,i,e){"use strict";var n=e("c31d"),s=e("d282"),r=e("9884"),a=e("48f4"),o=Object(s["a"])("tab"),c=o[0],l=o[1];i["a"]=c({mixins:[Object(r["a"])("vanTabs")],props:Object(n["a"])({},a["b"],{name:[Number,String],title:String,disabled:Boolean}),data:function(){return{inited:!1}},computed:{computedName:function(){return 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()}},mounted:function(){this.slots("title")&&this.parent.renderTitle(this.$refs.title,this.index)},render:function(t){var i=this.slots,e=this.isActive,n=this.inited||!this.parent.lazyRender,s=[n?i():t()];return i("title")&&s.push(t("div",{ref:"title"},[i("title")])),this.parent.animated?t("div",{attrs:{role:"tabpanel","aria-hidden":!e},class:l("pane-wrapper",{inactive:!e})},[t("div",{class:l("pane")},[s])]):t("div",{directives:[{name:"show",value:e}],attrs:{role:"tabpanel"},class:l("pane")},[s])}})},"2b67":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("div",{ref:"container",staticClass:"flash-sale "},[n("div",{staticClass:"saleBox"},[t.timeList[t.active]?n("div",{staticClass:"header"},[n("img",{attrs:{src:t.timeList[t.active].slide}})]):t._e()]),t._m(0),n("Tabs",{ref:"timeList",staticClass:"time-tabs",attrs:{"line-height":"0",animated:"","title-inactive-color":"2"},model:{value:t.active,callback:function(i){t.active=i},expression:"active"}},t._l(t.timeList,function(i,s){return n("Tab",{key:s},[n("div",{staticClass:"timeItem acea-row row-column-around",attrs:{slot:"title"},on:{click:function(i){return t.setTime(s)}},slot:"title"},[n("span",{staticClass:"time"},[t._v(t._s(i.time))]),n("span",{staticClass:"state"},[t._v(t._s(i.state))])]),n("div",{staticClass:"list"},t._l(t.seckillList,function(e,s){return n("div",{key:s,staticClass:"item acea-row row-between-wrapper",on:{click:function(n){return t.goDetail(e.id,i.status)}}},[n("div",{staticClass:"pictrue"},[n("img",{attrs:{src:e.image}})]),n("div",{staticClass:"text acea-row row-column-around"},[n("div",{staticClass:"line1",domProps:{textContent:t._s(e.title)}}),n("div",{staticClass:"money"},[n("span",{staticClass:"num font-color-red",domProps:{textContent:t._s("¥"+e.price)}}),n("span",{staticClass:"ot_price",domProps:{textContent:t._s("¥"+e.ot_price)}})]),n("div",{staticClass:"stock"},[t._v("\n 限量"),n("span",{domProps:{textContent:t._s(e.quota_show+"件")}})]),n("div",{staticClass:"progress cart-color"},[n("div",{staticClass:"bg-red",style:{width:t.loading?e.percent+"%":""}}),n("div",{staticClass:"piece font-color-red",domProps:{textContent:t._s("已抢"+e.percent+"%")}})])]),1===i.status&&e.quota>0?n("div",{staticClass:"grab bg-color-red"},[t._v("\n 马上抢\n ")]):t._e(),1===i.status&&e.quota<=0?n("div",{staticClass:"grab bg-color-hui"},[t._v("\n 已售罄\n ")]):t._e(),2===i.status?n("div",{staticClass:"grab bg-color-red"},[t._v("\n 未开始\n ")]):t._e(),0===i.status?n("div",{staticClass:"grab bg-color-hui"},[t._v("\n 已结束\n ")]):t._e()])}),0),0===t.seckillList.length&&1!==t.page?n("div",{staticClass:"noCommodity"},[n("div",{staticClass:"noPictrue"},[n("img",{staticClass:"image",attrs:{src:e("0c36")}})])]):t._e(),t.seckillList.length>0?n("Loading",{attrs:{loaded:t.status,loading:t.loadingList}}):t._e()],1)}),1),n("div",{attrs:{id:"title0"}}),n("div",{attrs:{id:"title1"}}),n("div",{attrs:{id:"title2"}})],1)},s=[function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("div",{staticClass:"logoPic"},[n("img",{attrs:{src:e("634a")}})])}],r=(e("bda7"),e("5e46")),a=(e("da3c"),e("0b33")),o=e("ca41"),c=e("3a5e"),l={name:"GoodsSeckill",components:{Tab:a["a"],Tabs:r["a"],Loading:c["a"]},props:{},data:function(){return{timeList:[],sticky:!1,loading:!1,datatime:0,active:0,seckillList:[],status:!1,loadingList:!1,page:1,limit:5}},mounted:function(){this.mountedStart()},methods:{mountedStart:function(){var t=this,i=this;Object(o["r"])().then(function(t){i.$set(i,"timeList",t.data.seckillTime),i.$set(i,"active",t.data.seckillTimeIndex),i.datatime=i.timeList[i.active].stop,i.loadingList=!1,i.getSeckillList(),i.$nextTick(function(){i.sticky=!0,i.$refs.timeList.scrollIntoView()})}),this.$scroll(this.$refs.container,function(){!t.loadingList&&t.getSeckillList()}),setTimeout(function(){i.loading=!0},500)},setTime:function(t){var i=this;i.active=t,i.datatime=i.timeList[i.active].stop,i.seckillList=[],i.page=1,i.status=!1,i.loadingList=!1,i.getSeckillList()},getSeckillList:function(){var t=this;if(!t.loadingList&&!t.status){t.loadingList=!0;var i=t.timeList[t.active].id;Object(o["t"])(i,{page:t.page,limit:t.limit}).then(function(i){t.status=i.data.length=y&&(i>0&&0!==e?this.$emit("change",e-1):i<0&&e!==this.count-1&&this.$emit("change",e+1))},genChildren:function(){var t=this.$createElement;return this.animated?t("div",{class:k("track"),style:this.style},[this.slots()]):this.slots()}},render:function(){var t=arguments[0];return t("div",{class:k("content",{animated:this.animated}),on:Object(m["a"])({},this.listeners)},[this.genChildren()])}}),L=Object(n["a"])("sticky"),T=L[0],$=L[1],I=T({mixins:[Object(d["a"])(function(t){this.scroller||(this.scroller=Object(p["b"])(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 i=this.container,e=this.offsetTop,n=Object(p["c"])(window),s=Object(p["a"])(this.$el),r=function(){t.$emit("scroll",{scrollTop:n,isFixed:t.fixed})};if(i){var a=s+i.offsetHeight;if(n+e+this.height>a){var o=this.height+n-a;return os?(this.fixed=!0,this.transform=0):this.fixed=!1,r()}},render:function(){var t=arguments[0],i=this.fixed,e={height:i?this.height+"px":null};return t("div",{style:e},[t("div",{class:$({fixed:i}),style:this.style},[this.slots()])])}}),S=Object(n["a"])("tabs"),O=S[0],_=S[1];i["a"]=O({mixins:[Object(u["b"])("vanTabs"),Object(d["a"])(function(t){t(window,"resize",this.setLine,!0)})],model:{prop:"active"},props:{color:String,sticky:Boolean,animated:Boolean,swipeable: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}},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&&Object(p["d"])(Math.ceil(Object(p["a"])(this.$el)-this.offsetTop))}},mounted:function(){this.onShow()},activated:function(){this.onShow(),this.setLine()},methods:{onShow:function(){var t=this;this.$nextTick(function(){t.inited=!0,t.scrollIntoView(!0)})},setLine:function(){var t=this,i=this.inited;this.$nextTick(function(){var e=t.$refs.titles;if(e&&e[t.currentIndex]&&"line"===t.type&&!l(t.$el)){var n=e[t.currentIndex].$el,a=t.lineWidth,o=t.lineHeight,c=Object(s["b"])(a)?a:n.offsetWidth/2,u=n.offsetLeft+n.offsetWidth/2,d={width:Object(r["a"])(c),backgroundColor:t.color,transform:"translateX("+u+"px) translateX(-50%)"};if(i&&(d.transitionDuration=t.duration+"s"),Object(s["b"])(o)){var h=Object(r["a"])(o);d.height=h,d.borderRadius=h}t.lineStyle=d}})},setCurrentIndexByName:function(t){var i=this.children.filter(function(i){return i.computedName===t}),e=(this.children[0]||{}).index||0;this.setCurrentIndex(i.length?i[0].index:e)},setCurrentIndex:function(t){if(t=this.findAvailableTab(t),Object(s["b"])(t)&&t!==this.currentIndex){var i=null!==this.currentIndex;this.currentIndex=t,this.$emit("input",this.currentName),i&&this.$emit("change",this.currentName,this.children[t].title)}},findAvailableTab:function(t){var i=t=0&&t