pages-public-setting.67f797d4.js 2.6 KB

1
  1. import{c as s,bW as e,z as t,f as o,g as r,w as a,s as l,m as i,k as c,u as n,v as u,x as f,i as p,P as d,V as m,y as b,j as g,n as x}from"./index-a116b7fa.js";import{_,a as h}from"./uni-list.78aaa36c.js";import{_ as w}from"./s-layout.4ae51839.js";import{_ as k}from"./_plugin-vue_export-helper.1b428a4d.js";import"./phone-international-input.b9f6c8e6.js";import"./uni-badge.9d757a16.js";import"./useGoods.6b315a78.js";const $=""+new URL("zxlogo-d0241caf.png",import.meta.url).href,j=k({__name:"setting",setup(k){const j=s((()=>l.$store("app").info)),v=s((()=>l.$store("user").isLogin)),y=e().currentSize+"Kb";function A(){l.$platform.checkUpdate()}function C(){d({title:"提示",content:"确认注销账号?",success:async function(s){if(!s.confirm)return;const{code:e}=await m.logout();0===e&&(l.$store("user").logout(),l.$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: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((()=>[n(u(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=>f(l).$router.go("/pages/public/richtext",{title:"关于我们"}))}),v.value&&"ios"===f(l).$platform.os&&"App"===f(l).$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=>f(l).$router.go("/pages/public/richtext",{title:"用户协议"}))},{default:a((()=>[n(" 《用户协议》 ")])),_:1}),c(d,{class:"agreement-text"},{default:a((()=>[n("与")])),_:1}),c(d,{class:"tcp-text",onClick:e[2]||(e[2]=s=>f(l).$router.go("/pages/public/richtext",{title:"隐私协议"}))},{default:a((()=>[n(" 《隐私协议》 ")])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-757eb3ca"]]);export{j as default};