footer.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <template>
  2. <div class="sfooter">
  3. <ul>
  4. <li>
  5. <p><span>总访问量:</span><mNumber :num="count"/></p>
  6. </li>
  7. <li>
  8. <p><a href="/backstage/index.html" target="_blank">后台管理系统</a></p>
  9. <p>电话:0991-3356155</p>
  10. <p>友情链接:<a href="http://25.21.144.120/" target="_blank">新疆生产建设兵总队网</a></p>
  11. </li>
  12. <li>
  13. <p>版权所有:武警北京市总队执勤第五支队数字史馆</p>
  14. <p>CopyRights 2016, All Rights Reserved.</p>
  15. </li>
  16. <li>
  17. <img :src="require('@/assets/images/footer-logo.png')" alt="">
  18. </li>
  19. </ul>
  20. </div>
  21. </template>
  22. <script>
  23. import mNumber from '@/components/Number'
  24. import { getVisit } from "@/config/api";
  25. export default {
  26. components:{
  27. mNumber
  28. },
  29. data(){
  30. return{
  31. count: '0'
  32. }
  33. },
  34. methods:{
  35. async getCount(){
  36. getVisit(result=>{
  37. this.count = String(result.data)
  38. })
  39. },
  40. },
  41. mounted(){
  42. this.getCount()
  43. }
  44. }
  45. </script>
  46. <style lang="less" scoped>
  47. a:link,a:visited,a:active,a:hover{
  48. text-decoration: none;
  49. color: #fff;
  50. }
  51. .sfooter{
  52. width: 100%;
  53. background-color: #828282;
  54. position: fixed;
  55. left: 0;
  56. bottom: 0;
  57. z-index: 999;
  58. height: 140px;
  59. >ul{
  60. width: 1320px;
  61. margin: 0 auto;
  62. display: flex;
  63. color: #fff;
  64. justify-content: space-around;
  65. align-items: center;
  66. >li{
  67. text-align: left;
  68. border-right: 1px solid #fff;
  69. padding:0 40px;
  70. overflow: hidden;
  71. height: 100px;
  72. display: flex;
  73. flex-direction: column;
  74. justify-content: center;
  75. margin: 20px 0;
  76. &:last-of-type{
  77. border-right: none;
  78. padding:0 40px;
  79. }
  80. p{
  81. margin-bottom: 10px;
  82. >span{
  83. display: inline-block;
  84. min-width: 100px;
  85. margin-right: 10px;
  86. }
  87. >a{
  88. min-width: 100px;
  89. text-align: left;
  90. padding-bottom: 2px;
  91. border-bottom: 1px solid #fff;
  92. }
  93. }
  94. >img{
  95. }
  96. }
  97. }
  98. }
  99. </style>