1.vue 5.7 KB

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