foot.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <template>
  2. <footer class="index_foot">
  3. <div class="foot_title">
  4. <span>友情链接</span>
  5. </div>
  6. <div class="foot_img_box">
  7. <a :href="item.url" v-for="(item, index) in bottomLink" :title="item.title" target="_blank">
  8. <img :src="item.logo_url" :alt="item.title">
  9. </a>
  10. </div>
  11. <div class="foot_frind_box">
  12. <div>
  13. <a :href="item.url" v-for="(item, index) in bottomText" :key="index" :title="item.title"
  14. target="_blank">
  15. {{ item.title }}
  16. </a>
  17. </div>
  18. </div>
  19. <div class="call_us_box">
  20. <span v-for="(item, index) in bottomMenu" :key="index">
  21. <NuxtLink :to="{ path: `/about/${item.name_pinyin}/list-1.html` }" v-if="item.type == 1"
  22. :title="item.name">
  23. {{ item.name }}
  24. </NuxtLink>
  25. <NuxtLink :to="{ path: `/about/${item.name_pinyin}/index.html` }" v-if="item.type == 0"
  26. :title="item.name">
  27. {{ item.name }}
  28. </NuxtLink>
  29. </span>
  30. </div>
  31. <div class="foot_text_box" v-if="bottomBase">
  32. <p v-html="bottomBase.statement" class="foot_text_html_css"></p>
  33. <p v-html="bottomBase.organizer" class="foot_text_html_css"></p>
  34. <p v-html="bottomBase.copyright_information" class="foot_text_html_css"></p>
  35. <p>
  36. <span v-html="bottomBase.icp_number" class="foot_text_html_css"></span>
  37. <span v-html="bottomBase.record_number" class="foot_text_html_css"></span>
  38. </p>
  39. <p v-html="bottomBase.email" class="foot_text_html_css"></p>
  40. <p v-html="bottomBase.company_address" class="foot_text_html_css"></p>
  41. <p v-html="bottomBase.contact_number" class="foot_text_html_css"></p>
  42. </div>
  43. <div class="foot_last_img_box">
  44. <a :href="item.url" v-for="(item, index) in bottomphoto" :title="item.title">
  45. <img :src="item.logo_url" :alt="item.title">
  46. </a>
  47. </div>
  48. <!--在线客服-->
  49. <div class="kefu">
  50. <div class="kefu_itemKf">
  51. <a :href="bottomBase.online_service" target="_blank">
  52. <img src="../../public/index/zxkf.png">
  53. <p>在线客服</p>
  54. </a>
  55. </div>
  56. </div>
  57. <!-- 关联网站 -->
  58. <div class="websiteLink">
  59. <div class="websitelist">
  60. <a href="#">政讯通•全国法制资讯发布中心</a>
  61. </div>
  62. <div class="websitelist">
  63. <a href="#">政讯通•全国法制舆情监测中心</a>
  64. </div>
  65. <div class="websitelist">
  66. <a href="#">政讯通•全国法制发展促进中心</a>
  67. </div>
  68. </div>
  69. <!-- 你问我答 -->
  70. <!-- <div class="questionAnswer">
  71. <div class="title">
  72. <span>你问我答</span>
  73. <img src="" alt="">
  74. </div>
  75. <div class="content">
  76. <el-scrollbar height="400px">
  77. <p v-for="item in 20" :key="item" class="scrollbar-demo-item">{{ item }}</p>
  78. </el-scrollbar>
  79. </div>
  80. </div> -->
  81. </footer>
  82. </template>
  83. <script setup>
  84. import { ElScrollbar } from 'element-plus'
  85. //0.添加网站客服 start---------------------------------------->
  86. //添加网站客服
  87. function addQQFriend(qqNumber) {
  88. // 使用tencent协议唤起QQ客户端并添加好友
  89. window.location.href = `tencent://message/?uin=${qqNumber}&Site=&Menu=yes`;
  90. }
  91. //0.添加网站客服 end---------------------------------------->
  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 qq1 = ref("")
  100. const qq2 = ref("")
  101. async function getModelDataAll() {
  102. const mkdata = await requestDataPromise('/web/getWebsiteFootAll', {
  103. method: 'GET',
  104. query: {
  105. 'link_textnum': 24,
  106. 'link_imgnum': 18,
  107. 'link_footnum': 4
  108. },
  109. });
  110. if (mkdata.code == 200) {
  111. bottomLink.value = mkdata.data.link_img;
  112. bottomText.value = mkdata.data.link_text;
  113. bottomphoto.value = mkdata.data.link_foot;
  114. bottomMenu.value = mkdata.data.foot_cate;
  115. bottomBase.value = mkdata.data.foot_info;
  116. //获取qq号数字部分
  117. qq1.value = bottomBase.value.customer_service_qq.match(/\d+/g);
  118. qq2.value = bottomBase.value.communications.match(/\d+/g);
  119. } else {
  120. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  121. console.log("错误位置:获取友情链接图片")
  122. console.log("后端错误反馈:", mkdata.message)
  123. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  124. }
  125. }
  126. getModelDataAll();
  127. //获得底部基本信息 end---------------------------------------->
  128. </script>
  129. <style lang="less" scoped>
  130. @import '@/assets/css/foot.less';
  131. </style>