1.部分接口对接 页面调整

This commit is contained in:
2025-07-25 17:30:20 +08:00
parent 658d21399d
commit b82bf6ef8c
10 changed files with 1227 additions and 1231 deletions

View File

@@ -57,6 +57,9 @@
activeColor: '#007aff',
checked: false
}
},
onLoad() {
this.getUserInfo()
},
methods: {
async submit() {
@@ -82,15 +85,28 @@
this.$store.commit('$uStore', {
name: 'vuex_token',
value: res.data.access_token
});
setTimeout(() => {
uni.reLaunch({
url: '/pages/sys/home/home'
});
}, 500);
});
this.getUserInfo()
// setTimeout(() => {
// uni.reLaunch({
// url: '/pages/sys/home/home'
// });
// }, 500);
}
},
getUserInfo(){
this.$u.api.getUserInfo({loginCheck: true}).then(res => {
if (res.code == '200'){
this.$store.commit('$uStore', {
name: 'vuex_user',
value: res.data.user
});
uni.reLaunch({
url: '/pages/sys/home/home'
});
}
});
},
handleCheckboxChange(e) {
this.checked = e.target.checked;
}