diff --git a/components/CustomTabBar/CustomTabBar.vue b/components/CustomTabBar/CustomTabBar.vue index 22ff7e4..49ffe5c 100644 --- a/components/CustomTabBar/CustomTabBar.vue +++ b/components/CustomTabBar/CustomTabBar.vue @@ -88,16 +88,10 @@ const generateTabbarList = () => { // 优先从store获取,如果为空则直接从缓存获取 const cachedUserInfo = uni.getStorageSync('userInfo') || {}; - console.log('完整userInfo对象:', userInfo.value); - console.log('缓存中的userInfo:', cachedUserInfo); - // 获取isCompanyUser字段 const storeIsCompanyUser = userInfo.value?.isCompanyUser; const cachedIsCompanyUser = cachedUserInfo.isCompanyUser; - console.log('store中的isCompanyUser:', storeIsCompanyUser); - console.log('缓存中的isCompanyUser:', cachedIsCompanyUser); - // 获取用户类型的逻辑: // 1. 优先使用store中的isCompanyUser // 2. 如果store中没有,使用缓存中的isCompanyUser @@ -140,18 +134,11 @@ const forceRefresh = () => { // 触发响应式更新 const cachedUserInfo = uni.getStorageSync('userInfo') || {}; const currentUserType = userInfo.value?.isCompanyUser !== undefined ? userInfo.value.isCompanyUser : (cachedUserInfo.isCompanyUser !== undefined ? cachedUserInfo.isCompanyUser : 1); - console.log('强制刷新tabbar,当前用户类型:', currentUserType); }; // 监听用户类型变化(只监听isCompanyUser字段) watch(() => userInfo.value?.isCompanyUser, (newIsCompanyUser, oldIsCompanyUser) => { - console.log('用户类型变化监听:', { - newIsCompanyUser, - oldIsCompanyUser, - userInfo: userInfo.value - }); if (newIsCompanyUser !== oldIsCompanyUser) { - console.log('用户类型发生变化,重新生成tabbar:', newIsCompanyUser); // 强制触发computed重新计算 forceRefresh(); } @@ -159,9 +146,7 @@ watch(() => userInfo.value?.isCompanyUser, (newIsCompanyUser, oldIsCompanyUser) // 监听用户信息变化(包括登录状态) watch(() => userInfo.value, (newUserInfo, oldUserInfo) => { - console.log('用户信息变化监听:', { newUserInfo, oldUserInfo }); if (newUserInfo !== oldUserInfo) { - console.log('用户信息发生变化,重新生成tabbar'); // 强制触发computed重新计算 forceRefresh(); } @@ -196,8 +181,6 @@ const switchTab = (item, index) => { onMounted(() => { currentItem.value = props.currentPage; // 调试信息:显示当前用户状态和tabbar配置 - console.log('CustomTabBar mounted, 用户信息:', userInfo.value); - console.log('当前tabbar配置:', tabbarList.value); forceRefresh(); }); diff --git a/pages/complete-info/company-info.vue b/pages/complete-info/company-info.vue index c3150bc..a66c666 100644 --- a/pages/complete-info/company-info.vue +++ b/pages/complete-info/company-info.vue @@ -720,10 +720,12 @@ defineExpose({ font-size: 28rpx color: #333 text-align: right + line-height: 1.4 &::placeholder color: #999 - font-size: 26rpx + font-size: 28rpx + line-height: 1.4 .input-con flex: 1 @@ -733,10 +735,12 @@ defineExpose({ background: transparent border: none outline: none + line-height: 1.4 &::placeholder color: #999 - font-size: 26rpx + font-size: 28rpx + line-height: 1.4 .input-content flex: 1 @@ -752,7 +756,8 @@ defineExpose({ &.placeholder color: #999 - font-size: 26rpx + font-size: 28rpx + line-height: 1.4 &.intro-text max-height: 80rpx diff --git a/pages/job/companySearch.vue b/pages/job/companySearch.vue index 19758e1..0cc499c 100644 --- a/pages/job/companySearch.vue +++ b/pages/job/companySearch.vue @@ -3,7 +3,7 @@ - + 选择企业 @@ -13,12 +13,11 @@ 🔍 - @@ -28,47 +27,53 @@ - + + + 请输入企业名称进行搜索 + + + 搜索中... - + {{ company.name }} - - 地址: - {{ company.address }} + + 📍 + {{ company.location }} - - 联系人: - {{ company.contact }} + + 规模: + {{ getScaleText(company.scale) }} + + + 性质: + {{ getNatureText(company.nature) }} + + + {{ company.description }} - > + - - - 🔍 - 未找到相关企业 - 请尝试其他关键词 - - - - - 🔍 - 请输入企业名称进行搜索 + + + 📭 + 未找到相关企业 + 请尝试其他关键词 @@ -78,24 +83,27 @@