优化订单退款
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user