import{c as s,bw as e,y as t,e as o,f as r,w as a,l,j as c,t as i,u as n,v as u,s as f,g as p,M as d,V as m,x as b,i as g,m as x}from"./index-68dd960a.js";import{_,a as h}from"./uni-list.35e48c37.js";import{_ as w}from"./s-layout.454a15cd.js";import{_ as k}from"./_plugin-vue_export-helper.1b428a4d.js";import"./phone-international-input.471da4c0.js";import"./uni-badge.ad675ab6.js";const $=""+new URL("zxlogo-d0241caf.png",import.meta.url).href,j=k({__name:"setting",setup(k){const j=s((()=>f.$store("app").info)),v=s((()=>f.$store("user").isLogin)),y=e().currentSize+"Kb";function A(){f.$platform.checkUpdate()}function C(){d({title:"提示",content:"确认注销账号？",success:async function(s){if(!s.confirm)return;const{code:e}=await m.logout();0===e&&(f.$store("user").logout(),f.$router.go("/pages/index/user"))}})}return t({showModal:!1}),(s,e)=>{const t=b,d=g,m=l(x("uni-list-item"),_),k=l(x("uni-list"),h),T=l(x("s-layout"),w);return o(),r(T,{class:"set-wrap",title:"系统设置",bgStyle:{color:"#fff"}},{default:a((()=>[c(d,{class:"header-box ss-flex-col ss-row-center ss-col-center"},{default:a((()=>[c(t,{class:"logo-img ss-m-b-46",src:$,mode:"aspectFit"}),c(d,{class:"name ss-m-b-24"},{default:a((()=>[i(n(j.value.name),1)])),_:1})])),_:1}),c(d,{class:"container-list"},{default:a((()=>[c(k,{border:!1},{default:a((()=>[c(m,{title:"当前版本",rightText:j.value.version,showArrow:"",clickable:"",border:!1,class:"list-border",onClick:A},null,8,["rightText"]),c(m,{title:"本地缓存",rightText:y,showArrow:"",border:!1,class:"list-border"}),c(m,{title:"关于我们",showArrow:"",clickable:"",border:!1,class:"list-border",onClick:e[0]||(e[0]=s=>u(f).$router.go("/pages/public/richtext",{title:"关于我们"}))}),v.value&&"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:C})):p("",!0)])),_:1})])),_:1}),c(d,{class:"set-footer ss-flex-col ss-row-center ss-col-center"},{default:a((()=>[c(d,{class:"agreement-box ss-flex ss-col-center ss-m-b-40"},{default:a((()=>[c(d,{class:"ss-flex ss-col-center ss-m-b-10"},{default:a((()=>[c(d,{class:"tcp-text",onClick:e[1]||(e[1]=s=>u(f).$router.go("/pages/public/richtext",{title:"用户协议"}))},{default:a((()=>[i(" 《用户协议》 ")])),_:1}),c(d,{class:"agreement-text"},{default:a((()=>[i("与")])),_:1}),c(d,{class:"tcp-text",onClick:e[2]||(e[2]=s=>u(f).$router.go("/pages/public/richtext",{title:"隐私协议"}))},{default:a((()=>[i(" 《隐私协议》 ")])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-757eb3ca"]]);export{j as default};
