import{c as s,bg as t,C as e,o,e as l,w as r,b as a,i,u as c,s as u,y as n,z as d,k as p,O as f,l as b,m as g,d as m,B as _}from"./index-520dfaee.js";import{_ as x}from"./uni-list-item.7e908453.js";import{_ as h}from"./uni-list.39b1057f.js";import{b as w,a as k}from"./s-layout.5146c957.js";import{_ as y}from"./_plugin-vue_export-helper.1b428a4d.js";const $=y({__name:"setting",setup(y){const $=s((()=>u.$store("app").info)),C=s((()=>u.$store("user").isLogin)),v=t().currentSize+"Kb";function A(){u.$platform.checkUpdate()}function j(){f({title:"提示",content:"确认注销账号？",success:async function(s){if(s.confirm){const{code:s}=await u.$api.user.logoff();1===s&&(u.$store("user").logout(),u.$router.go("/pages/index/user"))}}})}function T(){f({title:"提示",content:"确认退出账号？",success:async function(s){if(s.confirm){await u.$store("user").logout()&&u.$router.go("/pages/index/user")}}})}return e({showModal:!1}),(s,t)=>{const e=b,f=g,y=a(m("uni-list-item"),x),M=a(m("uni-list"),h),S=_,z=a(m("su-fixed"),w),B=a(m("s-layout"),k);return o(),l(B,{class:"set-wrap",title:"系统设置",bgStyle:{color:"#fff"}},{default:r((()=>[i(f,{class:"header-box ss-flex-col ss-row-center ss-col-center"},{default:r((()=>[i(e,{class:"logo-img ss-m-b-46",src:c(u).$url.cdn(c($).logo),mode:"aspectFit"},null,8,["src"]),i(f,{class:"name ss-m-b-24"},{default:r((()=>[n(d(c($).name),1)])),_:1})])),_:1}),i(f,{class:"container-list"},{default:r((()=>[i(M,{border:!1},{default:r((()=>[i(y,{title:"当前版本",rightText:c($).version,showArrow:"",clickable:"",border:!1,class:"list-border",onClick:A},null,8,["rightText"]),i(y,{title:"本地缓存",rightText:v,showArrow:"",border:!1,class:"list-border"}),i(y,{title:"意见反馈",showArrow:"",clickable:"",border:!1,class:"list-border",onClick:t[0]||(t[0]=s=>c(u).$router.go("/pages/public/feedback"))}),i(y,{title:"关于我们",showArrow:"",clickable:"",border:!1,class:"list-border",onClick:t[1]||(t[1]=s=>c(u).$router.go("/pages/public/richtext",{id:c($).about_us.id,title:c($).about_us.title}))}),c(C)&&"ios"===c(u).$platform.os&&"App"===c(u).$platform.name?(o(),l(y,{key:0,title:"注销账号",rightText:"",showArrow:"",clickable:"",border:!1,class:"list-border",onClick:j})):p("",!0)])),_:1})])),_:1}),i(f,{class:"set-footer ss-flex-col ss-row-center ss-col-center"},{default:r((()=>[i(f,{class:"agreement-box ss-flex ss-col-center ss-m-b-40"},{default:r((()=>[i(f,{class:"ss-flex ss-col-center ss-m-b-10"},{default:r((()=>[i(f,{class:"tcp-text",onClick:t[2]||(t[2]=s=>c(u).$router.go("/pages/public/richtext",{id:c($).user_protocol.id,title:c($).user_protocol.title}))},{default:r((()=>[n(" 《"+d(c($).user_protocol.title)+"》 ",1)])),_:1}),i(f,{class:"agreement-text"},{default:r((()=>[n("与")])),_:1}),i(f,{class:"tcp-text",onClick:t[3]||(t[3]=s=>c(u).$router.go("/pages/public/richtext",{id:c($).privacy_protocol.id,title:c($).privacy_protocol.title}))},{default:r((()=>[n(" 《"+d(c($).privacy_protocol.title)+"》 ",1)])),_:1})])),_:1})])),_:1}),i(f,{class:"copyright-text ss-m-b-10"},{default:r((()=>[n(d(c($).copyright),1)])),_:1}),i(f,{class:"copyright-text"},{default:r((()=>[n(d(c($).copytime),1)])),_:1})])),_:1}),i(z,{bottom:"",placeholder:""},{default:r((()=>[i(f,{class:"ss-p-x-20 ss-p-b-40"},{default:r((()=>[c(C)?(o(),l(S,{key:0,class:"loginout-btn ss-reset-button ui-BG-Main ui-Shadow-Main",onClick:T},{default:r((()=>[n(" 退出登录 ")])),_:1})):p("",!0)])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-a92108ee"]]);export{$ as default};
