index-9931718c.js 11 KB

1
  1. import{d as T,P as U,q as R,x as d,y as D,a as o,S as B,V as N,A as n,W as v,D as b}from"./index-0f430fcc.js";import{u as C,a as E}from"./index-9b258718.js";import{I as m}from"./index-15acf057.js";import{C as g}from"./index-3a587880.js";import{C as l}from"./index-787e92a9.js";import{T as K}from"./index-9a0fefcc.js";const F="_paymentTitle_81m65_1",S="_orderType_81m65_6",z="_img_81m65_14",k="_orderPrice_81m65_24",j="_mTop_81m65_30",O="_cellGroup_81m65_33",x="_tips_81m65_36",M="_iconTips_81m65_41",Q="_btnDownload_81m65_57",w="_brandName_81m65_74",L="_buyDetail_81m65_91",G="_buyDetailTitle_81m65_109",Y="_refundBtn_81m65_113",J="_buyImg_81m65_118",h="_container_81m65_125",q="_dialogTitle_81m65_129",V="_goodsTitle_81m65_145",W="_refundContent_81m65_148",X="_refundTitle_81m65_156",Z="_phoneName_81m65_166",t={paymentTitle:F,orderType:S,img:z,orderPrice:k,mTop:j,cellGroup:O,tips:x,iconTips:M,btnDownload:Q,brandName:w,buyDetail:L,buyDetailTitle:G,refundBtn:Y,buyImg:J,container:h,dialogTitle:q,goodsTitle:V,refundContent:W,refundTitle:X,phoneName:Z},H="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAMAAAAqwkWTAAAAvVBMVEUAAAD//f///////////v///v///f///f///v///f///v///v///v///////v///f///f///v///v///v///v///////v///v///v///f///v///v///v///v///f///v///f///f///P7//v///f///v///////v///v///////v///v///f///v///f///v///v///v///v///f///v///v///v///v///v///v///////v///P///f/////1I4WHAAAAPHRSTlMA+gUfTtjuyPyT53dKCrQU9XPKr6V70Yxf6/K3Mygdq6KPiFhILu7cZBDinZlsOCMX3tRUQvfDvYLNaDxwbmizAAAGQUlEQVRo3q1aiVriMBCe3pRCW+5TDmFBEC+8drX1/R9rIbEkMZ2kFf5P0WaS+TOTyWRKC8Vh1Rp+2HxavVYqr6unZug3ahZcGvedcPWVg1XYub8cy7K9StP06yvlPrmr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xzBGTl51JzAEBHIFhDk5nJg25YwdtOf3wAjevNZmM1DN7pZFEfh/k0xw0b5otoChKMf4Qf6PDiSp8sKoYQfERCNuiea2jLdyyJwNTyuwkKH/UqOSauuYapRPSSFEcDaohkRg6+JMEj3HwvQVQDC5HQo7zJtQw6zwdQW4IguN4jI7GVcBGRTU5rLLxLwj2WW4iM1p/7yxCFx3MKkdECcnkZos6xJEZkJDnIW4NU9LuyRPekyEeEBinyN1ux9RgNplOSZ0BvWzAxPe3GsZgylvCIJwB0r7BlQDct2IbY+pqUxhIIqph8+ECZVKrd3czQ8VSBoof2+L5ZfhngPSYAto6ol93+411aQDB5Q7aAT6L9n4bo9ADQw/vsstpmkGfOJxWO1DweZLCVAUNRD7Y/z0aa9/DjjiUzrubDMYpOx4J/2j/xW+eUzK2umqcLDAtVx/WYq03Hdv9mUbsyWdNykKixAA7KrW4ovhjcaLORI5W2KqP6SKF6Vy1w5Alo6eZ1t5FoouAp0aIFIiaxbkQsfh39cBMWyUXDCfxAkBRA9gX77l1ymZH/G8ju9jIh/SkITW/PzHsIIinQkhoam1wLcmATIT5tNQueE2TMEZ2IkawJY+yhj94QpUY+KWs32Ahu8MgEBHUP8UTJ6KDw6oAi2ktKMRPph3AljnUi9QPf30ed6MmtpXuEnespQ88h/ru3QIPIQybOLORaxCvG50VFXjOg/Zne8hjVoQDMnjLK5LCWRHMTisF2Jb2c10Q62XjXLvNyizpFyGwMnlXydR3BHiTByY3DwIRymLSQlMPHoLRvW5NfvVKlyBK5cGq/fkmMKDXkHcNCgP3pLs567Y3pVIeBZ5//Il+S6NjIi3znYzkbyMpZNAxmS7gY7oPQzb0NC4N7uDQmx9dHvbUbG0bsrr3j66Mlgvk/hyd/3R3TQUgAAAAASUVORK5CYII=",u="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAMAAAAqwkWTAAAAmVBMVEUAAAD//v///f///v///////P///v///f///v///f///v///v///////////v///v///v///v///v///f///////f///v///f///v///P///////v///v///P///f///////////P///v///v///f///////v//////////+v///f//+P///////v///f//+/7//f///////P+jJlmRAAAAL3RSTlMAHu38BclO9LSNSNhLyfXlelb5lAreuHRDFO6udzijX2fRwFk90W5SLy+BJKOciSFvLC0AAAP7SURBVGjetNZtk5owFAXgE0BEIPiCr6jbnW3tOtNte/z/f65ad/aCEAICzwccvIRDJvEKmlPxJg30KktcN8lWOkg3sULfjrMgu1TIgtkRvQk/HJKXC3PH3JnzEaIH58n0fktRDptOzujG159zkNkYzrWP581PFDIHORac5nhOGMntTYr1KER7as8n7BXa8Q7j4lOzltTHBw8tKM2naYXG/IwdZD6a8Sbs5jLx0MByzc7WS1jtNEva7wq9g4WK2ItIWXKm7Mm0NmkXsTfRDkZLzR7pJQy8tXHJpZ+1qK89VJuw7EIje32CSr7hmUXruo8KqvB/bdCy7iiUeCP2PyOOyst04CAOeKDGHMRYoWjPgexREHMwIfIiDiZCzpwDmkOcOKBTvicMSvrDiIMa4dOZAztL1x6SdPEpO/uZssYU/4U95AC/7T/aF3b1arvNC24cduO+Wtulg6tjTznwAhodAcw65nxr8jI9AxB0zpGkNxoEAJzOOSKsWSTVKec78n6MaaIQs4FAd8xhjA2t3Bl+ZSxbzG05YoOUNs4WwLs1ZztmjdS+6bSq7ryLd3uOCKBZL/XkBbOQ4xdzEtbSWDHn7xXzEtm+ypF6KSdMZHylFTK5oCJuCxG7Ul/EDznV4+UbB7dLbqXS8YZr5Pz5qiQh8uKFYbycJXArn+Dq/jmD8N5495DjL0zjJcz9V6vdLqkJg1EAPokE5KOyrlKl7trqdrqjO+1xvP+Lq1KnAYFNguH5pSTvHCOBYYa3CtJuA/rTZA1N5NXR2bqV01uvg2b1KR3Lz0to6wnJu5z35/56bQZJgz1qjmTUzJk/04ZEQZMjavbRz2bOhFYKqMYyG84XvEiglc2ctwmN9dW4wvTyReucLgW0Vo65nhdTLFqH2/YBOn2fsKk/doGVntBf8seQY6onV8hoI+vKoYMMovkrepbfcZp+6PWY6ykASRsqaOc4kACmtBLf5dDJFMATrbbo6R01v6jZ1D8BeDWHVL591HJOjXFz/SsuJO18CXCzOtGNxNWWlhZDc7jFVUJbb7h6obMEldz2/44+qs3TYqrP8U9MW7tlK8fl0jjQ2u8jBzjgRpm26GPjSj9ecFQh/ttxRDtoc45ojpqUo0lRl3E0CRo2HMkGTSLiKCIBzXwHG34dveBeoDgCFaBFSHonBTqEZ3p2DtEppmdx76s3evU1QI+lokdqiV5lSm/SEp8QBT0phOkVNr1IBQxKRQ9UadNm4GG/Le0aJ/igOICdUPIBMoQ1oTiYEo7tOhxEt+vYEhsOsBFwl6V0lGYYZr6jg90cw4WKllSIxxzinEZ5fIAHyVbyE3KbeG22lJ0hHpstm+2jqpARGclCObaP/gVANaAa9iFXLwAAAABJRU5ErkJggg==",i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAMAAAAqwkWTAAAAh1BMVEUAAAD//f///f///v///f///////P///v///f///v///v///v///v///////////P///////v///f///P///P///v///f///f///v///f7//f///v//////////+v///////v///////P///////P//////+v//////8v//////+/7//f////++ts/fAAAAKnRSTlMAg4uMHgTt+/XYtHhO7smeU0tIycfm3tGjlHRXC4I4FOK3t66uLy84FIOf0oflAAADxklEQVRo3rWa15KjMBBFL0ZgshfntJ4cVj3//33rKQ8rtLJaiHAeqIKmOW4l7LLQHVEfD1m1LZP5PCm3VXY41gJj85Fn5dcdyiz/wFhEy31JRF9f1Dq2zsr9MsJw3sLN7ZEKU7YJ3zCMovqpQVVjOa8K9Oe0I4WqQR01dif0Y5mqx9vQ4+kS/ogX6sGLgB9RnlALriY9nuSRVzkV9abyKKooaQBl0bXZQhrGV9ip+c5PNJinM5w8VGTgPyqqBzgQKY1CKhyeRxqJR9b0kNJopEzrnSsakco6IqIna5er9cwj/mQb5SGZaI/0jYeW9YD5zAqveIE7CO19bcEzXgoYRGsavyJam92U0yTkRsMlNAmJgM4LTcQLNGqajKUmSmkyUrQ40YScoNjRhOy0NYFh/isklvDXnDgKNKx4DxA6VjTetGo8by4Pa5oBLtObWrV5z5UZU48y8fdEG97DmmaA27S5rXhLsnP1sKZQxX85J+2e7ARgTSEUf8jOHt/ExPCbM82gCIghxpULUVdTaK8nIJYP80XE18S3G/9ayqiHyWw3ngxASV6mXh4qAUEG/NhjPAwCNfma+nioxpG8TT08dMSB/E3+HjqoQecxIvw9lKGijgRDPFRhSy3kFcbEevj8LUrzBnWmXwmsHnd+jETKW8g4mteC/zwq4sxPMLdXoKWarReouDt/3ogU6lzd2DBDi1DF3flzJO1bjPI1aAaNUIWc+Qli2RnlMUxOYmx9PP1NW6z0Ms2maOLKY5rc+StkRJKFSKvHMHXLz3AwLjvbLdBW2G75BxxtNxDZPFKbuSGTrziilgwWj2FyU0OYn4KI9xBZTCrfQACxbz03jH5iiQFkPTzerZcByM1ieU+PmigHcCGfejxNTREXXIm9PL1qivHN3tfj3097fLOUdhaahzUtpJ3lz09LZgFZaB4iq2nBLECbiCtaNwW2eNB4GELceJesqfEwJt4j3/HDmog3BSRZ04I4zxoNhWRZBHw8WPDxAv/YyQnZQXGSE3JCi1RORoo2tZyMJTRe5US8QkckchISgf/IJQM3z/h4fucvAzkB6wgGIh7fEwvcoRhfVNi+3o5MiPtEz+N6niNYOK/G9KzOsPKZjudJP/k/fMfyPAqwiHSkegQcfK5G6Z8HODk/jzDezt02TgyePxG6UcRDNHGBzoh1f89aeG7X6adJ8gh+iNde71MBf+rUe/LUvTeJ+Wh2J/SnWHceAwWG8T7buC2b2fs4WxNjdt6orYnDueRZfFeS5Rf0hN8+utrG39tH4+3Kc/voX3uK4SrdGis8AAAAAElFTkSuQmCC",y="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAMAAAAqwkWTAAAAeFBMVEUAAAD//////f///f///v///v//+////////////P///f///v///v///f///v///////////v///v///P///P///v///f///f///v///v///f///v//+v//+////////v///f///////f///////f3/+/7//f////8AYPAQAAAAJXRSTlMANx6S+LUwDATt9ePYjU7uyUtIycfm3tGud3RXLxQL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kz5HtIN4Xtp0JfgU4fOQfRngL6pYjXS1SyMiKJwVrU8Pvof0Iqeq5IP3lEAAAAASUVORK5CYII=",ae=T({name:"payment-result",setup(){const r=U();R();const e=d({refund:r.query.refund,orders:{},goodsInfos:[],background:"transparent",color:"#fff",backIconColor:"white",timer:null,timerCount:0});d({resionList:[],refundStatus:!1,resion:null,refundSelect:{},checked:null});const c=async()=>{try{if(!r.query.orderNo)return;const{data:s}=await b.post("/edu-app/open/userOrder/paymentStatus/"+r.query.orderNo);e.orders=s||{};const a=s.goodsInfos||[];a.forEach(A=>{const I=A.goodsUrl?A.goodsUrl.split(",")[0]:"";A.goodsUrl=I}),e.goodsInfos=a}catch(s){}},f=async()=>{["WAIT_PAY","PAYING"].includes(e.orders.status)&&e.timerCount<=10?e.timer=setTimeout(async()=>{e.timerCount+=1,await c(),f()},3e3):clearTimeout(e.timer)},P=s=>({WAIT_PAY:y,PAYING:y,PAID:u,TIMEOUT:i,FAIL:i,CLOSED:i,REFUNDING:H,REFUNDED:u})[s]||u,p=s=>({WAIT_PAY:"支付中",PAYING:"支付中",PAID:"支付成功",TIMEOUT:"订单超时",FAIL:"支付失败",CLOSED:"订单关闭",REFUNDING:"退款中",REFUNDED:"已退款"})[s];return D(async()=>{await c(),await f(),C(document,"scroll",()=>{const{y:s}=E();s.value>52?(e.background="#fff",e.color="#323333",e.backIconColor="black"):(e.background="transparent",e.color="#fff",e.backIconColor="white")})}),()=>o("div",{class:t.paymentResult},[o("div",{class:[t.paymentTitle]},[B().isApp&&o(N,{border:!1,background:e.background,color:e.color},null),e.orders.id&&o("div",{class:t.orderType},[o(m,{class:t.img,src:P(e.orders.status)},null),o("div",{class:t.orderInfo},[o("span",null,[p(e.orders.status)]),e.orders.status==="PAID"||e.orders.status==="REFUNDING"?o("div",{class:t.orderPrice},[n("实付金额:¥"),v(e.orders.paymentCashAmount)]):"",e.orders.status==="REFUNDED"&&o("div",{class:t.orderPrice},[n("退款金额:¥"),v(e.orders.paymentCashAmount)])])])]),o(g,{inset:!0,class:[t.cellGroup,t.mTop]},{default:()=>[o(l,null,{title:()=>"付款时间",value:()=>o("span",null,[e.orders.payTime||"--"])}),o(l,null,{title:()=>"订单编号",value:()=>o("span",null,[e.orders.orderNo])})]}),o(g,{inset:!0,class:t.cellGroup},{default:()=>[o("div",{class:t.buyDetail},[o("div",{class:t.buyDetailTitle},[o("i",null,null),n(" 购买详情")])]),e.goodsInfos.map(s=>o(l,null,{icon:()=>o(m,{class:t.buyImg,src:s.goodsUrl},null),title:()=>o("div",{class:t.buyContent},[o("p",{class:t.goodsTitle},[s.goodsName]),o(K,{class:t.brandName},{default:()=>[e.orders.orderType==="VIP"||s.goodsType==="VIP"?"12个月":s.brandName]})]),value:()=>o("span",null,[n("x"),s.goodsNum])}))]})])}});export{ae as default};