defi-ai.top
Open in
urlscan Pro
2606:4700:3034::ac43:95dc
Public Scan
URL:
https://defi-ai.top/js/PledgeLoanOrderDetail.2f4bc60a979aae3c.js
Submission: On November 05 via api from US — Scanned from US
Submission: On November 05 via api from US — Scanned from US
Form analysis
0 forms found in the DOMText Content
"use strict";(self["webpackChunkexchange"]=self["webpackChunkexchange"]||[]).push([[1861],{48462:function(t,e,s){s.d(e,{Z:function(){return c}});var o=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)},a=[],r=(s(57658),{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)}}}),i=r,n=s(43736),l=(0,n.Z)(i,o,a,!1,null,"73f14914",null),c=l.exports},60260:function(t,e,s){s.r(e),s.d(e,{default:function(){return u}});var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"pledgeLoanOrderDetail"},[o("assets-head",{attrs:{title:t.$t("订å•è¯¦æƒ…")}}),o("div",{staticClass:"px-32 pt-54 tabBackground pb-100"},[o("div",{staticClass:"skyColor font-44",class:{redColor:2==t.obj.status,red:3==t.obj.status,"text-grey":1==t.obj.status,skyColor:0==t.obj.status}},[t._v(" "+t._s(t.fixState(t.obj.status)||"--")+" ")]),o("div",{staticClass:"font-32 mt-40 text-grey"},[t._v(t._s(t.$t("总负债")))]),o("div",{staticClass:"mt-20 flex textColor items-center"},[o("span",{staticClass:"mr-10 font-40"},[t._v(t._s(""!==t.obj.debtAmount?t.obj.debtAmount:"--")+" "+t._s(t.obj.fromUnit))]),0==t.obj.status||3==t.obj.status?o("div",{staticClass:"skyBg rounded ml-22 text-black px-26 py-8 font-28",on:{click:function(e){return t.toRepayment(t.obj.orderNo,t.obj.debtAmount,t.obj.interestAmount,t.obj.borrowAmount)}}},[t._v(" "+t._s(t.$t("还款"))+" ")]):t._e()]),o("div",{staticClass:"pb-100"},[o("div",{staticClass:"flex mt-32"},[o("div",{staticClass:"flex-1"},[o("div",{staticClass:"font-32 text-grey"},[t._v(t._s(t.$t("贷款å¸ç§")))]),o("div",{staticClass:"font-40 mt-20 textColor"},[t._v(" "+t._s(t.obj.fromUnit?t.obj.fromUnit.toUpperCase():"--")+" ")])]),o("div",{staticClass:"flex-1"},[o("div",{staticClass:"font-32 text-grey"},[t._v(t._s(t.$t("总借款")))]),o("div",{staticClass:"font-40 mt-20 textColor"},[o("span",{staticClass:"mr-10"},[t._v(t._s(t.obj.borrowAmount))]),t._v("USDT ")])])]),o("div",{staticClass:"flex mt-32"},[o("div",{staticClass:"flex-1"},[o("div",{staticClass:"font-32 text-grey"},[t._v(t._s(t.$t("总利æ¯")))]),o("div",{staticClass:"font-40 mt-20 textColor"},[t._v(" "+t._s(""===t.obj.interestAmount?"--":t.obj.interestAmount)+" USDT ")])]),o("div",{staticClass:"flex-1"},[o("div",{staticClass:"font-32 text-grey"},[t._v(" "+t._s(t.$t("时利率"))+"/"+t._s(t.$t("天利率"))+" ")]),o("div",{staticClass:"font-40 mt-20 textColor"},[o("span",{staticClass:"mr-10"},[t._v(t._s((100*t.obj.hourlyRate).toFixed(2)||"--")+"%")]),t._v("/"+t._s((100*t.obj.dailyRate).toFixed(2)||"--")+"% ")])])]),0==t.obj.status||3==t.obj.status?o("div",{staticClass:"flex mt-32"},[o("div",{staticClass:"flex-1"},[o("div",{staticClass:"font-32 text-grey"},[t._v(t._s(t.$t("质押率")))]),o("div",{staticClass:"font-40 mt-20 textColor"},[t._v(" "+t._s(""!==t.obj.pledgeRate?(1e4*t.obj.pledgeRate/100).toFixed(2):"--")+"% ")])]),o("div",{staticClass:"flex-1"},[o("div",{staticClass:"font-32 text-grey"},[t._v(" "+t._s(t.$t("å¼ºå¹³ä»·æ ¼"))+"("+t._s(t.obj.toUnit?t.obj.toUnit.toUpperCase():"--")+"/USDT) ")]),o("div",{staticClass:"font-40 mt-20 textColor"},[o("span",{staticClass:"mr-10"},[t._v(t._s(t.obj.closeOut||"--"))])])])]):t._e()]),3==t.obj.status?o("div",{staticClass:"pt-82 pb-82 border-t-color"},[o("div",{staticClass:"flex mt-32"},[o("div",{staticClass:"flex-1"},[o("div",{staticClass:"font-32 text-grey"},[t._v(t._s(t.$t("滞纳金")))]),o("div",{staticClass:"font-40 mt-20 textColor"},[t._v(" "+t._s(""!==t.obj.debtAmount?t.obj.debtAmount:"--")+" USDT ")])]),o("div",{staticClass:"flex-1"},[o("div",{staticClass:"font-32 text-grey"},[t._v(t._s(t.$t("总滞纳金利率")))]),o("div",{staticClass:"font-40 mt-20 textColor"},[o("span",{staticClass:"mr-10"},[t._v(t._s(""!==t.obj.overdueRate?(1e3*t.obj.overdueRate/100).toFixed(2):"--")+"%")])])])])]):t._e(),o("div",{staticClass:"pt-82 border-t-color"},[o("div",{staticClass:"mb-44"},[o("div",{staticClass:"flex justify-between font-32 mb-44"},[o("span",{staticClass:"text-grey"},[t._v(t._s(t.$t("订å•å·")))]),o("span",{staticClass:"textColor"},[t._v(t._s(t.obj.orderNo||"--"))])]),o("div",{staticClass:"flex justify-between font-32 mb-44"},[o("span",{staticClass:"text-grey"},[t._v(t._s(t.$t("借款时间")))]),o("span",{staticClass:"textColor"},[t._v(t._s(t.obj.createTime||"--"))])]),o("div",{staticClass:"flex justify-between font-32 mb-44"},[o("span",{staticClass:"text-grey"},[t._v(t._s(t.$t("到期时间")))]),o("span",{staticClass:"textColor"},[t._v(t._s(t.obj.expireTime||"--"))])]),o("div",{staticClass:"flex justify-between font-32 mb-44 items-center",on:{click:function(e){return t.$router.push("/pledgeRecord?id="+t.obj.orderNo)}}},[o("span",{staticClass:"skyColor mr-14"},[t._v(t._s(t.$t("质押记录")))]),o("img",{staticClass:"w-32 h-32",attrs:{src:s(6498),alt:""}})])])]),0==t.obj.status?o("div",{staticClass:"btnBox mt-144 flex items-center justify-between"},[o("div",{staticClass:"skyBorder h-96 box-border skyColor font-30 w-360 flex items-center rounded-lg justify-center",on:{click:function(e){return t.toAddpledge(t.obj,t.obj.toUnit)}}},[t._v(" "+t._s(t.$t("新增质押"))+" ")]),o("div",{staticClass:"skyBg h-96 box-border font-30 w-360 items-center rounded-lg flex items-center justify-center",on:{click:function(e){return t.toRenew(t.obj,t.obj.toUnit)}}},[t._v(" "+t._s(t.$t("ç»å€Ÿ"))+" ")])]):t._e()])],1)},a=[],r=(s(57658),s(48462)),i=(s(95146),s(15941)),n={props:{},components:{assetsHead:r.Z},data(){return{cData:"",obj:{closeOut:"",createTime:"",debtAmount:"",expireTime:"",hourlyRate:"",interestAmount:"",loanAmount:"",loanCurrency:"",orderNo:"",overdueAmount:"",overdueRate:"",pledgeRate:"",state:"",pledgeCurrency:""}}},mounted(){this.cData=this.$route.query.data,this.getOrder()},methods:{getOrder(){this.obj=JSON.parse(this.cData),i.log(this.obj,this.obj.status)},fixState(t){i.log(t);let e="";return 0==t?e=this.$t("计æ¯ä¸"):1==t?e=this.$t("已结清"):2==t?e=this.$t("强平结清"):3==t&&(e=this.$t("已逾期")),e},toRepayment(t,e,s,o){this.$router.push({path:"/repayment",query:{id:t,debtAmount:e,interestAmount:s,loanAmount:o}})},toAddpledge(t,e){this.$router.push({path:"/addPledge",query:{data:JSON.stringify(t),pledgeCurrency:e}})},toRenew(t,e){this.$router.push({path:"/pledgeLoanRenew",query:{data:JSON.stringify(t),pledgeCurrency:e}})}}},l=n,c=s(43736),d=(0,c.Z)(l,o,a,!1,null,"6ce78fcc",null),u=d.exports},95146:function(t,e,s){var o=s(59571);const a=t=>(0,o.DE)({url:"/exchange/borrow/coin/getLoanConfig",method:"get",isLoading:!1},t),r=t=>(0,o.DE)({url:"/exchange/borrow/coin/queryBorrowOrderList",method:"get",isLoading:!1},t),i=t=>(0,o.DE)({url:"/exchange/borrow/coin/borrowCoin",method:"get",isLoading:!1},t),n=t=>(0,o.DE)({url:"/exchange/borrow/coin/redeemCoin",method:"get",isLoading:!1},t),l=t=>(0,o.DE)({url:"/exchange/borrow/coin/calCoinValue",method:"get",isLoading:!1},t),c=t=>(0,o.DE)({url:"/exchange/borrow/coin/queryBorrowRecords",method:"get",isLoading:!1},t),d=t=>(0,o.DE)({url:"/exchange/borrow/coin/addHoldCoin",method:"get",isLoading:!1},t),u=t=>(0,o.DE)({url:"/exchange/borrow/coin/continueBorrowCoin",method:"get",isLoading:!1},t),C=t=>(0,o.DE)({url:"/exchange/borrow/coin/repayment",method:"get",isLoading:!1},t),b=t=>(0,o.DE)({url:"/exchange/borrow/coin/queryBorrowRecords",method:"get",isLoading:!1},t);e["Z"]={getLoanConfig:a,orderList:r,addOrder:i,getLoanParam:n,relationOrderList:c,replenishOrder:d,refurbishOrder:u,repayOrder:C,getOrder:b,calCoinValue:l}},6498:function(t){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEESURBVHgB7ZbNCcJAEEZnV48eFqJWIaIdaAdagVqBJViKWoFYgSVEJJ5zNhpIAbpj/EFyEMPsfnjKOyVLNu9BliFEFRVCTJT0TBgbAqElDzeP6aLGKqzVG3ErDyEAogC2dvC+NJbVDhEhCiDmdeEOEqFISHBIpqTUsrCUacXDc6e9JwfEAegIpwBkhHMAKsIrABHhHeAbAQnwiZDNgR+k3fYqnxOzwtJzTpTtgwW83qa5eMvMWekWAhFEl0luXH3k+SewNxqX7cMcwm/yKw+z/h8OoY/cO8BX7hWAkDsHoOROAUi5OCA4nEak9AYlfyCbA0rPkXJxAFvaIuVOmBD7W15RcQcjtMfA2+a0GAAAAABJRU5ErkJggg=="}}]);