import{d as e,r as t,b as s,c as a,g as n,f as o,h as l,w as r,j as i,l as f,u as d,i as u,t as p,P as c,e as g,x as m}from"./index.ef18fbfd.js";import{h as x}from"./html2canvas.esm.3d083717.js";import{_ as h}from"./plugin-vue_export-helper.21dcd24c.js";var _=h(e({setup(e){const h=t({temIMg:"",useInfo:{}});function _(){c.goBack()}return s((()=>{a.storeInfo({link:n("subdomain")}).then((e=>{h.useInfo=e})),setTimeout((()=>{const e=document.getElementById("aa");e&&x(e,{useCORS:!0}).then((e=>{h.temIMg=e.toDataURL("image/png")}))}),500)})),(e,t)=>{const s=g("van-icon"),a=m,n=g("van-sticky"),c=g("van-image"),x=g("van-col"),y=g("van-row");return o(),l(a,{class:"bg-max bg-gray",style:{background:"#ffffff",height:"100vh"}},{default:r((()=>[i(n,null,{default:r((()=>[i(a,{class:"justify-center bg-white sh pd-px-20 mg-b-20"},{default:r((()=>[i(s,{class:"top-left",name:"arrow-left",onClick:_}),i(a,{class:"top-center"},{default:r((()=>[f("店铺名片")])),_:1})])),_:1})])),_:1}),d(h).temIMg?(o(),l(a,{key:1,style:{margin:"20rpx 30rpx"}},{default:r((()=>[u("img",{crossOrigin:"anonymous",src:d(h).temIMg,alt:"",style:{width:"100%"}},null,8,["src"])])),_:1})):(o(),l(a,{key:0,id:"aa",style:{position:"absolute",margin:"20rpx 30rpx",top:"-99999px"}},{default:r((()=>[i(c,{src:"../../static/img/dz/info-bg.png"}),i(a,{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}},{default:r((()=>[i(a,{style:{"text-align":"center"}},{default:r((()=>[u("img",{crossOrigin:"anonymous",style:{"border-radius":"50%",border:"2rpx solid #DDDDDD",width:"140rpx",height:"140rpx"},radius:"20rpx",src:d(h).useInfo.headImg+"?t="+(new Date).getTime()},null,8,["src"]),i(a,{style:{"font-size":"34rpx","font-weight":"bold","margin-top":"20rpx"}},{default:r((()=>[f(p(d(h).useInfo.storeName),1)])),_:1})])),_:1}),i(a,{class:"e-card"},{default:r((()=>[i(y,{class:"pd-h-px-10"},{default:r((()=>[i(x,{span:"2"},{default:r((()=>[i(s,{name:"phone-o"})])),_:1}),i(x,{span:"18",style:{"text-align":"left","font-size":"26rpx"}},{default:r((()=>[f(p(d(h).useInfo.contactPhone),1)])),_:1})])),_:1}),i(y,{class:"pd-h-px-10",style:{"margin-top":"10rpx"}},{default:r((()=>[i(x,{span:"2"},{default:r((()=>[i(s,{name:"location-o"})])),_:1}),i(x,{span:"22",style:{"text-align":"left","font-size":"26rpx","font-weight":"400"}},{default:r((()=>[f(p(d(h).useInfo.areaAddress),1)])),_:1})])),_:1}),i(y,{class:"e-logo"},{default:r((()=>[u("img",{crossOrigin:"anonymous",style:{width:"300rpx",height:"300rpx"},src:d(h).useInfo.appletCode+"?t="+(new Date).getTime()},null,8,["src"])])),_:1})])),_:1}),i(a,{class:"e-text"},{default:r((()=>[f(" 长按或扫码进入小程序商城 ")])),_:1})])),_:1})])),_:1}))])),_:1})}}}),[["__scopeId","data-v-0b615e15"]]);export{_ as default};
