From df879935ecdcdf7d68e973bcb2b16958f36e6a03 Mon Sep 17 00:00:00 2001 From: bootx Date: Fri, 14 Nov 2025 16:04:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A0=81=E7=89=8C=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/daxpay/h5/code/CashierCode.api.ts | 2 +- src/views/daxpay/h5/code/alipay/AlipayCashierCode.vue | 4 ---- src/views/daxpay/h5/code/wechat/WechatCashierCode.vue | 4 ++-- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/views/daxpay/h5/code/CashierCode.api.ts b/src/views/daxpay/h5/code/CashierCode.api.ts index d05d0b9..2585a9f 100644 --- a/src/views/daxpay/h5/code/CashierCode.api.ts +++ b/src/views/daxpay/h5/code/CashierCode.api.ts @@ -20,7 +20,7 @@ export function generateAuthUrl(code, scene) { return http.request>({ url: '/unipay/gateway/cashier/code/generateAuthUrl', method: 'POST', - data: { code, scene }, + params: { code, scene }, }) } diff --git a/src/views/daxpay/h5/code/alipay/AlipayCashierCode.vue b/src/views/daxpay/h5/code/alipay/AlipayCashierCode.vue index fa4aab4..efc5705 100644 --- a/src/views/daxpay/h5/code/alipay/AlipayCashierCode.vue +++ b/src/views/daxpay/h5/code/alipay/AlipayCashierCode.vue @@ -116,10 +116,6 @@ function initData() { return } cashierInfo.value = res.data as any - // 是否启用 - if (!cashierInfo.value?.enable) { - router.replace({ name: 'payFail', query: { msg: '收银码牌未启用' } }) - } // 判断类型 if (cashierInfo.value?.amountType === 'fixed') { amount.value = res.data.amount as string diff --git a/src/views/daxpay/h5/code/wechat/WechatCashierCode.vue b/src/views/daxpay/h5/code/wechat/WechatCashierCode.vue index 103dc2e..8fbb248 100644 --- a/src/views/daxpay/h5/code/wechat/WechatCashierCode.vue +++ b/src/views/daxpay/h5/code/wechat/WechatCashierCode.vue @@ -237,9 +237,9 @@ function pay() { loading.value = true const from = { amount: amountValue, - cashierCode, + code: cashierCode, openId: openId.value, - cashierScene: CashierSceneEnum.WECHAT_PAY, + scene: CashierSceneEnum.WECHAT_PAY, description: description.value, } as GatewayCashierCodePayParam cashierPay(from).then((res) => {