text: (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2c3f"],{"7jfb":function(t,e,a){},"8wxe":function(t,e,a){},DSeF:function(t,e,a){"use strict";var r={name:"Dialog_BOX",components:{},props:{isShow:{type:Boolean,default:!1},title:{type:String,default:"提示"},width:{type:String,default:"50%"}},computed:{},data:function(){return{}},methods:{cancelFn:function(){this.$emit("cancelFn")},confirmFn:function(){this.$emit("confirmFn")}},created:function(){}},n=(a("E9Le"),a("KHd+")),i=Object(n.a)(r,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t.title,visible:t.isShow,"close-on-click-modal":!1,"show-close":!1,width:t.width},on:{"update:visible":function(e){t.isShow=e}}},[t._t("del"),t._v(" "),t._t("sort"),t._v(" "),t._t("upload"),t._v(" "),t._t("transfer"),t._v(" "),t._t("default"),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.cancelFn}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.confirmFn}},[t._v("确 定")])],1)],2)},[],!1,null,"7a6bf8ca",null);i.options.__file="index.vue";e.a=i.exports},E9Le:function(t,e,a){"use strict";var r=a("8wxe");a.n(r).a},HmFl:function(t,e,a){"use strict";var r=a("VUFJ");a.n(r).a},SMMm:function(t,e,a){"use strict";var r=a("Uwh3"),n={props:{currentPage:{type:Number},pageSizes:{type:Array,default:function(){return[]}},pageSize:{type:Number},total:{type:Number}},components:{},data:function(){return{isShow:!1}},watch:{total:function(t){console.log("total",t),0!=t&&(this.isShow=!0)}},methods:{handleSizeChange:function(t){Object(r.c)("currentSize",t);var e=Object(r.b)("currentSize");this.$emit("sizeChange",e)},handleCurrentChange:function(t){Object(r.c)("currentPage",t);var e=Object(r.b)("currentPage");this.$emit("currentChange",e)}},mounted:function(){},updated:function(){console.log("分页组件",this.currentPage),console.log("分页组件",this.pageSize)},created:function(){}},i=(a("jTOu"),a("KHd+")),o=Object(i.a)(n,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"pageBox"},[this.isShow?e("el-pagination",{attrs:{"current-page":this.currentPage,pageSizes:[5,10,50,100,200,300,400,500],"page-size":this.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:this.total},on:{"size-change":this.handleSizeChange,"current-change":this.handleCurrentChange}}):this._e()],1)},[],!1,null,"63f271cb",null);o.options.__file="index.vue";e.a=o.exports},VUFJ:function(t,e,a){},hHG0:function(t,e,a){"use strict";a.r(e);var r=a("+WsE");var n=a("DSeF"),i={name:"happyReadWithdrawList",components:{pageNum:a("SMMm").a,Dialog:n.a},data:function(){return{widthdrawArr:[],keyWord:{code:""},isShow:!1,currentWithdraw:{aliPayAccount:"",code:"",phone:"",status:""},rules:{aliPayAccount:[{required:!0,message:"请输入支付宝账号",trigger:"blur"}],code:[{required:!0,message:"请输入兑奖码",trigger:"blur"}],phone:[{required:!0,pattern:/^1[\d]{10}$/,message:"请输入11位手机号",trigger:"blur"}],status:[{required:!0,message:"请选择审核意见",trigger:"blur"}]},radioStatusArr:[{label:"发放",value:1},{label:"拒绝",value:3}],totalNum:null,pageNo:1,pageSize:10,tabHeader:{"background-color":"#F4F4F4",color:"#666666","border-top":"1px solid #BBBBBB","border-bottom":"1px solid #BBBBBB","font-size":"16px","text-align":"center"}}},filters:{formatExamineDate:function(t){if(t){var e=new Date(t),a=e.getFullYear(),r=e.getMonth()+1;r=r<10?"0"+r:r;var n=e.getDate();n=n<10?"0"+n:n;var i=e.getHours();i=i<10?"0"+i:i;var o=e.getMinutes();o=o<10?"0"+o:o;var l=e.getSeconds();return a+"-"+r+"-"+n+" "+i+":"+o+":"+(l=l<10?"0"+l:l)}}},methods:{audit:function(t,e){this.currentWithdraw={aliPayAccount:"",code:e.code,phone:"",status:""},this.isShow=!0},onSubmit:function(t){var e=this,a=this.currentWithdraw;this.$refs[t].validate(function(n){n&&function(t){return r.a.post("happyRead/examine",t)}(a).then(function(a){if(a.data.code)return a.data.message&&e.$wran(a.data.message);e.$success("操作成功！"),e.close(t),e.init()})})},close:function(t){this.$refs[t].resetFields(),this.currentWithdraw.status=null,this.isShow=!1},sizeChangeFn:function(t){this.pageSize=t,this.init()},currentPageChange:function(t){this.pageNo=t,this.init()},search:function(){this.pageNo=1,this.init()},init:function(){var t=this,e={pageNum:this.pageNo,pageSize:this.pageSize},a=this.keyWord;a.code&&(e.code=a.code),function(t){return r.a.post("happyRead/withdrawals",t)}(e).then(function(e){if(e.data.code)return e.data.message&&t.$wran(e.data.message);if(e.data.data){t.totalNum=e.data.data.total;var a=e.data.data.records;t.widthdrawArr=a&&a.length?a:[]}})}},created:function(){this.init()}},o=(a("HmFl"),a("KHd+")),l=Object(o.a)(i,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-row",[a("el-form",{ref:"searchForm",attrs:{inline:!0,model:t.keyWord}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"兑换码",clearable:""},model:{value:t.keyWord.code,callback:function(e){t.$set(t.keyWord,"code","string"==typeof e?e.trim():e)},expression:"keyWord.code"}})],1),t._v(" "),a("el-form-item",[a("el-button",{on:{click:t.search}},[t._v("筛选")])],1)],1)],1),t._v(" "),a("el-table",{staticClass:"table-box",attrs:{border:"",data:t.widthdrawArr,"header-cell-style":t.tabHeader}},[a("el-table-column",{attrs:{align:"center",prop:"nickName",label:"昵称"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"code",label:"兑换码"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"amount",label:"金额"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"statusDescription",label:"状态"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"申请时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("formatDate")(e.row.createTime)))]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"审核时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("formatExamineDate")(e.row.examineTime)))]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.status?t._e():a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(a){t.audit(e.$index,e.row)}}},[t._v("审核")])]}}])})],1),t._v(" "),a("div",{staticClass:"pageNumBox"},[a("pageNum",{attrs:{currentPage:t.pageNo,pageSize:t.pageSize,total:t.totalNum},on:{sizeChange:t.sizeChangeFn,currentChange:t.currentPageChange}})],1),t._v(" "),a("Dialog",{attrs:{title:"审核",width:"40%","is-show":t.isShow},on:{cancelFn:function(e){t.close("auditForm")},confirmFn:function(e){t.onSubmit("auditForm")}}},[a("el-form",{ref:"auditForm",attrs:{"label-width":"100px",model:t.currentWithdraw,rules:t.rules}},[a("el-form-item",{attrs:{label:"支付宝账号",prop:"aliPayAccount"}},[a("el-input",{attrs:{clearable:""},model:{value:t.currentWithdraw.aliPayAccount,callback:function(e){t.$set(t.currentWithdraw,"aliPayAccount","string"==typeof e?e.trim():e)},expression:"currentWithdraw.aliPayAccount"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"兑换码",prop:"code"}},[a("el-input",{attrs:{disabled:!0},model:{value:t.currentWithdraw.code,callback:function(e){t.$set(t.currentWithdraw,"code","string"==typeof e?e.trim():e)},expression:"currentWithdraw.code"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"手机号",prop:"phone"}},[a("el-input",{attrs:{clearable:""},model:{value:t.currentWithdraw.phone,callback:function(e){t.$set(t.currentWithdraw,"phone","string"==typeof e?e.trim():e)},expression:"currentWithdraw.phone"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"审核意见",prop:"status"}},[a("el-radio-group",{model:{value:t.currentWithdraw.status,callback:function(e){t.$set(t.currentWithdraw,"status",e)},expression:"currentWithdraw.status"}},t._l(t.radioStatusArr,function(e){return a("el-radio",{key:e.value,attrs:{label:e.value}},[t._v(t._s(e.label))])}))],1)],1)],1)],1)},[],!1,null,"bc3d1836",null);l.options.__file="index.vue";e.default=l.exports},jTOu:function(t,e,a){"use strict";var r=a("7jfb");a.n(r).a}}]);