From 318a7bbb40a8f37f825f9eb4ee1bcd84c6020a09 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期三, 13 八月 2025 16:00:34 +0800
Subject: [PATCH] feat: 接口对接

---
 packages/hooks/setting.ts |   47 ++++++++++++++++++++++++++++++-----------------
 1 files changed, 30 insertions(+), 17 deletions(-)

diff --git a/packages/hooks/setting.ts b/packages/hooks/setting.ts
index 1ec28eb..8830255 100644
--- a/packages/hooks/setting.ts
+++ b/packages/hooks/setting.ts
@@ -1,5 +1,5 @@
 import { useQuery } from '@tanstack/vue-query';
-import { MaybeRef, Ref, unref } from 'vue';
+import { MaybeRef, Ref, unref, ref } from 'vue';
 import { BusinessSettingType, TempFolderPath } from '@12333/constants';
 
 type UseBusinessSettingByTypeOptions<T extends object = object, TData = T> = {
@@ -44,19 +44,32 @@
   offlinePayEndDays: number;
 };
 
-// export function useUserCertificationSetting() {
-//   const { businessSetting } = useBusinessSettingByType<UserCertificationSetting>({
-//     type: BusinessSettingType.UserCertification,
-//     select(data: any) {
-//       return {
-//         ...data,
-//         enterprisePowerAttorneyTempPath: `${TempFolderPath}${data.enterprisePowerAttorneyTempPath}`,
-//         idPhoteTempPath: `${TempFolderPath}${data.idPhoteTempPath}`,
-//         payAmount: data.userCertificationAmount,
-//       };
-//     },
-//   });
-//   return {
-//     userCertificationSetting: businessSetting,
-//   };
-// }
+export function useUserCertificationSetting() {
+  // const { businessSetting } = useBusinessSettingByType<UserCertificationSetting>({
+  //   type: BusinessSettingType.UserCertification,
+  //   select(data: any) {
+  //     return {
+  //       ...data,
+  //       enterprisePowerAttorneyTempPath: `${TempFolderPath}${data.enterprisePowerAttorneyTempPath}`,
+  //       idPhoteTempPath: `${TempFolderPath}${data.idPhoteTempPath}`,
+  //       payAmount: data.userCertificationAmount,
+  //     };
+  //   },
+  // });
+
+  const businessSetting = ref({
+    authenticationHelpUrl: '',
+    receivingAccount: '',
+    receivingCompanyName: '',
+    receivingBankName: '',
+    offlinePayEndTime: '',
+    offlinePayEndDays: 1,
+    enterprisePowerAttorneyTempPath: `${TempFolderPath}`,
+    idPhoteTempPath: `${TempFolderPath}`,
+    payAmount: 123,
+  });
+
+  return {
+    userCertificationSetting: businessSetting,
+  };
+}

--
Gitblit v1.9.1