1 |
- import{c as s,bO as e,z as t,f as o,g as r,w as a,m as l,k as c,u as i,v as n,x as u,s as f,i as p,P as d,V as m,y as b,j as g,n as x}from"./index-ba48620e.js";import{_,a as h}from"./uni-list.8a8104ea.js";import{_ as w}from"./s-layout.04b95866.js";import{_ as k}from"./_plugin-vue_export-helper.1b428a4d.js";import"./phone-international-input.dd3ca29e.js";import"./uni-badge.539e0aa6.js";import"./useGoods.edb8879f.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};
|