Browse Source

企业详情-在招职位

Xiao_123 7 months ago
parent
commit
1ad4b8b0d8

+ 2 - 1
components/PositionList/index.vue

@@ -12,7 +12,8 @@
               <rich-text v-if="item.job?.name?.indexOf('style')" class="job-name" :nodes="item.job.name"></rich-text>
               <rich-text v-if="item.job?.name?.indexOf('style')" class="job-name" :nodes="item.job.name"></rich-text>
               <view v-else class="job-name" style="">{{item.job?.name}}</view>
               <view v-else class="job-name" style="">{{item.job?.name}}</view>
             </view>
             </view>
-            <span class="salary-text">{{ item.job?.payFrom }}-{{ item.job?.payTo }}{{ item.job?.payName ? '/' + item.job?.payName : '' }}</span>
+            <span v-if="!item.job?.payFrom && !item.job?.payTo" class="salary-text">面议</span>
+            <span v-else class="salary-text">{{ item.job?.payFrom }}-{{ item.job?.payTo }}{{ item.job?.payName ? '/' + item.job?.payName : '' }}</span>
           </view>
           </view>
           <!-- 工作地 -->
           <!-- 工作地 -->
           <view style="font-size: 13px;" class="mt">
           <view style="font-size: 13px;" class="mt">

+ 1 - 1
package-lock.json

@@ -1,5 +1,5 @@
 {
 {
-  "name": "menduner-uniapp-recruit",
+  "name": "门墩招聘小程序",
   "lockfileVersion": 3,
   "lockfileVersion": 3,
   "requires": true,
   "requires": true,
   "packages": {
   "packages": {

+ 1 - 0
pagesB/companyDetail/index.vue

@@ -197,6 +197,7 @@ const getData = async () => {
 
 
 // 招聘职位列表
 // 招聘职位列表
 const getPositionList = async () => {
 const getPositionList = async () => {
+  queryParams.value.enterpriseId = id.value
   const { data } = await getJobAdvertisedSearch(queryParams.value)
   const { data } = await getJobAdvertisedSearch(queryParams.value)
   const list = data?.list || []
   const list = data?.list || []
   if (list?.length) {
   if (list?.length) {

+ 6 - 5
pagesB/positionDetail/index.vue

@@ -9,16 +9,17 @@
             <h2 class="JobName ellipsis">
             <h2 class="JobName ellipsis">
               {{ info.name }}
               {{ info.name }}
             </h2>
             </h2>
-            <span class="salary w-600">{{ info.payFrom }}-{{ info.payTo }}/{{ positionInfo.payName }}</span>
+            <span v-if="!info.payFrom && !info.payTo" class="salary w-600">面议</span>
+            <span v-else class="salary w-600">{{ info.payFrom }}-{{ info.payTo }}/{{ positionInfo.payName }}</span>
           </view>
           </view>
           <!-- 职位地区 收藏职位 -->
           <!-- 职位地区 收藏职位 -->
           <view class="d-flex justify-space-between mt-5">
           <view class="d-flex justify-space-between mt-5">
             <view class="bold" style="font-size: 14px;">
             <view class="bold" style="font-size: 14px;">
               <span>
               <span>
                 <span>{{positionInfo?.areaName }}</span>
                 <span>{{positionInfo?.areaName }}</span>
-                <span class="viewider-mx">|</span>
+                <span class="viewider-mx" v-if="positionInfo?.areaName && positionInfo?.eduName">|</span>
                 <span>{{positionInfo?.eduName }}</span>
                 <span>{{positionInfo?.eduName }}</span>
-                <span class="viewider-mx">|</span>
+                <span class="viewider-mx" v-if="positionInfo?.expName">|</span>
                 <span>{{positionInfo?.expName }}</span>
                 <span>{{positionInfo?.expName }}</span>
               </span>
               </span>
             </view>
             </view>
@@ -62,7 +63,7 @@
             </view>
             </view>
             <view >
             <view >
               <view class="contact-name">{{ info.contact?.name }}</view>
               <view class="contact-name">{{ info.contact?.name }}</view>
-              <view class="contact-info">{{ info.enterprise?.name }} · {{ info.contact?.postNameCn }}</view>
+              <view class="contact-info">{{ info.enterprise?.name }} {{ info.contact?.postNameCn ? '· ' + info.contact?.postNameCn : '' }}</view>
             </view>
             </view>
           </view>
           </view>
           <!-- 工作地址 -->
           <!-- 工作地址 -->
@@ -75,7 +76,7 @@
                 class="mr"
                 class="mr"
                 size="25"
                 size="25"
               ></uni-icons>
               ></uni-icons>
-              <span style="color: var(--color-666);font-size: 15px;line-height: 26px;">{{ info.address }}</span>
+              <span style="color: var(--color-666);font-size: 15px;line-height: 26px;">{{ info.address || '暂无' }}</span>
             </view>
             </view>
           </view>
           </view>
         </view>
         </view>