webpackJsonp([25],{Ajl5:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("GgDs"),a=e("4bOR"),c=e("d2gY"),s={data:function(){return{total:0,acount:0,first:[{num:"1",active:!1},{num:"2",active:!1},{num:"3",active:!1},{num:"4",active:!1},{num:"5",active:!1},{num:"6",active:!1},{num:"7",active:!1},{num:"8",active:!1},{num:"9",active:!1},{num:10,active:!1},{num:11,active:!1},{num:12,active:!1},{num:13,active:!1},{num:14,active:!1},{num:"15",active:!1},{num:"16",active:!1},{num:"17",active:!1},{num:18,active:!1},{num:19,active:!1},{num:20,active:!1},{num:21,active:!1},{num:22,active:!1},{num:23,active:!1},{num:24,active:!1},{num:25,active:!1},{num:26,active:!1},{num:27,active:!1},{num:28,active:!1},{num:29,active:!1},{num:30,active:!1}],farr:[]}},components:{Headers:n.a,Acount:a.a},methods:{check:function(t){this.first[t].active=!this.first[t].active,this.farr=this.first.filter(function(t){return t.active}),this.acount=c.a.math(this.farr.length,7),this.total=2*this.acount},clear:function(){this.first=this.first.map(function(t){var i={};return i.num=t.num,i.active=!1,i}),this.total=0,this.acount=0},sure:function(){0!=this.total?(this.$store.dispatch("selectQlc",{pric:this.total,zhu:this.acount,nums:this.farr.map(function(t){return t.num})}),this.$router.push({path:"/confirm",query:{type:"qlc"}})):this.randomSelect()},randomSelect:function(){this.clear();for(var t=c.a.randomFromZero(30,7),i=0;i<t.length;i++)this.first[t[i]].active=!0;this.farr=this.first.filter(function(t){return t.active}),this.acount=c.a.math(this.farr.length,7),this.total=2*this.acount}},mounted:function(){this.$root.eventHub.$on("qlcClear",this.clear),this.$root.eventHub.$on("qlcBuy",this.sure),c.a.shakeAndRandom(this.randomSelect)},destroyed:function(){this.$root.eventHub.$off("qlcClear"),this.$root.eventHub.$off("qlcBuy")}},u={render:function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticStyle:{height:"100%"}},[e("Headers",{attrs:{title:"七乐彩"}}),t._v(" "),e("div",{staticClass:"qlc"},[e("p",{staticClass:"dbc_index"},[t._v("第20180621期 19:40开奖")]),t._v(" "),t._m(0),t._v(" "),e("ul",[t._l(t.first,function(i,n){return e("li",{class:i.active?"check":"",on:{click:function(i){t.check(n)}}},[t._v(t._s(i.num))])}),t._v(" "),e("div",{staticStyle:{clear:"both"}})],2)]),t._v(" "),e("Acount",{attrs:{total:t.total,acount:t.acount}})],1)},staticRenderFns:[function(){var t=this.$createElement,i=this._self._c||t;return i("p",{staticClass:"dbc_tips"},[i("span",{staticClass:"shake",staticStyle:{color:"#999"}},[this._v("摇一摇机选")]),this._v("选择"),i("span",[this._v("7")]),this._v("个号，最高中奖"),i("span",[this._v("500")]),this._v("万元")])}]};var r=e("VU/8")(s,u,!1,function(t){e("ytSY")},null,null);i.default=r.exports},ytSY:function(t,i){}});