foot1.vue 4.0 KB

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