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

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: '注意', title: '注意',
content: '确认要核销吗?', content: '确认要核销吗?',
success: async (res) => { success: async (res) => {
try { if (res.confirm) {
uni.showLoading({ try {
title: '核销中...', uni.showLoading({
mask: true title: '核销中...',
}); mask: true
await packageCheckout({ verifyCode: item.verifyCode });
setTimeout(() => {
uni.showToast({
title: '已核销',
icon: 'none'
}); });
}, 100); await packageCheckout({ verifyCode: item.verifyCode });
resetGetList(); setTimeout(() => {
} catch (error) { uni.showToast({
console.log(error); title: '已核销',
icon: 'none'
});
}, 100);
resetGetList();
} catch (error) {
console.log(error);
}
uni.hideLoading();
} }
uni.hideLoading();
} }
}); });
} }