From 73ac6d02a2223f19201426f3c366661d4a8e41bf Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期二, 25 二月 2025 17:14:37 +0800 Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/LifePaymentFront --- 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