mirror of
https://gitee.com/bootx/dax-pay-h5.git
synced 2025-11-28 01:00:13 +08:00
fix: 码牌支付问题
This commit is contained in:
@@ -20,7 +20,7 @@ export function generateAuthUrl(code, scene) {
|
|||||||
return http.request<Result<string>>({
|
return http.request<Result<string>>({
|
||||||
url: '/unipay/gateway/cashier/code/generateAuthUrl',
|
url: '/unipay/gateway/cashier/code/generateAuthUrl',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
data: { code, scene },
|
params: { code, scene },
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -116,10 +116,6 @@ function initData() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
cashierInfo.value = res.data as any
|
cashierInfo.value = res.data as any
|
||||||
// 是否启用
|
|
||||||
if (!cashierInfo.value?.enable) {
|
|
||||||
router.replace({ name: 'payFail', query: { msg: '收银码牌未启用' } })
|
|
||||||
}
|
|
||||||
// 判断类型
|
// 判断类型
|
||||||
if (cashierInfo.value?.amountType === 'fixed') {
|
if (cashierInfo.value?.amountType === 'fixed') {
|
||||||
amount.value = res.data.amount as string
|
amount.value = res.data.amount as string
|
||||||
|
|||||||
@@ -237,9 +237,9 @@ function pay() {
|
|||||||
loading.value = true
|
loading.value = true
|
||||||
const from = {
|
const from = {
|
||||||
amount: amountValue,
|
amount: amountValue,
|
||||||
cashierCode,
|
code: cashierCode,
|
||||||
openId: openId.value,
|
openId: openId.value,
|
||||||
cashierScene: CashierSceneEnum.WECHAT_PAY,
|
scene: CashierSceneEnum.WECHAT_PAY,
|
||||||
description: description.value,
|
description: description.value,
|
||||||
} as GatewayCashierCodePayParam
|
} as GatewayCashierCodePayParam
|
||||||
cashierPay(from).then((res) => {
|
cashierPay(from).then((res) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user