defaultFooter.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. <!-- 备案信息-->
  21. <div class="flex justify-center items-center">
  22. <a class="record-item" >
  23. <span>备案号:</span>
  24. <span>粤ICP备19062901号</span>
  25. </a>
  26. </div>
  27. <div class="bg">
  28. </div>
  29. </div>
  30. </template>
  31. <script>
  32. import langMap from "~/map/langMap";
  33. import {productMenus} from "~/map/productMap";
  34. export default {
  35. name:"defaultFooter",
  36. props:{
  37. lang:{
  38. default: langMap.lang.cn
  39. },
  40. },
  41. data(){
  42. return {
  43. langType: langMap.lang,
  44. footers:[
  45. {
  46. title: "关于我们",
  47. key: 'about us',
  48. items: [
  49. {
  50. text: '公司简介',
  51. href: '/about',
  52. },
  53. {
  54. text: '招贤纳士',
  55. href: '/jobs',
  56. },
  57. {
  58. text: '产品购买',
  59. href: '/buy',
  60. showType: 2,
  61. show: '产品购买服务请联系 刘工15817487997微信同号'
  62. },
  63. {
  64. text: '诚招代理',
  65. href: '/agency',
  66. },
  67. {
  68. text: '联系我们',
  69. href: '/contact',
  70. }
  71. ],
  72. },
  73. {
  74. title: "智能产品",
  75. key: 'product',
  76. items: productMenus,
  77. },
  78. {
  79. title: "服务与支持",
  80. key: 'support',
  81. items: [
  82. {
  83. text: '技术支持',
  84. href: '/support',
  85. },
  86. {
  87. text: '资料下载',
  88. href: '/support',
  89. }
  90. ],
  91. },
  92. {
  93. title: "快速链接",
  94. key: 'quick',
  95. items: [
  96. {
  97. text: '管理平台',
  98. href: 'https://gpscore.net/',
  99. },
  100. ],
  101. },
  102. {
  103. title: "选择语言",
  104. key: 'Languages',
  105. items: [
  106. {
  107. text: '中文',
  108. href: '/',
  109. },
  110. {
  111. text: 'en',
  112. href: '/index_en',
  113. },
  114. ],
  115. },
  116. ]
  117. }
  118. },
  119. methods: {
  120. getLangText(str) {
  121. return langMap.getText(this.lang, str);
  122. },
  123. getAbbrText(str) {
  124. return langMap.getAbbrText(this.lang, str);
  125. },
  126. }
  127. }
  128. </script>
  129. <style>
  130. </style>