JoinUs.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <script setup>
  2. import Layout from '@/components/common/Layout.vue';
  3. import JoinDetail from './JoinDetail.vue';
  4. import { onMounted, ref } from 'vue';
  5. const list = ref([
  6. { number: 1, title: '【社会招聘】中烟国际集团有限公司集团员工关系岗招聘', date: '2025-06-07' },
  7. { number: 2 },
  8. { number: 3 },
  9. { number: 4 },
  10. { number: 5 },
  11. { number: 6 },
  12. { number: 7 },
  13. { number: 8 },
  14. { number: 9 }
  15. ]);
  16. const isShowDetail = ref(false); // 控制招聘详情的显示
  17. const handleClick = () => {
  18. // 处理点击事件,显示招聘详情
  19. console.log('招聘信息被点击');
  20. isShowDetail.value = true;
  21. };
  22. const handleGoBack = (val) => {
  23. console.log('返回招聘列表');
  24. isShowDetail.value = val;
  25. };
  26. </script>
  27. <template>
  28. <div>
  29. <Layout>
  30. <div class="joinContainer">
  31. <div class="index-page">
  32. <div class="page-header-sub">
  33. <!-- <img src="../assets/images/zp.png" alt=""> -->
  34. <img src="../assets/images/banner.png" alt="" srcset="">
  35. </div>
  36. </div>
  37. <div class="join-content" v-if="!isShowDetail">
  38. <div class="joinTitle">{{ $t("message.t7") }}</div>
  39. <div v-for="(item, index) in list" :key="item.number" class="joinContentItem" @click="handleClick">
  40. <div>{{ item.title }}</div>
  41. <div>{{ item.date }}</div>
  42. </div>
  43. </div>
  44. <JoinDetail @goBack="handleGoBack" v-else />
  45. </div>
  46. </Layout>
  47. </div>
  48. </template>
  49. <style scoped>
  50. .joinContainer{
  51. width: 100%;
  52. height: 100%;
  53. }
  54. .join-content {
  55. width: 66%;
  56. padding: 0 17% 2rem;
  57. border-bottom: 1px solid #ddd;
  58. @media screen and (max-width: 767px) {
  59. width: 90%;
  60. padding: 2rem;
  61. }
  62. }
  63. .joinBox {
  64. >img {
  65. width: 100%;
  66. height: 100%;
  67. }
  68. }
  69. .joinTitle {
  70. font-size: 1.8rem;
  71. font-weight: bold;
  72. margin: 4rem 0px 2rem;
  73. padding-bottom: 1rem;
  74. border-bottom: 2px solid #F7B334;
  75. @media screen and (max-width: 767px) {
  76. margin-top:1rem;
  77. }
  78. }
  79. .joinContentItem {
  80. height: 3rem;
  81. display: flex;
  82. justify-content: space-between;
  83. margin-bottom: 1rem;
  84. color: #555;
  85. font-size: 1.2rem;
  86. cursor: pointer;
  87. }
  88. </style>