2 lines
2.2 KiB
JavaScript
Executable File
2 lines
2.2 KiB
JavaScript
Executable File
import{_ as t,u as e,s as a,z as s,o as c,c as l,w as i,j as n,g as u,i as o,f as d,r as g,k as r,a7 as h}from"./index-22d2df30.js";const f=e(a);const v=t({data:()=>({loginStore:f,globalConfig:f.globalConfig,setting:{voiceStatus:!0,vibrateStatus:!1,circleAvatar:!1}}),created(){let t=s("appSetting")??"";t&&(this.setting=t)},methods:{setVoice(t){this.setting.voiceStatus=t.detail.value,this.saveSet()},setVibrate(t){this.setting.vibrateStatus=t.detail.value,this.saveSet()},setAvatar(t){this.setting.circleAvatar=t.detail.value,this.saveSet()},saveSet(){f.setAppSetting(this.setting)}}},[["render",function(t,e,a,s,f,v){const _=g("cu-custom"),b=n,S=r,m=h;return c(),l(b,null,{default:i((()=>[u(_,{bgColor:"bg-gradual-green",isBack:!0},{backText:i((()=>[])),content:i((()=>[o("通用设置")])),_:1}),u(b,{class:"cu-bar bg-white solid-bottom margin-top"},{default:i((()=>[u(b,{class:"action"},{default:i((()=>[o("新消息")])),_:1})])),_:1}),u(b,{class:"cu-list menu"},{default:i((()=>[u(b,{class:"cu-item"},{default:i((()=>[u(b,{class:"content"},{default:i((()=>[u(S,null,{default:i((()=>[o("声音")])),_:1})])),_:1}),u(b,{class:"action"},{default:i((()=>[u(m,{class:d(["switch",f.setting.voiceStatus?"checked":""]),onChange:v.setVoice,checked:f.setting.voiceStatus},null,8,["onChange","class","checked"])])),_:1})])),_:1}),u(b,{class:"cu-item"},{default:i((()=>[u(b,{class:"content"},{default:i((()=>[u(S,null,{default:i((()=>[o("震动")])),_:1})])),_:1}),u(b,{class:"action"},{default:i((()=>[u(m,{class:d(["switch",f.setting.vibrateStatus?"checked":""]),onChange:v.setVibrate,checked:f.setting.vibrateStatus},null,8,["onChange","class","checked"])])),_:1})])),_:1})])),_:1}),u(b,{class:"cu-bar bg-white solid-bottom margin-top"},{default:i((()=>[u(b,{class:"action"},{default:i((()=>[o("其他设置")])),_:1})])),_:1}),u(b,{class:"cu-list menu"},{default:i((()=>[u(b,{class:"cu-item"},{default:i((()=>[u(b,{class:"content"},{default:i((()=>[u(S,null,{default:i((()=>[o("圆形头像")])),_:1})])),_:1}),u(b,{class:"action"},{default:i((()=>[u(m,{class:d(["switch",f.setting.circleAvatar?"checked":""]),onChange:v.setAvatar,checked:f.setting.circleAvatar},null,8,["onChange","class","checked"])])),_:1})])),_:1})])),_:1})])),_:1})}]]);export{v as default};
|