"use strict";(self["webpackChunkexchange"]=self["webpackChunkexchange"]||[]).push([[8180],{3717:function(t,e,s){s.d(e,{A:function(){return h}});var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"assetsHead"}},[s("van-nav-bar",{attrs:{border:!1,title:t.title,"left-arrow":t.showLeft},on:{"click-left":t.onClickLeft},scopedSlots:t._u([{key:"right",fn:function(){return[t._t("default")]},proxy:!0}],null,!0)})],1)},n=[],a=(s(44114),{name:"assets-head",props:{title:{type:String,default:""},goHome:{type:Boolean,default:!1},goAssetsCenter:{type:Boolean,default:!1},goPerpetualContract:{type:Boolean,default:!1},showLeft:{type:Boolean,default:!0},backFunc:{type:Function},clickFunc:{type:Function}},methods:{onClickLeft(){this.goHome?this.$router.push("/"):this.goAssetsCenter?this.$router.push("/assetsCenter/assets"):this.goPerpetualContract?this.$router.go(-2):this.backFunc?this.backFunc():this.clickFunc?this.clickFunc():this.$router.go(-1)}}}),c=a,o=s(81656),l=(0,o.A)(c,i,n,!1,null,"77f40d14",null),h=l.exports},91910:function(t,e,s){s.r(e),s.d(e,{default:function(){return p}});var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"accountChange"},[i("assets-head",{attrs:{title:t.$t("账变记录")}}),i("van-tabs",{ref:"tabs",attrs:{swipeable:"",sticky:""},on:{change:t.onChange},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},t._l(t.selectData,(function(e){return i("van-tab",{key:e.title,attrs:{title:e.title,name:e.type}},[i("van-list",{staticClass:"px-16",attrs:{"loading-text":t.$t("加载中..."),finished:t.finished,"finished-text":t.list.length?t.$t("已经全部加载完毕"):"",offset:130},on:{load:t.onLoad},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},[t._l(t.list,(function(e,n){return i("div",{key:n,staticClass:"flex justify-between items-center record-list"},[i("div",{staticClass:"flex items-center"},[i("img",{staticClass:"w-44 h-44 mr-20",attrs:{src:s(24907)("./"+(e.amount>0?"in":"out")+".png")}}),i("div",[i("div",{staticClass:"font-32 textColor"},[t._v(t._s(t.category[e.category]))]),i("div",{staticClass:"text-grey font-26 mt-14"},[t._v(t._s(t.orderTypes[e.content_type]))])])]),i("div",[i("div",{staticClass:"font-32 text-right",class:e.amount>0?"text-green":"text-red"},[t._v(t._s(t._f("toFixed")(e.amount))+" "+t._s(e.wallettype.toUpperCase()))]),i("div",{staticClass:"text-grey font-28 mt-14"},[t._v(t._s(e.createTimeStr))])])])})),t.list.length||t.loading?t._e():i("div",{staticClass:"flex flex-col justify-center pt-50 pb-20 items-center"},[i("img",{staticClass:"w-180 h-180",attrs:{src:s(36928),alt:""}}),i("p",{staticClass:"text-grey mt-10"},[t._v(t._s(t.$t("暂无记录")))])])],2)],1)})),1)],1)},n=[],a=(s(96356),s(162)),c=(s(1751),s(26852)),o=(s(7287),s(10339)),l=s(49351),h=s(3717),r={name:"accountChange",data(){return{active:"",page:1,loading:!1,finished:!1,noData:!1,isShow:!1,title:this.$t("选择账户类型"),selectData:[{title:this.$t("全部"),type:""},{title:this.$t("法币交易"),type:"coin"},{title:this.$t("合约交易"),type:"contract"},{title:this.$t("币币交易"),type:"exchange"}],type:"",list:[]}},mounted(){setTimeout((()=>{this.$refs.tabs.resize()}),500)},components:{assetsHead:h.A,[o.A.name]:o.A,[c.A.name]:c.A,[a.A.name]:a.A},computed:{orderTypes(){return{withdraw:this.$t("提币"),recharge:this.$t("充币"),contract_close:this.$t("永续合约平仓"),contract_open:this.$t("永续合约建仓"),contract_cancel:this.$t("永续合约撤单"),fee:this.$t("手续费"),exchange_open:this.$t("币币买入"),exchange_close:this.$t("币币卖出"),exchange_cancel:this.$t("币币撤单"),finance:this.$t("理财"),finance_profit:this.$t("理财收益"),finance_recom_profit:this.$t("理财推广收益"),miner_buy:this.$t("锁仓矿机"),miner_recom_profit:this.$t("矿机推广收益"),miner_profit:this.$t("矿机收益"),miner_back:this.$t("矿机赎回"),fund_close:this.$t("赎回"),fund_open:this.$t("购买"),otc_sell:this.$t("otc卖币"),otc_buy:this.$t("otc买币"),otc_cancel:this.$t("otc订单取消"),loan_frozen:this.$t("冻结"),loan_thaw:this.$t("解冻"),loan_closeout:this.$t("强平"),loan_add:this.$t("借款"),loan_repay:this.$t("还款"),finance_buy:this.$t("购买"),finance_back:this.$t("赎回"),delivery_contract_open:this.$t("交割合约建仓"),delivery_contract_close:this.$t("交割合约平仓"),follow_up_fee:this.$t("跟单手续费"),exchange_lever_close:this.$t("全仓杠杆平仓"),exchange_lever_open:this.$t("全仓杠杆建仓"),exchange_lever_interest:this.$t("全仓杠杆利息"),c2c_sell:this.$t("c2c卖币"),c2c_buy:this.$t("c2c买币")}},category(){return{coin:this.$t("法币交易"),contract:this.$t("合约交易"),exchange:this.$t("币币交易"),finance:this.$t("理财"),miner:this.$t("矿机"),otc:this.$t("otc"),loan:this.$t("质押借币"),c2c:"C2C"}}},filters:{toFixed(t){return(t/1).toFixed(5)}},methods:{onChange(t){this.list=[],this.finished=!1,this.page=1,this.type=t,this.loading=!0,this.loading&&this.fetchData()},onLoad(){this.fetchData()},fetchData(){(0,l.Ku)(this.type,this.page).then((t=>{this.list=[...this.list,...t],this.loading=!1,t.length<20?this.finished=!0:this.page++}))},onClickLeft(){this.$router.go(-1)},selectBtn(){this.isShow=!this.isShow},selectItem(t){this.title=t.title,this.type=t.type,this.isShow=!1},onSumbit(){this.page=1,this.finished=!1,this.list=[],this.fetchData()}}},u=r,f=s(81656),d=(0,f.A)(u,i,n,!1,null,"3b8a0516",null),p=d.exports}}]);
|