提交 54cf67fc authored 作者: 王鹏飞's avatar 王鹏飞

chore: 报名申请新增入学日期

上级 28479d66
......@@ -24,13 +24,14 @@
</div>
<div class="welcome" v-if="welcomeShow">
<div class="inner">
<div class="welcome-close" @click="handleClose"></div>
<!-- <div class="welcome-close" @click="handleClose"></div> -->
<div class="welcome-main">
<img src="https://webapp-pub.ezijing.com/project/application/images/welcome.png" width="350" />
<div class="welcome-content">
<h1>欢迎报名</h1>
<h2>加州浸会大学DBA项目</h2>
<div class="welcome-button" @click="handleStart">马上开始</div>
<h1>欢迎报名加州浸会大学DBA项目</h1>
<h2>请选择您的入学日期</h2>
<div class="welcome-button" @click="handleStart('2022年秋季')">2022年秋季</div>
<div class="welcome-button" @click="handleStart('2023年春季')">2023年春季</div>
</div>
</div>
</div>
......@@ -91,7 +92,7 @@ export default {
this.progress = progress
const welcomeShowed = window.localStorage.getItem(this.user.id) === 'true'
material.attachments = material.attachments || []
if (!material.attachments.length && !welcomeShowed) {
if (!material.basic_info.admission_date && !welcomeShowed) {
this.welcomeShow = true
}
} else {
......@@ -125,9 +126,16 @@ export default {
}
this.$router.push('/my/admission')
},
handleStart() {
this.welcomeShow = false
this.createDriver()
handleStart(date) {
api.updateApplication({ basic_info: { admission_date: date } }).then(response => {
const { data, error, message } = response
if (error.toString() === '0') {
this.welcomeShow = false
this.createDriver()
} else {
this.$message.error(message)
}
})
},
handleClose() {
this.welcomeShow = false
......@@ -282,9 +290,16 @@ export default {
color: #fff;
line-height: 26px;
}
p {
margin-top: 40px;
font-size: 26px;
font-weight: normal;
color: #fff;
line-height: 26px;
}
}
.welcome-button {
margin-top: 40px;
margin: 20px 10px 0;
display: inline-block;
padding: 10px 32px;
font-size: 20px;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论