foot.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. <template>
  2. <div class="footer">
  3. <div class="inner">
  4. <!-- 图片列表 -->
  5. <ul class="logoList">
  6. <li v-for="(item,index) in bottomLink" :key=index class="left">
  7. <img :src="item.logo_url">
  8. </li>
  9. </ul>
  10. <!-- 友情链接 -->
  11. <div class="link">
  12. <h5 class="left">友情链接</h5>
  13. <ul class="left">
  14. <li v-for="(item, index) in bottomLink" :key="index">
  15. <a href="#">{{ item.title }}</a>
  16. </li>
  17. </ul>
  18. </div>
  19. <!-- 快捷服务 -->
  20. <div class="service">
  21. <h5 class="left">快捷服务</h5>
  22. <p class="left">
  23. <span v-for="(item, index) in bottomMenu" :key="index">
  24. <NuxtLink :to="{ path: `/specialList/${item.id}`}" target="_blank" v-if="item.type==1">
  25. {{ item.name }}
  26. </NuxtLink>
  27. <NuxtLink :to="{ path: `/speciaArticle/${item.id}`}" target="_blank" v-if="item.type==0">
  28. {{ item.name }}
  29. </NuxtLink>
  30. </span>
  31. </p>
  32. </div>
  33. <div class="tips" v-if="bottomBase">
  34. <p>{{ bottomBase.statement }}</p>
  35. </div>
  36. <div class="tipsList" v-if="bottomBase">
  37. <p>{{ bottomBase.copyright_information }}</p>
  38. <p>
  39. <em></em>
  40. {{bottomBase.icp_number}}
  41. </p>
  42. <p>{{bottomBase.record_number}}</p>
  43. <p>{{bottomBase.company_address}}</p>
  44. <p>{{bottomBase.contact_number}}</p>
  45. </div>
  46. <!-- 图片列表 -->
  47. <!-- <ul class="logoList1">
  48. <li v-for="(item,index) in bottomImg":key=index class="left">
  49. <img :src="item" alt="">
  50. </li>
  51. </ul> -->
  52. </div>
  53. </div>
  54. </template>
  55. <script setup>
  56. import { onMounted } from 'vue';
  57. const nuxtApp = useNuxtApp();
  58. const axios = nuxtApp.$axios;
  59. // const props = defineProps({
  60. // bottomLink: Array,
  61. // bottomMenu: Array,
  62. // bottomBase: Object
  63. // });
  64. //获得友情链接
  65. const bottomLink = ref([])
  66. const getBottomLink = async () => {
  67. const response = await axios.get(`/web/selectWebsiteLinks?&type=${1}&num=${7}`);
  68. bottomLink.value = response.data;
  69. console.log(bottomLink.value)
  70. }
  71. //获得底部导航
  72. const bottomMenu = ref([])
  73. const getBottomMenu = async () => {
  74. const response = await axios.get(`/web/getWebsiteFooterCategory`);
  75. bottomMenu.value = response.data;
  76. console.log(bottomMenu.value)
  77. }
  78. //获得底部基本信息
  79. const bottomBase = ref({})
  80. const getBottomBase = async () => {
  81. const response = await axios.get(`/web/getWebsiteFootInfo`);
  82. bottomBase.value = response.data.website_foot;
  83. console.log(7777777)
  84. console.log(getBottomBase.value)
  85. }
  86. onMounted(() => {
  87. getBottomLink();
  88. getBottomMenu();
  89. getBottomBase();
  90. })
  91. </script>
  92. <style lang="less" scoped>
  93. .footer {
  94. width: 100%;
  95. height: 595px;
  96. background-color: #40663b;
  97. overflow: hidden;
  98. .inner {
  99. width: 1200px;
  100. height: 100%;
  101. // 图片列表
  102. .logoList {
  103. height: 50px;
  104. margin-top: 43px;
  105. >li {
  106. width: 150px;
  107. height: 50px;
  108. margin-right: 25px;
  109. img {
  110. width: 150px;
  111. height: 50px;
  112. }
  113. }
  114. >li:nth-child(7) {
  115. margin-right: 0;
  116. }
  117. }
  118. .link,
  119. .service {
  120. width: 1200px;
  121. height: 26px;
  122. padding-left: 40px;
  123. box-sizing: border-box;
  124. >h5 {
  125. width: 48px;
  126. height: 18px;
  127. line-height: 18px;
  128. font-family: Source Han Sans, Source Han Sans;
  129. font-weight: bold;
  130. font-size: 12px;
  131. color: #FFFFFF;
  132. text-align: center;
  133. font-style: normal;
  134. text-transform: none;
  135. }
  136. }
  137. //友情链接
  138. .link {
  139. margin-top: 47px;
  140. width: 1200px;
  141. border-bottom: 1px solid #fff;
  142. h5 {
  143. margin-right: 109px;
  144. }
  145. >ul>li {
  146. margin-right: 40px;
  147. }
  148. ul>li {
  149. float: left;
  150. >a {
  151. font-family: Source Han Sans, Source Han Sans;
  152. font-weight: 500;
  153. font-size: 12px;
  154. color: #FFFFFF;
  155. line-height: 18px;
  156. text-align: center;
  157. font-style: normal;
  158. text-transform: none;
  159. }
  160. }
  161. }
  162. //快捷服务
  163. .service {
  164. width: 1200px;
  165. margin-top: 8px;
  166. h5 {
  167. margin-right: 80px;
  168. }
  169. >p {
  170. >span {
  171. border-right: 1px solid #fff;
  172. >a {
  173. font-family: Source Han Sans, Source Han Sans;
  174. font-weight: 400;
  175. font-size: 12px;
  176. color: #FFFFFF;
  177. line-height: 18px;
  178. text-align: center;
  179. font-style: normal;
  180. text-transform: none;
  181. padding: 0 13px;
  182. }
  183. }
  184. >span:last-child {
  185. border: none;
  186. }
  187. }
  188. }
  189. p {
  190. font-family: Inter, Inter;
  191. font-weight: bold;
  192. font-size: 12px;
  193. color: #FFFFFF;
  194. line-height: 14px;
  195. text-align: center;
  196. font-style: normal;
  197. text-transform: none;
  198. >em {
  199. display: inline-block;
  200. width: 20px;
  201. height: 20px;
  202. background-image: url("../../static/images/beian 1.png");
  203. vertical-align: middle;
  204. }
  205. }
  206. .tips {
  207. width: 759px;
  208. height: 30px;
  209. margin: 70px auto 30px;
  210. }
  211. .tipsList {
  212. margin: 0 auto;
  213. width: 722px;
  214. height: 108px;
  215. }
  216. .logoList1 {
  217. width: 445px;
  218. height: 40px;
  219. margin: 70px auto 57px;
  220. >li {
  221. width: 96px;
  222. height: 40px;
  223. margin-right: 20px;
  224. >img {
  225. width: 96px;
  226. height: 40px;
  227. }
  228. }
  229. >li:last-child {
  230. margin-right: 0px;
  231. }
  232. }
  233. }
  234. }
  235. </style>