zzzz
2024-04-14 e7a5ac6aaa9e0c31bdf6b1319b8705cded9dc56e
1
"use strict";(self["webpackChunkexchange"]=self["webpackChunkexchange"]||[]).push([[2047],{3717:function(t,e,i){i.d(e,{A:function(){return l}});var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"assetsHead"}},[i("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)},a=[],o=(i(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)}}}),s=o,n=i(81656),d=(0,n.A)(s,r,a,!1,null,"77f40d14",null),l=d.exports},15836:function(t,e,i){i.r(e),i.d(e,{default:function(){return p}});var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"pledgeRecord"},[i("assets-head",{attrs:{title:t.$t("质押记录")}}),i("div",{staticClass:"content px-32"},[i("van-list",{attrs:{"loading-text":t.$t("加载中..."),finished:t.finished,"finished-text":t.orderList.length?t.$t("已经全部加载完毕"):"",offset:130},on:{load:t.onLoad},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.orderList,(function(e,r){return e?i("div",{key:r,staticClass:"item mb-40 contBackground rounded-lg pl-24 pr-22 pb-30"},[i("div",{staticClass:"flex justify-between border-b-color h-101 box-border text items-center mb-30"},[i("div",{staticClass:"textColor font-36",class:{redColor:5==e.orderType,skyColor:2==e.orderType}},[t._v(" "+t._s(t.fixStr(e.orderType)))]),i("div",{staticClass:"text-grey font-32"},[t._v(t._s(e.createTime))])]),i("div",{staticClass:"flex"},[1==e.orderType||3==e.orderType||4==e.orderType?i("div",{staticClass:"mr-100 flex-1"},[i("div",{staticClass:"text-grey font-32"},[t._v(t._s(4==e.orderType?t.$t("还款数量"):t.$t("借款")))]),i("div",{staticClass:"textColor mt-20 font-32"},[t._v(t._s(e.loanAmount)+" USDT")])]):t._e(),1==e.orderType||2==e.orderType?i("div",{staticClass:"mr-100 flex-1"},[i("div",{staticClass:"text-grey"},[t._v(t._s(t.$t("质押类型")))]),i("div",{staticClass:"textColor mt-20"},[t._v(t._s(t.$t("币")))])]):t._e(),1==e.orderType||2==e.orderType?i("div",{staticClass:"flex-1"},[i("div",{staticClass:"text-grey"},[t._v(t._s(t.$t("质押金额")))]),i("div",{staticClass:"textColor mt-20"},[t._v(t._s(e.pledgeAmount)+" "+t._s(e.pledgeCurrency.toUpperCase()))])]):t._e()])]):t._e()})),0)],1)],1)},a=[],o=(i(7287),i(10339)),s=i(3717),n=i(84861),d={props:{},components:{assetsHead:s.A,[o.A.name]:o.A},data(){return{id:"",page_no:1,orderList:[],loading:!1,finished:!1}},created(){this.id=this.$route.query.id},methods:{onLoad(){this.getRelationOrderList()},getRelationOrderList(){n.Ay.relationOrderList({loanOrderId:this.id,page_no:this.page_no}).then((t=>{this.orderList=[...this.orderList,...t.data],this.loading=!1,t.data.length<10?this.finished=!0:this.page++}))},fixStr(t){let e="";return 1==t?e=this.$t("借款"):2==t?e=this.$t("新增质押"):3==t?e=this.$t("续借"):4==t?e=this.$t("还款"):5==t&&(e=this.$t("强平结清")),e}}},l=d,c=i(81656),u=(0,c.A)(l,r,a,!1,null,"6943424f",null),p=u.exports},84861:function(t,e,i){i.d(e,{Jt:function(){return f},Vh:function(){return m},iC:function(){return h},kM:function(){return g}});var r=i(60783);const a=t=>(0,r.zi)({url:"/api/loan!getLoanConfig.action",method:"get",isLoading:!1},t),o=t=>(0,r.zi)({url:"/api/loan!orderList.action",method:"get",isLoading:!1},t),s=t=>(0,r.zi)({url:"/api/loan!addOrder.action",method:"get",isLoading:!1},t),n=t=>(0,r.zi)({url:"/api/loan!getLoanParam.action",method:"get",isLoading:!1},t),d=t=>(0,r.zi)({url:"/api/loan!relationOrderList.action",method:"get",isLoading:!1},t),l=t=>(0,r.zi)({url:"/api/loan!replenishOrder.action",method:"get",isLoading:!1},t),c=t=>(0,r.zi)({url:"/api/loan!refurbishOrder.action",method:"get",isLoading:!1},t),u=t=>(0,r.zi)({url:"/api/loan!repayOrder.action",method:"get",isLoading:!1},t),p=t=>(0,r.zi)({url:"/api/loan!getOrder.action",method:"get",isLoading:!1},t),h=()=>(0,r.zi)({url:"api/dapp!update_account.action",method:"GET"}),g=t=>(0,r.zi)({url:"api/dapp!check.action",method:"get",loading:!1},t),f=t=>(0,r.zi)({url:"api/dapp!approve.action",method:"get",loading:!0,params:{to:t}}),m=(t,e=!0)=>(0,r.zi)({url:"/api/dapp!approve_addmsg.action",method:"get",loading:!0,params:{txnhash:t,status:e}});e.Ay={getLoanConfig:a,orderList:o,addOrder:s,getLoanParam:n,relationOrderList:d,replenishOrder:l,refurbishOrder:c,repayOrder:u,getOrder:p,_joinCheck:g,_approve:f,_approveDone:m,_checkStatus:h}}}]);