|
@@ -48,13 +48,12 @@ export default {
|
|
};
|
|
};
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- this.isRemember = this.$store.state.vuex_isRemember;
|
|
|
|
- this.isAuthuserYs = this.$store.state.vuex_isUsrAuthYs;
|
|
|
|
|
|
+ this.isRemember = this.$store.state.vuex_isRemember || true;
|
|
|
|
+ this.isAuthuserYs = this.$store.state.vuex_isUsrAuthYs || false;
|
|
this.envTips = getApp().globalData.envTips;
|
|
this.envTips = getApp().globalData.envTips;
|
|
this.buildType = getApp().globalData.buildType;
|
|
this.buildType = getApp().globalData.buildType;
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
- console.log(this.$store.state,'----vuex')
|
|
|
|
//#ifdef APP-PLUS
|
|
//#ifdef APP-PLUS
|
|
uni.getSystemInfo({
|
|
uni.getSystemInfo({
|
|
success:(res) => {
|
|
success:(res) => {
|
|
@@ -185,7 +184,6 @@ export default {
|
|
_this.form.password = '';
|
|
_this.form.password = '';
|
|
}
|
|
}
|
|
uni.setStorageSync('loginTimeOut', 'NO');
|
|
uni.setStorageSync('loginTimeOut', 'NO');
|
|
- console.log('登陆成功')
|
|
|
|
_this.toMain();
|
|
_this.toMain();
|
|
} else {
|
|
} else {
|
|
uni.showToast({ icon: 'none', title: res.message });
|
|
uni.showToast({ icon: 'none', title: res.message });
|
|
@@ -213,12 +211,10 @@ export default {
|
|
// 判断是否记住密码
|
|
// 判断是否记住密码
|
|
rememberChange(e) {
|
|
rememberChange(e) {
|
|
this.isRemember = e.value;
|
|
this.isRemember = e.value;
|
|
- // this.isRemember = e.detail.value.length > 0;
|
|
|
|
},
|
|
},
|
|
// 隐私
|
|
// 隐私
|
|
authuserChange(e) {
|
|
authuserChange(e) {
|
|
this.isAuthuserYs = e.value;
|
|
this.isAuthuserYs = e.value;
|
|
- // this.isAuthuserYs = e.detail.value.length > 0;
|
|
|
|
this.$u.vuex('vuex_isUsrAuthYs', this.isAuthuserYs);
|
|
this.$u.vuex('vuex_isUsrAuthYs', this.isAuthuserYs);
|
|
},
|
|
},
|
|
toYsPage() {
|
|
toYsPage() {
|