defaultFooter.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <template>
  2. <div class='content footer'>
  3. <div class='conBox'>
  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.src"
  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. export default {
  27. name:"defaultFooter",
  28. props:{
  29. lang:{
  30. default: langMap.lang.cn
  31. },
  32. },
  33. data(){
  34. return {
  35. langType: langMap.lang,
  36. footers:[
  37. {
  38. title: "关于我们",
  39. key: 'about us',
  40. items: [
  41. {
  42. text: '公司简介',
  43. src: '/about',
  44. },
  45. {
  46. text: '招贤纳士',
  47. src: '/jobs',
  48. },
  49. {
  50. text: '产品购买',
  51. src: '/buy',
  52. showType: 2,
  53. show: '产品购买服务请联系 刘工15817487997微信同号'
  54. },
  55. {
  56. text: '诚招代理',
  57. src: '/agency',
  58. },
  59. {
  60. text: '联系我们',
  61. src: '/contact',
  62. }
  63. ],
  64. },
  65. {
  66. title: "智能产品",
  67. key: 'product',
  68. items: [
  69. {
  70. text: '公司简介',
  71. src: '/about',
  72. },
  73. {
  74. text: '招贤纳士',
  75. src: '/jobs',
  76. },
  77. {
  78. text: '产品购买',
  79. src: '/buy',
  80. showType: 2,
  81. show: '产品购买服务请联系 刘工15817487997微信同号'
  82. },
  83. {
  84. text: '诚招代理',
  85. src: '/agency',
  86. },
  87. {
  88. text: '联系我们',
  89. src: '/contact',
  90. }
  91. ],
  92. },
  93. {
  94. title: "服务与支持",
  95. key: 'support',
  96. items: [
  97. {
  98. text: '公司简介',
  99. src: '/about',
  100. },
  101. {
  102. text: '招贤纳士',
  103. src: '/jobs',
  104. },
  105. {
  106. text: '产品购买',
  107. src: '/buy',
  108. showType: 2,
  109. show: '产品购买服务请联系 刘工15817487997微信同号'
  110. },
  111. {
  112. text: '诚招代理',
  113. src: '/agency',
  114. },
  115. {
  116. text: '联系我们',
  117. src: '/contact',
  118. }
  119. ],
  120. },
  121. {
  122. title: "快速链接",
  123. key: 'quick',
  124. items: [
  125. {
  126. text: '管理平台',
  127. src: 'https://gpscore.net/',
  128. },
  129. ],
  130. },
  131. {
  132. title: "选择语言",
  133. key: 'Languages',
  134. items: [
  135. {
  136. text: '中文',
  137. src: '/',
  138. },
  139. {
  140. text: 'en',
  141. src: '/index_en',
  142. },
  143. ],
  144. },
  145. ]
  146. }
  147. },
  148. methods: {
  149. getLangText(str) {
  150. return langMap.getText(this.lang, str);
  151. },
  152. getAbbrText(str) {
  153. return langMap.getAbbrText(this.lang, str);
  154. },
  155. }
  156. }
  157. </script>
  158. <style>
  159. </style>