From 60b9c62a3165f304a933cbac304ac3d43a24f722 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 17 四月 2025 09:25:09 +0800
Subject: [PATCH] fix: 优化

---
 packages/components/src/views/GasBillRecharge/GasBillRechargeStep1.vue |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/packages/components/src/views/GasBillRecharge/GasBillRechargeStep1.vue b/packages/components/src/views/GasBillRecharge/GasBillRechargeStep1.vue
index e863bf0..32828f1 100644
--- a/packages/components/src/views/GasBillRecharge/GasBillRechargeStep1.vue
+++ b/packages/components/src/views/GasBillRecharge/GasBillRechargeStep1.vue
@@ -2,10 +2,10 @@
   <NutForm label-position="top" class="order-bill-recharge gas-bill-recharge-wrapper phone">
     <NutFormItem class="bole-form-item">
       <GasOrgTypeCard
-        :title="item"
-        v-for="(item, gasOrgCodeEnum) in BlLifeRecharge.constants.GasOrgCodeEnumText"
-        :key="item"
-        @click="goNext(gasOrgCodeEnum)"
+        :title="item.gasOrgName"
+        v-for="item in gasParValueList"
+        :key="item.gasOrgCode"
+        @click="goNext(item.gasOrgCode)"
       ></GasOrgTypeCard>
     </NutFormItem>
     <div class="common-content">
@@ -23,6 +23,7 @@
 import GasOrgTypeCard from './GasOrgTypeCard.vue';
 import { BlLifeRecharge, LifeRechargeConstants } from '@life-payment/core-vue';
 import { useGasBillRechargeContext } from './context';
+import { useGetGasParValue } from '../../hooks';
 
 defineOptions({
   name: 'GasBillRechargeStep1',
@@ -30,7 +31,9 @@
 
 const { preSetForm, goToNext, goTo } = useGasBillRechargeContext();
 
-function goNext(gasOrgType: LifeRechargeConstants.GasOrgCodeEnum) {
+const { gasParValueList } = useGetGasParValue();
+
+function goNext(gasOrgType: string) {
   preSetForm.gasOrgType = gasOrgType;
   goToNext();
 }

--
Gitblit v1.9.1