银行卡支付在确认后才算报名成功
This commit is contained in:
parent
03e14e94d2
commit
61ef79385f
@ -334,17 +334,33 @@ export const usereventregistrationCheckGroupSelectionLimitPost = (data) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 验证用户报名状态
|
* 验证用户报名状态
|
||||||
* @param {Object} data - 验证信息
|
* @param {Object} data - 验证信息
|
||||||
* @param {number} data.eventId - 赛事ID
|
* @param {number} data.eventId - 赛事ID
|
||||||
* @returns {Promise<{
|
* @returns {Promise<{
|
||||||
* isRegistered: boolean,
|
* isRegistered: boolean,
|
||||||
* registrationId: number,
|
* registrationId: number,
|
||||||
* registrationStatus: string,
|
* registrationStatus: string,
|
||||||
* message: string
|
* message: string
|
||||||
* }>}
|
* }>}
|
||||||
*/
|
*/
|
||||||
export const usereventregistrationRegistrationStatusCheckPost = (data) => {
|
export const usereventregistrationRegistrationStatusCheckPost = (data) => {
|
||||||
return http.post('/usereventregistration/registration-status/check', data);
|
return http.post('/usereventregistration/registration-status/check', data);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 确认银行转账
|
||||||
|
* @param {Object} data - 确认信息
|
||||||
|
* @param {number} data.registrationId - 报名ID
|
||||||
|
* @param {string} [data.paymentProofUrl] - 支付凭证URL
|
||||||
|
* @returns {Promise<{
|
||||||
|
* registrationId: number,
|
||||||
|
* paymentStatus: number,
|
||||||
|
* success: boolean,
|
||||||
|
* message: string
|
||||||
|
* }>}
|
||||||
|
*/
|
||||||
|
export const usereventregistrationBankTransferConfirmPost = (data) => {
|
||||||
|
return http.post('/usereventregistration/bank-transfer/confirm', data);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -449,18 +449,19 @@ import { Close, Picture, Loading, CircleCheck, ArrowRight, Plus, Delete } from '
|
|||||||
import ProTable from '/@/components/ProTable/index.vue';
|
import ProTable from '/@/components/ProTable/index.vue';
|
||||||
import { formatDate } from '/@/utils/formatTime';
|
import { formatDate } from '/@/utils/formatTime';
|
||||||
import {
|
import {
|
||||||
usereventregistrationListGet,
|
usereventregistrationListGet,
|
||||||
usereventregistrationDetailGet,
|
usereventregistrationDetailGet,
|
||||||
usereventregistrationMembersSearchGet,
|
usereventregistrationMembersSearchGet,
|
||||||
usereventregistrationSubmitPost,
|
usereventregistrationSubmitPost,
|
||||||
usereventregistrationPreviewGet,
|
usereventregistrationPreviewGet,
|
||||||
usereventregistrationOrderCreatePost,
|
usereventregistrationOrderCreatePost,
|
||||||
usereventregistrationCouponValidatePost,
|
usereventregistrationCouponValidatePost,
|
||||||
usereventregistrationMemberValidatePost,
|
usereventregistrationMemberValidatePost,
|
||||||
usereventregistrationRegistrationLimitCheckPost,
|
usereventregistrationRegistrationLimitCheckPost,
|
||||||
usereventregistrationGroupTeamLimitGet,
|
usereventregistrationGroupTeamLimitGet,
|
||||||
usereventregistrationOrderStatusGet,
|
usereventregistrationOrderStatusGet,
|
||||||
usereventregistrationRegistrationStatusCheckPost,
|
usereventregistrationRegistrationStatusCheckPost,
|
||||||
|
usereventregistrationBankTransferConfirmPost
|
||||||
} from '/@/api/match/usereventregistration';
|
} from '/@/api/match/usereventregistration';
|
||||||
import { teamPageGet, teamDetailGet } from '/@/api/match/unitUser';
|
import { teamPageGet, teamDetailGet } from '/@/api/match/unitUser';
|
||||||
import QRCode from 'qrcodejs2-fixes';
|
import QRCode from 'qrcodejs2-fixes';
|
||||||
@ -2108,7 +2109,7 @@ const copyAccount = () => {
|
|||||||
// 确认银行转账
|
// 确认银行转账
|
||||||
const confirmBankTransfer = () => {
|
const confirmBankTransfer = () => {
|
||||||
ElMessageBox.confirm(
|
ElMessageBox.confirm(
|
||||||
'确认已完成转账吗?转账完成后订单将进入待审核状态。',
|
'确认已完成转账吗?转账确认后订单将进入待审核状态。',
|
||||||
'确认转账',
|
'确认转账',
|
||||||
{
|
{
|
||||||
confirmButtonText: '确认',
|
confirmButtonText: '确认',
|
||||||
@ -2116,11 +2117,23 @@ const confirmBankTransfer = () => {
|
|||||||
type: 'warning'
|
type: 'warning'
|
||||||
}
|
}
|
||||||
).then(async () => {
|
).then(async () => {
|
||||||
ElMessage.success('订单已提交,等待审核');
|
try {
|
||||||
initParam.value.refresh = !initParam.value.refresh;
|
const { succeeded, data } = await usereventregistrationBankTransferConfirmPost({
|
||||||
setTimeout(() => {
|
registrationId: draftRegistrationId.value
|
||||||
isShowRegisterDialog.value = false;
|
});
|
||||||
}, 1500);
|
|
||||||
|
if (succeeded && data?.success) {
|
||||||
|
ElMessage.success(data.message || '转账确认成功,订单已提交审核');
|
||||||
|
initParam.value.refresh = !initParam.value.refresh;
|
||||||
|
setTimeout(() => {
|
||||||
|
isShowRegisterDialog.value = false;
|
||||||
|
}, 1500);
|
||||||
|
} else {
|
||||||
|
ElMessage.error(data?.message || '转账确认失败,请稍后重试');
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
ElMessage.error('转账确认失败,请稍后重试');
|
||||||
|
}
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
// 用户取消
|
// 用户取消
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user