浏览代码

无职位数据展示

Xiao_123 2 天之前
父节点
当前提交
1fe5cfc182
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      pages/index/components/recommend.vue

+ 2 - 2
pages/index/components/recommend.vue

@@ -13,7 +13,8 @@
 		<scroll-view class="scrollBox" :scroll-y="true" @scrolltolower="loadingMore" style="position:relative;">
 			<TalentItem v-if="items?.length || more !== 'loading'" :items="items" />
 			<uni-load-more v-if="items?.length" :status="more" />
-			<view v-else class="noJobId">
+			<view v-if="!jobList?.length" class="noJobId text-center">暂无正在招聘中的职位</view>
+			<view v-if="jobList?.length && !items?.length" class="noJobId">
 				<view>请先选择上方正在招聘的职位</view>
 				<view>我们将根据您选择的职位为您推荐合适的人才</view>
 			</view>
@@ -29,7 +30,6 @@ import { dealDictArrayData } from '@/utils/position'
 
 defineProps({ jobList: Array, navbarHeight: [Number, String] })
 
-
 const query = ref({
 	pageNo: 1,
 	paeSize: 20,