提交 c1e017b4 authored 作者: Yroc's avatar Yroc

'学生登录'

上级 f5e59b9a
......@@ -3,7 +3,7 @@
* @Author: AnthonyD
* @Date: 2023-02-22 11:31:31
* @Last Modified by: AnthonyD
* @Last Modified time: 2023-03-20 18:33:10
* @Last Modified time: 2023-03-20 18:43:23
*/
</script>
<template>
......@@ -347,22 +347,23 @@ export default {
// }
sendMessage() {
this.is_loading = true;
getCode({ email: this.loginForm.email })
.then((res) => {
this.loginForm.eamil_key = res.key || null;
this.countDown();
this.is_loading = false;
})
.catch(() => {
this.is_loading = false;
});
this.$refs.ruleForm.validate((valid) => {
if (valid) {
console.log('效验通过');
}
this.$refs.ruleForm.validateField('email', (errMsg) => {
getCode({ email: this.loginForm.email })
.then((res) => {
this.loginForm.eamil_key = res.key || null;
this.countDown();
this.is_loading = false;
})
.catch(() => {
this.is_loading = false;
});
// this.$refs.ruleForm.validate((valid) => {
// if (valid) {
// console.log('效验通过');
// }
// });
});
// this.$refs.ruleForm.validateField('email', (errMsg) => {
// });
},
goLogin() {
this.$router.push('/login_info');
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论