From 915424730f27445da2e8de13b62e77179cc1a15a Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期一, 18 八月 2025 17:07:39 +0800
Subject: [PATCH] fix: 关闭移动充值渠道,打开电信充值渠道
---
apps/taro/src/subpackages/recharge/electricBillRecharge/InnerPage.vue | 54 ++++++++++++++++++++++++++++++++++++++----------------
1 files changed, 38 insertions(+), 16 deletions(-)
diff --git a/apps/taro/src/subpackages/recharge/electricBillRecharge/InnerPage.vue b/apps/taro/src/subpackages/recharge/electricBillRecharge/InnerPage.vue
index 558b627..b75c22a 100644
--- a/apps/taro/src/subpackages/recharge/electricBillRecharge/InnerPage.vue
+++ b/apps/taro/src/subpackages/recharge/electricBillRecharge/InnerPage.vue
@@ -1,19 +1,20 @@
<template>
- <ContentScrollView :paddingH="false" style="background-color: #fff">
- <electricBillRecharge
- @goPay="goPay"
- :isDev="isDev"
- @paySuccess="handePaySuccess"
- :openId="wxOpenId"
- :isInWeChat="isInWeChat"
- :isInAlipay="isInAlipay"
- :isH5="isWeb"
- :appId="WXPayAppId"
- :isFocus="isFocus"
- :showAliPay="!isInWeChat"
- :showWeixinPay="isInWeChat"
- />
- </ContentScrollView>
+ <electricBillRecharge
+ @goPay="goPay"
+ :isDev="isDev"
+ @paySuccess="handePaySuccess"
+ :getOpenId="ensureOpenId"
+ :isInWeChat="isInWeChat"
+ :isInAlipay="isInAlipay"
+ :isH5="isWeb"
+ :appId="WXPayAppId"
+ :isFocus="isFocus"
+ :showAliPay="!isInWeChat"
+ :showWeixinPay="isInWeChat"
+ @missName="handleMissName"
+ @editUserAccount="handleEditUserAccount"
+ @currentChange="emit('currentChange', $event)"
+ />
</template>
<script setup lang="ts">
@@ -21,16 +22,22 @@
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',
});
+const emit = defineEmits<{
+ (e: 'currentChange', current: 'step1' | 'step2'): void;
+}>();
+
const isDev = process.env.NODE_ENV === 'development';
const { wxOpenId } = useUser();
+const { ensureOpenId } = useEnsureOpenId();
const { isFocus } = useFocus();
function goPay(orderNo: string) {
@@ -44,4 +51,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