From 22a6de40ac6693463cdbbe9ed1e3ef05fc301afc Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期二, 23 九月 2025 14:50:34 +0800
Subject: [PATCH] feat: 绑定银行卡

---
 apps/cMiniApp/src/subpackages/wallet/incomeDetailInfo/InnerPage.vue |   26 ++++----------------------
 1 files changed, 4 insertions(+), 22 deletions(-)

diff --git a/apps/cMiniApp/src/subpackages/wallet/incomeDetailInfo/InnerPage.vue b/apps/cMiniApp/src/subpackages/wallet/incomeDetailInfo/InnerPage.vue
index 5cce9d9..2b1a544 100644
--- a/apps/cMiniApp/src/subpackages/wallet/incomeDetailInfo/InnerPage.vue
+++ b/apps/cMiniApp/src/subpackages/wallet/incomeDetailInfo/InnerPage.vue
@@ -38,12 +38,11 @@
 
 <script setup lang="ts">
 import { List, ListItem, WithdrawMoneyCard } from '@12333/components';
-import { EnumUserWalletTransactionType, EnumUserWalletTransactionTypeText } from '@12333/constants';
+import { EnumUserWalletTransactionTypeText } from '@12333/constants';
 import Taro from '@tarojs/taro';
-import * as userServices from '@12333/services/apiV2/user';
-import { useQuery } from '@tanstack/vue-query';
 import dayjs from 'dayjs';
 import { toThousand } from '@12333/utils';
+import { useGetPersonalUserTransaction } from '../hooks';
 
 defineOptions({
   name: 'InnerPage',
@@ -52,25 +51,8 @@
 const router = Taro.useRouter();
 const id = router.params?.id;
 
-const {
-  isLoading,
-  isError,
-  data: detail,
-  refetch,
-} = useQuery({
-  queryKey: ['userServices/getPersonalUserTransaction', id],
-  queryFn: async () => {
-    return await userServices.getPersonalUserTransaction(
-      { id: id },
-      {
-        showLoading: false,
-      }
-    );
-  },
-  placeholderData: () => ({} as API.GetPersonalUserTransactionQueryResult),
-  onSuccess(data) {
-    // if (data.isExistTradeChatRecord) setTrue();
-  },
+const { detail } = useGetPersonalUserTransaction({
+  id: id,
 });
 </script>
 

--
Gitblit v1.9.1