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

修改bug

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