|
|
@@ -1,24 +1,50 @@
|
|
|
<template>
|
|
|
<div class="login-view-container">
|
|
|
<div>
|
|
|
- <h1><span>SEEC</span> 用户注册</h1>
|
|
|
- <c-input placeholder="用户名"></c-input>
|
|
|
- <c-input placeholder="密码"></c-input>
|
|
|
- <c-input placeholder="确认密码"></c-input>
|
|
|
- <c-input placeholder="邮箱"></c-input>
|
|
|
- <div class="verified-code-wrapper">
|
|
|
- <c-input placeholder="邮箱验证码"></c-input>
|
|
|
- <c-button>发送验证码</c-button>
|
|
|
- </div>
|
|
|
- <c-input placeholder="手机"></c-input>
|
|
|
- <div class="verified-code-wrapper">
|
|
|
- <c-input placeholder="手机验证码"></c-input>
|
|
|
- <c-button>发送验证码</c-button>
|
|
|
- </div>
|
|
|
- <div class="button-area">
|
|
|
- <c-button @click.native="handleSubmit">确认</c-button>
|
|
|
- <c-button class="help-button">帮助</c-button>
|
|
|
- </div>
|
|
|
+ <h1 class="title"><span>SEEC</span> 用户注册</h1>
|
|
|
+ <section class="step-1" v-show="step === 1">
|
|
|
+ <div class="sub-title">
|
|
|
+ 登录信息
|
|
|
+ <span>1/2</span>
|
|
|
+ </div>
|
|
|
+ <c-input placeholder="邮箱" v-model="email"></c-input>
|
|
|
+ <div class="verified-code-wrapper">
|
|
|
+ <c-input placeholder="邮箱验证码" v-model="emailCode"></c-input>
|
|
|
+ <c-button class="secondary" @click="handleSendEmailCode">发送验证码</c-button>
|
|
|
+ </div>
|
|
|
+ <section class="tip mb-24">
|
|
|
+ <div>关于邮箱的说明:</div>
|
|
|
+ <div>1. 邮箱需为南京大学校邮</div>
|
|
|
+ <div>2. 系统根据邮箱判定您的身份为教师还是学生</div>
|
|
|
+ </section>
|
|
|
+ <c-input placeholder="密码" v-model="password"></c-input>
|
|
|
+ <c-input placeholder="确认密码" v-model="passwordEnsure"></c-input>
|
|
|
+ <c-button class="secondary full-width mb-16" @click="step = 2">下一步</c-button>
|
|
|
+ </section>
|
|
|
+ <section class="step=2" v-show="step === 2">
|
|
|
+ <section class="tip">
|
|
|
+ <div>已填写的邮箱:{{}}</div>
|
|
|
+ </section>
|
|
|
+ <c-button @click="step = 1" class="warning full-width mb-16">上一步</c-button>
|
|
|
+ <div class="sub-title">
|
|
|
+ 其他信息
|
|
|
+ <span>2/2</span>
|
|
|
+ </div>
|
|
|
+ <c-input placeholder="姓名"></c-input>
|
|
|
+ <section class="tip">
|
|
|
+ <div>请使用真实姓名,便于学生、老师之间辨认</div>
|
|
|
+ </section>
|
|
|
+ <c-input placeholder="手机"></c-input>
|
|
|
+ <div class="verified-code-wrapper">
|
|
|
+ <c-input placeholder="手机验证码"></c-input>
|
|
|
+ <c-button class="secondary">发送验证码</c-button>
|
|
|
+ </div>
|
|
|
+ <div class="button-area">
|
|
|
+ <c-button @click="handleSubmit">确认</c-button>
|
|
|
+ <c-button class="secondary">帮助</c-button>
|
|
|
+ </div>
|
|
|
+ </section>
|
|
|
+ <background></background>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -26,9 +52,22 @@
|
|
|
<script>
|
|
|
import CInput from '@/components/CInput'
|
|
|
import CButton from '@/components/CButton'
|
|
|
+import Background from '@/components/Background'
|
|
|
|
|
|
export default {
|
|
|
- components: { CButton, CInput },
|
|
|
+ components: { CButton, CInput, Background },
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ step: 1,
|
|
|
+ email: '',
|
|
|
+ emailCode: '',
|
|
|
+ password: '',
|
|
|
+ passwordEnsure: '',
|
|
|
+ name: '',
|
|
|
+ phone: '',
|
|
|
+ phoneCode: ''
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
handleSubmit () {
|
|
|
this.$router.push('/teacher')
|
|
|
@@ -38,18 +77,28 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-h1 {
|
|
|
- color: #3a4a5a;
|
|
|
- font-size: 28px;
|
|
|
- font-weight: bold;
|
|
|
- margin-bottom: 32px;
|
|
|
+.title {
|
|
|
+ span {
|
|
|
+ font-family: 'Courier New', 'Courier', monospace;
|
|
|
+ font-size: 1.15em;
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
- & > span {
|
|
|
+.sub-title {
|
|
|
+ span {
|
|
|
+ float: right;
|
|
|
+ color: #aabaca;
|
|
|
font-family: 'Courier New', 'Courier', monospace;
|
|
|
font-size: 1.15em;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+.tip {
|
|
|
+ font-weight: bold;
|
|
|
+ color: #7a8a9a;
|
|
|
+ font-size: 12px;
|
|
|
+}
|
|
|
+
|
|
|
.login-view-container {
|
|
|
height: 95vh;
|
|
|
display: flex;
|
|
|
@@ -57,13 +106,14 @@ h1 {
|
|
|
justify-content: center;
|
|
|
|
|
|
& > div {
|
|
|
- max-width: 260px;
|
|
|
+ max-width: 360px;
|
|
|
+ padding: 0 24px;
|
|
|
width: 100%;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.c-input {
|
|
|
- margin-bottom: 24px;
|
|
|
+ margin-bottom: 16px;
|
|
|
background: #f2f6fa;
|
|
|
}
|
|
|
|
|
|
@@ -71,38 +121,25 @@ h1 {
|
|
|
display: flex;
|
|
|
margin: 0 -8px;
|
|
|
|
|
|
- & > button {
|
|
|
+ & > .c-button {
|
|
|
+ flex: 1;
|
|
|
margin: 0 8px;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-.help-button {
|
|
|
- $background-color: #e6e8ea;
|
|
|
- background: #e6e8ea;
|
|
|
- color: #3a4a5a;
|
|
|
-
|
|
|
- &:hover {
|
|
|
- background: darken($background-color, 5);
|
|
|
- }
|
|
|
-
|
|
|
- &:active {
|
|
|
- background: darken($background-color, 10);
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
.verified-code-wrapper {
|
|
|
- & > .c-input {
|
|
|
+ margin-bottom: 16px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ flex: 1;
|
|
|
+
|
|
|
+ .c-input {
|
|
|
margin-bottom: unset;
|
|
|
+ flex: 1;
|
|
|
}
|
|
|
|
|
|
.c-button {
|
|
|
margin-left: 12px;
|
|
|
- height: 48px;
|
|
|
- padding-left: 12px;
|
|
|
- padding-right: 12px;
|
|
|
}
|
|
|
-
|
|
|
- margin-bottom: 24px;
|
|
|
- display: flex;
|
|
|
}
|
|
|
</style>
|