footer.vue 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <div class="leave-common-footer">
  3. <div class="leave-common-footer-content">
  4. <div class="leave-common-title">
  5. {{ list.title }}
  6. </div>
  7. <div class="leave-common-footer-list">
  8. <div
  9. v-for="item in list.list"
  10. :key="item.title"
  11. class="leave-common-footer-item"
  12. :class="{ setStyle: item.title === '人工' }"
  13. >
  14. <div class="leave-common-footer-item-icon">
  15. <span class="j-icon" :class="item.icon" />
  16. </div>
  17. <div class="leave-common-footer-item-title">
  18. <span class="text">{{ item.title }}-</span>{{ item.subtitle }}
  19. </div>
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. </template>
  25. <script>
  26. import dataList from '@/components/common/index.js'
  27. export default {
  28. name: 'LeaveCommonFooter',
  29. data() {
  30. return {
  31. list: dataList
  32. }
  33. }
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. .leave-common-footer {
  38. background: url(@/assets/images/BG.png) no-repeat;
  39. background-size: cover;
  40. .leave-common-title {
  41. text-align: center;
  42. color: #2ABED1;
  43. font-size: 16px;
  44. }
  45. .leave-common-footer-content {
  46. display: flex;
  47. flex-direction: column;
  48. align-items: center;
  49. padding: 20px 0 16px;
  50. }
  51. .leave-common-footer-list {
  52. display: flex;
  53. justify-content: space-between;
  54. align-items: center;
  55. flex-wrap: wrap;
  56. margin-top: 16px;
  57. width: 424px;
  58. .leave-common-footer-item {
  59. display: flex;
  60. justify-content: center;
  61. margin-bottom: 16px;
  62. .leave-common-footer-item-icon {
  63. img {
  64. width: 16px;
  65. height: 16px;
  66. }
  67. }
  68. .leave-common-footer-item-title {
  69. margin-left: 8px;
  70. font-size: 14px;
  71. color: #1d1d1d;
  72. .text {
  73. font-weight: bold;
  74. }
  75. }
  76. &.setStyle {
  77. margin-right: 2px;
  78. }
  79. }
  80. }
  81. }
  82. </style>