Bläddra i källkod

Merge branch 'dev' of https://git.citupro.com/zhengnaiwen_citu/menduner into dev

lifanagju_citu 1 år sedan
förälder
incheckning
ccfb7927a5

+ 4 - 0
src/components/Enterprise/details.vue

@@ -132,6 +132,10 @@ const recruitmentSpecialist = [
   { name: '徐有道', position: '招聘专员', desc: '正在招聘“运营专员”等职位', avatar: 'https://cdn.vuetifyjs.com/images/john.jpg' },
   { name: '方晓', position: '人事经理', desc: '正在招聘“运营专员”等职位', avatar: 'https://avatars0.githubusercontent.com/u/9064066?v=4&s=460' }
 ]
+
+// 有tab的是首页中热门企业模块
+const savedTab = new URLSearchParams(window.location.search).get('tab')
+if (savedTab) tab.value = 2
 </script>
 
 <style scoped lang="scss">

+ 6 - 1
src/components/Enterprise/hotPromoted.vue

@@ -27,7 +27,7 @@
         </li>
       </ul>
       <div class="moreBtn">
-        <v-btn class="buttons" color="primary" variant="outlined">{{ $t('position.moreBtn') }}</v-btn>
+        <v-btn class="buttons" color="primary" variant="outlined" @click="handleMoreEnterprise(item)">{{ $t('position.moreBtn') }}</v-btn>
       </div>
     </div>
   </div>
@@ -64,6 +64,11 @@ const handleClickPosition = (k) => {
 const handleClickEnterprise = (item) => {
   window.open(`/enterprise/details/${item.id}`)
 }
+
+// 查看更多职位
+const handleMoreEnterprise = (item) => {
+  window.open(`/enterprise/details/${item.id}?tab=recruitmentPositions`)
+}
 </script>
 
 <style lang="scss" scoped>

+ 5 - 1
src/components/Enterprise/info.vue

@@ -4,7 +4,7 @@
     <div style="height: 50px;">
       <v-img class="float-left" :src="props.info.enterprise.logoUrl" :width="45" height="45"></v-img>
       <div class="ml-3 float-left">
-        <p class="enterprise-name">{{ props.info.enterprise.anotherName }}</p>
+        <p class="enterprise-name cursor-pointer" @click="handleEnterprise">{{ props.info.enterprise.anotherName }}</p>
         <v-icon color="primary" size="20">mdi-shield-check</v-icon> <!-- mdi-shield-remove -->
         <span style="color: var(--v-primary-base);font-size: 14px;">已认证</span>
       </div>
@@ -44,6 +44,10 @@ const getData = async () => {
   obj.value = dealDictData(obj.value, prise)
 }
 getData()
+
+const handleEnterprise = () => {
+  window.open(`/enterprise/details/${props.info.enterprise.id}`)
+}
 </script>
 
 <style lang="scss" scoped>

+ 4 - 1
src/components/Position/similarPositions.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="position-box">
     <h4 class="mb-3">相似职位</h4>
-    <div v-for="(item, index) in props.list" :key="index" class="mb-2 cursor-pointer">
+    <div v-for="(item, index) in props.list" :key="index" class="mb-2 cursor-pointer" @click="handlePosition(item)">
       <p class="recruit-name">{{ item.name }}</p>
       <span class="recruit-salary">{{ item.payFrom }}-{{ item.payTo }}/{{ item.payName }}</span>
       <div :class="['enterprise', {'border-bottom-dashed': index !== list.length - 1}]">
@@ -23,6 +23,9 @@ const props = defineProps({
     default: () => []
   }
 })
+const handlePosition = (item) => {
+  window.open(`/recruit/position/details/${item.positionId}`)
+}
 </script>
 
 <style lang="scss" scoped>