提交 c48d1ec3 authored 作者: lihuihui's avatar lihuihui

修改bug

上级 23cec805
...@@ -65,7 +65,8 @@ export default { ...@@ -65,7 +65,8 @@ export default {
}, },
agree() { agree() {
// 判断考试时间开始没有 // 判断考试时间开始没有
this.isExamStatus(this.examInfo.start_time > 0) // console.log(this.isExamStatus(this.examInfo.start_time > 0))
this.isExamStatus(this.examInfo.start_time) > 0
? (() => { ? (() => {
this.$router.push({ this.$router.push({
name: 'examTime' name: 'examTime'
...@@ -84,10 +85,10 @@ export default { ...@@ -84,10 +85,10 @@ export default {
}, },
// 判断进入考试页面还是倒计时页面 // 判断进入考试页面还是倒计时页面
isExamStatus(date) { isExamStatus(date) {
const startDate = new Date(date).getTime() const curTime = new Date()
const currentDate = new Date().getTime() const startTime = new Date(date)
const count = currentDate - startDate const countTime = startTime.getTime() - curTime.getTime()
return count return countTime
}, },
// 选择男女 // 选择男女
selectGender(t) { selectGender(t) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论