修复套餐列表取消也核销的问题
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user