46.e5c8725dbad3841c9a18.js 4.3 KB

12
  1. webpackJsonp([46],{DJht:function(t,s){},wbem:function(t,s,a){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i=a("wQWh"),e=a("3KG0"),l={name:"walletCurrencyDetails",filters:{formatDate:function(t){t*=1e3;var s=new Date(t);return Object(e.a)(s,"yyyy-MM-dd hh:mm")}},data:function(){return{AmountChangeType:i.b,walletType:{},walletCurrencyDetailsInfo:{},tab:0,tabList:["全部","支出账单","收入账单"],depositOrWithdrawal:"all",depositOrWithdrawalColorWithdrawal:{color:"#f6465b"},depositOrWithdrawalColorDeposit:{color:"#1FAE87"},loading:!0,finished:!1,offset:15,page:1,page_page:10,billList:[]}},mounted:function(){this.walletType=this.$route.query,window.scrollTo(0,0),this.getlist()},methods:{tabClick:function(t){this.tab=t,this.depositOrWithdrawal=["all","withdrawal","deposit"][this.tab],this.page=1,this.billList=[],this.getlist()},getlist:function(){var t=this;this.$nextTick(function(){var s={wallet_type:t.walletType.wallet_type,deposit_or_withdrawal:t.depositOrWithdrawal,currency:t.walletType.currency,page_page:t.page_page,page:t.page};t.$api.wallet.getBillFlow(s).then(function(s){t.walletCurrencyDetailsInfo=s.data.currency,s.data.list.length>0&&(t.billList=t.billList.concat(s.data.list)),t.loading=!1,t.finished=!s.data.has_more})})},onRefresh:function(){var t=this;this.page=this.page+1,this.finished=!1,setTimeout(function(){t.getlist()},300)},onLoad:function(){var t=this;this.finished||(this.page=this.page+1,setTimeout(function(){t.getlist()},300))}},watch:{}},n={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"content"},[a("div",{staticClass:"property"},[a("div",{staticClass:"property_title"},[a("div",{staticClass:"property_title_div"},[a("div",{staticClass:"property_title_left"},[a("img",{staticClass:"property_title_div_img",attrs:{src:t.walletCurrencyDetailsInfo.logo,alt:""}}),t._v(" "),a("div",{staticClass:"property_title_div_title"},[t._v("\n "+t._s(t.$t(t.walletCurrencyDetailsInfo.name))+"\n ")])]),t._v(" "),a("div",{staticClass:"property_title_right"},[a("div",{staticClass:"property_title_div_amount"},[t._v("\n "+t._s(t.walletCurrencyDetailsInfo.balance)+"\n ")])])])]),t._v(" "),a("div",{staticClass:"property_amount"},[a("div",{staticClass:"property_amount_div"},[a("p",{staticClass:"property_amount_div_t"},[t._v(t._s(t.$t("可用")))]),t._v(" "),a("p",{staticClass:"property_amount_div_p"},[t._v(t._s(t.walletCurrencyDetailsInfo.available_balance))])]),t._v(" "),a("p",{staticClass:"property_amount_s"}),t._v(" "),a("div",{staticClass:"property_amount_div"},[a("p",{staticClass:"property_amount_div_t"},[t._v(t._s(t.$t("冻结")))]),t._v(" "),a("p",{staticClass:"property_amount_div_p"},[t._v(t._s(t.walletCurrencyDetailsInfo.frozen_amount))])])])]),t._v(" "),a("div",{staticClass:"history"},[a("div",{staticClass:"history_tab"},t._l(t.tabList,function(s,i){return a("span",{key:i,class:t.tab==i?"history_tab_sT":"history_tab_sF",on:{click:function(s){t.tabClick(i)}}},[t._v("\n "+t._s(t.$t(s))+"\n ")])})),t._v(" "),a("van-list",{attrs:{finished:t.finished,"loading-text":t.$t("加载中"),"finished-text":t.$t("没有更多了"),offset:t.offset},on:{load:t.onLoad},model:{value:t.loading,callback:function(s){t.loading=s},expression:"loading"}},[a("div",{staticClass:"history_type"},[a("span",{staticClass:"history_bz"},[t._v(t._s(t.$t("币种")))]),t._v(" "),a("span",{staticClass:"history_je"},[t._v(t._s(t.$t("数量")))]),t._v(" "),a("span",{staticClass:"history_ye"},[t._v(t._s(t.$t("类别")))]),t._v(" "),a("span",{staticClass:"history_zt"},[t._v(t._s(t.$t("余额")))]),t._v(" "),a("span",{staticClass:"history_sj"},[t._v(t._s(t.$t("时间")))])]),t._v(" "),t._l(t.billList,function(s,i){return a("div",{key:i,staticClass:"history_info"},[a("span",{staticClass:"history_bz"},[t._v(t._s(s.currency))]),t._v(" "),a("span",{staticClass:"history_je"},[t._v(t._s(s.fee))]),t._v(" "),a("span",{staticClass:"history_ye"},[t._v(t._s(t.$t(t.AmountChangeType[s.change_type])))]),t._v(" "),a("span",{staticClass:"history_zt"},[t._v(t._s(s.balance_after))]),t._v(" "),a("span",{staticClass:"history_sj"},[t._v(t._s(t._f("formatDate")(s.created_at)))])])})],2)],1)])},staticRenderFns:[]};var r=a("VU/8")(l,n,!1,function(t){a("DJht")},"data-v-0d41f43b",null);s.default=r.exports}});
  2. //# sourceMappingURL=46.e5c8725dbad3841c9a18.js.map