不知道动了撒
parent
aa6ca40826
commit
2a9b05b489
|
@ -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,
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue