From cbff9285e884f4e81ec87f1c1e7da401436aea10 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期三, 20 八月 2025 15:28:35 +0800 Subject: [PATCH] fix: 实名 --- apps/bMiniApp/src/hooks/user.ts | 29 ++++++----------------------- 1 files changed, 6 insertions(+), 23 deletions(-) diff --git a/apps/bMiniApp/src/hooks/user.ts b/apps/bMiniApp/src/hooks/user.ts index 6488550..c035c72 100644 --- a/apps/bMiniApp/src/hooks/user.ts +++ b/apps/bMiniApp/src/hooks/user.ts @@ -11,35 +11,18 @@ const { userDetail, userInfo, locationCity } = storeToRefs(userStore); - // function updateUserInfo() { - // return userStore.getCurrentUserInfo(); - // } - - // const isCompanyAudited = computed(() => { - // return userDetail.value?.openHRSiteStatus === ParkOrHRStatus.Running; - // }); - - /** - * 鏄惁瀹屽杽涓汉淇℃伅锛堜紒涓氬悕绉帮紝鎵嬫満鍙凤級 - */ - // const isCompletePersonalInfo = computed(() => { - // return ( - // !!userDetail.value?.customerName && - // !!userDetail.value?.contacter && - // !!userDetail.value?.cityName - // ); - // }); + function updateUserInfo() { + return userStore.getCurrentUserInfo(); + } const isCertified = computed(() => { - return userDetail.value?.frontStatus === UserCertificationFrontStatus.Certified; + return userDetail.value?.isReal; }); return { user: userInfo, userDetail: userDetail, - // updateUserInfo, - // isCompletePersonalInfo, - // isCompanyAudited, + updateUserInfo, isCertified, locationCity, }; @@ -67,7 +50,7 @@ Taro.useReady(async () => { if (isLogin.value && userStore.firstGetUserDetail) { - // userStore.getCurrentUserInfo(); + userStore.getCurrentUserInfo(); } if (needAuth && !isLogin.value) { Taro.navigateTo({ -- Gitblit v1.9.1