webpackJsonp([28],{Hhaj:function(t,e,a){(t.exports=a("FZ+f")(!1)).push([t.i,"\n.w-100[data-v-0388b56d]{\n  width: 100px;\n}\n.w-150[data-v-0388b56d]{\n  width: 150px;\n}\n.w-185[data-v-0388b56d]{\n  width: 185px;\n}\n",""])},ZeiO:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={name:"index",data:function(){return{currents:{currentPage:1,currentTotal:0},ps:{pageNo:1,pageSize:15},buyStatus:"",buyTime:"",tableData:[],options:[{value:"",label:"全部"},{value:-1,label:"购买失败"},{value:0,label:"购买中"},{value:1,label:"购买成功"}]}},mounted:function(){this.getInfo()},methods:{getInfo:function(t){var e=this;t&&(this.ps.pageNo=1);var a="",n="";this.buyTime?(a=this.buyTime[1]+" 23:59:59",n=this.buyTime[0]+" 00:00:00"):(a="",n="");var l={buyStatus:this.buyStatus,end:a,start:n,pageNo:this.ps.pageNo,pageSize:this.ps.pageSize};this.$axios("post","/movie/getGoldByMovieList",l).then(function(t){"0"===t.code&&(e.tableData=t.data.dataList,e.currents.currentTotal=t.data.countSize)})},handleCurrentChange:function(t){this.ps.pageNo=t,this.getInfo()},refresh:function(){this.buyStatus="",this.buyTime="",this.getInfo()},fromDate:function(t){var e=new Date(t);return e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate()+" "+e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()}}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"info-table"},[a("div",{staticClass:"fx align-items justify-between mt-15 mb-15 ml-10 mr-10"},[a("div",{staticClass:"fs-18 fw-600"},[t._v("购买电影记录")]),t._v(" "),a("div",{staticClass:"fx align-items"},[a("div",{staticClass:"ml-10"},[a("el-date-picker",{attrs:{size:"small",type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},model:{value:t.buyTime,callback:function(e){t.buyTime=e},expression:"buyTime"}})],1),t._v(" "),a("div",{staticClass:"ml-10"},[a("el-select",{staticClass:"w-150",attrs:{placeholder:"请选择",size:"small"},model:{value:t.buyStatus,callback:function(e){t.buyStatus=e},expression:"buyStatus"}},t._l(t.options,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1)],1),t._v(" "),a("div",{staticClass:"ml-10"},[a("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-plus"},on:{click:function(e){return t.getInfo(1)}}},[t._v("查询")])],1),t._v(" "),a("div",{staticClass:"ml-10"},[a("el-button",{attrs:{type:"primary",size:"small",plain:"",icon:"el-icon-refresh-right"},on:{click:t.refresh}},[t._v("刷新")])],1)])]),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,"header-cell-class-name":"bg-f5"}},[a("el-table-column",{attrs:{fixed:"",type:"index",label:"序号",align:"center",width:"200"}}),t._v(" "),a("el-table-column",{attrs:{prop:"userName",label:"用户名",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"movieTitle",label:"电影名称",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"buyGold",label:"购买金币",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"购买状态",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[-1===e.row.buyStatus?a("span",[t._v("购买失败")]):t._e(),t._v(" "),0===e.row.buyStatus?a("span",[t._v("购买中")]):t._e(),t._v(" "),1===e.row.buyStatus?a("span",[t._v("购买成功")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"购买时间",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.buyTime))])]}}])})],1),t._v(" "),a("el-pagination",{staticClass:"pagination",attrs:{background:"","hide-on-single-page":!0,"current-page":t.currents.currentPage,"page-sizes":[15,20,30],"page-size":15,layout:"total, prev, pager, next, jumper",total:t.currents.currentTotal},on:{"current-change":t.handleCurrentChange}})],1)},staticRenderFns:[]};var s=a("VU/8")(n,l,!1,function(t){a("zIwU")},"data-v-0388b56d",null);e.default=s.exports},zIwU:function(t,e,a){var n=a("Hhaj");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("b4cb6a46",n,!0,{})}});