优化
This commit is contained in:
@@ -121,7 +121,7 @@ function payTypeChange(index, item) {
|
||||
async function confirmOrder() {
|
||||
if (payLoading.value) return
|
||||
try {
|
||||
if (payList.value[payActive.value].payType == 'scanCode' || payList.value[payActive.value].payType == 'deposit') {
|
||||
if (payList.value[payActive.value].payType == 'scanCode') {
|
||||
scanModalRef.value.show()
|
||||
} else {
|
||||
if (money.value < props.amount) return
|
||||
@@ -133,10 +133,15 @@ async function confirmOrder() {
|
||||
// } else {
|
||||
|
||||
// }
|
||||
await accountPay({
|
||||
orderId: props.orderId,
|
||||
memberId: props.member.id
|
||||
})
|
||||
if (props.member.id) {
|
||||
await accountPay({
|
||||
orderId: props.orderId,
|
||||
memberId: props.member.id,
|
||||
memberAccount: ''
|
||||
})
|
||||
} else {
|
||||
scanModalRef.value.show()
|
||||
}
|
||||
break;
|
||||
case 'cash'://现金
|
||||
if (props.selecttype == 1) {
|
||||
|
||||
Reference in New Issue
Block a user