Commit fd1a4439 by zhangxw

取消考试结果查询延迟两秒

1 parent 33654e15
......@@ -91,11 +91,8 @@ Page({
let { code, data, message } = res
if (code == 0) {
if (data) {
// 查询到考试结果后 延迟两秒关闭弹窗并请求数据接口
setTimeout(() => {
this.examHandleCancel()
this.getList(true)
}, 2000)
this.examHandleCancel()
this.getList(true)
} else {
this.setData({
examSubmitText: '未查询到结果,请稍后再试'
......
......@@ -159,14 +159,11 @@ Page({
let { code, data, message } = res
if (code == 0) {
if (data) {
// 查询到考试结果延迟两秒关闭 并查询数据接口
setTimeout(() => {
this.examHandleCancel()
// 查询是否有下一个考试
this.getExamInfo()
this.getStaticData(true)
this.getList()
}, 2000)
this.examHandleCancel()
// 查询是否有下一个考试
this.getExamInfo()
this.getStaticData(true)
this.getList()
} else {
this.setData({
examSubmitText: '未查询到结果,请稍后再试'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!