import{_ as a}from"./el-navbar.DVIyjZEN.js";import{C as e,a as s,r as t,o as l,t as o,E as r,b as d,d as u,e as n,f as c,w as f,g as i,v as m,z as _,l as p,j as g,p as b,aj as v,y as x,an as y}from"./index-DVkgSHpn.js";import{_ as k}from"./el-avatar.B3xidLeS.js";import{_ as j}from"./el-checkbox.DqvOzTsU.js";import{_ as h,a as C}from"./el-layout._U-vZTft.js";const V=h({__name:"oauth",setup(h){const V=e(),z=s().getApp(),B=t(z.avatar),L=t(!1),w=t(!1);l((a=>{V.isLogin&&o("pages/index/ucenter")})),r((()=>{}));const A=()=>{o(uni.$config.get("tabBar.defaultHome","pages/index/index"))};return(e,s)=>{const t=d(u("el-navbar"),a),l=d(u("el-avatar"),k),r=b,h=v,V=d(u("el-checkbox"),j),E=x,H=y,I=d(u("el-layout"),C);return n(),c(I,null,{default:f((()=>[i(t,{placeholder:!0,fixed:!0,autoBack:!1,border:!0,title:"授权登录",onLeft:A}),i(r,{class:"avabar-box"},{default:f((()=>[i(r,null,{default:f((()=>[i(l,{src:B.value,size:80},null,8,["src"])])),_:1}),i(r,{class:"text"},{default:f((()=>[m("授权登录")])),_:1})])),_:1}),i(r,{class:"the-form"},{default:f((()=>[i(H,null,{default:f((()=>[i(r,{class:"form-item"},{default:f((()=>[i(r,{class:"form-item-body"},{default:f((()=>[i(h,{onClick:e.login,class:_(["form-item-button",{active:w.value}]),"form-type":"button"},{default:f((()=>[m(" 通 过 微 信 登 录 ")])),_:1},8,["onClick","class"])])),_:1})])),_:1}),i(r,{class:"form-item"},{default:f((()=>[i(r,{class:"form-item-body",style:{padding:"0","padding-bottom":"30rpx"}},{default:f((()=>[i(r,{class:"not-login-btn",onClick:A},{default:f((()=>[m("暂不登录")])),_:1})])),_:1})])),_:1}),1==p(z).users_agree?(n(),c(r,{key:0,class:"form-item"},{default:f((()=>[i(r,{class:"form-item-body",style:{padding:"0"}},{default:f((()=>[i(r,{class:"form-item-text"},{default:f((()=>[i(V,{modelValue:L.value,"onUpdate:modelValue":s[0]||(s[0]=a=>L.value=a),shape:"circle"},null,8,["modelValue"]),i(r,{class:"agreement-box"},{default:f((()=>[m(" 已阅读并同意 "),i(E,{onClick:s[1]||(s[1]=a=>p(o)("pages/user/agreement?type=service"))},{default:f((()=>[m("《服务协议》")])),_:1}),m(" 和 "),i(E,{onClick:s[2]||(s[2]=a=>p(o)("pages/user/agreement?type=privacy"))},{default:f((()=>[m("《隐私协议》")])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})):g("",!0)])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-7ade98dd"]]);export{V as default};
//# sourceMappingURL=pages-user-oauth.BuKfMSk4.js.map
