微信登录问卷表单

This commit is contained in:
aixianling
2021-11-25 16:02:53 +08:00
parent 94156be077
commit 43ba05ab7c
6 changed files with 14 additions and 195 deletions

View File

@@ -37,14 +37,17 @@ export default {
...mapActions(['getToken']),
...mapMutations(['login']),
handleLogin() {
this.$refs.loginForm.validate().then(v => {
this.$refs.loginForm.validate(v => {
if (v) {
this.getToken(this.form).then(() => {
uni.navigateBack({})
}).catch(() => 0)
}
})
}
},
},
mounted() {
this.$refs.loginForm.setRules(this.rules)
}
}
</script>