diff --git a/pages/careerfair/careerfair.vue b/pages/careerfair/careerfair.vue index 330db53..5aa3a0a 100644 --- a/pages/careerfair/careerfair.vue +++ b/pages/careerfair/careerfair.vue @@ -27,7 +27,7 @@ - + @@ -74,10 +74,12 @@ - + - + @@ -108,7 +110,7 @@ longitudeVal, latitudeVal } = storeToRefs(useLocationStore()); - const wxAuthLoginRef = ref(null); + // const wxAuthLoginRef = ref(null); const { $api, navTo, @@ -131,7 +133,7 @@ jobFairTitle: "", }); const baseUrl = config.imgBaseUrl; - + const showTabar = ref(false); onLoad(async () => { // const today = new Date(); // const year = today.getFullYear(); @@ -198,16 +200,22 @@ } } - onMounted(() => { - // 监听退出登录事件,显示微信登录弹窗 - uni.$on("showLoginModal", () => { - wxAuthLoginRef.value?.open(); - }); - }); - - onUnmounted(() => { - uni.$off("showLoginModal"); - }); + // onMounted(() => { + // // 监听退出登录事件,显示微信登录弹窗 + // uni.$on("showLoginModal", () => { + // wxAuthLoginRef.value?.open(); + // }); + // }); + watch(() => userInfo.value.userType, (newVal) => { + if(newVal=='ent'){ + showTabar.value = true + }else{ + showTabar.value = false + } + },{ immediate: true ,deep: true}) + // onUnmounted(() => { + // uni.$off("showLoginModal"); + // }); // 登录成功回调 const handleLoginSuccess = () => { @@ -698,7 +706,9 @@ width: 100%; height: calc(100% - 150rpx); } - + .fullHeightScroll{ + height: 100% !important; + } .cards { padding: 28rpx; } diff --git a/pages/index/components/index-one.vue b/pages/index/components/index-one.vue index fd36b1a..1f59f3f 100644 --- a/pages/index/components/index-one.vue +++ b/pages/index/components/index-one.vue @@ -683,11 +683,6 @@ onMounted(() => { // 获取企业信息 getCompanyInfo(); // pageNull.value = 0; - // 监听退出登录事件,显示微信登录弹窗 - uni.$on('showLoginModal', () => { - wxAuthLoginRef.value?.open(); - pageNull.value = 0; - }); }); onUnmounted(() => { @@ -695,6 +690,11 @@ onUnmounted(() => { }); onShow(() => { + // 监听退出登录事件,显示微信登录弹窗 + uni.$on('showLoginModal', () => { + wxAuthLoginRef.value?.open(); + pageNull.value = 0; + }); // 获取最新的企业信息 getCompanyInfo(); //四级联动单点及权限