require("../../common/manifest.js")
require("../../common/vendor.js")
global.webpackJsonpMpvue([14],{"6DQ6":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("5nAL"),i=a.n(n),o=a("KHHf");i.a.config.errorHandler=function(t){console&&console.error&&console.error(t)},new i.a(o.a).$mount()},GAii:function(t,e,a){"use strict";var n,i=a("RVip"),o=a("0xDb");e.a={name:"game_record_container",components:{},data:function(){return{show:!1,items:[],total:0,dates:[{id:1,name:"全部"},{id:2,name:"今日",start_time:Math.round(new Date(new Date((new Date).toLocaleDateString()).getTime()).getTime()/1e3),end_time:Math.round(new Date(new Date((new Date).toLocaleDateString()).getTime()+864e5-1).getTime()/1e3)},{id:3,name:"昨日",start_time:Math.round(new Date(new Date((new Date).toLocaleDateString()).getTime()-864e5).getTime()/1e3),end_time:Math.round(new Date(new Date((new Date).toLocaleDateString()).getTime()-1e3).getTime()/1e3)},{id:4,name:"近七日",start_time:Math.round(new Date(new Date((new Date).toLocaleDateString()).getTime()-6048e5).getTime()/1e3),end_time:Math.round(new Date(new Date((new Date).toLocaleDateString()).getTime()+864e5-1).getTime()/1e3)}],active_date:0}},methods:{change_date:function(t){var e=n.dates[t.mp.detail.index];n.get_game_list(e)},to_report:function(t,e){var a=1;0===parseInt(e)&&(a=2),global.mpvue.navigateTo({url:"/pages/report/main?id="+t+"&mode="+a})},get_game_list:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(i.c)(t).then(function(t){var e=t.data;n.items=e.data.list,n.items.forEach(function(t,e){t.play_time?t.play_time=Object(o.d)(t.play_time):t.splice(e,1)}),n.total=Object(o.d)(e.data.total)},function(t){console.log(t)})}},mounted:function(){n.get_game_list()},created:function(){(n=this).show=!0}}},KHHf:function(t,e,a){"use strict";var n=a("GAii"),i=a("ot4u");var o=function(t){a("L3Yg")},r=a("ybqe")(n.a,i.a,o,"data-v-451ad0e2",null);e.a=r.exports},L3Yg:function(t,e){},ot4u:function(t,e,a){"use strict";var n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"game_record_container"}},[a("div",{staticClass:"padding"},[a("div",{staticClass:"header text-center"},[a("view",{staticClass:"padding"},[a("text",{staticClass:"title"},[t._v("\n          "+t._s(t.total)+"\n        ")])]),t._v(" "),t._m(0)]),t._v(" "),a("div",{staticClass:"line_container"},[a("div",[a("text",{staticClass:"title"},[t._v("设备使用记录")]),t._v(" "),a("van-divider",{attrs:{customStyle:"border:.1px solid;margin:0px;",mpcomid:"0"}})],1)]),t._v(" "),a("van-cell-group",{attrs:{mpcomid:"2"}},[a("div",{staticClass:"record_list"},t._l(t.items,function(e,n){return a("van-cell",{key:n,attrs:{"is-link":"",title:e.name,value:e.play_time,eventid:"0_"+n,mpcomid:"1_"+n},on:{click:function(a){t.to_report(e.game_record_id,e.device_id)}}})}))])],1),t._v(" "),a("div",{staticStyle:{height:"2rem"}}),t._v(" "),a("view",{staticClass:"cu-bar tabbar foot_nonShadow"},[t.show?a("van-tabs",{staticClass:"filter_date",attrs:{active:t.active_date,"line-width":"58px",eventid:"1",mpcomid:"4"},on:{change:t.change_date}},t._l(t.dates,function(t,e){return a("van-tab",{key:e,attrs:{title:t.name,mpcomid:"3_"+e}})})):t._e()],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("view",[e("text",{staticClass:"sub-title"},[this._v("\n          今日累计时长\n        ")])])}]};e.a=n}},["6DQ6"]);