foot.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <template>
  2. <footer class="index_foot">
  3. <div class="foot_img_box">
  4. <a :href="item.url" v-for="(item, index) in bottomLink" :title="item.title" target="_blank">
  5. <img :src="item.logo_url" :alt="item.title">
  6. </a>
  7. </div>
  8. <div class="foot_frind_box">
  9. <span>友情链接</span>
  10. <div>
  11. <a :href="item.url" v-for="(item, index) in bottomText" :key="index" :title="item.title"
  12. target="_blank">{{ item.title }}</a>
  13. </div>
  14. </div>
  15. </footer>
  16. <div class="call_us_box">
  17. <span v-for="(item, index) in bottomMenu" :key="index">
  18. <!-- <NuxtLink :to="{ path: `/specialList/${item.id}` }" 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. </span>
  25. </div>
  26. <footer class="index_foot">
  27. <div class="foot_text_box" v-if="bottomBase">
  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
  32. v-html="bottomBase.record_number" class="foot_text_html_css"></span></p>
  33. <p v-html="bottomBase.email" class="foot_text_html_css"></p>
  34. <p v-html="bottomBase.company_address" class="foot_text_html_css"></p>
  35. <p v-html="bottomBase.contact_number" class="foot_text_html_css"></p>
  36. </div>
  37. <div class="foot_logo_out" v-if="bottomBase">
  38. <a :href="'http://' + bottomBase.project_url" :title="bottomBase.project_name"
  39. 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"
  46. v-if="bottomBase.company_logo != '' && bottomBase.company_url != ''">
  47. <img :src="bottomBase.company_logo" class="floatLogoLeft" :alt="bottomBase.company_name">
  48. </a>
  49. <span v-else-if="bottomBase.company_logo != '' && bottomBase.company_url == ''">
  50. <img :src="bottomBase.company_logo" class="floatLogoLeft" :alt="bottomBase.company_name">
  51. </span>
  52. </div>
  53. <div class="foot_last_img_box">
  54. <a :href="item.url" v-for="(item, index) in bottomphoto" :title="item.title">
  55. <img :src="item.logo_url" :alt="item.title">
  56. </a>
  57. </div>
  58. </footer>
  59. </template>
  60. <script setup>
  61. //0.添加网站客服 start---------------------------------------->
  62. //添加网站客服
  63. function addQQFriend(qqNumber) {
  64. // 使用tencent协议唤起QQ客户端并添加好友
  65. window.location.href = `tencent://message/?uin=${qqNumber}&Site=&Menu=yes`;
  66. }
  67. //0.添加网站客服 end---------------------------------------->
  68. //获得底部基本信息 start---------------------------------------->
  69. //1.获得全部友情链接与底部图片
  70. const bottomLink = ref([])
  71. const bottomText = ref([])
  72. const bottomphoto = ref([])
  73. const bottomMenu = ref([])
  74. const bottomBase = ref({})
  75. const qq1 = ref("")
  76. const qq2 = ref("")
  77. async function getModelDataAll() {
  78. const mkdata = await requestDataPromise('/web/getWebsiteFootAll', {
  79. method: 'GET',
  80. query: {
  81. 'link_textnum': 24,
  82. 'link_imgnum': 18,
  83. 'link_footnum': 4
  84. },
  85. });
  86. if (mkdata.code == 200) {
  87. bottomLink.value = mkdata.data.link_img;
  88. bottomText.value = mkdata.data.link_text;
  89. bottomphoto.value = mkdata.data.link_foot;
  90. bottomMenu.value = mkdata.data.foot_cate;
  91. bottomBase.value = mkdata.data.foot_info;
  92. //获取qq号数字部分
  93. qq1.value = bottomBase.value.customer_service_qq.match(/\d+/g);
  94. qq2.value = bottomBase.value.communications.match(/\d+/g);
  95. } else {
  96. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  97. console.log("错误位置:获取友情链接图片")
  98. console.log("后端错误反馈:", mkdata.message)
  99. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  100. }
  101. }
  102. getModelDataAll();
  103. //获得底部基本信息 end---------------------------------------->
  104. </script>
  105. <style lang="less" scoped>
  106. @import '@/assets/css/foot.less';
  107. </style>