import{az as v,d as y,r as _,b as x,c as A,e as a,f as d,g as p,u as s,k as C,A as l,t as g,R as F,S as w,_ as I}from"./index.0308b213.js";const S="/admin/assets/logo1.b8504a80.png",U=n=>v({headers:{uniacid:n.uniacid,lat:"1",lng:"1"},url:"api/user.auth.auth/getWechatAuthUrl",method:"get",params:n}),b=n=>(F("data-v-eb4e7c58"),n=n(),w(),n),B={class:"register"},D=b(()=>p("div",{class:"logo"},[p("img",{src:S,alt:""})],-1)),E={style:{display:"flex","flex-direction":"column","align-items":"center","font-size":"20px","margin-top":"20px"}},P={key:1},z={key:2},R={key:1,class:"span",style:{color:"red","text-align":"center"}},O=y({setup(n){const h=_(!1),e=x({uniacid:"",openid:"",unionid:"",uid:"",nickname:"",headimgurl:""}),r=_("PC");(()=>{/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?r.value="iOS":/(Android)/i.test(navigator.userAgent)?r.value="Android":r.value="PC"})();const m=()=>{U({uniacid:e.uniacid}).then(t=>{r.value=="iOS"?window.location.href=t.data:window.open(t.data)})},i=(t,o)=>{let c=new RegExp("(^|&|&amp%3B|&amp;)"+t+"=([^&]*)(&|$)"),u=window.location.search.substr(1).match(c);return u!==null?o==="zh"?decodeURI(u[2]):unescape(u[2]):""};return(()=>{const t=i("uniacid","en"),o=i("openid","en"),c=i("unionid","en"),u=decodeURIComponent(i("nickname","zh")),f=i("headimgurl","en"),k=i("uid","en");e.uniacid=t,e.openid=o,e.unionid=c,e.nickname=u,e.headimgurl=f,e.uid=k,t&&o&&(h.value=!0)})(),(t,o)=>{const c=A("el-image");return a(),d("div",B,[D,p("div",E,[s(e).headimgurl?(a(),C(c,{key:0,style:{width:"100px",height:"100px"},src:s(e).headimgurl,fit:"cover"},null,8,["src"])):l("",!0),s(e).uid?(a(),d("span",P,"UID: "+g(s(e).uid),1)):l("",!0),s(e).nickname?(a(),d("span",z,"\u5FAE\u4FE1\u540D\u79F0: "+g(s(e).nickname),1)):l("",!0)]),h.value?(a(),d("span",R,"\u7528\u6237\u6388\u6743\u6210\u529F\uFF01\u8BF7\u4F7F\u7528UID\u641C\u7D22\u7C89\u4E1D")):(a(),d("button",{key:0,class:"btn",onClick:m},"\u6388\u6743\u767B\u5F55"))])}}});const q=I(O,[["__scopeId","data-v-eb4e7c58"]]);export{q as default};
