import{C as a,D as s,r as e,b as l,d as t,e as n,f as r,w as u,g as c,x as o,l as i,j as d,v as f,A as m,ao as _,a4 as p,p as v,B as b}from"./index-DVkgSHpn.js";import{_ as g}from"./el-navbar.DVIyjZEN.js";import{_ as j}from"./el-avatar.B3xidLeS.js";import{_ as x,a as y}from"./el-layout._U-vZTft.js";const h=x({__name:"index",setup(x){const h=a(),{isLogin:k,user:w}=s(h),C=e(uni.$http.getDomain()),q=()=>{_({data:C.value+"/mobile"+("?u="+w.value.id||""),success:function(){p({title:"复制成功",content:"内容已复制到粘贴板，可前往其他应用粘贴查看。",showCancel:!1,success:function(a){a.confirm||a.cancel}})}})};return(a,s)=>{const e=l(t("el-navbar"),g),_=v,p=l(t("el-avatar"),j),x=b,h=l(t("el-layout"),y);return n(),r(h,null,{default:u((()=>[c(e,{placeholder:!0,fixed:!0,border:!1,title:"邀请好友"}),c(_,{class:"wrapper"},{default:u((()=>[c(_,{class:"banner",style:o({"background-image":"url("+C.value+"/static/mobile/share/banner.jpg?v=1)"})},null,8,["style"]),c(_,{class:"content"},{default:u((()=>[c(_,{class:"avatar"},{default:u((()=>[null!=i(w)?(n(),r(p,{key:0,size:"60",src:i(w).avatar},null,8,["src"])):d("",!0),c(_,{class:"username"},{default:u((()=>[f(m(i(w).username),1)])),_:1})])),_:1}),c(_,{class:"qrcode"},{default:u((()=>[c(_,null,{default:u((()=>[c(x,{src:C.value+"/api/common/qrcode"+("?u="+i(w).id||"")},null,8,["src"])])),_:1})])),_:1}),c(_,{class:"button"},{default:u((()=>[c(_,{onClick:q},{default:u((()=>[f("复制分享链接")])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-ca213681"]]);export{h as default};
//# sourceMappingURL=pages-ucenter-share-index.DhWzeNxS.js.map
