footer.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <template>
  2. <div class="footer-layout" :style="{marginLeft:(split-240)+'px'}">
  3. <ul class="footer-l">
  4. <li v-for="(item,i) in kefu" :key="i">
  5. {{item.key}}<span> : </span>{{item.val}}
  6. </li>
  7. </ul>
  8. <div class="footer-r">
  9. <img src="@/assets/images/service_img_ecode@2x.png" alt="">
  10. <div>4DKanKan 微信公众号</div>
  11. </div>
  12. </div>
  13. </template>
  14. <script>
  15. import {mapState} from 'vuex'
  16. export default {
  17. computed: {
  18. ...mapState({
  19. split: state => state.ui.navDivision
  20. })
  21. },
  22. data () {
  23. let kefu = [
  24. {
  25. key: '客服咨询',
  26. val: 'ecommerce@4dage.com'
  27. }, {
  28. key: '销售合作',
  29. val: 'sales.cn@4dage.com'
  30. }, {
  31. key: '市场合作',
  32. val: 'marketing.cn@4dage.com'
  33. }, {
  34. key: '媒体合作',
  35. val: 'pr.cn@4dage.com'
  36. }, {
  37. key: '工作时间',
  38. val: '周一至周五 09:30 - 12:30, 14:00 - 18:00 (GMT+8)'
  39. }
  40. ]
  41. return {
  42. kefu
  43. }
  44. }
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. .footer-layout{
  49. position: relative;
  50. max-width: 1180px;
  51. margin: 50px auto 72px;
  52. overflow: hidden;
  53. padding: 50px 50px 50px 65px;
  54. box-sizing: border-box;
  55. display: flex;
  56. align-items: center;
  57. justify-content: space-between;
  58. border-top: #dcdcdc 1px solid;
  59. .footer-l{
  60. li{
  61. font-size: 12px;
  62. line-height: 26px;
  63. color: #888787;
  64. span{
  65. text-align: center;
  66. width: 46px;
  67. display: inline-block;
  68. }
  69. }
  70. }
  71. .footer-r{
  72. text-align: center;
  73. img{
  74. width: 145px;
  75. }
  76. div{
  77. font-size: 12px;
  78. line-height: 26px;
  79. }
  80. }
  81. }
  82. @media screen and (max-width: 1600px) {
  83. .footer-layout{
  84. margin: 50px auto 72px!important;
  85. }
  86. }
  87. </style>