修复倒计时的取消处理
This commit is contained in:
parent
2e334807bc
commit
e664978136
@ -74,14 +74,10 @@ const startCountdown = () => {
|
|||||||
seconds--;
|
seconds--;
|
||||||
if (seconds <= 0) {
|
if (seconds <= 0) {
|
||||||
clearInterval(timer);
|
clearInterval(timer);
|
||||||
await jzXkCancelApi({
|
jzXkCancelApi({
|
||||||
xsId: getData.xsId,
|
xsId: getData.xsId,
|
||||||
xkId: getData.xkId
|
xkId: getData.xkId
|
||||||
});
|
});
|
||||||
uni.showToast({
|
|
||||||
title: "已取消报名",
|
|
||||||
icon: "success",
|
|
||||||
});
|
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: "支付超时",
|
title: "支付超时",
|
||||||
content: "支付已超时,请重新选课",
|
content: "支付已超时,请重新选课",
|
||||||
|
|||||||
@ -152,15 +152,10 @@ const startCountdown = () => {
|
|||||||
seconds--;
|
seconds--;
|
||||||
if (seconds <= 0) {
|
if (seconds <= 0) {
|
||||||
clearInterval(timer);
|
clearInterval(timer);
|
||||||
|
jzXkCancelApi({
|
||||||
await jzXkCancelApi({
|
|
||||||
xsId: getData.xsId,
|
xsId: getData.xsId,
|
||||||
xkId: getData.xkId
|
xkId: getData.xkId
|
||||||
});
|
});
|
||||||
uni.showToast({
|
|
||||||
title: "已取消报名",
|
|
||||||
icon: "success",
|
|
||||||
});
|
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: "支付超时",
|
title: "支付超时",
|
||||||
content: "支付已超时,请重新选课",
|
content: "支付已超时,请重新选课",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user