foot1.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <template>
  2. <footer class="index_foot">
  3. <div class="call_us_box">
  4. <span v-for="(item, index) in bottomMenu" :key="index">
  5. <NuxtLink :to="{ path: `/about/${item.name_pinyin}/list-1.html` }" v-if="item.type == 1" :title="item.name">
  6. {{ item.name }}
  7. </NuxtLink>
  8. <NuxtLink :to="{ path: `/about/${item.name_pinyin}/index.html` }" v-if="item.type == 0" :title="item.name">
  9. {{ item.name }}
  10. </NuxtLink>
  11. </span>
  12. </div>
  13. <div class="foot_text_box" v-if="bottomBase">
  14. <p v-html="bottomBase.statement" class="foot_text_html_css"></p>
  15. <p v-html="bottomBase.organizer" class="foot_text_html_css"></p>
  16. <p v-html="bottomBase.copyright_information" class="foot_text_html_css"></p>
  17. <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>
  18. <p v-html="bottomBase.email" class="foot_text_html_css"></p>
  19. <p v-html="bottomBase.company_address" class="foot_text_html_css"></p>
  20. <p v-html="bottomBase.contact_number" class="foot_text_html_css"></p>
  21. </div>
  22. <div class="foot_logo_out" v-if="bottomBase">
  23. <a :href="'http://' + bottomBase.project_url" :title="bottomBase.project_name" v-if="bottomBase.project_logo!=''&&bottomBase.project_url!=''">
  24. <img :src="bottomBase.project_logo" class="floatLogoRight" :alt="bottomBase.project_name">
  25. </a>
  26. <span v-else-if="bottomBase.project_logo!=''&&bottomBase.project_url==''">
  27. <img :src="bottomBase.project_logo" class="floatLogoRight" :alt="bottomBase.project_name">
  28. </span>
  29. <a :href="'http://' + bottomBase.company_url" :title="bottomBase.company_name" v-if="bottomBase.company_logo!=''&&bottomBase.company_url!=''">
  30. <img :src="bottomBase.company_logo" class="floatLogoLeft" :alt="bottomBase.company_name">
  31. </a>
  32. <span v-else-if="bottomBase.company_logo!=''&&bottomBase.company_url==''">
  33. <img :src="bottomBase.company_logo" class="floatLogoLeft" :alt="bottomBase.company_name">
  34. </span>
  35. </div>
  36. <div class="foot_last_img_box">
  37. <a :href="item.url" v-for="(item, index) in bottomphoto" :title="item.title">
  38. <img :src="item.logo_url" :alt="item.title">
  39. </a>
  40. </div>
  41. <!--在线客服-->
  42. <div class="kefu">
  43. <div class="kefu_itemKf">
  44. <a :href="bottomBase.online_service" target="_blank">
  45. <img src="https://img.bjzxtw.org.cn/pre/public/image/online1.png">
  46. <p>在线客服</p>
  47. </a>
  48. </div>
  49. <div class="kefu_itemQQ">
  50. <img src="https://img.bjzxtw.org.cn/pre/public/image/qq1.png">
  51. <p>QQ客服</p>
  52. <div class="kefu_item_content_QQ">
  53. <div @click="addQQFriend(qq1)" class="qqadd">
  54. <img src="https://img.bjzxtw.org.cn/pre/public/index/tubiao1.png" width="100">
  55. <div class="qqfs">{{bottomBase.customer_service_qq}}</div>
  56. </div>
  57. <div @click="addQQFriend(qq2)" class="qqadd">
  58. <img src="https://img.bjzxtw.org.cn/pre/public/index/tubiao2.png" width="100">
  59. <div class="qqfs">{{bottomBase.communications}}</div>
  60. </div>
  61. <div class="arrow"></div>
  62. </div>
  63. </div>
  64. <div class="kefu_itemPhone">
  65. <img src="https://img.bjzxtw.org.cn/pre/public/image/dianhua1.png">
  66. <p>电话客服</p>
  67. <div class="kefu_item_content_phone">
  68. <div class="kefu_item_content_phone_title">联系电话:</div>
  69. <div>{{bottomBase.customer_service}}</div>
  70. <div class="arrow"></div>
  71. </div>
  72. </div>
  73. </div>
  74. </footer>
  75. </template>
  76. <script setup>
  77. //0.添加网站客服 start---------------------------------------->
  78. //添加网站客服
  79. function addQQFriend(qqNumber) {
  80. // 使用tencent协议唤起QQ客户端并添加好友
  81. window.location.href = `tencent://message/?uin=${qqNumber}&Site=&Menu=yes`;
  82. }
  83. //0.添加网站客服 end---------------------------------------->
  84. //获得底部基本信息 start---------------------------------------->
  85. //1.获得全部友情链接与底部图片
  86. const bottomLink = ref([])
  87. const bottomText = ref([])
  88. const bottomphoto = ref([])
  89. const bottomMenu = ref([])
  90. const bottomBase = ref({})
  91. const qq1 = ref("")
  92. const qq2 = ref("")
  93. async function getModelDataAll() {
  94. const mkdata = await requestDataPromise('/web/getWebsiteFootAll', {
  95. method: 'GET',
  96. query: {
  97. 'link_textnum':8,
  98. 'link_imgnum':12,
  99. 'link_footnum':4
  100. },
  101. });
  102. if(mkdata.code == 200){
  103. bottomLink.value = mkdata.data.link_img;
  104. bottomText.value = mkdata.data.link_text;
  105. bottomphoto.value = mkdata.data.link_foot;
  106. bottomMenu.value = mkdata.data.foot_cate;
  107. bottomBase.value = mkdata.data.foot_info;
  108. //获取qq号数字部分
  109. qq1.value = bottomBase.value.customer_service_qq.match(/\d+/g);
  110. qq2.value = bottomBase.value.communications.match(/\d+/g);
  111. }else{
  112. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  113. console.log("错误位置:获取友情链接图片")
  114. console.log("后端错误反馈:",mkdata.message)
  115. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  116. }
  117. }
  118. getModelDataAll();
  119. //获得底部基本信息 end---------------------------------------->
  120. </script>
  121. <style lang="less" scoped>
  122. @import '@/assets/css/foot.less';
  123. </style>