From 8bb9173a95a87e3ceab4f48b5b34041af38b7c70 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期五, 28 三月 2025 15:23:14 +0800
Subject: [PATCH] fix: 四期需求

---
 apps/taro/src/subpackages/my/shareQrcode/InnerPage.vue |   26 +++++++++++++++++---------
 1 files changed, 17 insertions(+), 9 deletions(-)

diff --git a/apps/taro/src/subpackages/my/shareQrcode/InnerPage.vue b/apps/taro/src/subpackages/my/shareQrcode/InnerPage.vue
index 6b505c8..9df5cfa 100644
--- a/apps/taro/src/subpackages/my/shareQrcode/InnerPage.vue
+++ b/apps/taro/src/subpackages/my/shareQrcode/InnerPage.vue
@@ -1,23 +1,31 @@
 <template>
-  <ProTabs v-model="orderType" name="user-home-tabs" class="user-home-tabs" flexTitle fullHeight>
-    <ProTabPane title="璇濊垂璁㈠崟" pane-key="1">
-      <ShareQrcodeView :channles-num="'818'" />
-    </ProTabPane>
-    <ProTabPane title="鐢佃垂璁㈠崟" pane-key="2">
-      <ShareQrcodeView :channles-num="'818'" />
+  <ProTabs v-model="channlesType" name="user-home-tabs" class="user-home-tabs" flexTitle fullHeight>
+    <ProTabPane
+      :title="item.name"
+      :pane-key="item.channlesNum"
+      v-for="item in userChannles"
+      :key="item.channlesNum"
+    >
+      <ShareQrcodeView :channles-num="item.channlesNum" />
     </ProTabPane>
   </ProTabs>
 </template>
 
 <script setup lang="ts">
 import { ShareQrcodeView } from '@life-payment/components';
-import { useLifePayChannlesAllList } from '@/hooks';
+import { useUser } from '@/hooks';
 
 defineOptions({
   name: 'InnerPage',
 });
 
-const orderType = ref('1');
+const { virtualUserInfo } = useUser();
 
-const { getChannlesNameByNum } = useLifePayChannlesAllList();
+const userChannles = computed(() => virtualUserInfo.value.channlesNum ?? []);
+
+const channlesType = ref(userChannles.value[0]?.channlesNum ?? '');
+
+watch(userChannles, (val) => {
+  channlesType.value = val?.[0]?.channlesNum ?? '';
+});
 </script>

--
Gitblit v1.9.1