不知道动了撒

master
chen 2022-08-16 10:41:34 +08:00
parent aa6ca40826
commit 2a9b05b489
2 changed files with 14 additions and 4 deletions

View File

@ -62,13 +62,13 @@
return { return {
windowHeight: uni.getSystemInfoSync().windowHeight, windowHeight: uni.getSystemInfoSync().windowHeight,
ifPhone:false, ifPhone:false,
login_phone:'',// login_phone:'17366921088',//
ifCode:false, ifCode:false,
login_code:'',// login_code:'',//
ifunitName:false, ifunitName:false,
login_unitName:'',// login_unitName:'湖南争鸣光电科技有限公司',//
ifPassword:false, ifPassword:false,
login_password:'',// login_password:'123456',//
codeText:'获取验证码' ,// codeText:'获取验证码' ,//
flagCode:true ,// flagCode:true ,//
countDown:null, countDown:null,

View File

@ -8,7 +8,9 @@ Vue.use(Vuex);//vue的插件机制
const store = new Vuex.Store({ const store = new Vuex.Store({
state:{//存放状态 state:{//存放状态
uid:'', uid:'',
ifConnect:false ifConnect:false,
ifVoice:false,
ifMessage:false
}, },
mutations: { mutations: {
setUid(state, str) { setUid(state, str) {
@ -16,6 +18,14 @@ const store = new Vuex.Store({
}, },
setConnect(state, str) { setConnect(state, str) {
state.ifConnect = str; state.ifConnect = str;
},
// 语音开关设置
setVoice(state, str) {
state.ifVoice = str;
},
// 新消息通知设置
setMessage(state, str) {
state.ifMessage = str;
} }
} }
}) })