倒计时结束的处理
This commit is contained in:
parent
6b935abf5e
commit
2e334807bc
@ -74,12 +74,20 @@ const startCountdown = () => {
|
|||||||
seconds--;
|
seconds--;
|
||||||
if (seconds <= 0) {
|
if (seconds <= 0) {
|
||||||
clearInterval(timer);
|
clearInterval(timer);
|
||||||
|
await jzXkCancelApi({
|
||||||
|
xsId: getData.xsId,
|
||||||
|
xkId: getData.xkId
|
||||||
|
});
|
||||||
|
uni.showToast({
|
||||||
|
title: "已取消报名",
|
||||||
|
icon: "success",
|
||||||
|
});
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: "支付超时",
|
title: "支付超时",
|
||||||
content: "支付已超时,请重新选课",
|
content: "支付已超时,请重新选课",
|
||||||
showCancel: false,
|
showCancel: false,
|
||||||
success: () => {
|
success: async () => {
|
||||||
cancelRegistration();
|
goBack();
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -152,12 +152,21 @@ const startCountdown = () => {
|
|||||||
seconds--;
|
seconds--;
|
||||||
if (seconds <= 0) {
|
if (seconds <= 0) {
|
||||||
clearInterval(timer);
|
clearInterval(timer);
|
||||||
|
|
||||||
|
await jzXkCancelApi({
|
||||||
|
xsId: getData.xsId,
|
||||||
|
xkId: getData.xkId
|
||||||
|
});
|
||||||
|
uni.showToast({
|
||||||
|
title: "已取消报名",
|
||||||
|
icon: "success",
|
||||||
|
});
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: "支付超时",
|
title: "支付超时",
|
||||||
content: "支付已超时,请重新选课",
|
content: "支付已超时,请重新选课",
|
||||||
showCancel: false,
|
showCancel: false,
|
||||||
success: () => {
|
success: () => {
|
||||||
cancelRegistration();
|
goBack();
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user