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

update: 调试倒计时

上级 63811da0
......@@ -6,12 +6,16 @@ module.exports = {
isEnableToIphoneDebugger: true,
webpack: {
externals: {
CKEDITOR: 'window.CKEDITOR',
Base64: 'window.Base64',
md5: 'window.md5',
regeneratorRuntime: 'window.regeneratorRuntime'
'CKEDITOR': 'window.CKEDITOR',
'Base64': 'window.Base64',
'md5': 'window.md5',
'regeneratorRuntime': 'window.regeneratorRuntime'
}
},
ProvidePlugin: {},
others: {}
ProvidePlugin: {
},
others: {
}
}
......@@ -273,8 +273,8 @@ export default {
const nowtime = new Date()
const endtime = new Date(this.examInfo.end_time)
console.log(this.examInfo.end_time, 'end_time')
console.log(nowtime, 'nowtime')
console.log(endtime, 'endtime')
console.log(nowtime.getTime(), 'nowtime')
console.log(endtime.getTime(), 'endtime')
const countTime = endtime.getTime() - nowtime.getTime()
console.log(countTime, 'countTime')
if (countTime <= 0) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论