1 |
- import{C as d}from"./index.4cc32b24.js";import{d as u,b as t,F as g,I as l,m as p,p as n,j as a,k as i,C as o}from"./vendor.2bcdc9cf.js";/* empty css *//* empty css *//* empty css *//* empty css */import{i as m}from"./icon_teacher.40b6f077.js";import{r as I}from"./index.b8b9219f.js";import{o as R}from"./orderStatus.c1cbd21b.js";import{o as B}from"./shop-mall.fff18e3c.js";var h="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAABcCAMAAADK+BLZAAAAAXNSR0IArs4c6QAAAo5QTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////gqK45QAAANl0Uk5TAAECAwQFBgcICQoLDA0ODxESFBUWFxgaGxwdHh8gISIjJCUmJygqLC0uLzAxMjM0NTY5Ojs8PT4/QUJDREVHSElKS0xNTk9QUVJTVFVWV1laW1xdXl9gYWJjZWZnaGprbm9wcXJzdHV2d3h5e36BgoOEhYaHiImKjI6PkJGSlJaXmJqbnKCio6Smp6mrrK2ur7CxsrO0tba3ubq7vL2+v8DBw8TFxsfIycrLzM3Oz9DR09TV1tfY2dvc3d7f4OHi4+Tl5+jp6uzt7/Dx8vP09fb3+Pn6+/z9/p3Wte0AAARGSURBVBgZ1cGJWxR1AAbgj11cDFg5PGCtVBJEUUArK7W0rLSsLDC71swrw9BKKy0tITvMIy/IDjzoUBO2CO8sRU1FPFhTZOf7b9qZWZbZ3d/M7szO0/P0vvhvuL/cOwH2eo7cC3t5yWbYy0s2wV5esgm2Sd3VzR7n74MdRlBjDeyQcZZhgZmwRcbostLl5OHS0jIP7OMlm2EvL9kMe80m98Fe+UevvYL/H8+kuWvWb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ryTT/ENaODibtVnYIEDNnPRJ0aj8Q45lxiIm6+m46E9V/XxXiknUUw5Y61/9BIYEsZTBu05BD1nF1ZBGtKVzZ3M8bx2occSEL29Lc3tVynquvYjlWV+bBFxsCCksI8twNx/QvwqxJz/w8hWgAAAABJRU5ErkJggg==",v=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:h}),U="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAs4AAAAcCAMAAABGW8kTAAAAAXNSR0IArs4c6QAAAEtQTFRFAAAA////////////////////////////////////////////////////////vb29wMDAxsbG1NTU29vb6Ojo6enp/f39/v7+////It3KEQAAAA90Uk5TAAEhPj9UiYrCx9jn6/j5MskQvQAAASBJREFUeNrt3Ft2glAMRuEgglxbQcA9/5H2Qau9jCBn7W8IWXn4ITmJeKrqthtnpFTmsWvrKv5oBiujrIbmVzOfekuizPrTu5vPk/VQbtP51c0fAMe2LtdPKZXrsm4HwMezn08TwL5YGuW07ADTI2/0wP1mUZTX7Q70ERENgN2s3P0M0ERUA7BbD+W2A0MVNXCYm5U9Px9AHRdgsxrKbgPa6IDVYii7FehiBMwayp82gDFmwOmJ0rsCs+2sktrZsKGCwoafgiroU7D1R51K8PhR5xhFRWSNxxjFIbdK8Bxyu4KkAnyvILkgqgK6+bUg6vq+sufmn+v7Pq5SXv8eV/n0VSU9ffUwgUo6TODZGJV0NiYiqvriUS+lM4/d5X3U6wvntlpXf2D72AAAAABJRU5ErkJggg==",E=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:U}),C="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==",b=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:C}),f="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==",y=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:f}),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+6rYYWLSk3k11l3ZkwYK8jhlqE7rXwKSVxwXqcN8PExbv99KAL7Jh1OYhGjO9Kx5GJHfSOHcG9BX8RDOGNyBc2pGJK00xCFrnoTnCMwg17wLnNCOgcoamvRIDuXvocwWSOoEWvAO5Cvp44LfRS0tehkyah3M+gmj1NC1qhMyjHvKMEz4ZI7TKWw6ZtIp74+ET76Z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8PNy+O9q8O9q8O9q9O9q8O9q9O9u9O9q8O9q8Otq8DaaJD6iLE62QHbibIr2gK8irLMmrOtm6Otm7O9q8KXIhtwAAABF0Uk5TAAEhPj4/VImKwsLH2Ofr+PmmWlXaAAABJUlEQVR42u3cWZaCUAxF0WADSiOWIOCZ/0DrQ8vqRpC3zh5CVj4uJC8RL9W+OQ8jUirjcG72VfxR91ZGWfX1r2bedZZEmXW7724+XqyHcrsc3918BdiWebp9SKncpnnZAK6vft5dANbJ0iinaQW4PPNGBzzuFkV53R9AFxFRA9jNyt3PAHVE1QOr9VBuK9BXcQA2c7Oy5+cN2McJWKyGsluAJlpgthjKbgbaGACzhvKnDWCIEXB6ovRuwGg7q6R2NmyooLDhp6CK+RQ8R+OPOpXg+aPOMYqKyBrPMYpDbpXgNeR2BUkF+FpBckFUBXTze0HU9X1lz80/1/d9XKW8/j2u8umrSnr66mEClXSYwLMxKulsTERUh1PrUS9lMw7t6fA+6vUJR6j2IEc60TQAAAAASUVORK5CYII=",D=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:S});const k="_tradeDetail_a3cxv_1",j="_orderType_a3cxv_1",N="_orderImg_a3cxv_17",V="_FAILED_a3cxv_21",x="_CLOSE_a3cxv_22",K="_orderContent_a3cxv_25",T="_ING_a3cxv_30",Q="_payPrice_a3cxv_52",q="_tradeLogo_a3cxv_62",_="_title_a3cxv_69",J="_content_a3cxv_70",w="_desc_a3cxv_79",G="_num_a3cxv_80",M="_optionRow_a3cxv_85";var A={tradeDetail:k,orderType:j,orderImg:N,FAILED:V,CLOSE:x,orderContent:K,ING:T,payPrice:Q,tradeLogo:q,title:_,content:J,desc:w,num:G,optionRow:M};const s=e=>{const r=`./images/${e}`;return{"./images/icon_close.png":v,"./images/icon_close_block.png":E,"./images/icon_paying.png":b,"./images/icon_paying_block.png":y,"./images/icon_success.png":O,"./images/icon_success_block.png":D}[r].default};var et=u({name:"tradeDetail",data(){const e=this.$route.query;return{type:e.type||"ING",path:e.path,orderNo:e.orderNo||"",orderId:e.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 e=0;this.timerOut=setInterval(async()=>{e===25&&clearInterval(this.timerOut),await this.getOrder(!0),e++},5e3)},async getOrder(e){const r=this.orderId?`/api-mall-portal/order/detail/${this.orderId}`:`/api-mall-portal/order/detail/sn/${this.orderNo}`;try{const c=await I.get(r,{hideLoading:e});this.result=c.data,this.type=this.formatType(this.result.status),this.type!=="ING"&&clearInterval(this.timerOut)}catch{}},formatType(e){let r="PAYING";switch(console.log(B[e],e),e){case 0:case 6:r="ING";break;case 1:case 2:case 3:r="SUCCESS";break;case 4:r="CLOSE";break;case 5:r="FAILED";break;default:r="ING";break}return r}},render(){return t("div",{class:[A.tradeDetail,A[this.type]]},[!this.loading&&t(g,null,[t(d,{background:this.order[this.type].background,color:"#fff",title:"\u4EA4\u6613\u8BE6\u60C5",backIconColor:"white",border:!1},null),t("div",{class:A.orderType},[t("p",null,[t(l,{class:A.orderImg,src:this.order[this.type].img,fit:"cover"},null),t("span",null,[this.order[this.type].title])])]),t(p,{border:!1,class:[A.orderContent,"mb12"]},{default:()=>[t(n,null,{title:()=>t("div",{class:A.payPrice},[t("span",null,[a("\uFFE5")]),this.$filters.moneyFormat(this.result.payAmount)])}),this.orderDetailList.map(e=>t(n,{border:!1,style:{paddingBottom:"15px"}},{icon:()=>t(l,{class:A.tradeLogo,src:e.productPic||m,fit:"cover"},null),title:()=>t("div",{class:A.title},[t("span",null,[e.productName]),t("span",{class:A.desc},[a("\u5546\u54C1\u8D2D\u4E70")])]),default:()=>t("div",{class:A.content},[t("span",{class:A.price},[a("\uFFE5"),this.$filters.moneyFormat(e.productPrice)]),t("span",{class:A.num},[a("x"),e.productQuantity])])})),t(i,{class:A.optionRow},{default:()=>[t(o,{span:"8",offset:1},{default:()=>[a("\u8BA2\u5355\u53F7:")]}),t(o,{span:"14"},{default:()=>[this.result.orderSn]}),t(o,{span:"1"},{default:()=>[a(" ")]})]}),t(i,{class:A.optionRow},{default:()=>[t(o,{span:"8",offset:1},{default:()=>[a("\u521B\u5EFA\u65F6\u95F4:")]}),t(o,{span:"14"},{default:()=>[this.result.createTime]}),t(o,{span:"1"},{default:()=>[a(" ")]})]}),t(i,{class:A.optionRow},{default:()=>[t(o,{span:"8",offset:1},{default:()=>[a("\u4ED8\u6B3E\u65F6\u95F4:")]}),t(o,{span:"14"},{default:()=>[this.result.paymentTime]}),t(o,{span:"1"},{default:()=>[a(" ")]})]})]})])])}});export{et as default,s as getAssetsHomeFile};
|