From 7ed1e4f30ba4d8204152cb157ceaee07374da080 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期一, 17 三月 2025 14:29:14 +0800
Subject: [PATCH] fix: 修改支付方式选择

---
 apps/taro/src/subpackages/recharge/gasBillRecharge/InnerPage.vue |   42 +++++++++++++++++++++++++++++++++++++-----
 1 files changed, 37 insertions(+), 5 deletions(-)

diff --git a/apps/taro/src/subpackages/recharge/gasBillRecharge/InnerPage.vue b/apps/taro/src/subpackages/recharge/gasBillRecharge/InnerPage.vue
index 81c8793..f1561ed 100644
--- a/apps/taro/src/subpackages/recharge/gasBillRecharge/InnerPage.vue
+++ b/apps/taro/src/subpackages/recharge/gasBillRecharge/InnerPage.vue
@@ -1,13 +1,45 @@
 <template>
-  <div>鐕冩皵鍏呭��</div>
+  <ContentScrollView :paddingH="false" style="background-color: #fff">
+    <GasBillRecharge
+      @goPay="goPay"
+      :isDev="isDev"
+      @paySuccess="handePaySuccess"
+      :openId="wxOpenId"
+      :isInWeChat="isInWeChat"
+      :isInAlipay="isInAlipay"
+      :isH5="isWeb"
+      :appId="WXPayAppId"
+      :isFocus="isFocus"
+    />
+  </ContentScrollView>
 </template>
 
 <script setup lang="ts">
+import { GasBillRecharge } from '@life-payment/components';
+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 { WXPayAppId } from '@/constants';
+
 defineOptions({
   name: 'InnerPage',
 });
-</script>
 
-<style lang="scss">
-@import '@/styles/common.scss';
-</style>
+const isDev = process.env.NODE_ENV === 'development';
+
+const { wxOpenId } = useUser();
+const { isFocus } = useFocus();
+
+function goPay(orderNo: string) {
+  RouteHelper.navigateTo({
+    url: `${RouterPath.selectPayType}?orderNo=${orderNo}&lifePayOrderType=${BlLifeRecharge.constants.LifePayOrderTypeEnum.鐕冩皵璁㈠崟}`,
+  });
+}
+
+function handePaySuccess(orderNo: string) {
+  RouteHelper.navigateTo({
+    url: `${RouterPath.rechargeResult}?orderNo=${orderNo}&lifePayOrderType=${BlLifeRecharge.constants.LifePayOrderTypeEnum.鐕冩皵璁㈠崟}`,
+  });
+}
+</script>

--
Gitblit v1.9.1