defaultFooter.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <template>
  2. <div class='w-screen pad:w-full footer'>
  3. <div class='container mx-auto'>
  4. <div class='footer-list'>
  5. <div class="footerItem"
  6. v-for="(item,i) in footers"
  7. :key="'footer-'+item.key"
  8. >
  9. <div class="title">{{lang===langType.cn?item.title:getAbbrText(item.title)}}</div>
  10. <a
  11. v-for="(subItem,subI) in item.items"
  12. :key="`footer-${item.key}-item-${subI}`"
  13. :href="subItem.href"
  14. class="footer-list-item">
  15. {{lang===langType.cn?subItem.text:getAbbrText(subItem.text)}}
  16. </a>
  17. </div>
  18. </div>
  19. </div>
  20. <div class="bg">
  21. </div>
  22. </div>
  23. </template>
  24. <script>
  25. import langMap from "~/map/langMap";
  26. import {productMenus} from "~/map/productMap";
  27. export default {
  28. name:"defaultFooter",
  29. props:{
  30. lang:{
  31. default: langMap.lang.cn
  32. },
  33. },
  34. data(){
  35. return {
  36. langType: langMap.lang,
  37. footers:[
  38. {
  39. title: "关于我们",
  40. key: 'about us',
  41. items: [
  42. {
  43. text: '公司简介',
  44. href: '/about',
  45. },
  46. {
  47. text: '招贤纳士',
  48. href: '/jobs',
  49. },
  50. {
  51. text: '产品购买',
  52. href: '/buy',
  53. showType: 2,
  54. show: '产品购买服务请联系 刘工15817487997微信同号'
  55. },
  56. {
  57. text: '诚招代理',
  58. href: '/agency',
  59. },
  60. {
  61. text: '联系我们',
  62. href: '/contact',
  63. }
  64. ],
  65. },
  66. {
  67. title: "智能产品",
  68. key: 'product',
  69. items: productMenus,
  70. },
  71. {
  72. title: "服务与支持",
  73. key: 'support',
  74. items: [
  75. {
  76. text: '技术支持',
  77. href: '/support',
  78. },
  79. {
  80. text: '资料下载',
  81. href: '/support',
  82. }
  83. ],
  84. },
  85. {
  86. title: "快速链接",
  87. key: 'quick',
  88. items: [
  89. {
  90. text: '管理平台',
  91. href: 'https://gpscore.net/',
  92. },
  93. ],
  94. },
  95. {
  96. title: "选择语言",
  97. key: 'Languages',
  98. items: [
  99. {
  100. text: '中文',
  101. href: '/',
  102. },
  103. {
  104. text: 'en',
  105. href: '/index_en',
  106. },
  107. ],
  108. },
  109. ]
  110. }
  111. },
  112. methods: {
  113. getLangText(str) {
  114. return langMap.getText(this.lang, str);
  115. },
  116. getAbbrText(str) {
  117. return langMap.getAbbrText(this.lang, str);
  118. },
  119. }
  120. }
  121. </script>
  122. <style>
  123. </style>