ソースを参照

首页职位不需要展示招聘会标识

Xiao_123 1 週間 前
コミット
1046626071
3 ファイル変更13 行追加6 行削除
  1. 11 4
      components/PositionList/index.vue
  2. 1 1
      pagesA/interview/index.vue
  3. 1 1
      utils/config.js

+ 11 - 4
components/PositionList/index.vue

@@ -10,7 +10,13 @@
             <view class="titleBox ss-m-y-10">
               <view style="display: flex;align-items: center;">
                 <view v-if="item.job?.hire" class="iconfont icon-a-1_zhaopin ss-m-r-10" style="color: #e03506; font-size: 25px;"></view>
-                <image v-if="props.jobFairId || item.job?.bizId" src="/static/svg/jobFair.svg" class=" ss-m-r-10" style="width: 20px; height: 20px;"></image>
+                <!-- 招聘会标识 -->
+                <image
+                  v-if="props.jobFairId || (props.showJobFairSign && item.job?.bizId)"
+                  src="/static/svg/jobFair.svg"
+                  class=" ss-m-r-10"
+                  style="width: 20px; height: 20px;"
+                ></image>
                 <rich-text v-if="item.job?.name?.indexOf('style') !== -1" class="job-name MiSans-Semibold default-text-color" :nodes="item.job.name"></rich-text>
                 <view v-else class="job-name MiSans-Semibold default-text-color">{{ formatName(item.job?.name) }}</view>
               </view>
@@ -114,7 +120,8 @@ const props = defineProps({
   showReportBtn: { type: Boolean, default: false },
   showUpdateTime: { type: Boolean, default: true },
   noMore: { type: Boolean, default: false },
-  showWelfareTag: { type: Boolean, default: true }
+  showWelfareTag: { type: Boolean, default: true },
+  showJobFairSign: { type: Boolean, default: false } // 是否展示招聘会标识
 })
 
 const useUserStore = userStore()
@@ -232,14 +239,14 @@ const handleReport = (val) => {
   position: relative;
   overflow: hidden;
   &::after {
-    content: '已失效';
+    content: '职位已关闭';
     position: absolute;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1.2em;
     font-weight: bold;
-    color: #fc796f;
+    color: #ff5252;
     top: 0;
     border-radius: 12px;
     left: 0;

+ 1 - 1
pagesA/interview/index.vue

@@ -3,7 +3,7 @@
     <uni-segmented-control :current="current" class="MiSans-Normal" :values="controlList" @clickItem="handleChange" styleType="text" activeColor="#00B760"></uni-segmented-control>
     <scroll-view class="scrollBox" scroll-y="true" @scrolltolower="loadingMore" style="height: calc(100vh - 36px);">
       <view v-if="items.length">
-        <PositionList v-if="current === 0" class="pb-10" showReportBtn :list="items" :noMore="false" @refresh="refresh"></PositionList>
+        <PositionList v-if="current === 0" class="pb-10" showReportBtn :list="items" :showJobFairSign="true" :noMore="false" @refresh="refresh"></PositionList>
         <Items v-else class="pb-10" :list="items" @action="handleAction"></Items>
         <uni-load-more :status="more" />
       </view>

+ 1 - 1
utils/config.js

@@ -12,7 +12,7 @@ const config = {
   }
 }
 
-const setting = 'httpsTest' // httpsTest produce > 环境选择(切换环境更改此处)
+const setting = 'produce' // httpsTest produce > 环境选择(切换环境更改此处)
 
 export const envObj = config[setting]