footer-1.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <template>
  2. <div id="footer-1">
  3. <el-row>
  4. <el-col :span="24" class="main">
  5. <div class="w_1200">
  6. <el-col :span="24" class="one">
  7. <el-col :span="3" class="list" v-for="(item, index) in menus" :key="index" @click.native="toHome(item)">
  8. <span>{{ item.name }}</span>
  9. </el-col>
  10. </el-col>
  11. <el-col :span="24" class="two">
  12. <el-col :span="8" class="two_1">
  13. <el-col :span="24" class="two_1_1">联系我们:</el-col>
  14. <el-col :span="24" class="two_1_2">{{ siteInfo.mobile }}</el-col>
  15. </el-col>
  16. <el-col :span="8" class="two_2">
  17. <el-col :span="24" class="two_2_1">
  18. <span>联系QQ:</span>
  19. <span>{{ siteInfo.qq }}</span>
  20. </el-col>
  21. <el-col :span="24" class="two_2_1">
  22. <span>手机号码:</span>
  23. <span>{{ siteInfo.phone }}</span>
  24. </el-col>
  25. <el-col :span="24" class="two_2_1">
  26. <span>联系邮箱:</span>
  27. <span>{{ siteInfo.email }}</span>
  28. </el-col>
  29. </el-col>
  30. <el-col :span="8" class="two_3"></el-col>
  31. </el-col>
  32. <el-col :span="24" class="thr">
  33. {{ contactInfo.bq }}
  34. </el-col>
  35. </div>
  36. </el-col>
  37. </el-row>
  38. </div>
  39. </template>
  40. <script>
  41. import { contactInfo, webmenus } from '../../../layout/site';
  42. import { mapState, createNamespacedHelpers } from 'vuex';
  43. export default {
  44. name: 'footer-1',
  45. props: {},
  46. components: {},
  47. data: function () {
  48. return {
  49. menus: webmenus,
  50. siteInfo: {},
  51. contactInfo: contactInfo,
  52. };
  53. },
  54. created() {
  55. this.search();
  56. },
  57. methods: {
  58. search() {
  59. let companyInfo = sessionStorage.getItem('companyInfo');
  60. this.$set(this, `siteInfo`, JSON.parse(companyInfo));
  61. },
  62. toHome(e) {
  63. this.$router.push({ path: e.path });
  64. window.scrollTo(0, 1);
  65. },
  66. },
  67. computed: {
  68. ...mapState(['user']),
  69. },
  70. metaInfo() {
  71. return { title: this.$route.meta.title };
  72. },
  73. watch: {
  74. test: {
  75. deep: true,
  76. immediate: true,
  77. handler(val) {},
  78. },
  79. },
  80. };
  81. </script>
  82. <style lang="less" scoped>
  83. .main {
  84. background-color: #222222;
  85. padding: 0.5vw 0;
  86. .one {
  87. padding: 1.5vw 0;
  88. border-bottom: 1px solid #353535;
  89. .list {
  90. span {
  91. color: #747474;
  92. font-size: 14px;
  93. }
  94. span:hover {
  95. cursor: pointer;
  96. color: #ffc001;
  97. }
  98. }
  99. }
  100. .two {
  101. padding: 2vw 0 1vw 0;
  102. .two_1 {
  103. border-right: 1px solid #353535;
  104. padding: 1vw 0;
  105. .two_1_1 {
  106. margin: 0 0 0.5vw 0;
  107. color: #747474;
  108. }
  109. .two_1_2 {
  110. font-size: 35px;
  111. color: #ffc001;
  112. font-style: oblique;
  113. font-weight: bold;
  114. }
  115. }
  116. .two_2 {
  117. border-right: 1px solid #353535;
  118. padding: 1vw 3vw;
  119. .two_2_1 {
  120. padding: 0 0 0.2vw 0;
  121. span {
  122. color: #747474;
  123. font-size: 14px;
  124. }
  125. }
  126. }
  127. }
  128. .thr {
  129. padding: 0 0 0.5vw 0;
  130. text-align: center;
  131. color: #747474;
  132. font-size: 12px;
  133. }
  134. }
  135. </style>