1.部分接口对接 页面调整
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user