42.835593c419c9f341ee7c.js 6.5 KB

12
  1. webpackJsonp([42],{"2PB3":function(t,i){},"5+Eg":function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s=e("wQWh"),a=e("3KG0"),o={name:"walletBill",filters:{formatDate:function(t){t*=1e3;var i=new Date(t);return Object(a.a)(i,"yyyy-MM-dd hh:mm")}},data:function(){return{scrollTop:null,AmountChangeType:s.b,tab:0,title:"现货账户",tabsList:[{id:0,title:"现货账户"},{id:1,title:"合约账户"},{id:2,title:"交易账户"},{id:3,title:"赏金账户"},{id:4,title:"外汇账户"}],currenciesList:[],openOptionsType:0,choiceFlag:!1,choiceList:[],currencyName:"",depositOrWithdrawal:"all",depositOrWithdrawalColorWithdrawal:{color:"#f6465b"},depositOrWithdrawalColorDeposit:{color:"#1FAE87"},loading:!0,finished:!1,offset:15,page:0,page_size:10,billList:[]}},mounted:function(){var t=Number(this.$route.query.tab);this.tab=t,this.title=this.tabsList[this.tabsList.findIndex(function(i){return i.id==t})].title,window.scrollTo(0,0),this.getlist()},methods:{currency:function(){if(!this.choiceFlag)return this.openOptionsType=1,this.choiceList=this.currenciesList,void(this.choiceFlag=!0);this.choiceClose()},type:function(){if(!this.choiceFlag){this.openOptionsType=2;return this.choiceList=[{type:"all",title:"全部"},{type:"withdrawal",title:"支出"},{type:"deposit",title:"收入"}],void(this.choiceFlag=!0)}this.choiceClose()},choiceClick:function(t){1==this.openOptionsType?this.currencyName=this.choiceList[t].title:2==this.openOptionsType&&(this.depositOrWithdrawal=this.choiceList[t].type),this.page=0,this.billList=[],this.finished=!1,this.getlist(),this.choiceClose()},choiceClose:function(){this.choiceList=[],this.openOptionsType=0,this.choiceFlag=!1},getlist:function(){var t=this;this.$nextTick(function(){var i={wallet_type:t.tab+1,deposit_or_withdrawal:t.depositOrWithdrawal,currency:t.currencyName,page_page:t.page_size,page:t.page};t.$api.wallet.getBillFlow(i).then(function(i){t.currenciesList=i.data.currencies,i.data.list.length>0&&(t.billList=t.billList.concat(i.data.list)),t.loading=!1,t.finished=!i.data.has_more})})},onLoad:function(){var t=this;this.finished||(this.page=this.page+1,setTimeout(function(){t.getlist()},300))}},watch:{}},n={render:function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"walletBill"},[s("app-nav",{attrs:{back:!0}},[s("span",[t._v(t._s(t.$t(t.title)))])]),t._v(" "),s("div",{staticClass:"choice"},[s("div",{staticClass:"choice_type",on:{click:t.currency}},[s("span",{staticClass:"choice_type_title"},[t._v(t._s(t.$t("全部币种")))]),t._v(" "),s("img",{directives:[{name:"show",rawName:"v-show",value:0==t.openOptionsType||2==t.openOptionsType,expression:"openOptionsType == 0 || openOptionsType == 2"}],staticStyle:{width:"0.24rem",height:"0.24rem"},attrs:{src:e("1KE+"),alt:""}}),t._v(" "),s("img",{directives:[{name:"show",rawName:"v-show",value:t.choiceFlag&&1==t.openOptionsType,expression:"choiceFlag && openOptionsType == 1"}],staticStyle:{width:"0.24rem",height:"0.24rem"},attrs:{src:e("dir0"),alt:""}})]),t._v(" "),s("div",{staticClass:"choice_type",on:{click:t.type}},[s("span",{staticClass:"choice_type_title"},[t._v(t._s(t.$t("全部类型")))]),t._v(" "),s("img",{directives:[{name:"show",rawName:"v-show",value:0==t.openOptionsType||1==t.openOptionsType,expression:"openOptionsType == 0 || openOptionsType == 1"}],staticStyle:{width:"0.24rem",height:"0.24rem"},attrs:{src:e("1KE+"),alt:""}}),t._v(" "),s("img",{directives:[{name:"show",rawName:"v-show",value:t.choiceFlag&&2==t.openOptionsType,expression:"choiceFlag && openOptionsType == 2"}],staticStyle:{width:"0.24rem",height:"0.24rem"},attrs:{src:e("dir0"),alt:""}})])]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.choiceFlag,expression:"choiceFlag"}],staticClass:"choiceType",on:{click:t.choiceClose}},[s("div",{staticClass:"choiceType_m"},t._l(t.choiceList,function(i,e){return s("div",{key:e,staticClass:"choiceType_d",on:{click:function(i){t.choiceClick(e)}}},[t._v("\n "+t._s(t.$t(i.title))+"\n ")])}))]),t._v(" "),s("div",{staticClass:"bill"},[s("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(i){t.loading=i},expression:"loading"}},[s("div",{staticClass:"bill_header"},[s("div",{staticClass:"bill_info"},[t._v("\n "+t._s(t.$t("账单信息"))+"\n ")]),t._v(" "),s("div",{staticClass:"bill_num"},[t._v("\n "+t._s(t.$t("数量/类别"))+"\n ")]),t._v(" "),s("div",{staticClass:"bill_balance"},[t._v("\n "+t._s(t.$t("余额"))+"\n ")])]),t._v(" "),t._l(t.billList,function(i,e){return s("div",{key:e,staticClass:"bill_data"},[s("div",{staticClass:"bill_info info"},[s("p",{staticClass:"info_name"},[t._v(t._s(i.currency))]),t._v(" "),s("p",{staticClass:"info_time"},[t._v(t._s(t._f("formatDate")(i.created_at)))])]),t._v(" "),s("div",{staticClass:"bill_num num"},[s("p",{staticClass:"num_n",style:"withdrawal"==i.deposit_or_withdrawal?t.depositOrWithdrawalColorWithdrawal:t.depositOrWithdrawalColorDeposit},[t._v("\n "+t._s(i.fee)+"\n ")]),t._v(" "),s("p",{staticClass:"num_type"},[t._v(t._s(t.$t(t.AmountChangeType[i.change_type])))])]),t._v(" "),s("div",{staticClass:"bill_balance balance"},[s("p",{staticClass:"balance_amount"},[t._v(t._s(i.balance_after))])])])})],2)],1)],1)},staticRenderFns:[]};var c=e("VU/8")(o,n,!1,function(t){e("2PB3")},"data-v-6b77af3e",null);i.default=c.exports},dir0:function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAZCAYAAAArK+5dAAAAAXNSR0IArs4c6QAAArRJREFUSEvtlD1ME3EYxp/nivQKCOggCUFoqbHt9WLcDJsxLkYdjIMkhrCoC2hQETSiDJKoiB8DYoITCUaMow6aGONiiKuWfpiWVCQMDopoQntt7zVXaVKxtjXKpLfee7/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