chunk-7aad7221.c0e0e3c2.js 18.3 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7aad7221"],{"09f4":function(e,t,i){"use strict";i.d(t,"a",(function(){return l})),Math.easeInOutQuad=function(e,t,i,n){return e/=n/2,e<1?i/2*e*e+t:(e--,-i/2*(e*(e-2)-1)+t)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function a(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(e,t,i){var l=o(),s=e-l,r=20,d=0;t="undefined"===typeof t?500:t;var c=function e(){d+=r;var o=Math.easeInOutQuad(d,l,s,t);a(o),d<t?n(e):i&&"function"===typeof i&&i()};c()}},6724:function(e,t,i){"use strict";i("8d41");var n="@@wavesContext";function a(e,t){function i(i){var n=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},n),o=a.ele;if(o){o.style.position="relative",o.style.overflow="hidden";var l=o.getBoundingClientRect(),s=o.querySelector(".waves-ripple");switch(s?s.className="waves-ripple":(s=document.createElement("span"),s.className="waves-ripple",s.style.height=s.style.width=Math.max(l.width,l.height)+"px",o.appendChild(s)),a.type){case"center":s.style.top=l.height/2-s.offsetHeight/2+"px",s.style.left=l.width/2-s.offsetWidth/2+"px";break;default:s.style.top=(i.pageY-l.top-s.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",s.style.left=(i.pageX-l.left-s.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return s.style.backgroundColor=a.color,s.className="waves-ripple z-active",!1}}return e[n]?e[n].removeHandle=i:e[n]={removeHandle:i},i}var o={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[n].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[n].removeHandle,!1),e[n]=null,delete e[n]}},l=function(e){e.directive("waves",o)};window.Vue&&(window.waves=o,Vue.use(l)),o.install=l;t["a"]=o},"8d41":function(e,t,i){},"8e27":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"filter-container"},[i("el-form",{ref:"searchForm",staticClass:"demo-form-inline",attrs:{inline:!0,model:e.listQuery}},[i("el-form-item",{attrs:{label:"用户ID"}},[i("el-input",{attrs:{placeholder:"用户ID"},model:{value:e.listQuery.id,callback:function(t){e.$set(e.listQuery,"id",t)},expression:"listQuery.id"}})],1),i("el-form-item",{attrs:{label:"手机号"}},[i("el-input",{attrs:{placeholder:"手机号"},model:{value:e.listQuery.mobile,callback:function(t){e.$set(e.listQuery,"mobile",t)},expression:"listQuery.mobile"}})],1),i("el-form-item",{attrs:{label:"渠道ID"}},[i("el-input",{attrs:{placeholder:"渠道ID"},model:{value:e.listQuery.channel,callback:function(t){e.$set(e.listQuery,"channel",t)},expression:"listQuery.channel"}})],1),i("el-form-item",{attrs:{label:"系统选择"}},[i("el-select",{staticStyle:{width:"100px"},attrs:{clearable:"",placeholder:"全部"},model:{value:e.listQuery.system,callback:function(t){e.$set(e.listQuery,"system",t)},expression:"listQuery.system"}},[i("el-option",{attrs:{label:"安卓",value:"1"}}),i("el-option",{attrs:{label:"IOS",value:"2"}})],1)],1),i("el-form-item",{attrs:{label:"机器码"}},[i("el-input",{attrs:{placeholder:"机器码"},model:{value:e.listQuery.machine_code,callback:function(t){e.$set(e.listQuery,"machine_code",t)},expression:"listQuery.machine_code"}})],1),i("el-form-item",{attrs:{label:"注册IP"}},[i("el-input",{attrs:{placeholder:"注册IP"},model:{value:e.listQuery.regip,callback:function(t){e.$set(e.listQuery,"regip",t)},expression:"listQuery.regip"}})],1),i("el-form-item",{attrs:{label:"注册时间"}},[i("el-date-picker",{staticClass:"filter-item",attrs:{type:"datetimerange","value-format":"yyyy-MM-dd HH:mm:ss","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",placeholder:"注册时间"},model:{value:e.listQuery.time_range,callback:function(t){e.$set(e.listQuery,"time_range",t)},expression:"listQuery.time_range"}})],1),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleFilter}},[e._v(" 搜索 ")])],1),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:function(t){return e.resetForm()}}},[e._v(" 重置 ")])],1),i("el-form-item",[i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"danger",icon:"el-icon-delete"},on:{click:e.handleClearCache}},[e._v(" 清除缓存 ")])],1)],1)],1),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":""},on:{"sort-change":e.sortChange}},[i("el-table-column",{attrs:{label:"ID",prop:"id",sortable:"custom",align:"center",width:"80","class-name":e.getSortClass()},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[i("span",[e._v(e._s(n.id))])]}}])}),i("el-table-column",{attrs:{label:"用户名称",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[i("span",[e._v(e._s(n.nick_name))])]}}])}),i("el-table-column",{attrs:{label:"渠道ID",prop:"channel",sortable:"custom",width:"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[i("span",[e._v(e._s(n.channel))])]}}])}),i("el-table-column",{attrs:{label:"注册IP",width:"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[i("span",[e._v(e._s(n.regip))])]}}])}),i("el-table-column",{attrs:{label:"设备号",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[i("span",[e._v(e._s(n.machine_code))])]}}])}),i("el-table-column",{attrs:{label:"手机号",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[i("span",[e._v(e._s(n.mobile))]),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleBindMobile(n)}}},[e._v(" 修改 ")])]}}])}),i("el-table-column",{attrs:{label:"系统",width:"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[1===n.system?i("span",{staticStyle:{color:"green"}},[e._v("安卓")]):i("span",{staticStyle:{color:"dodgerblue"}},[e._v("IOS")])]}}])}),i("el-table-column",{attrs:{label:"金币",prop:"coin",sortable:"custom",width:"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[i("span",[e._v(e._s(n.coin))])]}}])}),i("el-table-column",{attrs:{label:"VIP到期时间",prop:"vip_end",sortable:"custom",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[i("span",[e._v(e._s(n.vip_end))])]}}])}),i("el-table-column",{attrs:{label:"最后登录",prop:"last_login_time",sortable:"custom",width:"180px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[i("span",[e._v(e._s(n.last_login_time))])]}}])}),i("el-table-column",{attrs:{label:"注册时间",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[i("span",[e._v(e._s(n.create_time))])]}}])}),i("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[i("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExpress(n)}}},[e._v(" 快充 ")]),i("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExpressPassword(n)}}},[e._v(" 重置密码 ")]),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleUpdate(n)}}},[e._v(" 编辑 ")]),i("el-button",{attrs:{size:"mini",type:"warning"},on:{click:function(t){return e.handleCoin(n)}}},[e._v(" 充值 ")])]}}])})],1),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.limit,"page-sizes":[10,20,30,40,50,100,200]},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"limit",t)},pagination:e.getList}}),i("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[i("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:e.rules,model:e.newVideo,"label-position":"left","label-width":"70px"}},[i("el-form-item",{attrs:{label:"用户",prop:"nick_name"}},[i("el-input",{attrs:{disabled:!0},model:{value:e.newVideo.nick_name,callback:function(t){e.$set(e.newVideo,"nick_name",t)},expression:"newVideo.nick_name"}})],1),"update"===e.dialogStatus?i("el-form-item",{attrs:{label:"会员到期",prop:"vip_end"}},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"请选择一个日期"},model:{value:e.newVideo.vip_end,callback:function(t){e.$set(e.newVideo,"vip_end",t)},expression:"newVideo.vip_end"}})],1):e._e(),"update"===e.dialogStatus?i("el-form-item",{attrs:{label:"重设密码",prop:"password"}},[i("el-input",{attrs:{placeholder:"留空为不修改"},model:{value:e.newVideo.password,callback:function(t){e.$set(e.newVideo,"password",t)},expression:"newVideo.password"}})],1):e._e(),"coin"===e.dialogStatus?i("el-form-item",{attrs:{label:"充值类型",prop:"coin_type"}},[i("el-select",{staticClass:"filter-item",attrs:{placeholder:"选择一个类型"},model:{value:e.newVideo.coin_type,callback:function(t){e.$set(e.newVideo,"coin_type",t)},expression:"newVideo.coin_type"}},[i("el-option",{attrs:{label:"充值",value:"1"}}),i("el-option",{attrs:{label:"补单",value:"2"}})],1)],1):e._e(),"coin"===e.dialogStatus?i("el-form-item",{attrs:{label:"充值金币",prop:"add_coin"}},[i("el-input",{model:{value:e.newVideo.add_coin,callback:function(t){e.$set(e.newVideo,"add_coin",t)},expression:"newVideo.add_coin"}})],1):e._e(),"express"===e.dialogStatus?i("el-form-item",{attrs:{label:"快捷充值",prop:"express"}},[i("el-select",{staticClass:"filter-item",attrs:{placeholder:"选择一个VIP"},on:{change:function(t){return e.$forceUpdate()}},model:{value:e.newVideo.express,callback:function(t){e.$set(e.newVideo,"express",t)},expression:"newVideo.express"}},e._l(e.vipList,(function(e){return i("el-option",{key:e.id,attrs:{label:e.content,value:e.id}})})),1)],1):e._e(),"bindMobile"===e.dialogStatus?i("el-form-item",{attrs:{label:"绑定手机",prop:"mobile"}},[i("el-input",{model:{value:e.newVideo.mobile,callback:function(t){e.$set(e.newVideo,"mobile",t)},expression:"newVideo.mobile"}})],1):e._e()],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{loading:e.handleLoading},on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(" 取消 ")]),"coin"===e.dialogStatus?i("el-button",{attrs:{type:"primary",loading:e.handleLoading},on:{click:function(t){return e.updateCoinData()}}},[e._v(" 提交 ")]):e._e(),"update"===e.dialogStatus?i("el-button",{attrs:{type:"primary",loading:e.handleLoading},on:{click:function(t){return e.updateData()}}},[e._v(" 提交 ")]):e._e(),"express"===e.dialogStatus?i("el-button",{attrs:{type:"primary",loading:e.handleLoading},on:{click:function(t){return e.expressData()}}},[e._v(" 提交 ")]):e._e(),"bindMobile"===e.dialogStatus?i("el-button",{attrs:{type:"primary",loading:e.handleLoading},on:{click:function(t){return e.bindMobileData()}}},[e._v(" 提交 ")]):e._e()],1)],1)],1)},a=[],o=(i("c740"),i("13d5"),i("a434"),i("ff87")),l=i("6724"),s=i("333d"),r=["下线","上线"],d=["普通","推荐"],c=["普通","首页"],u=[{key:"1",display_name:"电影"},{key:"2",display_name:"电视剧"},{key:"3",display_name:"短视频"}],p=u.reduce((function(e,t){return e[t.key]=t.display_name,e}),{}),f={name:"PlayerList",components:{Pagination:s["a"]},directives:{waves:l["a"]},filters:{typeFilter:function(e){return p[e]},isCheckFilter:function(e){return r[e]},betterShowFilter:function(e){return d[e]},homeShowFilter:function(e){return c[e]}},data:function(){return{tableKey:0,list:null,total:0,listLoading:!0,listQuery:{page:1,limit:20,id:void 0,channel:void 0,time_range:void 0,sort:"id desc"},typesOptions:[],viewTypeOptions:u,showPlays:!1,showLikes:!1,showDislikes:!1,showTariffVip:!1,showTariffUsr:!1,showCreateTime:!1,showReleaseTime:!1,openSort:!1,newVideo:{},dialogFormVisible:!1,dialogStatus:"",vipList:[],textMap:{update:"编辑",create:"创建",coin:"金币充值"},handleLoading:!1,rules:{name:[{required:!0,message:"请输入片名",trigger:"blur"}],coin_type:[{required:!0,message:"请选择类型",trigger:"blur"}]}}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(o["g"])(this.listQuery).then((function(t){e.total=t.data.total,e.list=t.data.list,e.listLoading=!1})),Object(o["h"])().then((function(t){e.payList=t.data.pay_list,e.vipList=t.data.vip_list}))},takeViewType:function(e){return p[e]},handleFilter:function(){this.listQuery.page=1,this.getList()},resetForm:function(){this.listQuery={page:1,limit:20,id:void 0,channel:void 0,time_range:void 0,sort:"id desc"}},sortChange:function(e){var t=e.prop,i=e.order;this.listQuery.sort="ascending"===i?t:t+" desc",this.handleFilter()},handleExpress:function(e){var t=this;this.newVideo=Object.assign({},e),this.newVideo.vip_end||(this.newVideo.vip_end=new Date),this.newVideo.password="",this.newVideo.express="",this.dialogStatus="express",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate()}))},handleExpressPassword:function(e){var t=this;this.newVideo=Object.assign({},e),this.handleLoading=!0,Object(o["d"])({id:this.newVideo.id}).then((function(){t.handleLoading=!1;var e=t.list.findIndex((function(e){return e.id===t.newVideo.id}));t.list.splice(e,1,t.newVideo),t.dialogFormVisible=!1,t.$notify({title:"Success",message:"操作成功",type:"success",duration:2e3})})).catch((function(){t.handleLoading=!1}))},handleUpdate:function(e){var t=this;this.newVideo=Object.assign({},e),this.newVideo.vip_end||(this.newVideo.vip_end=new Date),this.newVideo.password="",this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate()}))},handleCoin:function(e){var t=this;this.newVideo=Object.assign({},e),this.dialogStatus="coin",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate()}))},updateData:function(){var e=this;this.handleLoading=!0,this.$refs["dataForm"].validate((function(t){if(t){var i=Object.assign({},e.newVideo);Object(o["j"])(i).then((function(){e.handleLoading=!1;var t=e.list.findIndex((function(t){return t.id===e.newVideo.id}));e.list.splice(t,1,e.newVideo),e.dialogFormVisible=!1,e.$notify({title:"Success",message:"操作成功",type:"success",duration:2e3})})).catch((function(){e.handleLoading=!1}))}}))},expressData:function(){var e=this;this.handleLoading=!0,this.$refs["dataForm"].validate((function(t){if(t){var i=Object.assign({},e.newVideo);Object(o["c"])(i).then((function(){e.handleLoading=!1;var t=e.list.findIndex((function(t){return t.id===e.newVideo.id}));e.list.splice(t,1,e.newVideo),e.dialogFormVisible=!1,e.$notify({title:"Success",message:"操作成功",type:"success",duration:2e3}).catch((function(){e.handleLoading=!1}))}))}}))},updateCoinData:function(){var e=this;this.handleLoading=!0,this.$refs["dataForm"].validate((function(t){if(t){var i=Object.assign({},e.newVideo);Object(o["k"])(i).then((function(){e.handleLoading=!1,e.getList(),e.dialogFormVisible=!1,e.$notify({title:"Success",message:"操作成功",type:"success",duration:2e3})})).catch((function(){e.handleLoading=!1}))}}))},getSortClass:function(){var e=this.listQuery.sort;return"id"===e?"ascending":"descending"},handleClearCache:function(){var e=this;Object(o["b"])().then((function(){e.$notify({title:"Success",message:"清除成功",type:"success",duration:2e3})}))},handleBindMobile:function(e){var t=this;this.newVideo=Object.assign({},e),this.newVideo.vip_end||(this.newVideo.vip_end=new Date),this.newVideo.password="",this.newVideo.express="",this.dialogStatus="bindMobile",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate()}))},bindMobileData:function(){var e=this;this.handleLoading=!0,this.$refs["dataForm"].validate((function(t){if(t){var i=Object.assign({},e.newVideo);Object(o["a"])(i).then((function(t){e.handleLoading=!1;var i=e.list.findIndex((function(t){return t.id===e.newVideo.id}));e.list.splice(i,1,e.newVideo),e.dialogFormVisible=!1,e.$notify({title:"Success",message:t.message,type:"success",duration:2e3})})).catch((function(){e.handleLoading=!1}))}}))}}},m=f,h=i("2877"),b=Object(h["a"])(m,n,a,!1,null,null,null);t["default"]=b.exports},ff87:function(e,t,i){"use strict";i.d(t,"g",(function(){return a})),i.d(t,"j",(function(){return o})),i.d(t,"c",(function(){return l})),i.d(t,"k",(function(){return s})),i.d(t,"a",(function(){return r})),i.d(t,"e",(function(){return d})),i.d(t,"f",(function(){return c})),i.d(t,"i",(function(){return u})),i.d(t,"h",(function(){return p})),i.d(t,"b",(function(){return f})),i.d(t,"d",(function(){return m}));var n=i("b775");function a(e){return Object(n["a"])({url:"/api/admin/player/player_list",method:"get",params:e})}function o(e){return Object(n["a"])({url:"/api/admin/player/update_player",method:"post",data:e})}function l(e){return Object(n["a"])({url:"/api/admin/player/express_player",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/api/admin/player/update_player_coin",method:"post",data:e})}function r(e){return Object(n["a"])({url:"/api/admin/player/bindMobile",method:"post",data:e})}function d(e){return Object(n["a"])({url:"/api/admin/player/player_history_list",method:"get",params:e})}function c(e){return Object(n["a"])({url:"/api/admin/player/player_inpour_list",method:"get",params:e})}function u(e){return Object(n["a"])({url:"/api/admin/player/supple",method:"post",data:e})}function p(e){return Object(n["a"])({url:"/api/admin/player/player_pay_list",method:"get",params:e})}function f(e){return Object(n["a"])({url:"/api/admin/cache/clearPlayerCache",method:"get",params:e})}function m(e){return Object(n["a"])({url:"/api/admin/player/express_player_password",method:"post",data:e})}}}]);