index.vue 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <!-- 门墩儿入口管理列表 -->
  2. <template>
  3. <div class="d-flex justify-center" style="margin-top: 130px;">
  4. <div style="text-align: center;">
  5. <div style="font-size: 40px; font-weight: bold;">
  6. <span v-for="(val, i) in bigTitle" :key="'bigTitle' + i" :class="{'ml-2': i}">{{ val }}</span>
  7. </div>
  8. <div style="font-size: 24px; color: #777" class="mt-5">
  9. <span v-for="(val, i) in smallTitle" :key="'smallTitle' + i" :class="{'ml-5': i}">{{ val }}</span>
  10. </div>
  11. </div>
  12. </div>
  13. <div class="listBox mt-15">
  14. <div
  15. v-for="(item, index) in menuList" :key="'menu' + index"
  16. class="listItem mb-2 mx-3"
  17. @click="handleClick(item)"
  18. >
  19. <!-- <span>{{ item.title }}</span> -->
  20. <v-icon color="primary" size="50" class="mt-6" style="height: 100px; line-height: 100px;">{{ item.icon }}</v-icon>
  21. <div style="font-size: 18px;">{{ item.title }}</div>
  22. <div style="font-size: 14px;" class="defaultLink mt-3">立即体验 ></div>
  23. </div>
  24. </div>
  25. </template>
  26. <script setup>
  27. // import { useRouter } from 'vue-router'; const router = useRouter()
  28. import { ref } from 'vue'
  29. defineOptions({name: 'entrances-list'})
  30. const bigTitle = ['酒店管理与职业发展社交一体化 SaaS 平台']
  31. const smallTitle = [
  32. '企业在线招聘专场',
  33. '更快找到合适人选',
  34. '尽享海量VIP特权',
  35. ]
  36. const menuList = ref([
  37. { icon: 'mdi-account-group-outline', title: '门墩儿直聘', to: '/personal' },
  38. { icon: 'mdi-shopping-outline', title: '臻选商城', to: '/mall' },
  39. { icon: 'mdi-chart-bar-stacked', title: '数据服务', to: '' },
  40. { icon: 'mdi-school-outline', title: '火苗儿校企', to: '' },
  41. ])
  42. const handleClick = (item) => {
  43. // router.push(item.to)
  44. window.open(item.to)
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. .listBox {
  49. display: flex;
  50. flex-wrap: wrap;
  51. justify-content: center;
  52. .listItem {
  53. width: 250px;
  54. height: 250px;
  55. background-color: #fff;
  56. cursor: pointer;
  57. border-radius: 8px;
  58. text-align: center;
  59. box-shadow: 0px 0px 40px 0px var(--v-primary-lighten4);
  60. // transition: all 0.2s;
  61. &:hover {
  62. transform: translateY(-8px);
  63. }
  64. }
  65. }
  66. </style>