CopyRight.vue 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <div class="footer-bottom">
  3. <div class="site-info">
  4. <p v-if="siteInfo.web_phone"><i class="iconfont icondianhua"></i>{{ siteInfo.web_phone }}</p>
  5. <p v-if="siteInfo.web_email">
  6. <i class="iconfont iconyouxiang"></i>
  7. <el-link :href="`mailto:${siteInfo.web_email}`">{{ siteInfo.web_email }}</el-link>
  8. </p>
  9. </div>
  10. <p>
  11. {{ copyRight.copyright_desc }}
  12. <a v-if="copyRight.icp" class="footer-link" href="https://beian.miit.gov.cn" target="_blank">备案号:{{ copyRight.icp }}</a>
  13. </p>
  14. <p>
  15. <a v-if="copyRight.gov_record" class="footer-link" :href="copyRight.gov_url" target="_blank">
  16. <img src="@/assets/images/gov_record.png" alt="公安备案" />
  17. <span>{{ copyRight.gov_record }}</span>
  18. </a>
  19. </p>
  20. </div>
  21. </template>
  22. <script>
  23. import { copyRight } from "@/api/website"
  24. import { mapGetters } from "vuex"
  25. export default {
  26. props: {},
  27. data() {
  28. return {}
  29. },
  30. computed: {},
  31. created() {
  32. this.$store.dispatch("site/copyRight")
  33. },
  34. mounted() {},
  35. watch: {},
  36. methods: {},
  37. computed: {
  38. ...mapGetters(["copyRight", "siteInfo"])
  39. }
  40. }
  41. </script>
  42. <style scoped lang="scss">
  43. .footer-bottom {
  44. width: 100%;
  45. margin: 0 auto;
  46. padding: 30px 0;
  47. p {
  48. margin: 0;
  49. width: 100%;
  50. box-sizing: border-box;
  51. text-align: center;
  52. img {
  53. width: 20px;
  54. height: 20px;
  55. margin-right: 5px;
  56. }
  57. .footer-link, .el-link.el-link--default {
  58. color: #444;
  59. }
  60. .footer-link:hover, .el-link.el-link--default:hover {
  61. color: $base-color;
  62. }
  63. }
  64. .site-info {
  65. display: flex;
  66. justify-content: center;
  67. align-items: center;
  68. p {
  69. width: auto;
  70. margin: 0 10px;
  71. i {
  72. vertical-align: bottom;
  73. margin-right: 5px;
  74. }
  75. }
  76. }
  77. }
  78. </style>