diff --git a/src/renderer/src/layout/components/Aside.vue b/src/renderer/src/layout/components/Aside.vue index d2188a0..b29dc8a 100644 --- a/src/renderer/src/layout/components/Aside.vue +++ b/src/renderer/src/layout/components/Aside.vue @@ -11,11 +11,12 @@
@@ -35,22 +33,22 @@
-
@@ -86,13 +84,17 @@ const btnLoading = ref(false) const isSubject = ref(false) const RegModel = ref(false) const isRegister = ref(true) +const ruleFormRef = ref(null) //表单 const loginForm = reactive({ username: '', password: '', rememberMe: false }) - +// 注册表单 +const ruleForm = reactive({ + +}) //表单规则 const rules = reactive({ username: [{ required: true, trigger: 'blur', message: '请输入您的账号' }], @@ -172,7 +174,30 @@ const setCookie = (name, value) => { } return session.defaultSession.cookies.set(cookie) } - +// 注册 +const RegisterForm = async (formEl) => { + if (!formEl) return + await formEl.validate((valid, fields) => { + if (valid) { + + var form={ + + } + // signIn(form).then(res=>{ + // if(res.code==200){ + // ElMessage.success('您已注册成功,等待学校管理员审核') + // if (ruleFormRef.value) ruleFormRef.value.resetFields() + + // }else{ + // ElMessage.error(res.msg) + // } + // }) + console.log('submit!') + } else { + console.log('error submit!', fields) + } + }) +} onMounted(() => { localStorage.clear() sessionStore.set('subject', { diff --git a/src/renderer/src/views/schoolCertification/index.vue b/src/renderer/src/views/schoolCertification/index.vue new file mode 100644 index 0000000..18ff6f9 --- /dev/null +++ b/src/renderer/src/views/schoolCertification/index.vue @@ -0,0 +1,13 @@ + + + + + \ No newline at end of file