招聘会页面优化
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
|
||||
<!-- 主体内容区域 -->
|
||||
<view class="container-main">
|
||||
<scroll-view scroll-y class="main-scroll" @scrolltolower="handleScrollToLower">
|
||||
<scroll-view scroll-y class="main-scroll" :class="{fullHeightScroll:!showTabar}" @scrolltolower="handleScrollToLower">
|
||||
<view class="cards" v-if="fairList.length">
|
||||
<view class="card press-button" v-for="(item, index) in fairList" :key="index"
|
||||
@click="goDetail(item.jobFairId)">
|
||||
@@ -74,10 +74,12 @@
|
||||
</scroll-view>
|
||||
</view>
|
||||
<!-- 自定义tabbar -->
|
||||
<CustomTabBar :currentPage="5" />
|
||||
<template v-if="showTabar">
|
||||
<CustomTabBar :currentPage="5" />
|
||||
</template>
|
||||
|
||||
<!-- 微信授权登录弹窗 -->
|
||||
<WxAuthLogin ref="wxAuthLoginRef" @success="handleLoginSuccess"></WxAuthLogin>
|
||||
<!-- <WxAuthLogin ref="wxAuthLoginRef" @success="handleLoginSuccess"></WxAuthLogin> -->
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
//四级联动单点及权限
|
||||
|
||||
Reference in New Issue
Block a user