全新popiart网站 react项目重构
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

2 lines
1.2 KiB

import{j as e}from"./markdown-vendor-DnN-_XEd.js";import{u as s,r as i}from"./data-vendor-DOiUz3Tw.js";import{g as l}from"./index-D1KhT7yD.js";import"./react-vendor-B8OyfHW2.js";import"./arco-vendor-Cm-ntj-q.js";function p({onClose:r}){const{t:c}=s(),[t,a]=i.useState("");return i.useEffect(()=>{l().then(o=>{a(o?.systemConfig?.serviceQrCode??"")}).catch(()=>{a("")})},[]),e.jsxs("div",{className:"contactServiceDialog",children:[e.jsx("button",{type:"button",className:"contactServiceDialog__close",onClick:()=>r?.(),"aria-label":c("dialog.common.closeAria"),children:e.jsx("img",{src:new URL("/assets/ic_close-C0Ltcj9g.png",import.meta.url).href,alt:""})}),e.jsx("h3",{className:"contactServiceDialog__title",children:c("contactService.title")}),e.jsx("p",{className:"contactServiceDialog__desc",children:c("contactService.description")}),t?e.jsx("div",{className:"contactServiceDialog__qrBlock",children:e.jsx("img",{className:"contactServiceDialog__qrImage",src:t,alt:c("contactService.qrAlt")})}):e.jsx("div",{className:"contactServiceDialog__qrPlaceholder","aria-hidden":!0}),e.jsx("p",{className:"contactServiceDialog__tip",children:c("contactService.tip")})]})}export{p as default};
//# sourceMappingURL=index-CtSs2gOo.js.map