From 9e72ccd8e8bf0362dde6e6df9410fedbf79115be Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期二, 25 二月 2025 16:53:07 +0800 Subject: [PATCH] fix: 对接 --- apps/taro/src/subpackages/recharge/selectPayType/InnerPage.vue | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/apps/taro/src/subpackages/recharge/selectPayType/InnerPage.vue b/apps/taro/src/subpackages/recharge/selectPayType/InnerPage.vue index 2d6676d..e214be7 100644 --- a/apps/taro/src/subpackages/recharge/selectPayType/InnerPage.vue +++ b/apps/taro/src/subpackages/recharge/selectPayType/InnerPage.vue @@ -7,6 +7,10 @@ @paySuccess="handePaySuccess" :showAliPay="!isInWeChat" :showWeixinPay="!isInAlipay" + :openId="wxOpenId" + :isInWeChat="isInWeChat" + :isH5="isH5" + :appId="WXPayAppId" /> </ContentScrollView> </template> @@ -15,7 +19,9 @@ import { SelectPayTypeView } from '@life-payment/components'; import { LifeRechargeConstants } from '@life-payment/core-vue'; import Taro from '@tarojs/taro'; -import { isInAlipay, isInWeChat } from '@/utils/env'; +import { isInAlipay, isInWeChat, isH5 } from '@/utils/env'; +import { useUser } from '@/hooks'; +import { WXPayAppId } from '@/constants'; defineOptions({ name: 'selectPayType', @@ -25,6 +31,8 @@ const orderNo = router.params?.orderNo ?? ''; const lifePayOrderType = Number(router.params?.lifePayOrderType ?? ''); +const { wxOpenId } = useUser(); + function handePaySuccess( orderNo: string, lifePayOrderType: LifeRechargeConstants.LifePayOrderTypeEnum -- Gitblit v1.9.1