21.f3907eb226244a41d10e.js 5.6 KB

1
  1. webpackJsonp([21],{CeVd:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i=e("woOf"),o=e.n(i),l=e("Dd8w"),s=e.n(l),n=e("YMWp"),r=e("7biW"),p=e("spLH"),c=e("mtWM"),m=e.n(c),g=e("NYxO"),y={components:{Amount:n.a,Search:r.a,Pagination:p.a},data:function(){return{playerPayDialog:{Visible:!1,Title:"平台币发放",ptb_cnt:0,form:{username:"",amount:"",paypass:""}},pageConf:{page:1,row:10},formLabelWidth:"90px"}},created:function(){this.getPtbGiveLog()},watch:{ptbGiveLogData:function(){this.$store.state.TableLoading=!1},"playerPayDialog.ptb_cnt":function(){this.playerPayDialog.ptb_cnt||(this.playerPayDialog.ptb_cnt=0),this.playerPayDialog.ptb_cnt=this.playerPayDialog.ptb_cnt,this.playerPayDialog.form.amount=(this.playerPayDialog.ptb_cnt-0).toFixed(2)}},methods:s()({},Object(g.b)(["getPtbGiveLog","getAgentInfo"]),{search:function(t){this.$store.state.TableLoading=!0;var a=this.delObjnull(o()(this.pageConf,t));this.getPtbGiveLog(a)},sizesChange:function(t){this.pageConf.row=t,this.search()},sizeChange:function(t){this.pageConf.page=t,this.search()},OpenPayDialog:function(t){this.playerPayDialog.form.username=t,this.playerPayDialog.Visible=!0},Send:function(t){var a=this;if(this.playerPayDialog.ptb_cnt<this.$store.state.minPayPtbNum)return this.playerPayDialog.ptb_cnt=this.$store.state.minPayPtbNum,this.showNotify("支付失败","失败原因:平台币数量必须大于等于"+this.$store.state.minPayPtbNum+"个。","error"),!1;m.a.post("/pay/ptb/charge_for_mem",t).then(function(t){200===t.data.code?(a.getAgentInfo(),a.showNotify("成功",t.data.msg),a.playerPayDialog.Visible=!1):a.showNotify("失败",t.data.msg,"error")})},emptyDialog:function(){for(var t in this.playerPayDialog.Visible=!1,this.playerPayDialog.subAgentName="",this.playerPayDialog.form)this.playerPayDialog.form[t]=""}}),computed:s()({},Object(g.c)(["ptbGiveLogData"]))},_={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"panel"},[e("amount",{attrs:{pay:1,withdraw:1}}),t._v(" "),e("div",{staticClass:"mt_25"},[e("search",{attrs:{exportPage:"ptb/give/log",user:"",memSend:"",date:"",exportbtn:""},on:{getFormData:t.search}}),t._v(" "),e("table",{directives:[{name:"loading",rawName:"v-loading",value:t.$store.state.TableLoading,expression:"$store.state.TableLoading"}],staticClass:"table"},[t._m(0),t._v(" "),t.ptbGiveLogData?e("tbody",[t.ptbGiveLogData.sum?e("tr",{staticClass:"TableSumRow"},[e("td",[t._v("汇总")]),t._v(" "),e("td",[t._v("--")]),t._v(" "),e("td",[t._v(t._s(t.ptbGiveLogData.sum.sum_ptb_cnt))]),t._v(" "),e("td",[t._v(t._s(t.ptbGiveLogData.sum.sum_cost_ptb_cnt))]),t._v(" "),e("td",[t._v("--")])]):t._e(),t._v(" "),t._l(t.ptbGiveLogData.list,function(a,i){return e("tr",{key:"earnings_item"+i},[e("td",[t._v(t._s(t.timetrans(a.create_time)))]),t._v(" "),e("td",[t._v(t._s(a.username))]),t._v(" "),e("td",[t._v(t._s(a.ptb_cnt))]),t._v(" "),e("td",[t._v(t._s(a.cost_ptb_cnt))]),t._v(" "),e("td",[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){t.OpenPayDialog(a.username)}}},[t._v("发放")])],1)])})],2):t._e()]),t._v(" "),t.ptbGiveLogData&&t.ptbGiveLogData.count<=0?e("div",{staticClass:"unData"},[t._v("\n "+t._s(t.$store.state.unDataText)+"\n ")]):t._e(),t._v(" "),t.ptbGiveLogData?e("Pagination",{attrs:{count:t.ptbGiveLogData.count},on:{sizesChange:t.sizesChange,sizeChange:t.sizeChange}}):t._e()],1),t._v(" "),e("el-dialog",{staticClass:"payInfoDialog",attrs:{"before-close":t.emptyDialog,title:"平台币发放",visible:t.playerPayDialog.Visible},on:{"update:visible":function(a){t.$set(t.playerPayDialog,"Visible",a)}}},[e("el-form",{attrs:{model:t.playerPayDialog.form}},[e("el-form-item",{attrs:{label:"充值账号","label-width":t.formLabelWidth}},[e("el-input",{attrs:{"auto-complete":"off",disabled:"",placeholder:"请输入玩家账号",size:"small"},model:{value:t.playerPayDialog.form.username,callback:function(a){t.$set(t.playerPayDialog.form,"username",a)},expression:"playerPayDialog.form.username"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"平台币数量","label-width":t.formLabelWidth}},[e("el-input",{attrs:{"auto-complete":"off",type:"number"},model:{value:t.playerPayDialog.ptb_cnt,callback:function(a){t.$set(t.playerPayDialog,"ptb_cnt",a)},expression:"playerPayDialog.ptb_cnt"}},[e("template",{slot:"append"},[t._v("平台币")])],2)],1),t._v(" "),e("el-form-item",{attrs:{label:"支付金额","label-width":t.formLabelWidth}},[e("el-input",{attrs:{value:(t.playerPayDialog.form.amount-0).toFixed(2),disabled:"",size:"small"}},[e("template",{slot:"append"},[t._v("元")])],2)],1),t._v(" "),e("el-form-item",{attrs:{label:"支付密码","label-width":t.formLabelWidth}},[e("el-input",{attrs:{type:"password",placeholder:"请输入支付密码",size:"small"},model:{value:t.playerPayDialog.form.paypass,callback:function(a){t.$set(t.playerPayDialog.form,"paypass",a)},expression:"playerPayDialog.form.paypass"}})],1)],1),t._v(" "),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(a){t.emptyDialog()}}},[t._v("取 消")]),t._v(" "),e("el-button",{attrs:{type:"primary"},on:{click:function(a){t.Send(t.playerPayDialog.form)}}},[t._v("立即支付")])],1)],1)],1)},staticRenderFns:[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("thead",[e("tr",[e("th",[t._v("时间")]),t._v(" "),e("th",[t._v("玩家账号")]),t._v(" "),e("th",[t._v("发放数量")]),t._v(" "),e("th",[t._v("实际支付金额")]),t._v(" "),e("th",[t._v("操作")])])])}]};var b=e("VU/8")(y,_,!1,function(t){e("NpWD")},null,null);a.default=b.exports},NpWD:function(t,a){}});