浏览代码

职位提示

Xiao_123 3 天之前
父节点
当前提交
55842c81f9
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 5 4
      components/PositionList/index.vue

+ 5 - 4
components/PositionList/index.vue

@@ -62,11 +62,12 @@
             >{{ item.count || 0 }} 已投递简历</view>
             <view 
               v-if="tab === 1" 
-              class="sub-li-bottom-item color-warning" 
+              class="sub-li-bottom-item"
+			   :class="[`color-${item.jobFairName ? '999' : 'warning'}`]"
               @tap.stop="handleAction(item.top ? 4 : 3, '', item)"
             >{{ item.top ? '取消置顶' : '置顶' }}</view>
-            <view v-if="tab === 1" class="sub-li-bottom-item color-666" @tap.stop="handleAction(0, '', item, item)">关闭</view>
-            <view v-if="tab === 2" class="sub-li-bottom-item color-warning" @tap.stop="handleAction(1, '', item, item)">激活</view>
+            <view v-if="tab === 1" class="sub-li-bottom-item color-error" @tap.stop="handleAction(0, '', item, item)">关闭</view>
+            <view v-if="tab === 2" class="sub-li-bottom-item color-primary" @tap.stop="handleAction(1, '', item, item)">激活</view>
           </view>
         </view>
       </view>
@@ -157,7 +158,7 @@ const apiList = [closeJobAdvertised, enableJobAdvertised, refreshJobAdvertised,
 const handleAction = async (index, type, { id, jobFairName, jobFairId }, item) => {
 	// 招聘会职位激活、关闭跳转去招聘会进行操作
   if (jobFairName) {
-	  if ([3,4].includes(index)) return // 招聘会职位置顶、取消置顶不可操作
+	  if ([3,4].includes(index)) return uni.showToast({ title: '招聘会职位无法操作', icon: 'none', duration: 2000 })// 招聘会职位置顶、取消置顶不可操作
     uni.showToast({ title: '该职位属于招聘会,即将前往招聘会', icon: 'none', duration: 2000 })
     setTimeout(() => {
       uni.navigateTo({