foot1.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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>
  85. <style lang="less" scoped>
  86. @media screen and (max-width:800px){/*ipad_phone*/
  87. .phone_none{display:none!important;}
  88. .index_foot{width:92%;margin:10px auto 0;overflow:hidden;}
  89. .foot_img_box{display:block;margin-top:0px;}
  90. .foot_img_box a{overflow:hidden;width:30%;margin:1.3%!important;height:11vw;float:left;}
  91. .foot_img_box img{display:block;width:100%;height:100%;}
  92. .foot_frind_box div *{margin:0px 10px 10px;font-size:14px;}
  93. .foot_logo_out{display:none;}
  94. .foot_last_img_box{margin-top:11px;padding-bottom:0px;}
  95. .foot_last_img_box a{width:auto;height:8vw;margin:0px 1vw;}
  96. .foot_last_img_box img{width:auto;height:100%;}
  97. .foot_text_box>p{ margin-top:2px;}
  98. .foot_frind_box{display:block;padding-bottom:0px;margin-bottom:10px;}
  99. .foot_frind_box span{margin:0px 0px 10px 2%;display:block;font-size:14px;}
  100. .call_us_box{margin:0px auto;padding:4px 0px;width:92%;}
  101. .call_us_box .inner{width:92%;}
  102. .call_us_box .inner> *{border:none;margin:8px 0px;float:left;padding:0px 4vw;font-size:14px;}
  103. .foot_text_box{margin-top:10px;}
  104. }
  105. </style>