1.对接会员列表 2.对接排队叫号

This commit is contained in:
gyq
2025-03-06 19:28:01 +08:00
parent db3fc1f6dc
commit 5cf2355d28
29 changed files with 1920 additions and 1136 deletions

View File

@@ -58,7 +58,7 @@ import { scanpay, queryOrder, quickPay, queryQuickPayStatus, accountPay, querySc
import { useUser } from "@/store/user.js";
import { useGlobal } from '@/store/global.js'
import { formatDecimal } from '@/utils'
import { microPay, queryOrderStatus } from '@/api/order.js'
import { microPay, queryOrderStatus, microPayVip } from '@/api/order.js'
const store = useUser();
const global = useGlobal()
@@ -76,6 +76,7 @@ const props = defineProps({
type: [Number, String],
default: 0,
},
// 0 订单支付 1 会员充值 2 快捷收款
selecttype: {
type: [Number, String],
default: 0,
@@ -117,8 +118,20 @@ async function submitHandle() {
try {
if (!scanCode.value) return;
loading.value = true;
if (props.selecttype == 1) {
await microPay(props.payData);
if (props.selecttype == 0) {
// 正常下单扫码支付
await microPay({
...props.payData,
authCode: scanCode.value
});
} else if (props.selecttype == 1) {
// 会员扫码充值
await microPayVip({
shopId: store.shopInfo.id,
shopUserId: props.orderId,
amount: props.amount,
authCode: scanCode.value
})
} else {
if (props.fast) {
await quickPay({
@@ -128,11 +141,11 @@ async function submitHandle() {
});
} else {
if (props.payType == 'scanCode') {
// 正常下单扫码支付
await microPay({
...props.payData,
authCode: scanCode.value
});
if (props.selecttype == 1) {
} else if (props.selecttype == 2) {
}
emits('success')
}
if (props.payType == 'deposit') {