From 8328df0f84dc6e24896d788166a67263ff029ae5 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期日, 19 十月 2025 14:38:50 +0800
Subject: [PATCH] Merge branch 'dev-1.2.0.1' of http://120.26.58.240:8888/r/flexJobMiniApp into dev-1.2.0.1
---
apps/bMiniApp/src/subpackages/authentication/hooks/index.ts | 58 ++++++++++++++++++++++++++++------------------------------
1 files changed, 28 insertions(+), 30 deletions(-)
diff --git a/apps/bMiniApp/src/subpackages/authentication/hooks/index.ts b/apps/bMiniApp/src/subpackages/authentication/hooks/index.ts
index 8fddc35..39dfccd 100644
--- a/apps/bMiniApp/src/subpackages/authentication/hooks/index.ts
+++ b/apps/bMiniApp/src/subpackages/authentication/hooks/index.ts
@@ -9,10 +9,8 @@
UserCertificationChannelEnum,
UserCertificationPayType,
} from '@12333/constants';
-import * as commonServices from '@12333/services/api/Common';
-// import * as userServices from '@12333/services/api/User';
import { FormValidator, Message } from '@12333/utils';
-// import { useUserCertificationSetting } from '@12333/hooks';
+import { useUserCertificationSetting } from '@12333/hooks';
import Taro from '@tarojs/taro';
type UseAuthenticationFlowOptions = {
@@ -160,32 +158,32 @@
};
}
-// export function useDownloadPowerAttorneyTemplate() {
-// // const { userCertificationSetting } = useUserCertificationSetting();
+export function useDownloadPowerAttorneyTemplate() {
+ const { userCertificationSetting } = useUserCertificationSetting();
-// function downloadPowerAttorneyTemplate() {
-// Taro.showLoading({
-// title: '涓嬭浇涓�',
-// });
-// Taro.downloadFile({
-// url: userCertificationSetting.value.enterprisePowerAttorneyTempPath,
-// success: function (res) {
-// Taro.hideLoading();
-// // Message.success('涓嬭浇鎴愬姛');
-// var filePath = res.tempFilePath;
-// Taro.openDocument({
-// filePath: filePath,
-// showMenu: true,
-// });
-// },
-// fail: function (error: any) {
-// Taro.hideLoading();
-// Message.error('涓嬭浇澶辫触');
-// },
-// });
-// }
+ function downloadPowerAttorneyTemplate() {
+ Taro.showLoading({
+ title: '涓嬭浇涓�',
+ });
+ Taro.downloadFile({
+ url: userCertificationSetting.value.enterprisePowerAttorneyTempPath,
+ success: function (res) {
+ Taro.hideLoading();
+ // Message.success('涓嬭浇鎴愬姛');
+ var filePath = res.tempFilePath;
+ Taro.openDocument({
+ filePath: filePath,
+ showMenu: true,
+ });
+ },
+ fail: function (error: any) {
+ Taro.hideLoading();
+ Message.error('涓嬭浇澶辫触');
+ },
+ });
+ }
-// return {
-// downloadPowerAttorneyTemplate,
-// };
-// }
+ return {
+ downloadPowerAttorneyTemplate,
+ };
+}
--
Gitblit v1.9.1