chunk-8b351036.c54490af.js 5.3 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8b351036"],{"2e22":function(t,a,e){"use strict";e.d(a,"b",(function(){return c})),e.d(a,"c",(function(){return i})),e.d(a,"j",(function(){return r})),e.d(a,"a",(function(){return s})),e.d(a,"h",(function(){return o})),e.d(a,"k",(function(){return u})),e.d(a,"i",(function(){return l})),e.d(a,"f",(function(){return d})),e.d(a,"e",(function(){return p})),e.d(a,"d",(function(){return g})),e.d(a,"g",(function(){return f}));var n=e("751a");function c(t){return Object(n["a"])({url:"/api/memberaccount/info",data:t,forceLogin:!0})}function i(t){return Object(n["a"])({url:"/api/memberaccount/page",data:t,forceLogin:!0})}function r(t){return Object(n["a"])({url:"/api/memberwithdraw/info",data:t})}function s(t){return Object(n["a"])({url:"/api/memberbankaccount/defaultinfo",data:t})}function o(t){return Object(n["a"])({url:"/api/memberwithdraw/apply",data:t})}function u(t){return Object(n["a"])({url:"/api/memberwithdraw/page",data:t})}function l(t){return Object(n["a"])({url:"/api/memberwithdraw/detail",data:t})}function d(t){return Object(n["a"])({url:"/memberrecharge/api/memberrecharge/page",data:t})}function p(t){return Object(n["a"])({url:"/memberrecharge/api/memberrecharge/info",data:t})}function g(t){return Object(n["a"])({url:"/memberrecharge/api/ordercreate/create",data:t})}function f(t){return Object(n["a"])({url:"/memberrecharge/api/order/page",data:t})}},b0909:function(t,a,e){},d96b:function(t,a,e){"use strict";e("b0909")},ddf1:function(t,a,e){"use strict";e.r(a);var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"box"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.yes,expression:"yes"}],staticClass:"null-page"}),e("div",{staticClass:"my-account"},[e("div",{staticClass:"account-wrap"},[e("div",{staticClass:"account-left"},[e("div",{staticClass:"title"},[t._v("我的可用余额(元)")]),e("div",{staticClass:"money"},[e("div",{staticClass:"balance-money"},[e("b",[t._v(t._s(t.integer))]),t._v(" . "),e("span",[t._v(t._s(t.decimal))])]),e("div",{staticClass:"tx",on:{click:t.applyWithdrawal}},[t._v("提现")]),e("div",{staticClass:"cz",on:{click:t.rechargeList}},[t._v("充值")])])]),e("div",{staticClass:"account-right"},[e("div",{staticClass:"item-wrap"},[e("div",{staticClass:"item"},[e("div",{staticClass:"iconfont iconziyuan"}),e("div",{staticClass:"title"},[t._v("可提现余额:")]),e("b",{staticClass:"num"},[t._v(t._s(t.balanceInfo.balance_money))])]),e("div",{staticClass:"item"},[e("div",{staticClass:"iconfont iconziyuan"}),e("div",{staticClass:"title"},[t._v("不可提现余额:")]),e("b",{staticClass:"num"},[t._v(t._s(t.balanceInfo.balance))])])])])]),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"detail"},[e("el-table",{attrs:{data:t.accountList,border:""}},[e("el-table-column",{attrs:{prop:"type_name",label:"来源",width:"150"}}),e("el-table-column",{attrs:{prop:"account_data",label:"金额",width:"150"}}),e("el-table-column",{staticClass:"detail-name",attrs:{prop:"remark",label:"详细说明"}}),e("el-table-column",{attrs:{prop:"time",label:"时间",width:"180"}})],1)],1),e("div",{staticClass:"pager"},[e("el-pagination",{attrs:{background:"","pager-count":5,total:t.total,"prev-text":"上一页","next-text":"下一页","current-page":t.account.page,"page-size":t.account.page_size,"hide-on-single-page":""},on:{"update:currentPage":function(a){return t.$set(t.account,"page",a)},"update:current-page":function(a){return t.$set(t.account,"page",a)},"update:pageSize":function(a){return t.$set(t.account,"page_size",a)},"update:page-size":function(a){return t.$set(t.account,"page_size",a)},"size-change":t.handlePageSizeChange,"current-change":t.handleCurrentPageChange}})],1)])])},c=[],i=(e("5cff"),e("3ced"),e("6a22"),e("5f89"),e("dcd4"),e("2e22")),r={name:"account",components:{},data:function(){return{account:{page:1,page_size:10},balanceInfo:{balance:0,balance_money:0},accountList:[],total:0,integer:0,decimal:0,loading:!0,yes:!0}},created:function(){this.getAccount(),this.getAccountList()},mounted:function(){var t=this;setTimeout((function(){t.yes=!1}),300)},methods:{getAccount:function(){var t=this;Object(i["b"])({account_type:"balance,balance_money"}).then((function(a){if(0==a.code&&a.data){t.balanceInfo=a.data;var e=(parseFloat(t.balanceInfo.balance)+parseFloat(t.balanceInfo.balance_money)).toFixed(2),n=e.split(".");t.integer=n[0],t.decimal=n[1]}t.loading=!1})).catch((function(a){t.loading=!1,t.$message.error(a.message)}))},getAccountList:function(){var t=this;Object(i["c"])({page_size:this.account.page_size,page:this.account.page,account_type:"balance"}).then((function(a){0==a.code&&a.data&&(t.accountList=a.data.list,t.total=a.data.count,t.accountList.forEach((function(a){a.time=t.$util.timeStampTurnTime(a.create_time)})))})).catch((function(a){t.$message.error(a.message)}))},handlePageSizeChange:function(t){this.account.page_size=t,this.getAccountList()},handleCurrentPageChange:function(t){this.account.page=t,this.getAccountList()},applyWithdrawal:function(){this.$router.push("/member/apply_withdrawal")},rechargeList:function(){this.$router.push("/member/recharge_list")}}},s=r,o=(e("d96b"),e("5d22")),u=Object(o["a"])(s,n,c,!1,null,"89f4a24c",null);a["default"]=u.exports}}]);
  2. //# sourceMappingURL=chunk-8b351036.c54490af.js.map