| | |
| | | v-model="username" |
| | | @changeInput="changeInput2" |
| | | @input="handleInput2" |
| | | :placeholder="'请选择手机号'" |
| | | :placeholder="'请输入登录账号'" |
| | | ></customPagination> |
| | | </view> |
| | | </view> |
| | |
| | | redirectLogin() |
| | | }, |
| | | async identifyResult(result){ |
| | | if(result==true){ |
| | | if(result=='true'){ |
| | | this.$u.toast('人脸检测完成'); |
| | | //登录接口 |
| | | uni.showLoading({ |
| | |
| | | }); |
| | | }else{ |
| | | this.submitLoading = false |
| | | this.$u.toast('登录失败!'); |
| | | this.$u.toast('人脸检测失败!'); |
| | | } |
| | | }, |
| | | changeInput2(e){ |
| | |
| | | ...mapMutations(['setUserTabbar']), |
| | | //登录 |
| | | async submit() { |
| | | uni.showLoading({ |
| | | title: '登录中...' |
| | | }); |
| | | //表单校验 |
| | | if (this.username.length === 0) { |
| | | this.$u.toast('请输入账号'); |
| | | return; |