From 8f7bae4a2b70bb3aeb1c2289a7f5dd6a826e88de Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期二, 01 四月 2025 09:55:38 +0800 Subject: [PATCH] fix: 四期需求 --- apps/taro/src/subpackages/recharge/electricBillRecharge/InnerPage.vue | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) diff --git a/apps/taro/src/subpackages/recharge/electricBillRecharge/InnerPage.vue b/apps/taro/src/subpackages/recharge/electricBillRecharge/InnerPage.vue index a2968dc..d1ea12e 100644 --- a/apps/taro/src/subpackages/recharge/electricBillRecharge/InnerPage.vue +++ b/apps/taro/src/subpackages/recharge/electricBillRecharge/InnerPage.vue @@ -4,12 +4,15 @@ @goPay="goPay" :isDev="isDev" @paySuccess="handePaySuccess" - :openId="wxOpenId" + :getOpenId="ensureOpenId" :isInWeChat="isInWeChat" :isInAlipay="isInAlipay" :isH5="isWeb" :appId="WXPayAppId" :isFocus="isFocus" + :showAliPay="!isInWeChat" + :showWeixinPay="isInWeChat" + @missName="handleMissName" /> </ContentScrollView> </template> @@ -19,8 +22,9 @@ import { BlLifeRecharge } from '@life-payment/core-vue'; import Taro from '@tarojs/taro'; import { isInAlipay, isInWeChat, isH5, isWeb } from '@/utils/env'; -import { useUser, useFocus } from '@/hooks'; +import { useUser, useFocus, useEnsureOpenId } from '@/hooks'; import { WXPayAppId } from '@/constants'; +import { Message } from '@/utils'; defineOptions({ name: 'InnerPage', @@ -29,6 +33,7 @@ const isDev = process.env.NODE_ENV === 'development'; const { wxOpenId } = useUser(); +const { ensureOpenId } = useEnsureOpenId(); const { isFocus } = useFocus(); function goPay(orderNo: string) { @@ -42,4 +47,13 @@ url: `${RouterPath.rechargeResult}?orderNo=${orderNo}&lifePayOrderType=${BlLifeRecharge.constants.LifePayOrderTypeEnum.鐢佃垂璁㈠崟}`, }); } + +async function handleMissName(userAccountId: string) { + try { + await Message.confirm({ message: '璇峰厛瀹屽杽鎵嬫満鍙锋墍灞炴満涓诲鍚�' }); + RouteHelper.navigateTo({ + url: `${RouterPath.editElectricUserAccount}?id=${userAccountId}`, + }); + } catch (error) {} +} </script> -- Gitblit v1.9.1