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

updata

上级 b0fb60a7
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
import card from '../components/answerCard.vue' import card from '../components/answerCard.vue'
// import answer from '../components/answer.vue' // import answer from '../components/answer.vue'
import examEnd from '../components/examEnd.vue' import examEnd from '../components/examEnd.vue'
import { Toast } from 'vant' import { Toast, Dialog } from 'vant'
import Exam from '../action' import Exam from '../action'
import { Swiper, SwiperSlide, directive } from 'vue-awesome-swiper' import { Swiper, SwiperSlide, directive } from 'vue-awesome-swiper'
import 'swiper/css/swiper.css' import 'swiper/css/swiper.css'
...@@ -118,7 +118,8 @@ export default { ...@@ -118,7 +118,8 @@ export default {
SwiperSlide, SwiperSlide,
card, card,
examEnd, examEnd,
[Toast.name]: Toast [Toast.name]: Toast,
[Dialog.name]: Dialog
}, },
directives: { directives: {
swiper: directive swiper: directive
...@@ -608,6 +609,12 @@ export default { ...@@ -608,6 +609,12 @@ export default {
} }
param.status = status param.status = status
Exam.examSubmit(param, this.requestParam.papersUrl).then(res => { Exam.examSubmit(param, this.requestParam.papersUrl).then(res => {
Dialog.alert({
title: '标题',
message: JSON.stringify(res)
}).then(() => {
// on close
})
if (res.exm_status === 1) { if (res.exm_status === 1) {
clearInterval(this.initTime) clearInterval(this.initTime)
clearInterval(this.clockCount) clearInterval(this.clockCount)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论