| | |
| | | } |
| | | //#endif |
| | | this.$u.toast('登录成功'); |
| | | // #ifdef H5 |
| | | if(this.isJizhu.length){ //记住密码 |
| | | uni.setStorageSync('remberPassWord',{ |
| | | username: this.username, |
| | |
| | | password: '', |
| | | }); |
| | | } |
| | | //#endif |
| | | this.submitLoading = false |
| | | this.getLoginInfo(); // 记录登录信息 |
| | | this.setUserTabbar(res.data.type); |
| | |
| | | if (res.code) { |
| | | uni.setStorageSync('bindcode', res.code); |
| | | } |
| | | } |
| | | }); |
| | | this.submitLoading = false |
| | | if (uni.getStorageSync('bindcode')) { |
| | | if (uni.getStorageSync('bindcode')) { |
| | | this.$reqPost('wxBind', { state: 'MINI', code: uni.getStorageSync('bindcode') }, |
| | | 'params').then(res => { |
| | | uni.hideLoading(); |
| | |
| | | this.submitLoading = false; |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | this.submitLoading = false |
| | | |
| | | } |
| | | }).catch(e => { |
| | | this.submitLoading = false |