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