招聘会页面优化
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
<!-- 主体内容区域 -->
|
<!-- 主体内容区域 -->
|
||||||
<view class="container-main">
|
<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="cards" v-if="fairList.length">
|
||||||
<view class="card press-button" v-for="(item, index) in fairList" :key="index"
|
<view class="card press-button" v-for="(item, index) in fairList" :key="index"
|
||||||
@click="goDetail(item.jobFairId)">
|
@click="goDetail(item.jobFairId)">
|
||||||
@@ -74,10 +74,12 @@
|
|||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 自定义tabbar -->
|
<!-- 自定义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>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -108,7 +110,7 @@
|
|||||||
longitudeVal,
|
longitudeVal,
|
||||||
latitudeVal
|
latitudeVal
|
||||||
} = storeToRefs(useLocationStore());
|
} = storeToRefs(useLocationStore());
|
||||||
const wxAuthLoginRef = ref(null);
|
// const wxAuthLoginRef = ref(null);
|
||||||
const {
|
const {
|
||||||
$api,
|
$api,
|
||||||
navTo,
|
navTo,
|
||||||
@@ -131,7 +133,7 @@
|
|||||||
jobFairTitle: "",
|
jobFairTitle: "",
|
||||||
});
|
});
|
||||||
const baseUrl = config.imgBaseUrl;
|
const baseUrl = config.imgBaseUrl;
|
||||||
|
const showTabar = ref(false);
|
||||||
onLoad(async () => {
|
onLoad(async () => {
|
||||||
// const today = new Date();
|
// const today = new Date();
|
||||||
// const year = today.getFullYear();
|
// const year = today.getFullYear();
|
||||||
@@ -198,16 +200,22 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
// onMounted(() => {
|
||||||
// 监听退出登录事件,显示微信登录弹窗
|
// // 监听退出登录事件,显示微信登录弹窗
|
||||||
uni.$on("showLoginModal", () => {
|
// uni.$on("showLoginModal", () => {
|
||||||
wxAuthLoginRef.value?.open();
|
// wxAuthLoginRef.value?.open();
|
||||||
});
|
// });
|
||||||
});
|
// });
|
||||||
|
watch(() => userInfo.value.userType, (newVal) => {
|
||||||
onUnmounted(() => {
|
if(newVal=='ent'){
|
||||||
uni.$off("showLoginModal");
|
showTabar.value = true
|
||||||
});
|
}else{
|
||||||
|
showTabar.value = false
|
||||||
|
}
|
||||||
|
},{ immediate: true ,deep: true})
|
||||||
|
// onUnmounted(() => {
|
||||||
|
// uni.$off("showLoginModal");
|
||||||
|
// });
|
||||||
|
|
||||||
// 登录成功回调
|
// 登录成功回调
|
||||||
const handleLoginSuccess = () => {
|
const handleLoginSuccess = () => {
|
||||||
@@ -698,7 +706,9 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100% - 150rpx);
|
height: calc(100% - 150rpx);
|
||||||
}
|
}
|
||||||
|
.fullHeightScroll{
|
||||||
|
height: 100% !important;
|
||||||
|
}
|
||||||
.cards {
|
.cards {
|
||||||
padding: 28rpx;
|
padding: 28rpx;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -683,11 +683,6 @@ onMounted(() => {
|
|||||||
// 获取企业信息
|
// 获取企业信息
|
||||||
getCompanyInfo();
|
getCompanyInfo();
|
||||||
// pageNull.value = 0;
|
// pageNull.value = 0;
|
||||||
// 监听退出登录事件,显示微信登录弹窗
|
|
||||||
uni.$on('showLoginModal', () => {
|
|
||||||
wxAuthLoginRef.value?.open();
|
|
||||||
pageNull.value = 0;
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
@@ -695,6 +690,11 @@ onUnmounted(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
onShow(() => {
|
onShow(() => {
|
||||||
|
// 监听退出登录事件,显示微信登录弹窗
|
||||||
|
uni.$on('showLoginModal', () => {
|
||||||
|
wxAuthLoginRef.value?.open();
|
||||||
|
pageNull.value = 0;
|
||||||
|
});
|
||||||
// 获取最新的企业信息
|
// 获取最新的企业信息
|
||||||
getCompanyInfo();
|
getCompanyInfo();
|
||||||
//四级联动单点及权限
|
//四级联动单点及权限
|
||||||
|
|||||||
Reference in New Issue
Block a user