修复套餐列表取消也核销的问题

This commit is contained in:
gyq
2025-12-23 17:24:01 +08:00
parent 15a2429323
commit 448effd296

View File

@@ -301,23 +301,25 @@ async function checkoutHandle(item) {
title: '注意',
content: '确认要核销吗?',
success: async (res) => {
try {
uni.showLoading({
title: '核销中...',
mask: true
});
await packageCheckout({ verifyCode: item.verifyCode });
setTimeout(() => {
uni.showToast({
title: '已核销',
icon: 'none'
if (res.confirm) {
try {
uni.showLoading({
title: '核销中...',
mask: true
});
}, 100);
resetGetList();
} catch (error) {
console.log(error);
await packageCheckout({ verifyCode: item.verifyCode });
setTimeout(() => {
uni.showToast({
title: '已核销',
icon: 'none'
});
}, 100);
resetGetList();
} catch (error) {
console.log(error);
}
uni.hideLoading();
}
uni.hideLoading();
}
});
}