footer.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <template>
  2. <div class="leave-common-footer" :class="{ 'footer-column': column }">
  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. >
  13. <div class="leave-common-footer-item-icon">
  14. <span class="j-icon" :class="item.icon" />
  15. </div>
  16. <div class="leave-common-footer-item-title">
  17. <span class="text">{{ item.title }}</span>
  18. <span v-if="!column" class="splitter">-</span>
  19. <span class="subtext">{{ item.subtitle }}</span>
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. </div>
  25. </template>
  26. <script>
  27. import dataList from '@/components/common/index.js'
  28. export default {
  29. name: 'LeaveCommonFooter',
  30. props: {
  31. column: {
  32. type: Boolean,
  33. default: false
  34. }
  35. },
  36. data() {
  37. return {
  38. list: dataList
  39. }
  40. }
  41. }
  42. </script>
  43. <style lang="scss" scoped>
  44. .leave-common-footer {
  45. background: url(@/assets/images/BG.png) no-repeat;
  46. background-size: contain;
  47. .leave-common-title {
  48. font-size: 18px;
  49. line-height: 30px;
  50. }
  51. .leave-common-footer-content {
  52. display: flex;
  53. flex-direction: column;
  54. align-items: flex-start;
  55. padding: 12px 16px;
  56. }
  57. .leave-common-footer-list {
  58. display: flex;
  59. justify-content: space-between;
  60. align-items: center;
  61. flex-wrap: wrap;
  62. margin-top: 12px;
  63. .leave-common-footer-item {
  64. display: flex;
  65. justify-content: center;
  66. margin-bottom: 10px;
  67. .leave-common-footer-item-icon {
  68. img {
  69. width: 16px;
  70. height: 16px;
  71. }
  72. }
  73. .leave-common-footer-item-title {
  74. margin-left: 8px;
  75. font-size: 12px;
  76. color: #1d1d1d;
  77. .text {
  78. font-weight: bold;
  79. }
  80. }
  81. }
  82. }
  83. &.footer-column {
  84. .leave-common-footer-content {
  85. align-items: center;
  86. }
  87. .leave-common-footer-item-title {
  88. display: flex;
  89. flex-direction: column;
  90. }
  91. .subtext {
  92. font-weight: 400;
  93. }
  94. }
  95. }
  96. </style>