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