import{c as s,bs as t,v as e,e as o,f as r,w as a,l,j as c,p as i,t as n,u,s as f,g as d,T as p,Q as m,q as g,i as b,m as x,D as _}from"./index-219abc09.js";import{_ as h,a as w}from"./uni-list.6882862c.js";import{a as k,_ as $}from"./s-layout.e3f07a22.js";import{_ as y}from"./_plugin-vue_export-helper.1b428a4d.js";import"./form.480ce5b4.js";const j=""+new URL("zxlogo-d0241caf.png",import.meta.url).href,C=y({__name:"setting",setup(y){const C=s((()=>f.$store("app").info)),A=s((()=>f.$store("user").isLogin)),T=t().currentSize+"Kb";function v(){f.$platform.checkUpdate()}function M(){p({title:"提示",content:"确认注销账号？",success:async function(s){if(!s.confirm)return;const{code:t}=await m.logout();0===t&&(f.$store("user").logout(),f.$router.go("/pages/index/user"))}})}function S(){p({title:"提示",content:"确认退出账号？",success:async function(s){if(!s.confirm)return;const{code:t}=await m.logout();0===t&&(f.$store("user").logout(),f.$router.go("/pages/index/user"))}})}return e({showModal:!1}),(s,t)=>{const e=g,p=b,m=l(x("uni-list-item"),h),y=l(x("uni-list"),w),z=_,L=l(x("su-fixed"),k),U=l(x("s-layout"),$);return o(),r(U,{class:"set-wrap",title:"系统设置",bgStyle:{color:"#fff"}},{default:a((()=>[c(p,{class:"header-box ss-flex-col ss-row-center ss-col-center"},{default:a((()=>[c(e,{class:"logo-img ss-m-b-46",src:j,mode:"aspectFit"}),c(p,{class:"name ss-m-b-24"},{default:a((()=>[i(n(u(C).name),1)])),_:1})])),_:1}),c(p,{class:"container-list"},{default:a((()=>[c(y,{border:!1},{default:a((()=>[c(m,{title:"当前版本",rightText:u(C).version,showArrow:"",clickable:"",border:!1,class:"list-border",onClick:v},null,8,["rightText"]),c(m,{title:"本地缓存",rightText:T,showArrow:"",border:!1,class:"list-border"}),c(m,{title:"关于我们",showArrow:"",clickable:"",border:!1,class:"list-border",onClick:t[0]||(t[0]=s=>u(f).$router.go("/pages/public/richtext",{title:"关于我们"}))}),u(A)&&"ios"===u(f).$platform.os&&"App"===u(f).$platform.name?(o(),r(m,{key:0,title:"注销账号",rightText:"",showArrow:"",clickable:"",border:!1,class:"list-border",onClick:M})):d("",!0)])),_:1})])),_:1}),c(p,{class:"set-footer ss-flex-col ss-row-center ss-col-center"},{default:a((()=>[c(p,{class:"agreement-box ss-flex ss-col-center ss-m-b-40"},{default:a((()=>[c(p,{class:"ss-flex ss-col-center ss-m-b-10"},{default:a((()=>[c(p,{class:"tcp-text",onClick:t[1]||(t[1]=s=>u(f).$router.go("/pages/public/richtext",{title:"用户协议"}))},{default:a((()=>[i(" 《用户协议》 ")])),_:1}),c(p,{class:"agreement-text"},{default:a((()=>[i("与")])),_:1}),c(p,{class:"tcp-text",onClick:t[2]||(t[2]=s=>u(f).$router.go("/pages/public/richtext",{title:"隐私协议"}))},{default:a((()=>[i(" 《隐私协议》 ")])),_:1})])),_:1})])),_:1})])),_:1}),c(L,{bottom:"",placeholder:""},{default:a((()=>[c(p,{class:"ss-p-x-20 ss-p-b-40"},{default:a((()=>[u(A)?(o(),r(z,{key:0,class:"loginout-btn ss-reset-button ui-BG-Main ui-Shadow-Main",onClick:S},{default:a((()=>[i(" 退出登录 ")])),_:1})):d("",!0)])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-fa458f1b"]]);export{C as default};
