pages-mine-setting.2c197cfa.js 2.2 KB

1
  1. import{_ as t,h as e,s as a,A as s,o as c,c as l,w as i,f as n,v as u,d as o,n as d,x as g,i as r,a9 as h}from"./index-01d5b8eb.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};