(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-64457b66"],{"285b":function(t,i,s){"use strict";s("e13e")},4325:function(t,i,s){t.exports=s.p+"img/myNoBtn.9ccda9c7.png"},7284:function(t,i,s){t.exports=s.p+"img/medium.a0442ed8.png"},7760:function(t,i,s){t.exports=s.p+"img/right.22b7dee5.png"},"7ba6":function(t,i,s){t.exports=s.p+"img/small.720d8ab3.png"},"7d85":function(t,i,s){"use strict";s.r(i);var e=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"runLotteryPage"},[s("div",{staticClass:"lottoMain"},["ios"==t.device?s("div",{style:"height:"+t.top_height+"px"}):t._e(),s("section",{staticClass:"letoBody"},[s("div",{staticClass:"bannerBox flexc",style:"background-image:url("+t.bannerBg+")"},[t._l(t.prizeList,(function(i,e){return s("div",{key:e,staticClass:"flexc"},[s("img",{staticClass:"prizeImg",attrs:{src:i.source}}),s("span",[t._v(t._s(i.name))])])})),s("img",{staticClass:"rowLeft",attrs:{src:t.rowLeft},on:{click:t.switchPrize}}),s("img",{staticClass:"rowRight",attrs:{src:t.rowRight},on:{click:t.switchPrize}})],2),s("div",{staticClass:"bodymiddle flexc"},[s("span",{staticClass:"contFont"},[t._v(t._s(t.ym)+"期乐透抽奖")]),s("span",{staticClass:"contFont"},[t._v("距离开奖还有")]),s("div",{staticClass:"countdownBox flexr",staticStyle:{"justify-content":"space-between"}},[s("span",{staticClass:"timebg"},[t._v(t._s(t.hour))]),s("span",[t._v("时")]),s("span",{staticClass:"timebg"},[t._v(t._s(t.minute))]),s("span",[t._v("分")]),s("span",{staticClass:"timebg"},[t._v(t._s(t.second))]),s("span",[t._v("秒")])]),s("img",{staticClass:"shadowbg",attrs:{src:t.shadowbg}})]),s("div",{staticClass:"bodyTai flexc"},[s("div",{staticClass:"codeCont"},[s("div",{staticClass:"conTit"},[t._v("您本期的抽奖号码")]),t.myList?s("ul",{staticClass:"codeList",staticStyle:{"margin-top":"20px"}},t._l(t.myList,(function(i,e){return s("li",{key:e,staticClass:"codeItem"},[t._v(t._s(i.no))])})),0):s("ul",{staticClass:"codeList",staticStyle:{"margin-top":"20px"}},[s("li",{staticClass:"codeItem"},[t._v("暂无抽奖码")])])]),s("div",{staticClass:"myNoBtn"},[s("img",{staticClass:"myNoImg",attrs:{src:t.myNoBtn},on:{click:t.myLotteryCode}})])])])]),s("div",{directives:[{name:"show",rawName:"v-show",value:t.msgInfo.isShow,expression:"msgInfo.isShow"}],staticClass:"msgMode"},[s("div",{staticClass:"window",staticStyle:{"min-height":"270px"}},[s("div",{staticClass:"winTop"},[s("img",{attrs:{src:t.msgInfo.topBg}})]),s("div",{staticClass:"winContent",staticStyle:{"font-size":"15px","text-align":"center","text-indent":"0px","margin-bottom":"20px","margin-top":"20px"}},[t._v(t._s(t.msgInfo.content))]),s("div",{staticClass:"btnDiv"},[s("button",{on:{click:function(i){return t.swicthMsg()}}},[t._v("确定")])])])])])},n=[],o=(s("4917"),s("a481"),s("76a0")),a=s("5f87"),c=s("285b"),r=s("7ba6"),l=s.n(r),g=s("7284"),m=s.n(g),f=s("c155"),d=s.n(f),p={name:"letto",components:{},data:function(){return{rowLeft:s("fbfd"),rowRight:s("7760"),shadowbg:s("ffaf"),myNoBtn:s("4325"),accessToken:this.$route.params.accessToken,device:"android",bannerBg:l.a,lotteryTime:"2020-08-19 15:30",nowTime:"",leftTime:12e6,ym:"",prizeList:[],myList:[],msgInfo:{content:"加载失败",isShow:!1,goBack:!1,topBg:s("a9b3")},top_height:0,hour:2,minute:59,second:59}},mounted:function(){this.countTime(),this.appSource(),this.top_height=localStorage.getItem("top_height")},created:function(){var t=this,i=this.$route.params.accessToken;if(!i||void 0==i)return t.msgInfo.content="token丢失,无权访问",t.msgInfo.goBack=!0,t.swicthMsg();Object(a["c"])({access_token:i},1),t.initInfo("small","wait")},methods:{initInfo:function(t,i){var s=this;o["Indicator"].open({text:"加载中...",spinnerType:"fading-circle"});var e=this;return new Promise((function(n,a){Object(c["initLetto"])(t,i).then((function(i){if(o["Indicator"].close(),i.resp_code)return e.msgInfo.content=i.resp_msg,e.msgInfo.goBack=!0,e.swicthMsg();e.ym=i.datas.ym,e.lotteryTime=i.datas.lotteryTime,e.nowTime=i.datas.nowTime,e.prizeList=i.datas.prizeList,e.myList=i.datas.myList,"small"==t?e.bannerBg=l.a:"medium"==t?e.bannerBg=m.a:"big"==t&&(e.bannerBg=d.a);var n=e.lotteryTime.replace(/-/g,"/"),a=new Date(n).getTime(),c=s.nowTime.replace(/-/g,"/"),r=new Date(c).getTime();e.leftTime=a-r})).catch((function(t){return o["Indicator"].close(),t.resp_msg?(console.log(t.resp_msg),e.msgInfo.content=t.resp_msg,e.msgInfo.goBack=!0,e.swicthMsg()):(console.log(t),e.msgInfo.content=t.resp_msg,e.msgInfo.goBack=!0,e.swicthMsg())}))}))},switchPrize:function(){this.bannerBg==l.a&&this.initInfo("medium","wait"),this.bannerBg==m.a&&this.initInfo("big","wait"),this.bannerBg==d.a&&this.initInfo("small","wait")},appSource:function(){var t=navigator.userAgent,i=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);i?(this.device="ios",this.$bridge.registerhandler("backApp",(function(t,i){i(t)})),this.$bridge.registerhandler("toMyLottery",(function(t,i){i(t)}))):this.device="andriod"},myLotteryCode:function(){"ios"==this.device?window.webkit.messageHandlers.toMyLottery.postMessage("ios"):this.toMyLottery()},toMyLottery:function(){if("ios"==this.device)this.$bridge.callhandler("toMyLottery",{},(function(t){console.log(t)}));else{var t=JSON.stringify({});window.WebViewJavascriptBridge.callHandler("toMyLottery",t,(function(t){console.log("APP返回的响应结果",t)}))}console.log(this.device)},swicthMsg:function(){var t=this;return t.msgInfo.isShow?t.msgInfo.goBack?t.back():void(t.msgInfo.isShow=!1):t.msgInfo.isShow=!0},countTime:function(){this.leftTime=this.leftTime-1e3,(0==this.leftTime||this.leftTime<0)&&window.location.replace("https://api.vmeshou.com/activity/lottery/prize/"+Object(a["b"])());var t=Math.floor(this.leftTime/1e3/60/60%24),i=Math.floor(this.leftTime/1e3/60%60),s=Math.floor(this.leftTime/1e3%60);t||(t=0),i||(i=0),s||(s=0),this.hour=t,this.minute=i,this.second=s,setTimeout(this.countTime,1e3)},back:function(){if("ios"==this.device)window.webkit.messageHandlers.closePage.postMessage("ios");else{var t=JSON.stringify({});window.WebViewJavascriptBridge.callHandler("closePage",t,(function(t){console.log("APP返回的响应结果",t)}))}}}},h=p,u=(s("d477"),s("2877")),w=Object(u["a"])(h,e,n,!1,null,null,null);i["default"]=w.exports},a9b3:function(t,i,s){t.exports=s.p+"img/win_bg.c84ec232.png"},c155:function(t,i,s){t.exports=s.p+"img/big.3936d5c7.png"},d477:function(t,i,s){"use strict";var e=s("f758"),n=s.n(e);n.a},f758:function(t,i,s){},fbfd:function(t,i,s){t.exports=s.p+"img/left.ff911570.png"},ffaf:function(t,i,s){t.exports=s.p+"img/shadowbg.6988eb1a.png"}}]);