pages-public-setting.07de0ec3.js 3.2 KB

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