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 @@
- -
+
-
学校认证
未认证
+ - 加入学校
- 个人中心
- 班级中心
- 退出登录
diff --git a/src/renderer/src/router/index.js b/src/renderer/src/router/index.js
index 3e2ea8b..d61e5d4 100644
--- a/src/renderer/src/router/index.js
+++ b/src/renderer/src/router/index.js
@@ -134,6 +134,19 @@ export const constantRoutes = [
name: 'setting',
meta: {title: '设置'}
},
+ {
+ path: '/joinSchool',
+ component: () => import('@/views/joinSchool/index.vue'),
+ name: 'joinSchool',
+ meta: {title: '加入学校'}
+ },
+ {
+ path: '/schoolCertification',
+ component: () => import('@/views/schoolCertification/index.vue'),
+ name: 'schoolCertification',
+ meta: {title: '学校认证'}
+ },
+
]
},
...toolRouters
diff --git a/src/renderer/src/views/joinSchool/index.vue b/src/renderer/src/views/joinSchool/index.vue
new file mode 100644
index 0000000..506bfdd
--- /dev/null
+++ b/src/renderer/src/views/joinSchool/index.vue
@@ -0,0 +1,42 @@
+
+
+
加入学校
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 关闭
+ 确定
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/renderer/src/views/login/index.vue b/src/renderer/src/views/login/index.vue
index 70f530e..97529c7 100644
--- a/src/renderer/src/views/login/index.vue
+++ b/src/renderer/src/views/login/index.vue
@@ -26,8 +26,6 @@
@@ -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