From b3dc565fe8a341bdb069b8f0feb912cd751a589f Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期四, 14 八月 2025 09:12:27 +0800
Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/flexJobMiniApp
---
apps/bMiniApp/src/hooks/user.ts | 37 ++++++++++++++++++-------------------
1 files changed, 18 insertions(+), 19 deletions(-)
diff --git a/apps/bMiniApp/src/hooks/user.ts b/apps/bMiniApp/src/hooks/user.ts
index 1f9b943..28b1083 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,35 +11,35 @@
const { userDetail, userInfo, locationCity } = storeToRefs(userStore);
- function updateUserInfo() {
- return userStore.getCurrentUserInfo();
- }
+ // function updateUserInfo() {
+ // return userStore.getCurrentUserInfo();
+ // }
- const isCompanyAudited = computed(() => {
- return userDetail.value?.openHRSiteStatus === ParkOrHRStatus.Running;
- });
+ // const isCompanyAudited = computed(() => {
+ // return userDetail.value?.openHRSiteStatus === ParkOrHRStatus.Running;
+ // });
/**
* 鏄惁瀹屽杽涓汉淇℃伅锛堜紒涓氬悕绉帮紝鎵嬫満鍙凤級
*/
- const isCompletePersonalInfo = computed(() => {
- return (
- !!userDetail.value?.customerName &&
- !!userDetail.value?.contacter &&
- !!userDetail.value?.cityName
- );
- });
+ // const isCompletePersonalInfo = computed(() => {
+ // return (
+ // !!userDetail.value?.customerName &&
+ // !!userDetail.value?.contacter &&
+ // !!userDetail.value?.cityName
+ // );
+ // });
const isCertified = computed(() => {
- return userDetail.value?.frontStatus === UserCertificationFrontStatus.Certified;
+ return false;
});
return {
user: userInfo,
userDetail: userDetail,
- updateUserInfo,
- isCompletePersonalInfo,
- isCompanyAudited,
+ // updateUserInfo,
+ // isCompletePersonalInfo,
+ // isCompanyAudited,
isCertified,
locationCity,
};
@@ -68,7 +67,7 @@
Taro.useReady(async () => {
if (isLogin.value && userStore.firstGetUserDetail) {
- userStore.getCurrentUserInfo();
+ // userStore.getCurrentUserInfo();
}
if (needAuth && !isLogin.value) {
Taro.navigateTo({
--
Gitblit v1.9.1