text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-game-game"],{2559:function(t,e,a){"use strict";a.r(e);var i=a("d650"),n=a.n(i);for(var o in i)"default"!==o&&function(t){a.d(e,t,function(){return i[t]})}(o);e["default"]=n.a},a82c:function(t,e,a){var i=a("f307");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("cbf862d2",i,!0,{sourceMap:!1,shadowMode:!1})},b935:function(t,e,a){"use strict";var i,n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"game-container"},[t._l(t.list,function(e,i){return[0==e.type?a("v-uni-view",{key:i+"_0",staticClass:"item-wrap ad",on:{"!tap":function(a){arguments[0]=a=t.$handleEvent(a),t.openGame(e)}}},[a("v-uni-ad",{attrs:{"unit-id":e.appid}})],1):6==e.type?a("v-uni-view",{staticClass:"item-wrap ad",on:{"!tap":function(a){arguments[0]=a=t.$handleEvent(a),t.openGame(e)}}},[a("v-uni-ad",{attrs:{"unit-id":e.appid,"ad-type":"grid","grid-opacity":"0.8","grid-count":"5","ad-theme":"white"}})],1):7==e.type?a("v-uni-view",{staticClass:"item-wrap ad",on:{"!tap":function(a){arguments[0]=a=t.$handleEvent(a),t.openGame(e)}}},[a("v-uni-ad",{attrs:{"unit-id":e.appid,type:"card"}})],1):8==e.type?a("v-uni-view",{staticClass:"item-wrap ad",on:{"!tap":function(a){arguments[0]=a=t.$handleEvent(a),t.openGame(e)}}},[a("v-uni-ad",{attrs:{"unit-id":e.appid,type:"feeds"}})],1):a("v-uni-view",{staticClass:"item-wrap"},[a("v-uni-image",{staticClass:"img",attrs:{src:e.img_s,mode:"aspectFill"}}),a("v-uni-view",{staticClass:"text"},[a("v-uni-view",{staticClass:"big text-overflow"},[t._v(t._s(e.name))]),a("v-uni-view",{staticClass:"small text-overflow"},[t._v(t._s(e.desc))])],1),a("v-uni-view",{staticClass:"btn flex-set",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.openGame(e)}}},[t._v(t._s(e.button))])],1)]})],2)},o=[];a.d(e,"b",function(){return n}),a.d(e,"c",function(){return o}),a.d(e,"a",function(){return i})},d650:function(t,e,a){"use strict";var i=a("288e");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("0a0d")),o=15,d={data:function(){return{list:[]}},onLoad:function(t){this.type=t.type||0,this.loadData(),"1"!=this.type&&this.$app.toast("请点击游戏进行试玩"+o+"秒以上","none",3e3)},onShow:function(){var t=this;this.openTime&&"1"!=this.type&&((0,n.default)()-this.openTime>=1e3*o?this.$app.request(this.$app.API.TASK_SETTLE,{task_id:25},function(e){var a="";e.data.coin&&(a+="能量+"+e.data.coin),e.data.stone&&(a+="灵丹+"+e.data.stone),e.data.trumpet&&(a+="喇叭+"+e.data.trumpet),t.$app.toast(a);var i=t.$app.getData("gameCheck")||{};i[t.openAdId]=(new Date).toLocaleDateString(),t.$app.setData("gameCheck",i),t.loadData()}):this.$app.toast("未完成游戏试玩，请试玩至少"+o+"秒"),this.openTime=0)},methods:{openGame:function(t){console.log(t),this.openTime=(0,n.default)(),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(e){var a=t.$app.getData("gameCheck"),i=[];for(var n in e.data){var o=e.data[n];a[o.id]==(new Date).toLocaleDateString()&&"1"!=t.type||i.push(o)}t.list=i})}}};e.default=d},e475:function(t,e,a){"use strict";a.r(e);var i=a("b935"),n=a("2559");for(var o in n)"default"!==o&&function(t){a.d(e,t,function(){return n[t]})}(o);a("f70b");var d,s=a("f0c5"),r=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"b165dffe",null,!1,i["a"],d);e["default"]=r.exports},f307:function(t,e,a){e=t.exports=a("2350")(!1),e.push([t.i,".game-container[data-v-b165dffe]{padding:%?20?%}.game-container .item-wrap[data-v-b165dffe]{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-b165dffe]{width:%?120?%;height:%?120?%;border-radius:50%}.game-container .item-wrap .text[data-v-b165dffe]{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-b165dffe]{font-size:%?40?%}.game-container .item-wrap .btn[data-v-b165dffe]{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 .item-wrap.ad[data-v-b165dffe]{padding:0}",""])},f70b:function(t,e,a){"use strict";var i=a("a82c"),n=a.n(i);n.a}}]);