Commit 48779b16 by 李伟康

commit 单帐号默认选中

1 parent cf8c0a3b
......@@ -100,6 +100,11 @@ export default {
}
},
onLoad (options) {
if(options.stepIndex == 1 ) {
this.$nextTick(()=>{
this.$refs.account.getListSelectAccount(true)
})
}
},
mounted () {
},
......
......@@ -60,7 +60,7 @@ export default {
this.getListSelectAccount()
},
methods: {
getListSelectAccount () {
getListSelectAccount (autoLogin = false) {
uni.showLoading()
uni.$api.userApi.getListSelectAccount().then(res => {
uni.hideLoading()
......@@ -74,6 +74,7 @@ export default {
uni.$storage.set('sessionId', sessionId);
this.loginUserInfoList = loginUserInfoList
this.copyLoginUserInfoList = loginUserInfoList
if(autoLogin) this.chooseAccount(loginUserInfoList[0])
} else uni.showToast({
title: message,
icon: 'none',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!