From bd7dd96c732ded6854d47bf77f65e5c64d3d15e2 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期三, 21 五月 2025 13:24:09 +0800 Subject: [PATCH] fix: 修改ui --- apps/taro/src/subpackages/recharge/electricBillRecharge/InnerPage.vue | 25 ++++++++++++++++++++++++- 1 files changed, 24 insertions(+), 1 deletions(-) diff --git a/apps/taro/src/subpackages/recharge/electricBillRecharge/InnerPage.vue b/apps/taro/src/subpackages/recharge/electricBillRecharge/InnerPage.vue index 773dc57..f18a1bd 100644 --- a/apps/taro/src/subpackages/recharge/electricBillRecharge/InnerPage.vue +++ b/apps/taro/src/subpackages/recharge/electricBillRecharge/InnerPage.vue @@ -1,5 +1,5 @@ <template> - <ContentScrollView :paddingH="false" style="background-color: #fff"> + <ContentScrollView hasPaddingTop style="background-color: transparent"> <electricBillRecharge @goPay="goPay" :isDev="isDev" @@ -12,6 +12,9 @@ :isFocus="isFocus" :showAliPay="!isInWeChat" :showWeixinPay="isInWeChat" + @missName="handleMissName" + @editUserAccount="handleEditUserAccount" + @currentChange="emit('currentChange', $event)" /> </ContentScrollView> </template> @@ -23,10 +26,15 @@ import { isInAlipay, isInWeChat, isH5, isWeb } from '@/utils/env'; import { useUser, useFocus, useEnsureOpenId } from '@/hooks'; import { WXPayAppId } from '@/constants'; +import { Message } from '@/utils'; defineOptions({ name: 'InnerPage', }); + +const emit = defineEmits<{ + (e: 'currentChange', current: 'step1' | 'step2'): void; +}>(); const isDev = process.env.NODE_ENV === 'development'; @@ -45,4 +53,19 @@ 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) {} +} + +function handleEditUserAccount(userAccountId: string) { + RouteHelper.navigateTo({ + url: `${RouterPath.editElectricUserAccount}?id=${userAccountId}`, + }); +} </script> -- Gitblit v1.9.1