text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-game-game"],{3776:function(t,a,e){"use strict";var i=e("7e3d"),n=e.n(i);n.a},6134:function(t,a,e){"use strict";e.r(a);var i=e("840b"),n=e.n(i);for(var o in i)"default"!==o&&function(t){e.d(a,t,(function(){return i[t]}))}(o);a["default"]=n.a},"72f2":function(t,a,e){"use strict";var i,n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{staticClass:"game-container"},[t._l(t.list,(function(a,i){return[0==a.type?e("v-uni-view",{key:i+"_0",staticClass:"item-wrap ad",on:{"!tap":function(e){arguments[0]=e=t.$handleEvent(e),t.openGame(a)}}},[e("v-uni-ad",{attrs:{"unit-id":a.appid}})],1):6==a.type?e("v-uni-view",{staticClass:"item-wrap ad",on:{"!tap":function(e){arguments[0]=e=t.$handleEvent(e),t.openGame(a)}}},[e("v-uni-ad",{attrs:{"unit-id":a.appid,"ad-type":"grid","grid-opacity":"0.8","grid-count":"5","ad-theme":"white"}})],1):7==a.type?e("v-uni-view",{staticClass:"item-wrap ad",on:{"!tap":function(e){arguments[0]=e=t.$handleEvent(e),t.openGame(a)}}},[e("v-uni-ad",{attrs:{"unit-id":a.appid,type:"card"}})],1):8==a.type?e("v-uni-view",{staticClass:"item-wrap ad",on:{"!tap":function(e){arguments[0]=e=t.$handleEvent(e),t.openGame(a)}}},[e("v-uni-ad",{attrs:{"unit-id":a.appid,type:"feeds"}})],1):e("v-uni-view",{staticClass:"item-wrap"},[e("v-uni-image",{staticClass:"img",attrs:{src:a.img_s,mode:"aspectFill"}}),e("v-uni-view",{staticClass:"text"},[e("v-uni-view",{staticClass:"big text-overflow"},[t._v(t._s(a.name))]),e("v-uni-view",{staticClass:"small text-overflow"},[t._v(t._s(a.desc))])],1),e("v-uni-view",{staticClass:"btn flex-set",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openGame(a)}}},[t._v(t._s(a.button))])],1)]})),0==t.list.length?[e("v-uni-view",{staticClass:"empty-data"},[t._v("暂无数据")])]:t._e()],2)},o=[];e.d(a,"b",(function(){return n})),e.d(a,"c",(function(){return o})),e.d(a,"a",(function(){return i}))},"7e3d":function(t,a,e){var i=e("ae6a");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=e("4f06").default;n("8825ed0e",i,!0,{sourceMap:!1,shadowMode:!1})},"840b":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i=15,n={data:function(){return{list:[]}},onLoad:function(t){this.type=t.type||0,this.loadData(),"1"!=this.type&&this.$app.toast("请点击游戏进行试玩"+i+"秒以上","none",3e3)},onShow:function(){var t=this;this.openTime&&"1"!=this.type&&(Date.now()-this.openTime>=1e3*i?this.$app.request(this.$app.API.TASK_SETTLE,{task_id:25},(function(a){var e="";a.data.coin&&(e+="能量+"+a.data.coin),a.data.stone&&(e+="灵丹+"+a.data.stone),a.data.trumpet&&(e+="喇叭+"+a.data.trumpet),t.$app.toast(e);var i=t.$app.getData("gameCheck")||{};i[t.openAdId]=(new Date).toLocaleDateString(),t.$app.setData("gameCheck",i),t.loadData()})):this.$app.toast("未完成游戏试玩，请试玩至少"+i+"秒"),this.openTime=0)},methods:{openGame:function(t){console.log(t),this.openTime=Date.now(),this.openAdId=t.id,0!=t.type&&(t.appid?uni.navigateToMiniProgram({appId:t.appid,path:t.path}):t.img_l&&uni.previewImage({urls:[t.img_l]}))},loadData:function(){var t=this;this.$app.request("page/game",{type:this.type},(function(a){var e=t.$app.getData("gameCheck"),i=[];for(var n in a.data){var o=a.data[n];e[o.id]==(new Date).toLocaleDateString()&&"1"!=t.type||i.push(o)}t.list=i}),"POST",!0)}}};a.default=n},ae6a:function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,".game-container[data-v-10609ea5]{padding:%?20?%}.game-container .item-wrap[data-v-10609ea5]{margin-bottom:%?20?%;padding:%?20?%;background-color:hsla(0,0%,100%,.3);display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.game-container .item-wrap .img[data-v-10609ea5]{width:%?120?%;height:%?120?%;border-radius:50%}.game-container .item-wrap .text[data-v-10609ea5]{width:%?345?%;height:100%;margin:0 %?20?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.game-container .item-wrap .text .big[data-v-10609ea5]{font-size:%?40?%}.game-container .item-wrap .btn[data-v-10609ea5]{background:-webkit-linear-gradient(top,#ff7f94,#ff6684);background:linear-gradient(180deg,#ff7f94,#ff6684);border-radius:%?10?%;color:#fff;text-align:center;width:%?140?%;height:%?70?%}.game-container .empty-data[data-v-10609ea5]{text-align:center;margin:%?10?% auto}.game-container .item-wrap.ad[data-v-10609ea5]{padding:0}",""]),t.exports=a},d3a1:function(t,a,e){"use strict";e.r(a);var i=e("72f2"),n=e("6134");for(var o in n)"default"!==o&&function(t){e.d(a,t,(function(){return n[t]}))}(o);e("3776");var s,r=e("f0c5"),d=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"10609ea5",null,!1,i["a"],s);a["default"]=d.exports}}]);