index.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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>
  21. Copyright©2016-2022 {{ RECORD_NAME }} 版权所有
  22. <a href="https://beian.miit.gov.cn/" target="_blank">
  23. {{ RECORD_NO }}</a
  24. >
  25. </p>
  26. <p>技术支持:广东中正教育科技有限公司</p>
  27. </div>
  28. </div>
  29. </div>
  30. </template>
  31. <script>
  32. import { mapGetters } from "vuex";
  33. export default {
  34. name: "Footer",
  35. data() {
  36. return {
  37. RECORD_NAME: process.env.RECORD_NAME,
  38. RECORD_NO: process.env.RECORD_NO,
  39. };
  40. },
  41. computed: {
  42. ...mapGetters(["footer", "links"]),
  43. showList: function () {
  44. return function (list) {
  45. let showList = [];
  46. if (list) {
  47. showList = list.filter((item) => {
  48. return item.status == 1;
  49. });
  50. }
  51. return showList;
  52. };
  53. },
  54. recodeMsg() {
  55. switch (process.env.ENV_ID) {
  56. case ("680", "test"):
  57. return {
  58. name: "广东省祥粤建设职业培训学校",
  59. no: "粤ICP备15087219号-2",
  60. support: "广东中正教育科技有限公司",
  61. };
  62. case "145":
  63. return {
  64. name: "中正云学堂",
  65. no: "粤ICP备18088045号-1",
  66. support: "广东中正教育科技有限公司",
  67. };
  68. case "520":
  69. return {
  70. name: "中山勘设云学堂",
  71. no: "粤ICP备15087219号-2",
  72. support: "广东中正教育科技有限公司",
  73. };
  74. case "zz":
  75. return {
  76. name: "中正云学堂",
  77. no: "粤ICP备18088045号-1",
  78. support: "中正科技",
  79. };
  80. default:
  81. break;
  82. }
  83. },
  84. },
  85. };
  86. </script>
  87. <!-- Add "scoped" attribute to limit CSS to this component only -->
  88. <style scoped lang="scss">
  89. .footer {
  90. background: #f8fafc;
  91. &__header {
  92. .title {
  93. height: 40px;
  94. line-height: 40px;
  95. font-size: 12px;
  96. font-family: Microsoft YaHei;
  97. font-weight: 400;
  98. color: #999999;
  99. border-bottom: 1px solid #eeeeee;
  100. }
  101. .links {
  102. padding-bottom: 14px;
  103. border-bottom: 1px solid #eeeeee;
  104. a {
  105. line-height: 14px;
  106. display: inline-block;
  107. margin-top: 14px;
  108. margin-right: 40px;
  109. font-size: 12px;
  110. font-family: Microsoft YaHei;
  111. font-weight: 400;
  112. color: #999999;
  113. }
  114. }
  115. }
  116. &__body {
  117. padding: 14px 0;
  118. p {
  119. font-size: 14px;
  120. font-family: Microsoft YaHei;
  121. font-weight: 400;
  122. color: #999999;
  123. line-height: 24px;
  124. }
  125. }
  126. &__footer {
  127. padding: 22px 0;
  128. p {
  129. text-align: center;
  130. font-size: 14px;
  131. font-family: Microsoft YaHei;
  132. font-weight: 400;
  133. color: #999999;
  134. line-height: 24px;
  135. }
  136. a {
  137. color: #999999;
  138. }
  139. }
  140. }
  141. </style>