import{c as s,bv as e,y as t,e as o,f as a,w as l,l as r,j as c,t as i,u as n,v as u,s as f,g as d,U as p,T as m,V as b,x as g,i as x,m as _,G as h}from"./index-9aa72eed.js";import{_ as w,a as k}from"./uni-list.f205631b.js";import{a as $,_ as v}from"./s-layout.bffb18b8.js";import{_ as y}from"./_plugin-vue_export-helper.1b428a4d.js";import"./form.c66b5271.js";import"./uni-badge.cc270d88.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=e().currentSize+"Kb";function M(){f.$platform.checkUpdate()}function S(){p({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"))}})}function U(){p({title:"提示",content:"确认退出账号？",success:async function(s){if(!s.confirm)return;const{code:e}=await m.logout();0===e&&(f.$store("user").logout(),b("linkId"),f.$router.go("/pages/index/user"))}})}return t({showModal:!1}),(s,e)=>{const t=g,p=x,m=r(_("uni-list-item"),w),b=r(_("uni-list"),k),y=h,z=r(_("su-fixed"),$),G=r(_("s-layout"),v);return o(),a(G,{class:"set-wrap",title:"系统设置",bgStyle:{color:"#fff"}},{default:l((()=>[c(p,{class:"header-box ss-flex-col ss-row-center ss-col-center"},{default:l((()=>[c(t,{class:"logo-img ss-m-b-46",src:j,mode:"aspectFit"}),c(p,{class:"name ss-m-b-24"},{default:l((()=>[i(n(C.value.name),1)])),_:1})])),_:1}),c(p,{class:"container-list"},{default:l((()=>[c(b,{border:!1},{default:l((()=>[c(m,{title:"当前版本",rightText:C.value.version,showArrow:"",clickable:"",border:!1,class:"list-border",onClick:M},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:e[0]||(e[0]=s=>u(f).$router.go("/pages/public/richtext",{title:"关于我们"}))}),A.value&&"ios"===u(f).$platform.os&&"App"===u(f).$platform.name?(o(),a(m,{key:0,title:"注销账号",rightText:"",showArrow:"",clickable:"",border:!1,class:"list-border",onClick:S})):d("",!0)])),_:1})])),_:1}),c(p,{class:"set-footer ss-flex-col ss-row-center ss-col-center"},{default:l((()=>[c(p,{class:"agreement-box ss-flex ss-col-center ss-m-b-40"},{default:l((()=>[c(p,{class:"ss-flex ss-col-center ss-m-b-10"},{default:l((()=>[c(p,{class:"tcp-text",onClick:e[1]||(e[1]=s=>u(f).$router.go("/pages/public/richtext",{title:"用户协议"}))},{default:l((()=>[i(" 《用户协议》 ")])),_:1}),c(p,{class:"agreement-text"},{default:l((()=>[i("与")])),_:1}),c(p,{class:"tcp-text",onClick:e[2]||(e[2]=s=>u(f).$router.go("/pages/public/richtext",{title:"隐私协议"}))},{default:l((()=>[i(" 《隐私协议》 ")])),_:1})])),_:1})])),_:1})])),_:1}),c(z,{bottom:"",placeholder:""},{default:l((()=>[c(p,{class:"ss-p-x-20 ss-p-b-40"},{default:l((()=>[A.value?(o(),a(y,{key:0,class:"loginout-btn ss-reset-button ui-BG-Main ui-Shadow-Main",onClick:U},{default:l((()=>[i(" 退出登录 ")])),_:1})):d("",!0)])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-2b07745b"]]);export{C as default};
