| | |
| | | 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 |
| | | ); |
| | | }); |
| | | |
| | | const isCertified = computed(() => { |
| | | return false; |
| | | return userDetail.value?.isReal; |
| | | }); |
| | | |
| | | return { |
| | | user: userInfo, |
| | | userDetail: userDetail, |
| | | updateUserInfo, |
| | | isCompletePersonalInfo, |
| | | isCompanyAudited, |
| | | isCertified, |
| | | locationCity, |
| | | userId, |