1.vue 4.3 KB

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