foot.vue 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <template>
  2. <div>当前皮肤:{{ skinId }}</div>
  3. <footer class="index_foot" v-if="routeName=='index'">
  4. <div class="foot_img_box">
  5. <a :href="item.url" v-for="(item, index) in bottomLink" target="_blank">
  6. <img :src="item.logo_url" alt="">
  7. </a>
  8. </div>
  9. <div class="foot_frind_box">
  10. <span>友情链接</span>
  11. <div>
  12. <a :href="item.url" v-for="(item, index) in bottomText" :key="index" target="_blank">{{item.title}}</a>
  13. </div>
  14. </div>
  15. </footer>
  16. <div class="call_us_box">
  17. <div class="inner">
  18. <span v-for="(item, index) in bottomMenu" :key="index">
  19. <NuxtLink :to="{ path: `/about/${item.name_pinyin}/list-1.html` }" v-if="item.type == 1" :title="item.name">
  20. {{ item.name }}
  21. </NuxtLink>
  22. <NuxtLink :to="{ path: `/about/${item.name_pinyin}/index.html` }" v-if="item.type == 0" :title="item.name">
  23. {{ item.name }}
  24. </NuxtLink>
  25. </span>
  26. </div>
  27. </div>
  28. <footer class="index_foot">
  29. <div class="foot_text_box">
  30. <p v-html="bottomBase.statement" class="foot_text_html_css"></p>
  31. <p v-html="bottomBase.organizer" class="foot_text_html_css"></p>
  32. <p v-html="bottomBase.copyright_information" class="foot_text_html_css"></p>
  33. <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>
  34. <p v-html="bottomBase.email" class="foot_text_html_css"></p>
  35. <p v-html="bottomBase.company_address" class="foot_text_html_css"></p>
  36. <p v-html="bottomBase.contact_number" class="foot_text_html_css"></p>
  37. </div>
  38. <div class="foot_logo_out" v-if="bottomBase">
  39. <a :href="'http://' + bottomBase.project_url" :title="bottomBase.project_name" v-if="bottomBase.project_logo!=''&&bottomBase.project_url!=''">
  40. <img :src="bottomBase.project_logo" class="floatLogoRight" :alt="bottomBase.project_name">
  41. </a>
  42. <span v-else-if="bottomBase.project_logo!=''&&bottomBase.project_url==''">
  43. <img :src="bottomBase.project_logo" class="floatLogoRight" :alt="bottomBase.project_name">
  44. </span>
  45. <a :href="'http://' + bottomBase.company_url" :title="bottomBase.company_name" v-if="bottomBase.company_logo!=''&&bottomBase.company_url!=''">
  46. <img :src="bottomBase.company_logo" class="floatLogoLeft" :alt="bottomBase.company_name">
  47. </a>
  48. <span v-else-if="bottomBase.company_logo!=''&&bottomBase.company_url==''">
  49. <img :src="bottomBase.company_logo" class="floatLogoLeft" :alt="bottomBase.company_name">
  50. </span>
  51. </div>
  52. <div class="foot_last_img_box">
  53. <a :href="item.url" v-for="(item, index) in bottomphoto" :title="item.title">
  54. <img :src="item.logo_url" :alt="item.title">
  55. </a>
  56. </div>
  57. <!--在线客服-->
  58. <HomeKefu :bottomBase="bottomBase" />
  59. </footer>
  60. </template>
  61. <script setup>
  62. //获得route
  63. const route = useRoute()
  64. const routeName = route.name;
  65. import { useTemplateBaseStore } from '@/stores/templateBase'
  66. const templateBaseStore = useTemplateBaseStore()
  67. //获得底部基本信息 start---------------------------------------->
  68. //1.获得全部友情链接与底部图片
  69. const bottomLink = ref([])
  70. const bottomText = ref([])
  71. const bottomphoto = ref([])
  72. const bottomMenu = ref([])
  73. const bottomBase = ref({})
  74. const skinId = ref("")//皮肤id
  75. if(templateBaseStore.webSiteInfo.website_foot){
  76. bottomLink.value = templateBaseStore.webSiteInfo.website_foot.link_img;
  77. bottomText.value = templateBaseStore.webSiteInfo.website_foot.link_text;
  78. bottomphoto.value = templateBaseStore.webSiteInfo.website_foot.link_foot;
  79. bottomMenu.value = templateBaseStore.webSiteInfo.website_foot.foot_cate;
  80. bottomBase.value = templateBaseStore.webSiteInfo.website_foot.foot_info;
  81. //获得皮肤id
  82. skinId.value = templateBaseStore.webSiteInfo.website_foot.foot_info.template_id;
  83. }
  84. </script>
  85. <style lang="less" scoped>
  86. @import '@/assets/css/public/footer.less';
  87. @import '@/assets/css/public/kefu.less';
  88. </style>