"use strict";(self["webpackChunkexchange"]=self["webpackChunkexchange"]||[]).push([[9704],{3717:function(t,e,s){s.d(e,{A:function(){return n}});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)},a=[],l=(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)}}}),r=l,o=s(81656),d=(0,o.A)(r,i,a,!1,null,"77f40d14",null),n=d.exports},68063:function(t,e,s){s.r(e),s.d(e,{default:function(){return p}});var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"tradeDetail"},[s("assets-head",{attrs:{title:t.$t("订单详情")}}),s("div",{staticClass:"header pl-32 pr-32 text-center "},[s("div",{staticClass:"textColor"},[t._v(t._s(t.$t("币种")))]),s("div",{staticClass:"mt-28 textColor"},[t._v(t._s(t.detail.symbol?t.detail.symbol.toUpperCase():"--")+"/USDT")]),s("div",{staticClass:"mt-28 text-green"},[t._v(t._s(t.detail.state?t.handleText(t.detail.state):"--"))])]),s("div",{staticClass:"pl-32 pr-32 pt-80 pb-58"},[s("div",{staticClass:"flex justify-between pb-68"},[s("div",{staticClass:"text-grey"},[t._v(t._s(t.$t("操作")))]),s("div",{staticClass:"textColor",class:"open"==t.detail.offset?"text-green":"text-red"},[t._v(" "+t._s(t.detail.order_price_type?t.handleWord(t.detail.order_price_type,t.detail.offset):"--"))])]),s("div",{staticClass:"flex justify-between pb-68"},[s("div",{staticClass:"text-grey"},[t._v(t._s(t.$t("成交价格")))]),s("div",{staticClass:"textColor"},[t._v(t._s(t.detail.close_price?t.detail.close_price:"--"))])]),s("div",{staticClass:"flex justify-between pb-68"},[s("div",{staticClass:"text-grey"},[t._v(t._s(t.$t("成交时间")))]),s("div",{staticClass:"textColor"},[t._v(t._s(t.detail.close_time?t.detail.close_time:"--"))])]),s("div",{staticClass:"flex justify-between pb-68"},[s("div",{staticClass:"text-grey"},[t._v(t._s(t.$t("手续费")))]),s("div",{staticClass:"textColor"},[t._v(t._s(t.detail.fee||"--"))])]),s("div",{staticClass:"flex justify-between pb-68"},[s("div",{staticClass:"text-grey"},[t._v(t._s(t.$t("订单类型")))]),s("div",{staticClass:"textColor"},[t._v(t._s(t.detail.order_price_type?t.handleType(t.detail.order_price_type):"--"))])]),s("div",{staticClass:"flex justify-between pb-68"},[s("div",{staticClass:"text-grey"},[t._v(t._s(t.$t("限价")))]),s("div",{staticClass:"textColor"},[t._v(t._s(t.detail.price?t.detail.price:"--"))])]),s("div",{staticClass:"flex justify-between pb-68"},[s("div",{staticClass:"text-grey"},[t._v(t._s(t.$t("订单号")))]),s("div",{staticClass:"textColor"},[t._v(t._s(t.detail.order_no?t.detail.order_no:"--"))])]),s("div",{staticClass:"flex justify-between pb-68"},[s("div",{staticClass:"text-grey"},[t._v(t._s(t.$t("委托时间")))]),s("div",{staticClass:"textColor"},[t._v(t._s(t.detail.create_time?t.detail.create_time:"--"))])])])],1)},a=[],l=s(3717),r=s(33589),o={name:"orderDetail",data(){return{detail:{}}},components:{assetsHead:l.A},methods:{handleText(t){let e="";return e="submitted"==t?this.$t("已提交"):"canceled"==t?this.$t("已撤销"):this.$t("已完成"),e},handleType(t){let e="";return e="limit"==t?this.$t("限价委托"):this.$t("市价委托"),e},handleWord(t,e){let s="",i="";return s="limit"===t?this.$t("限价"):this.$t("市价"),i="open"===e?this.$t("买入"):this.$t("卖出"),s+"/"+i},onClickLeft(){this.$router.go(-1)},fetchDetail(t){r.A.tradeDetail({order_no:t}).then((t=>{this.detail=t.data}))}},beforeRouteEnter(t,e,s){const{query:{order_no:i}}=t;s((t=>{t.fetchDetail(i)}))}},d=o,n=s(81656),c=(0,n.A)(d,i,a,!1,null,"63363326",null),p=c.exports},33589:function(t,e,s){var i=s(60783);const a=t=>(0,i.zi)({url:"/api/exchangeapplyorder!openview.action",method:"get",isLoading:!1},t),l=t=>(0,i.zi)({url:"/api/exchangeapplyorder!closeview.action",method:"get",isLoading:!1},t),r=t=>(0,i.zi)({url:"/api/exchangeapplyorder!open.action",method:"get",isLoading:!1},t),o=t=>(0,i.zi)({url:"/api/exchangeapplyorder!close.action",method:"get",isLoading:!1},t),d=t=>(0,i.zi)({url:"/api/exchangeapplyorder!list.action",method:"get",isLoading:!1},t),n=t=>(0,i.zi)({url:"/api/exchangeapplyorder!cancel.action",method:"get",isLoading:!0},t),c=t=>(0,i.zi)({url:"/api/exchangeapplyorder!get.action",method:"get",isLoading:!0},t),p=t=>(0,i.zi)({url:"/api/wallet!getPairs.action",method:"get",isLoading:!1},t),u={tradeBuyToken:a,tradeSellToken:l,tradeBuy:r,tradeSell:o,tradeRecord:d,tradeCancel:n,tradeDetail:c,getPairs:p};e.A=u}}]);
|