From 5cd618c9523ad30dccf858a00ff6d99a28de4187 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期四, 11 九月 2025 10:24:35 +0800 Subject: [PATCH] feat: 公告 --- packages/components/src/views/PhoneBillRecharge/PhoneBillRechargeBaseForm.vue | 26 +++++++++++++++----------- 1 files changed, 15 insertions(+), 11 deletions(-) diff --git a/packages/components/src/views/PhoneBillRecharge/PhoneBillRechargeBaseForm.vue b/packages/components/src/views/PhoneBillRecharge/PhoneBillRechargeBaseForm.vue index 163da73..bd2b1fb 100644 --- a/packages/components/src/views/PhoneBillRecharge/PhoneBillRechargeBaseForm.vue +++ b/packages/components/src/views/PhoneBillRecharge/PhoneBillRechargeBaseForm.vue @@ -8,12 +8,9 @@ > <NutFormItem label="閫夋嫨杩愯惀鍟�:" class="bole-form-item" prop="ispCode" required> <NutRadioGroup v-model="form.ispCode" direction="horizontal" @change="handleIspCodeChange"> - <BlRadio - :label="key" - v-for="(val, key) in BlLifeRecharge.constants.IspCodeText" - :key="key" - >{{ val }}</BlRadio - > + <BlRadio :label="item.code" v-for="item in allRateChannelList" :key="item.id">{{ + item.rateChannelName + }}</BlRadio> </NutRadioGroup> </NutFormItem> <NutFormItem label="鍏呭�兼墜鏈哄彿" class="bole-form-item" prop="phone" required> @@ -35,12 +32,12 @@ /> </NutFormItem> <slot></slot> - <NutDialog - title="鎻愮ず" - content="鐢典俊鍙厖鍊煎尯鍩熷寘鎷細骞夸笢銆佹睙鑻忋�佹箹鍖椼�佸洓宸濄�佹睙瑗裤�佹渤鍖椼�佹渤鍗椼�佺寤恒�佽窘瀹併�傚叾瀹冨尯鍩熸鍦ㄥ垎鎵规杩涜缁存姢涓紝鍦ㄦ鏈熼棿鍙兘浼氬嚭鐜板厖鍊间笉鎴愬姛骞惰嚜鍔ㄩ��娆剧殑鎯呭喌锛岃鎮ㄨ皡瑙c��" - v-model:visible="dialogVisible" - /> </NutForm> + <NutDialog + title="鎻愮ず" + content="鐢典俊鍙厖鍊煎尯鍩熷寘鎷細 姹熻嫃銆佺敇鑲冦�佸洓宸濄�佺寤恒�佸悏鏋椼�佽窘瀹併�佸北涓溿�佽吹宸炪�傚叾瀹冨尯鍩熸鍦ㄥ垎鎵规杩涜缁存姢涓紝鍦ㄦ鏈熼棿鍙兘浼氬嚭鐜板厖鍊间笉鎴愬姛骞惰嚜鍔ㄩ��娆剧殑鎯呭喌锛岃鎮ㄨ皡瑙c��" + v-model:visible="dialogVisible" + /> </template> <script setup lang="ts"> @@ -56,6 +53,7 @@ import BlRadio from '../../components/Radio/Radio.vue'; import { FormValidator } from '../../utils'; import { BlLifeRecharge, LifeRechargeConstants } from '@life-payment/core-vue'; +import { useLifePayRateChannelAllList } from '../../hooks/rate'; defineOptions({ name: 'PhoneBillRechargeBaseForm', @@ -78,6 +76,12 @@ const dialogVisible = ref(false); +const { allRateChannelList } = useLifePayRateChannelAllList({ + params: { + lifePayOrderType: LifeRechargeConstants.LifePayOrderTypeEnum.璇濊垂璁㈠崟, + }, +}); + function handleIspCodeChange(ispCode: LifeRechargeConstants.IspCode) { console.log('ispCode: ', ispCode); if (ispCode === LifeRechargeConstants.IspCode.dianxin) { -- Gitblit v1.9.1