Commit fd1a4439 by zhangxw

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

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