import{S as e,u as a,l as s,aH as l}from"./common-utils-RDWuRZ1M.js";import{_ as t}from"./BtnClose-8jXpWY6_.js";import{U as o,o as c,b as n,h as u,t as i,u as r,q as d,I as p,x as m,r as v,j as g,s as _,bd as f,V as b}from"./vendor-jA_NIjzi.js";import{_ as h}from"./common-store-kFD1YPwN.js";const k={class:"revoke-popup"},R={class:"content"},j={class:"button-area"},U=h({__name:"RevokePopup",emits:["close"],setup(a,{emit:s}){const{t:l}=o(),v=s,g=()=>{v("close",!0)};return(a,s)=>{const o=e;return c(),n("div",k,[u("header",null,[u("p",null,i(r(l)("友情提示")),1),d(t,{class:"btn-close",onClick:s[0]||(s[0]=e=>v("close"))})]),u("p",R,i(r(l)("有任何问题请联系在线客服协助解决")),1),u("div",j,[d(o,{class:"item-btn",onClick:g},{default:p((()=>[m(i(r(l)("继续撤销")),1)])),_:1}),d(o,{class:"item-btn",type:"cancel",onClick:s[1]||(s[1]=e=>v("close"))},{default:p((()=>[m(i(r(l)("暂不撤销")),1)])),_:1})])])}}},[["__scopeId","data-v-9190736a"],["__file","RevokePopup.vue"]]),x={class:"upload-recharge-receipt"},y={class:"cus-btn"},C={class:"content"},P={class:"title"},w={class:"upload-area"},V={class:"uploader-content"},B=["src"],G={class:"button-wrapper"},I={class:"tips"},z=h({__name:"UploadRechargeReceipt",emits:["close",confirm],setup(h,{emit:k}){const{t:R}=o(),{theme:j}=a(),U=k,z=v([]),J=v(""),L=v(!1),M=async e=>{e.status="uploading",e.message=R("上传中");try{const a=await l(e);e.status="success",e.message=R("上传成功"),e.resURL=a,L.value=!0}catch(a){e.status="failed",e.message=R("上传失败")}},q=e=>!!["image/jpeg","image/png","image/jpg"].includes(e.type)||(_(R("请上传PNGJPG或JPEG格式的图片")),!1),E=e=>{_(R("上传大小不能超过10MB"))},H=()=>{let e=[];for(let a=0;a<z.value.length;a++)e.push(z.value[a].resURL.body.data.imageUrl);J.value=e.join(","),U("confirm",J.value)},N=()=>{z.value=[],J.value="",L.value=!1,U("close")};return g((()=>{})),(a,l)=>{const o=f,v=e,g=b;return c(),n("div",x,[u("header",null,[u("p",null,i(r(R)("上传凭证确认充值xx",{word:z.value.length})),1),u("div",y,[d(t,{onClick:N})])]),u("div",C,[u("div",P,[u("h5",null,i(r(R)("请您上传这笔充值凭证截图")),1),u("p",null,[l[1]||(l[1]=u("span",null,"* ",-1)),m(i(r(R)("文件格式为大小不超过10MB")),1)])]),u("div",w,[d(o,{class:"custom-style",modelValue:z.value,"onUpdate:modelValue":l[0]||(l[0]=e=>z.value=e),multiple:"","max-count":3,"max-size":10485760,"after-read":M,"before-read":q,onOversize:E},{default:p((()=>[u("div",V,[u("img",{src:r(s)("recharge/add-".concat(r(j),".png")),alt:""},null,8,B),u("p",null,i(r(R)("添加")),1)])])),_:1},8,["modelValue"])]),u("div",G,[d(v,{block:"",disabled:0===z.value.length,onClick:H},{default:p((()=>[m(i(r(R)("提交")),1)])),_:1},8,["disabled"])]),u("div",I,[d(g,{name:"warning"}),u("p",null,i(r(R)("提交真实凭证后平台会加速处理您的订单请耐心等候")),1)])])])}}},[["__scopeId","data-v-6e3cb4d9"],["__file","UploadRechargeReceipt.vue"]]);export{U as R,z as U};
