"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)},n=[],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,a=i(81656),d=(0,a.A)(s,r,n,!1,null,"77f40d14",null),l=d.exports},15836:function(t,e,i){i.r(e),i.d(e,{default:function(){return u}});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)},n=[],o=(i(7287),i(10339)),s=i(3717),a=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(){a.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),h=(0,c.A)(l,r,n,!1,null,"6943424f",null),u=h.exports},10339:function(t,e,i){var r=i(47456),n=i(73474),o=i(32486),s=i(2879),a=i(90689),d=(0,r.Y)("list"),l=d[0],c=d[1],h=d[2];e.A=l({mixins:[(0,s.x)((function(t){this.scroller||(this.scroller=(0,o.Rm)(this.$el)),t(this.scroller,"scroll",this.check)}))],model:{prop:"loading"},props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:{type:Boolean,default:!0},offset:{type:[Number,String],default:300},direction:{type:String,default:"down"}},data:function(){return{innerLoading:this.loading}},updated:function(){this.innerLoading=this.loading},mounted:function(){this.immediateCheck&&this.check()},watch:{loading:"check",finished:"check"},methods:{check:function(){var t=this;this.$nextTick((function(){if(!(t.innerLoading||t.finished||t.error)){var e,i=t.$el,r=t.scroller,o=t.offset,s=t.direction;e=r.getBoundingClientRect?r.getBoundingClientRect():{top:0,bottom:r.innerHeight};var a=e.bottom-e.top;if(!a||(0,n.d)(i))return!1;var d=!1,l=t.$refs.placeholder.getBoundingClientRect();d="up"===s?e.top-l.top<=o:l.bottom-e.bottom<=o,d&&(t.innerLoading=!0,t.$emit("input",!0),t.$emit("load"))}}))},clickErrorText:function(){this.$emit("update:error",!1),this.check()},genLoading:function(){var t=this.$createElement;if(this.innerLoading&&!this.finished)return t("div",{key:"loading",class:c("loading")},[this.slots("loading")||t(a.A,{attrs:{size:"16"}},[this.loadingText||h("loading")])])},genFinishedText:function(){var t=this.$createElement;if(this.finished){var e=this.slots("finished")||this.finishedText;if(e)return t("div",{class:c("finished-text")},[e])}},genErrorText:function(){var t=this.$createElement;if(this.error){var e=this.slots("error")||this.errorText;if(e)return t("div",{on:{click:this.clickErrorText},class:c("error-text")},[e])}}},render:function(){var t=arguments[0],e=t("div",{ref:"placeholder",key:"placeholder",class:c("placeholder")});return t("div",{class:c(),attrs:{role:"feed","aria-busy":this.innerLoading}},["down"===this.direction?this.slots():e,this.genLoading(),this.genFinishedText(),this.genErrorText(),"up"===this.direction?this.slots():e])}})},7287:function(t,e,i){i(76952),i(45396)},73474:function(t,e,i){function r(t){var e=window.getComputedStyle(t),i="none"===e.display,r=null===t.offsetParent&&"fixed"!==e.position;return i||r}i.d(e,{d:function(){return r}})},84861:function(t,e,i){i.d(e,{Jt:function(){return f},Vh:function(){return m},iC:function(){return p},kM:function(){return g}});var r=i(60783);const n=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),a=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),h=t=>(0,r.zi)({url:"/api/loan!repayOrder.action",method:"get",isLoading:!1},t),u=t=>(0,r.zi)({url:"/api/loan!getOrder.action",method:"get",isLoading:!1},t),p=()=>(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:n,orderList:o,addOrder:s,getLoanParam:a,relationOrderList:d,replenishOrder:l,refurbishOrder:c,repayOrder:h,getOrder:u,_joinCheck:g,_approve:f,_approveDone:m,_checkStatus:p}}}]);
|