Selaa lähdekoodia

招聘会:显示企业信息,不显示更新时间

lifanagju_citu 2 kuukautta sitten
vanhempi
commit
04e2aa5a31

+ 2 - 1
components/PositionList/index.vue

@@ -64,7 +64,7 @@
               custom-style="background-color: #e2f0ef; color:#00897B; border-color:#e2f0ef;"
             />
           </view>
-          <view class="font-size-13 color-999 ss-m-t-10" :style="`text-align: ${props.updateTimeAlign};`">更新时间:{{ timesTampChange(item?.job?.refreshTime || item.job?.updateTime, 'Y-M-D h:m') }}</view>
+          <view v-if="props.showUpdateTime" class="font-size-13 color-999 ss-m-t-10" :style="`text-align: ${props.updateTimeAlign};`">更新时间:{{ timesTampChange(item?.job?.refreshTime || item.job?.updateTime, 'Y-M-D h:m') }}</view>
         </view>
         <!-- 企业信息 -->
         <view v-if="props.showEntInfo" class="sub-li-bottom">
@@ -99,6 +99,7 @@ const props = defineProps({
   showJobFairEntrance: { type: Boolean, default: false }, // 招聘会
   showEntInfo: { type: Boolean, default: true },
   updateTimeAlign: { type: String, default: 'end' },
+  showUpdateTime: { type: Boolean, default: true },
   noMore: { type: Boolean, default: false },
   showWelfareTag: { type: Boolean, default: true }
 })

+ 3 - 2
pagesB/jobFair/enterprisesClassification.vue

@@ -50,8 +50,9 @@
           </uni-card>
           <uni-load-more :status="more" />
         </view>
-        <view v-else class="nodata-img-parent white-bgc ss-m-30">
-          <image src="https://minio.citupro.com/dev/static/nodata.png" mode="widthFix" style="width: 100vw;height: 100vh;"></image>
+        <view v-else class="nodata-img-parent">
+          <!-- <image src="https://minio.citupro.com/dev/static/nodata.png" mode="widthFix" style="width: 100vw;height: 100vh;"></image> -->
+          <uni-load-more class="ss-m-t-50" status="noMore" :content-text="{'contentnomore': '暂无数据,请切换类型查看~'}" />
         </view>
       </view>
     </scroll-view>

+ 5 - 4
pagesB/jobFair/positionClassification.vue

@@ -26,15 +26,15 @@
           <PositionList
             :list="listData"
             :noMore="false"
-            :showEntInfo="false"
             :jobFairId="query.jobFairId"
-            updateTimeAlign="left"
+            :showUpdateTime="false"
             noDataTextColor="#fff"
           ></PositionList>
           <uni-load-more :status="more" />
         </view>
-        <view v-else class="nodata-img-parent white-bgc ss-m-30">
-          <image src="https://minio.citupro.com/dev/static/nodata.png" mode="widthFix" style="width: 100vw;height: 100vh;"></image>
+        <view v-else class="nodata-img-parent">
+          <!-- <image src="https://minio.citupro.com/dev/static/nodata.png" mode="widthFix" style="width: 100vw;height: 100vh;"></image> -->
+          <uni-load-more class="ss-m-t-50" status="noMore" :content-text="{'contentnomore': '暂无数据,请切换类型查看~'}" />
         </view>
       </view>
     </scroll-view>
@@ -114,6 +114,7 @@ const getData = async () => {
     const list = res?.data?.list || []
     list.forEach(e => {
       e.job = dealDictObjData({}, e)
+      e.enterprise = { ...e.enterprise, ...dealDictObjData({}, e.enterprise)}
     })
     listData.value = listData.value.concat(list)
     if (listData.value?.length === +res?.data?.total) {