From ba48054b6f2680cfa1a0b3b912880925a8b5861b Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期三, 13 八月 2025 15:33:47 +0800 Subject: [PATCH] fix: 验收管理 --- 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