defaultFooter.vue 3.3 KB

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