| | |
| | | setCustomerId(res.data.customerid); |
| | | setName(res.name); |
| | | uni.hideLoading(); |
| | | //跳转页面 |
| | | this.$nextTick(() => { |
| | | redirectHome(); |
| | | }); |
| | | if(res.data.forcePassword == 1) { //forcePassword为1强制修改密码 |
| | | uni.navigateTo({ |
| | | url: '/pages/login/resetPassword/resetPassword' |
| | | }) |
| | | }else { |
| | | //跳转页面 |
| | | this.$nextTick(() => { |
| | | redirectHome(); |
| | | }); |
| | | } |
| | | }) |
| | | .catch(err => { |
| | | this.submitLoading = false |
| | | this.$u.toast('登录异常!'); |
| | | console.log(err); |
| | | }); |
| | |
| | | }); |
| | | } |
| | | } |
| | | }) |
| | | .catch(e => { |
| | | }).catch(e => { |
| | | this.submitLoading = false |
| | | this.$u.toast(e); |
| | | }); |
| | | |
| | | } |
| | | } |
| | | }; |
| | |
| | | .dengluBtn { |
| | | margin-top: 80rpx; |
| | | } |
| | | </style> |
| | | </style> |