import{_ as a}from"./el-navbar.DVIyjZEN.js";import{a as s,C as e,D as l,E as t,t as r,b as u,d as c,e as o,f as i,w as n,g as d,_,l as f,j as p,v as g,A as y,K as m,p as v,y as b,aj as k}from"./index-DVkgSHpn.js";import{_ as h}from"./el-avatar.B3xidLeS.js";import{_ as x,b as C,a as j}from"./el-layout._U-vZTft.js";const z=x({__name:"setting",setup(x){const z=s(),w=e(),{isLogin:D,user:I}=l(w),{site:A}=l(z);t((()=>{D.value||r("pages/user/login")}));const B=()=>{w.logout(),r("pages/user/login")};return(s,e)=>{const l=u(c("el-navbar"),a),t=u(c("el-avatar"),h),x=v,z=b,w=u(c("uni-icons"),C),E=k,K=u(c("el-layout"),j);return o(),i(K,null,{default:n((()=>[d(l,{placeholder:!0,fixed:!0,autoBack:!0,border:!0,title:"个人设置"}),d(x,{class:"top-wrap"},{default:n((()=>[d(x,{class:"top-user"},{default:n((()=>[d(x,{class:"user-box",onClick:e[1]||(e[1]=_((a=>f(r)("pages/ucenter/user/user")),["stop"]))},{default:n((()=>[d(x,{class:"avatar"},{default:n((()=>[f(D)&&null!=f(I).avatar?(o(),i(t,{key:0,size:"55",src:f(I).avatar},null,8,["src"])):p("",!0),f(D)||null==f(A).avatar?p("",!0):(o(),i(t,{key:1,size:"55",src:f(A).avatar},null,8,["src"]))])),_:1}),f(D)?(o(),i(x,{key:0,class:"user"},{default:n((()=>[d(x,null,{default:n((()=>[g(y(f(I).username),1)])),_:1}),d(x,null,{default:n((()=>[f(m)(f(I).mobile)?(o(),i(z,{key:1},{default:n((()=>[g("UID: "+y(f(I).id),1)])),_:1})):(o(),i(z,{key:0},{default:n((()=>[g("手机："+y(f(I).mobile),1)])),_:1}))])),_:1})])),_:1})):(o(),i(x,{key:1,class:"user"},{default:n((()=>[d(x,{onClick:e[0]||(e[0]=a=>f(r)("pages/user/login"))},{default:n((()=>[g("点击登录")])),_:1})])),_:1})),d(x,{class:"right"},{default:n((()=>[d(w,{type:"right",size:"17",color:"#aaa"})])),_:1})])),_:1})])),_:1})])),_:1}),d(x,{class:"line"}),d(x,{class:"list-wrap"},{default:n((()=>[d(x,{class:"list-cell",onClick:e[2]||(e[2]=a=>f(r)("pages/ucenter/user/password"))},{default:n((()=>[d(x,{class:"list-box"},{default:n((()=>[d(x,{class:"center"},{default:n((()=>[g("登录密码")])),_:1}),d(x,{class:"right"},{default:n((()=>[d(w,{type:"right",size:"17",color:"#aaa"})])),_:1})])),_:1})])),_:1})])),_:1}),d(x,{class:"line"}),d(x,{class:"list-wrap"},{default:n((()=>[d(x,{class:"list-cell",onClick:e[3]||(e[3]=a=>f(r)("pages/user/agreement?type=service"))},{default:n((()=>[d(x,{class:"list-box"},{default:n((()=>[d(x,{class:"center"},{default:n((()=>[g("隐私政策")])),_:1}),d(x,{class:"right"},{default:n((()=>[d(w,{type:"right",size:"17",color:"#aaa"})])),_:1})])),_:1})])),_:1}),d(x,{class:"list-cell",onClick:e[4]||(e[4]=a=>f(r)("pages/user/agreement?type=privacy"))},{default:n((()=>[d(x,{class:"list-box"},{default:n((()=>[d(x,{class:"center"},{default:n((()=>[g("服务政策")])),_:1}),d(x,{class:"right"},{default:n((()=>[d(w,{type:"right",size:"17",color:"#aaa"})])),_:1})])),_:1})])),_:1})])),_:1}),d(x,{class:"btn"},{default:n((()=>[d(E,{class:"logout",onClick:B},{default:n((()=>[g("退出登录")])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-ac5e2b60"]]);export{z as default};
//# sourceMappingURL=pages-ucenter-user-setting.DJCF5yzL.js.map
