优化订单退款

This commit is contained in:
gyq
2025-03-12 09:55:07 +08:00
parent 1e66b2ad1f
commit 48c9f24d4c
17 changed files with 191 additions and 16211 deletions

View File

@@ -116,13 +116,14 @@ const fastOrder = ref('')
// 提交扫码支付
async function submitHandle() {
console.log('props.selecttype===', props.selecttype);
try {
if (!scanCode.value) return;
loading.value = true;
if (props.selecttype == 0) {
// 下单扫码支付
if (props.payType == 'payType') {
if (props.payType == 'scanCode') {
await microPay({
...props.payData,
authCode: scanCode.value
@@ -157,7 +158,6 @@ async function submitHandle() {
} else if (props.selecttype == 2) {
}
emits('success')
}
if (props.payType == 'deposit') {
await accountPay({
@@ -170,10 +170,8 @@ async function submitHandle() {
}
}
}
loading.value = false;
scanCode.value = "";
ElMessage.success("支付成功");
dialogVisible.value = false;
emits("success");
} catch (error) {