优化数据中心

This commit is contained in:
gyq
2024-06-20 09:06:05 +08:00
parent e8c25b6b04
commit e4835d0d27
2 changed files with 12 additions and 7 deletions

View File

@@ -90,12 +90,17 @@ const refundPost = (payPassword) => {
console.log('payPassword', payPassword);
$payOrderRefund(vdata.orderInfo.payOrderId, vdata.refundAmount, vdata.refundRemark, payPassword, vdata.refundModel)
.then(({ bizData }) => {
infoBox.showSuccessToast('退款已申请').then(() => {
// 刷新订单数据
emit.pageEmit(emit.ENAME_REF_PAY_ORDER);
refundPopup.value.close();
go.back();
});
console.log('bizData', bizData);
if (bizData.state == 0 || bizData.state == 1 || bizData.state == 2) {
infoBox.showSuccessToast('退款已申请').then(() => {
// 刷新订单数据
emit.pageEmit(emit.ENAME_REF_PAY_ORDER);
refundPopup.value.close();
go.back();
});
} else {
infoBox.showErrorToast(bizData.errMsg);
}
})
.catch((err) => {
refundPopup.value.clearInput();