index.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <template>
  2. <div class="footer">
  3. <div class="container">
  4. <div class="footer__header">
  5. <div class="title">友情链接:</div>
  6. <div class="links">
  7. <a
  8. v-for="(item, index) in showList(links)"
  9. :key="index"
  10. :href="item.url ? item.url : 'javascript:;'"
  11. target="_blank"
  12. >{{ item.name }}</a
  13. >
  14. </div>
  15. </div>
  16. <div class="footer__body">
  17. <p v-for="(item, index) in footer" :key="index">{{ item.name }}</p>
  18. </div>
  19. <div class="footer__footer">
  20. <p v-html="footerRecord.footerRecordNo"></p>
  21. <p v-html="footerRecord.footerTip"></p>
  22. <p v-if="footerRecord.tips1">{{ footerRecord.tips1 }}</p>
  23. <p v-if="footerRecord.tips2">{{ footerRecord.tips2 }}</p>
  24. </div>
  25. </div>
  26. </div>
  27. </template>
  28. <script>
  29. import { mapGetters } from "vuex";
  30. // import config from "@/apis/config";
  31. export default {
  32. name: "Footer",
  33. data() {
  34. return {
  35. };
  36. },
  37. computed: {
  38. ...mapGetters(["footer", "links","footerRecord"]),
  39. showList: function() {
  40. return function(list) {
  41. let showList = [];
  42. if (list) {
  43. showList = list.filter(item => {
  44. return item.status == 1;
  45. });
  46. }
  47. return showList;
  48. };
  49. }
  50. },
  51. };
  52. </script>
  53. <!-- Add "scoped" attribute to limit CSS to this component only -->
  54. <style scoped lang="scss">
  55. .footer {
  56. background: #f8fafc;
  57. &__header {
  58. .title {
  59. height: 40px;
  60. line-height: 40px;
  61. font-size: 12px;
  62. font-family: Microsoft YaHei;
  63. font-weight: 400;
  64. color: #999999;
  65. border-bottom: 1px solid #eeeeee;
  66. }
  67. .links {
  68. padding-bottom: 14px;
  69. border-bottom: 1px solid #eeeeee;
  70. a {
  71. line-height: 14px;
  72. display: inline-block;
  73. margin-top: 14px;
  74. margin-right: 40px;
  75. font-size: 12px;
  76. font-family: Microsoft YaHei;
  77. font-weight: 400;
  78. color: #999999;
  79. }
  80. }
  81. }
  82. &__body {
  83. padding: 14px 0;
  84. p {
  85. font-size: 14px;
  86. font-family: Microsoft YaHei;
  87. font-weight: 400;
  88. color: #999999;
  89. line-height: 24px;
  90. }
  91. }
  92. &__footer {
  93. padding: 22px 0;
  94. p {
  95. text-align: center;
  96. font-size: 14px;
  97. font-family: Microsoft YaHei;
  98. font-weight: 400;
  99. color: #999999;
  100. line-height: 24px;
  101. }
  102. a {
  103. color: #999999;
  104. }
  105. }
  106. }
  107. </style>