trade-detail.f585b1b4.js 14 KB

1
  1. import{d,w as u,j as e,F as g,z as A}from"./index.e6d6174e.js";import{C as p}from"./index.045f03fd.js";import{C as l}from"./index.af99cf22.js";import{C as m}from"./index.4aea64de.js";import{R as i,C as o}from"./index.83d3716a.js";import{I as n}from"./index.67c54471.js";import{i as I}from"./icon_teacher.40b6f077.js";import{o as R}from"./orderStatus.fea01d83.js";import{o as v}from"./shop-mall.60cd47e3.js";import"./index.d8c651bf.js";import"./use-height.8140ea04.js";var B="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAABcCAMAAADK+BLZAAAAAXNSR0IArs4c6QAAAo5QTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////gqK45QAAANl0Uk5TAAECAwQFBgcICQoLDA0ODxESFBUWFxgaGxwdHh8gISIjJCUmJygqLC0uLzAxMjM0NTY5Ojs8PT4/QUJDREVHSElKS0xNTk9QUVJTVFVWV1laW1xdXl9gYWJjZWZnaGprbm9wcXJzdHV2d3h5e36BgoOEhYaHiImKjI6PkJGSlJaXmJqbnKCio6Smp6mrrK2ur7CxsrO0tba3ubq7vL2+v8DBw8TFxsfIycrLzM3Oz9DR09TV1tfY2dvc3d7f4OHi4+Tl5+jp6uzt7/Dx8vP09fb3+Pn6+/z9/p3Wte0AAARGSURBVBgZ1cGJWxR1AAbgj11cDFg5PGCtVBJEUUArK7W0rLSsLDC71swrw9BKKy0tITvMIy/IDjzoUBO2CO8sRU1FPFhTZOf7b9qZWZbZ3d/M7szO0/P0vvhvuL/cOwH2eo7cC3t5yWbYy0s2wV5esgm2Sd3VzR7n74MdRlBjDe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aZ30JERm07qPIVZLq35yQcy5lda0ZkNP30ZacSof+ty7ad6JoTCStplm/ToQxhyrJZryTT/ENaODibtVnYIEDNnPRJ0aj8Q45lxiIm6+m46E9V/XxXiknUUw5Y61/9BIYEsZTBu05BD1nF1ZBGtKVzZ3M8bx2occSEL29Lc3tVynquvYjlWV+bBFxsCCksI8twNx/QvwqxJz/w8hWgAAAABJRU5ErkJggg==",h=Object.freeze(Object.defineProperty({__proto__:null,default:B},Symbol.toStringTag,{value:"Module"})),U="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAs4AAAAcCAMAAABGW8kTAAAAAXNSR0IArs4c6QAAAEtQTFRFAAAA////////////////////////////////////////////////////////vb29wMDAxsbG1NTU29vb6Ojo6enp/f39/v7+////It3KEQAAAA90Uk5TAAEhPj9UiYrCx9jn6/j5MskQvQAAASBJREFUeNrt3Ft2glAMRuEgglxbQcA9/5H2Qau9jCBn7W8IWXn4ITmJeKrqthtnpFTmsWvrKv5oBiujrIbmVzOfekuizPrTu5vPk/VQbtP51c0fAMe2LtdPKZXrsm4HwMezn08TwL5YGuW07ADTI2/0wP1mUZTX7Q70ERENgN2s3P0M0ERUA7BbD+W2A0MVNXCYm5U9Px9AHRdgsxrKbgPa6IDVYii7FehiBMwayp82gDFmwOmJ0rsCs+2sktrZsKGCwoafgiroU7D1R51K8PhR5xhFRWSNxxjFIbdK8Bxyu4KkAnyvILkgqgK6+bUg6vq+sufmn+v7Pq5SXv8eV/n0VSU9ffUwgUo6TODZGJV0NiYiqvriUS+lM4/d5X3U6wvntlpXf2D72AAAAABJRU5ErkJggg==",y=Object.freeze(Object.defineProperty({__proto__:null,default:U},Symbol.toStringTag,{value:"Module"})),O="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAABcCAMAAADK+BLZAAAAAXNSR0IArs4c6QAAAi5QTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////IVAapwAAALl0Uk5TAAECAwQFBgcICgsMDQ4PERQVFxgaGxweHyAhIiMkJicoKiwtLi8wMTIzNDU2Ozw9PkFDREVHSElKS0xNT1BSU1VWV1pbXF1eX2BhY2VmZ2hqbm9xcnN0dXZ3eXt+gYKDhIWGh4iJioyOj5CRkpSWl5qbnKKjpKanqausra6vsLGztLW2u7y9v8DBxMXGx8jKy8zNzs/Q09TV19jZ29zd3t/g4eLk6Ors7e/w8fLz9PX29/j5+vv8/f5xPgE3AAADE0lEQVRYw9XZ+T8UcRgH8GnJRqK0VCQ61C6dKqWSUttNdJIOHRQlOpG7A92rIlQ6kKSshJ3Pf9cPM9PM2B07853n1Uuf32a/z+v9mp195ruzz3LcP0noneZ1xOQuoJmYzARa6UnXlCYDH41DSt8aEnIxFCkhIUN6ZdGTQfPOQ5Y77AVAh93uiJryTURN7gOeEZORnT8Pcf9fopKzS27XNb1oabh7/VhqbIBJbmFmRR/U+dF4fMU0Vm9Ojgu+030mlgVMqByFdviWjUbBpAYefuLaZgScfdMDHXkYp1s82A99GSkI0gWGVUF/XDE6RMcHGMlAuncj1w715Cr6LNUNY+FPThCndwJAnrxpjMJwLqs7fxMAoEc6zObBkBsq0gkAcItHGR4w5ZLqUroB4J5wsH4EjDmqNHe7gTYbx3EcF/OdVYQnRXWezi1Cvwa5wJ6vNl8NeRVm8tjHPrqWN0WqL6fw8PLWnIhBr7d+QrNWWPdvVkwQwwdNk/xKNXkapknUq8SZ/QQkv0xJHgEBiVtK8g0J6Q6VxaUgIbFfJouIyCaZ7CIix8Ik0cYTkdiq3ocpyCsSWU5GvpLIp2TksEUk+8lILBCfgEBHis9zSYTkYaE6mZDMFarTCMlzQvUeQrJYqD5ASJYK1TsIyYtCdQohmS9Ur9JD+o5XcY74e4mQ3Cm8HjBCRyaICx1kpCdYXKghI79IC7lkZKW0kAiqZEmkZYCKXPT3/KuJxE/yJUknIs/LpPUbDRmv+OTKSMSXymZY4qEg96oarJZA/BioIhN5wqYUU2da7LZOIKPdZsnNXrdrvkmxxnsHCGo3JQ7M8zUJHjIh8tu1JpfMuaax+7HfQ0+05kUBNYxie7jmJj2jhUn8HDnZPzNNDOL7ySda1irD4usIP/MxS7HBu/3BLP9Dt3Qj30Rjp3QNcaOf6/9gVuucX1qy9H1x/L4QbGCyXO5/nMffjzc2DJ5f+mvy+VW1w/jIem6e9pyntzCeY4u9sHXc23tXtsFiZv4fnna2sm1YxEa76ouckUR/V0XEJsTZQnWc3B/WiTndgnTaKwAAAABJRU5ErkJggg==",C=Object.freeze(Object.defineProperty({__proto__:null,default:O},Symbol.toStringTag,{value:"Module"})),E="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAs4AAAAcCAMAAABGW8kTAAAAAXNSR0IArs4c6QAAAFFQTFRFAAAA//8A/6ps/6lr/6Zt/6dq/6hs/6Zr/6dq/6ds/6Vq/6Zr/6dr/6Zq/6dr/6Zr/2YA/2kF/24P/28Q/3wm/4Mx/5BH/5FJ/6Ro/6Vq/6ZrLgvUsgAAABB0Uk5TAAEhPj9UiYrCwsfY5+v4+W3lgHoAAAEiSURBVHja7dxbdoJQDEbhIN5AwCoIuOc/0D6Uai8jyFn7G8K/8hBITiI2VX08dwNSKkN3PtZV/HG4mIyyuhx+FfOuNRJl1u7e1bzvzUO59ftXNV8B1nkabx9SKrdxmleA61bPux5guRuNcrovAP1Xv9ECz4ehKK/HE2gjIg4AVrNy1zPAIaK6AIt5KLcFuFRRA6t9s7L3zytQxwmYTUPZzcAxGmAyDGU3AU10wGgYym4EuhgApydK7wYMlrNKKmebDRXUbPgpqGI+Bc9x9EedSvD1o84xikqwjVEccqsE25DbFSQV4HsFyQVRFVDNrwVR1/eVvW/+ub7v4yrl9e9xlU9fVdLTVw8TqKTDBJ6NUUlnYyKiqk+NR72UzdA1p/dRr09Rqb7En1q5jgAAAABJRU5ErkJggg==",f=Object.freeze(Object.defineProperty({__proto__:null,default:E},Symbol.toStringTag,{value:"Module"})),F="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAABcCAMAAADK+BLZAAAAAXNSR0IArs4c6QAAAnZQTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Kjcv+AAAANF0Uk5TAAECAwQFBgcICgsMDQ4PERIUFRcYGRobHB0eHyAhIiMkJicoKiwtLi8wMTIzNDU2Ozw9Pj9BQkNERUZHSElKS0xNT1BSU1VWV1haW1xdXl9gYWNlZmdoamtub3Fyc3R1dnd5e31+gIGCg4SFhoeIiYqMjY6PkJGSk5SWl5iam5yeoqOkpqeoqaqrrK2ur7Cxs7S1tri6u7y9v8DBxMXGx8jKy8zNzs/Q0dPU1dfY2dvc3d7f4OHi4+Tm5+jp6uzt7u/w8fLz9PX29/j5+vv8/f4uUO7/AAAD8UlEQVQYGdXBCVsUBQAG4A8WUYHAoxaSBAIyaMEIIyRJK7OsSMAgBDpAM9MOraAyMq0kIs9upIxcJPOqLDOKwDgXCNn5/lHs7Ow2uzOzc+w8PU/vi/9G0vsnSmCvR8gTsFcN2Qt71ZBu2KuGdMM2cV/OMmCgGHbIpUwr7JDQzyDvRtgiIb/AtYs873IVpME+NWQv7FVD9sJeleQ3sFfqhfHH8f+TVlrX+t7Rrm+7jx9868l1WQ5EJ7OmfYChxj5+6rYYWLSk3k11l3ZkwYK8jhlqE7rXwKSVxwXqcN8PExbv99KAL7Jh1OYhGjO9Kx5GJHfSOHcG9BX8RDOGNyBc2pG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value:"Module"})),D="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAs4AAAAcCAMAAABGW8kTAAAAAXNSR0IArs4c6QAAAFFQTFRFAAAAAP//PtjBOtq9Ot69Pdu+Otu8PNy+O9q8O9q8O9q9O9q8O9q9O9u9O9q8O9q8Otq8DaaJD6iLE62QHbibIr2gK8irLMmrOtm6Otm7O9q8KXIhtwAAABF0Uk5TAAEhPj4/VImKwsLH2Ofr+PmmWlXaAAABJUlEQVR42u3cWZaCUAxF0WADSiOWIOCZ/0DrQ8vqRpC3zh5CVj4uJC8RL9W+OQ8jUirjcG72VfxR91ZGWfX1r2bedZZEmXW7724+XqyHcrsc3918BdiWebp9SKncpnnZAK6vft5dANbJ0iinaQW4PPNGBzzuFkV53R9AFxFRA9jNyt3PAHVE1QOr9VBuK9BXcQA2c7Oy5+cN2McJWKyGsluAJlpgthjKbgbaGACzhvKnDWCIEXB6ovRuwGg7q6R2NmyooLDhp6CK+RQ8R+OPOpXg+aPOMYqKyBrPMYpDbpXgNeR2BUkF+FpBckFUBXTze0HU9X1lz80/1/d9XKW8/j2u8umrSnr66mEClXSYwLMxKulsTERUh1PrUS9lMw7t6fA+6vUJR6j2IEc60TQAAAAASUVORK5CYII=",S=Object.freeze(Object.defineProperty({__proto__:null,default:D},Symbol.toStringTag,{value:"Module"}));const k="_tradeDetail_a3cxv_1",N="_orderType_a3cxv_1",V="_orderImg_a3cxv_17",K="_FAILED_a3cxv_21",T="_CLOSE_a3cxv_22",j="_orderContent_a3cxv_25",Q="_ING_a3cxv_30",x="_payPrice_a3cxv_52",q="_tradeLogo_a3cxv_62",_="_title_a3cxv_69",w="_content_a3cxv_70",J="_desc_a3cxv_79",G="_num_a3cxv_80",M="_optionRow_a3cxv_85";var r={tradeDetail:k,orderType:N,orderImg:V,FAILED:K,CLOSE:T,orderContent:j,ING:Q,payPrice:x,tradeLogo:q,title:_,content:w,desc:J,num:G,optionRow:M};const s=t=>{const a=`./images/${t}`;return{"./images/icon_close.png":h,"./images/icon_close_block.png":y,"./images/icon_paying.png":C,"./images/icon_paying_block.png":f,"./images/icon_success.png":b,"./images/icon_success_block.png":S}[a].default};var re=d({name:"tradeDetail",data(){const t=this.$route.query;return{type:t.type||"ING",path:t.path,orderNo:t.orderNo||"",orderId:t.id||"",paymentStatus:!1,order:{ING:{img:s("icon_paying.png"),background:"#FF802C",title:"\u652F\u4ED8\u4E2D"},SUCCESS:{img:s("icon_success.png"),background:"var(--van-primary)",title:"\u652F\u4ED8\u6210\u529F"},FAILED:{img:s("icon_close.png"),background:"#BDBDBD",title:"\u652F\u4ED8\u5931\u8D25"},CLOSE:{img:s("icon_close.png"),background:"#BDBDBD",title:"\u8BA2\u5355\u5173\u95ED"}},result:{},loading:!0,timerOut:null,timer:3}},computed:{orderDetailList(){return this.result.orderItemList||[]}},async mounted(){setTimeout(async()=>{this.loading=!0,await this.getOrder(),this.loading=!1,this.type==="ING"&&this.path!=="tradeRecord"&&this.interval()},0)},unmounted(){clearInterval(this.timerOut)},methods:{onRePay(){R.orderInfo={orderNo:this.result.orderNo,actualPrice:this.result.actualPrice,payStatus:!0},this.paymentStatus=!0,this.interval()},interval(){let t=0;this.timerOut=setInterval(async()=>{t===25&&clearInterval(this.timerOut),await this.getOrder(!0),t++},5e3)},async getOrder(t){const a=this.orderId?`/api-mall-portal/order/detail/${this.orderId}`:`/api-mall-portal/order/detail/sn/${this.orderNo}`;try{const c=await u.get(a,{hideLoading:t});this.result=c.data,this.type=this.formatType(this.result.status),this.type!=="ING"&&clearInterval(this.timerOut)}catch{}},formatType(t){let a="PAYING";switch(console.log(v[t],t),t){case 0:case 6:a="ING";break;case 1:case 2:case 3:a="SUCCESS";break;case 4:a="CLOSE";break;case 5:a="FAILED";break;default:a="ING";break}return a}},render(){return e("div",{class:[r.tradeDetail,r[this.type]]},[!this.loading&&e(g,null,[e(p,{background:this.order[this.type].background,color:"#fff",title:"\u4EA4\u6613\u8BE6\u60C5",backIconColor:"white",border:!1},null),e("div",{class:r.orderType},[e("p",null,[e(n,{class:r.orderImg,src:this.order[this.type].img,fit:"cover"},null),e("span",null,[this.order[this.type].title])])]),e(m,{border:!1,class:[r.orderContent,"mb12"]},{default:()=>[e(l,null,{title:()=>e("div",{class:r.payPrice},[e("span",null,[A("\uFFE5")]),this.$filters.moneyFormat(this.result.payAmount)])}),this.orderDetailList.map(t=>e(l,{border:!1,style:{paddingBottom:"15px"}},{icon:()=>e(n,{class:r.tradeLogo,src:t.productPic||I,fit:"cover"},null),title:()=>e("div",{class:r.title},[e("span",null,[t.productName]),e("span",{class:r.desc},[A("\u5546\u54C1\u8D2D\u4E70")])]),default:()=>e("div",{class:r.content},[e("span",{class:r.price},[A("\uFFE5"),this.$filters.moneyFormat(t.productPrice)]),e("span",{class:r.num},[A("x"),t.productQuantity])])})),e(i,{class:r.optionRow},{default:()=>[e(o,{span:"8",offset:1},{default:()=>[A("\u8BA2\u5355\u53F7:")]}),e(o,{span:"14"},{default:()=>[this.result.orderSn]}),e(o,{span:"1"},{default:()=>[A(" ")]})]}),e(i,{class:r.optionRow},{default:()=>[e(o,{span:"8",offset:1},{default:()=>[A("\u521B\u5EFA\u65F6\u95F4:")]}),e(o,{span:"14"},{default:()=>[this.result.createTime]}),e(o,{span:"1"},{default:()=>[A(" ")]})]}),e(i,{class:r.optionRow},{default:()=>[e(o,{span:"8",offset:1},{default:()=>[A("\u4ED8\u6B3E\u65F6\u95F4:")]}),e(o,{span:"14"},{default:()=>[this.result.paymentTime]}),e(o,{span:"1"},{default:()=>[A(" ")]})]})]})])])}});export{re as default,s as getAssetsHomeFile};