1.vue 4.9 KB

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