foot.vue 5.2 KB

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