不知道动了撒

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 {
windowHeight: uni.getSystemInfoSync().windowHeight,
ifPhone:false,
login_phone:'',//
login_phone:'17366921088',//
ifCode:false,
login_code:'',//
ifunitName:false,
login_unitName:'',//
login_unitName:'湖南争鸣光电科技有限公司',//
ifPassword:false,
login_password:'',//
login_password:'123456',//
codeText:'获取验证码' ,//
flagCode:true ,//
countDown:null,

View File

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