Browse Source

暂无数据

lifanagju_citu 4 months ago
parent
commit
ffcbc1dd1a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      pagesB/jobFair/positionClassification.vue

+ 3 - 1
pagesB/jobFair/positionClassification.vue

@@ -49,7 +49,7 @@
           <uni-load-more :status="more" :color="textColor" />
           <uni-load-more :status="more" :color="textColor" />
         </view>
         </view>
         <view v-else class="nodata-img-parent">
         <view v-else class="nodata-img-parent">
-          <uni-load-more class="ss-m-t-50" :color="textColor" status="noMore" :content-text="{'contentnomore': '暂无数据,请切换类型查看~'}" />
+          <uni-load-more class="ss-m-t-50" :color="textColor" status="noMore" :content-text="{'contentnomore': loading ? '加载中. . .' : tabList?.length ? '暂无数据,请切换类型查看~': '暂无数据~'}" />
         </view>
         </view>
         <!-- 招聘会分享按钮 -->
         <!-- 招聘会分享按钮 -->
         <view v-if="showShareBtn" class="shareButtonBox" @tap="handleShare">
         <view v-if="showShareBtn" class="shareButtonBox" @tap="handleShare">
@@ -69,6 +69,7 @@ import PositionList from '@/components/PositionList'
 import SwiperAd from '@/components/SwiperAd'
 import SwiperAd from '@/components/SwiperAd'
 import { getShareQueryById } from '@/api/jobFair.js'
 import { getShareQueryById } from '@/api/jobFair.js'
 
 
+const loading = ref(true)
 const more = ref('more')
 const more = ref('more')
 const listData = ref([])
 const listData = ref([])
 const query = reactive({
 const query = reactive({
@@ -178,6 +179,7 @@ const getEntPositionList = async () => {
       e.enterprise = { ...e.enterprise, ...dealDictObjData({}, e.enterprise)}
       e.enterprise = { ...e.enterprise, ...dealDictObjData({}, e.enterprise)}
     })
     })
     listData.value = listData.value.concat(list)
     listData.value = listData.value.concat(list)
+    loading.value = false
     if (listData.value?.length === +res?.data?.total) {
     if (listData.value?.length === +res?.data?.total) {
       more.value = 'noMore'
       more.value = 'noMore'
       return
       return