浏览代码

职位详情:招聘会职位不需要获取是否为收藏职位

Xiao_123 3 天之前
父节点
当前提交
f7b23571f1
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      pagesB/positionDetail/index.vue

+ 3 - 3
pagesB/positionDetail/index.vue

@@ -31,9 +31,9 @@
                     </span>
                   </view>
                 </view>
-                <view class="d-flex justify-space-between mt-5 align-center">
+                <view class="d-flex mt-5 align-center" :style="{'justify-content': jobFairId ? 'flex-end' : 'space-between'}">
                   <!-- 收藏职位 -->
-                  <view @click="handleCollection" class="d-flex align-center">
+                  <view v-if="!jobFairId" @click="handleCollection" class="d-flex align-center">
                     <uni-icons
                       :type="isCollection ? 'heart-filled' : 'heart'"
                       color="#00B760"
@@ -337,7 +337,7 @@ onLoad(async (options) => {
   if (jobId) {
     loading.value = true
     loadingText.value = '加载中 . . . '
-    getCollectionStatus()
+    if (!jobFairId) getCollectionStatus()
     getPositionDetail()
   } else {
     loadingText.value = '加载失败 . . . '