From c2447e7d63e22bea1a8b6119a210b470f8aa17d4 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期三, 03 十二月 2025 15:06:00 +0800
Subject: [PATCH] feat: 通知

---
 apps/bMiniApp/src/hooks/user.ts |   35 +++++++++++------------------------
 1 files changed, 11 insertions(+), 24 deletions(-)

diff --git a/apps/bMiniApp/src/hooks/user.ts b/apps/bMiniApp/src/hooks/user.ts
index 0e00d5b..61c3123 100644
--- a/apps/bMiniApp/src/hooks/user.ts
+++ b/apps/bMiniApp/src/hooks/user.ts
@@ -2,7 +2,6 @@
 import Taro from '@tarojs/taro';
 import { object2query, LocationUtils } from '@12333/utils';
 import { ParkOrHRStatus, UserCertificationFrontStatus } from '@12333/constants';
-// import * as userServices from '@12333/services/api/User';
 import { useQuery } from '@tanstack/vue-query';
 import { MaybeRef } from 'vue';
 import { useRefeshDidShow } from '@12333/hooks/infiniteLoading';
@@ -12,37 +11,25 @@
 
   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?.enterpriseIsReal;
+  });
+
+  const isBindWechat = computed(() => {
+    return userDetail.value?.bindWxmpId;
   });
 
   return {
     user: userInfo,
     userDetail: userDetail,
-    // updateUserInfo,
-    // isCompletePersonalInfo,
-    // isCompanyAudited,
+    updateUserInfo,
     isCertified,
     locationCity,
+    isBindWechat,
   };
 }
 
@@ -68,7 +55,7 @@
 
   Taro.useReady(async () => {
     if (isLogin.value && userStore.firstGetUserDetail) {
-      // userStore.getCurrentUserInfo();
+      userStore.getCurrentUserInfo();
     }
     if (needAuth && !isLogin.value) {
       Taro.navigateTo({

--
Gitblit v1.9.1