test_lgq/niucloud/public/wap/assets/app-pages-setting-index.81decc74.js
2024-01-24 17:36:08 +08:00

2 lines
2.2 KiB
JavaScript

import{d as e,X as a,r as l,a as t,c as s,h as n,i as o,w as r,j as i,m as u,l as p,be as d,ac as c,t as m,p as g,q as f,Y as v,ag as h,bf as x}from"./index-849cf30e.js";import{_,a as b,b as w}from"./u-action-sheet.27d0ae04.js";import{_ as j}from"./_plugin-vue_export-helper.1b428a4d.js";import"./u-icon.e3aa4770.js";import"./u-line.19eb5c40.js";import"./u-loading-icon.d012ecbf.js";import"./u-popup.e01742d2.js";import"./u-transition.75065529.js";import"./u-safe-bottom.2f6af56c.js";const k=j(e({__name:"index",setup(e){const j=a(),k=l("1.0.1"),y=t({"zh-Hans":{name:"简体中文",fontSize:"14",value:"zh-Hans"},en:{name:"English",fontSize:"14",value:"en"}}),z=l(!1),C=s((()=>{const e=x();return y[e].name})),S=e=>{d.loadLocaleMessages("/"+c(),e.value)};return(e,a)=>{const l=m,t=g(f("u-cell"),_),s=g(f("u-cell-group"),b),d=g(f("u-action-sheet"),w);return n(),o(l,{class:"w-full h-screen bg-page"},{default:r((()=>[i(l,{class:"h-[30rpx]"}),i(l,{class:"m-[30rpx] bg-white rounded-md overflow-hidden px-[20rpx] py-[10rpx]"},{default:r((()=>[i(s,{border:!1},{default:r((()=>[i(t,{title:u(v)("personalSettings"),"is-link":!0,url:"/app/pages/member/personal"},null,8,["title"]),i(t,{title:u(v)("switchLang"),"is-link":!0,value:u(C),onClick:a[0]||(a[0]=e=>z.value=!0)},null,8,["title","value"]),i(t,{title:u(v)("version"),value:k.value},null,8,["title","value"])])),_:1})])),_:1}),i(l,{class:"m-[30rpx] bg-white rounded-md overflow-hidden px-[20rpx] py-[10rpx]"},{default:r((()=>[i(s,{border:!1},{default:r((()=>[i(t,{title:u(v)("userAgreement"),"is-link":!0,url:"/app/pages/auth/agreement?key=service"},null,8,["title"]),i(t,{title:u(v)("privacyAgreement"),"is-link":!0,url:"/app/pages/auth/agreement?key=privacy"},null,8,["title"])])),_:1})])),_:1}),u(h)()?p("v-if",!0):(n(),o(l,{key:0,class:"m-[30rpx] bg-white rounded-md overflow-hidden px-[20rpx]"},{default:r((()=>[i(s,{border:!1},{default:r((()=>[i(t,{title:u(v)("logout"),class:"text-center",onClick:a[1]||(a[1]=e=>u(j).logout(!0))},null,8,["title"])])),_:1})])),_:1})),i(d,{actions:y,show:z.value,closeOnClickOverlay:!0,safeAreaInsetBottom:!0,onClose:a[2]||(a[2]=e=>z.value=!1),onSelect:S},null,8,["actions","show"])])),_:1})}}}),[["__scopeId","data-v-f734da60"]]);export{k as default};