foot.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <template>
  2. <footer class="index_foot">
  3. <div class="foot_img_box">
  4. <a :href="item.url" v-for="(item, index) in bottomLink" target="_blank">
  5. <img :src="item.logo_url" alt="">
  6. </a>
  7. </div>
  8. <div class="foot_frind_box">
  9. <span>友情链接</span>
  10. <div>
  11. <a :href="item.url" v-for="(item, index) in bottomText" :key="index" target="_blank">{{item.title}}</a>
  12. </div>
  13. </div>
  14. </footer>
  15. <div class="call_us_box">
  16. <div class="inner">
  17. <span v-for="(item, index) in bottomMenu" :key="index">
  18. <NuxtLink :to="{ path: `/about/${item.name_pinyin}/list-1.html` }" v-if="item.type == 1" :title="item.name">
  19. {{ item.name }}
  20. </NuxtLink>
  21. <NuxtLink :to="{ path: `/about/${item.name_pinyin}/index.html` }" v-if="item.type == 0" :title="item.name">
  22. {{ item.name }}
  23. </NuxtLink>
  24. </span>
  25. </div>
  26. </div>
  27. <footer class="index_foot">
  28. <div class="foot_text_box">
  29. <p v-html="bottomBase.statement" class="foot_text_html_css"></p>
  30. <p v-html="bottomBase.organizer" class="foot_text_html_css"></p>
  31. <p v-html="bottomBase.copyright_information" class="foot_text_html_css"></p>
  32. <p><span v-html="bottomBase.icp_number" class="foot_text_html_css"></span><span v-html="bottomBase.record_number" class="foot_text_html_css"></span></p>
  33. <p v-html="bottomBase.email" class="foot_text_html_css"></p>
  34. <p v-html="bottomBase.company_address" class="foot_text_html_css"></p>
  35. <p v-html="bottomBase.contact_number" class="foot_text_html_css"></p>
  36. </div>
  37. <div class="foot_logo_out" v-if="bottomBase">
  38. <a :href="'http://' + bottomBase.project_url" :title="bottomBase.project_name" v-if="bottomBase.project_logo!=''&&bottomBase.project_url!=''">
  39. <img :src="bottomBase.project_logo" class="floatLogoRight" :alt="bottomBase.project_name">
  40. </a>
  41. <span v-else-if="bottomBase.project_logo!=''&&bottomBase.project_url==''">
  42. <img :src="bottomBase.project_logo" class="floatLogoRight" :alt="bottomBase.project_name">
  43. </span>
  44. <a :href="'http://' + bottomBase.company_url" :title="bottomBase.company_name" v-if="bottomBase.company_logo!=''&&bottomBase.company_url!=''">
  45. <img :src="bottomBase.company_logo" class="floatLogoLeft" :alt="bottomBase.company_name">
  46. </a>
  47. <span v-else-if="bottomBase.company_logo!=''&&bottomBase.company_url==''">
  48. <img :src="bottomBase.company_logo" class="floatLogoLeft" :alt="bottomBase.company_name">
  49. </span>
  50. </div>
  51. <div class="foot_last_img_box">
  52. <a :href="item.url" v-for="(item, index) in bottomphoto" :title="item.title">
  53. <img :src="item.logo_url" :alt="item.title">
  54. </a>
  55. </div>
  56. <!--在线客服-->
  57. <HomeKefu :bottomBase="bottomBase" />
  58. </footer>
  59. </template>
  60. <script setup>
  61. //获得底部基本信息 start---------------------------------------->
  62. //1.获得全部友情链接与底部图片
  63. const bottomLink = ref([])
  64. const bottomText = ref([])
  65. const bottomphoto = ref([])
  66. const bottomMenu = ref([])
  67. const bottomBase = ref({})
  68. async function getModelDataAll() {
  69. const mkdata = await requestDataPromise('/web/getWebsiteFootAll', {
  70. method: 'GET',
  71. query: {
  72. 'link_textnum':8,
  73. 'link_imgnum':12,
  74. 'link_footnum':4
  75. },
  76. });
  77. if(mkdata.code == 200){
  78. bottomLink.value = mkdata.data.link_img;
  79. bottomText.value = mkdata.data.link_text;
  80. bottomphoto.value = mkdata.data.link_foot;
  81. bottomMenu.value = mkdata.data.foot_cate;
  82. bottomBase.value = mkdata.data.foot_info;
  83. }else{
  84. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  85. console.log("错误位置:获取友情链接图片")
  86. console.log("后端错误反馈:",mkdata.message)
  87. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  88. }
  89. }
  90. getModelDataAll();
  91. //获得底部基本信息 end---------------------------------------->
  92. </script>
  93. <style lang="less" scoped>
  94. @import '@/assets/css/public/footer.less';
  95. @import '@/assets/css/public/kefu.less';
  96. </style>