import{D as f,d as g,r,c as a,e as d,f as x,h as e,i as o,u as C,a2 as E,k as h,A as b,m as k,_ as F}from"./index.0308b213.js";import{v as Q}from"./vue-qr.b9282eb1.js";const w=()=>f({url:"merchant/shop.Index/getQrcode"}),q={class:"container"},y=k("\u91CD\u65B0\u751F\u6210\u5E97\u94FA\u4E8C\u7EF4\u7801"),B=g({setup(V){const l=r({logo:"",qr_code_text:""}),n=r([]),s=r(!1),u=()=>{w().then(t=>{l.value=t})},i=()=>{s.value=!1};u();const m=(t,c)=>{n.value=[t]};return(t,c)=>{const _=a("el-form-item"),p=a("el-button"),v=a("el-image-viewer");return d(),x("div",q,[e(C(E),null,{default:o(()=>[e(_,{onClick:c[0]||(c[0]=A=>s.value=!0),label:"\u5C0F\u7A0B\u5E8F\u95E8\u5E97\u4E8C\u7EF4\u7801"},{default:o(()=>[e(Q,{callback:m,correctLevel:3,dotScale:.65,logoSrc:l.value.logo,margin:2,text:l.value.qr_code_text,size:460},null,8,["dotScale","logoSrc","text"])]),_:1}),e(_,null,{default:o(()=>[e(p,{type:"primary",onClick:u},{default:o(()=>[y]),_:1})]),_:1})]),_:1}),s.value?(d(),h(v,{key:0,onClose:i,"url-list":n.value},null,8,["url-list"])):b("",!0)])}}});const N=F(B,[["__scopeId","data-v-d8cb638b"]]);export{N as default};
