footer.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <template>
  2. <div id="proginn-footer">
  3. <div id="friend-links">
  4. <div class="links">
  5. <a href="/">
  6. <img class="logo" :src="baseUrl+'/Public/image/common/logo_new.png'" />
  7. </a>
  8. <div class="items">
  9. <div class="item-box" v-for="(link, index) of links" :key="index">
  10. <span class="name">{{link.name}}</span>
  11. <div class="item">
  12. <div class="list" :class="{expand: link.expand}">
  13. <a
  14. v-for="(item, ii) of link.data"
  15. :key="ii"
  16. :href="item.url"
  17. target="_blank"
  18. >{{item.name}}</a>
  19. </div>
  20. <span
  21. class="more"
  22. style="display: inline;"
  23. @click="clickMore(link, index)"
  24. >{{link.expand ? '收起' : '更多'}}</span>
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. <div class="footer" id="footer">
  31. <div class="footer-container">
  32. <div class="footer-links">
  33. <a class="item" :href="baseUrl+'/index/app'" rel="nofollow">APP下载</a>
  34. <a class="item" href="http://support.proginn.com/" rel="nofollow">帮助</a>
  35. <a class="item" :href="baseUrl+'/about'" rel="nofollow">关于我们</a>
  36. <!--<a class="item" :href="baseUrl+'/about/mediareports'" rel="nofollow">媒体报道</a>-->
  37. <a class="item" :href="baseUrl+'/sites/'" rel="nofollow">合作伙伴</a>
  38. <!--<a class="item" href="https://inn.proginn.com/sites/about.html" rel="nofollow">商务合作</a>-->
  39. <a class="item" :href="baseUrl+'/about/suggestion'" rel="nofollow">意见反馈</a>
  40. <span style="color: rgb(204, 204, 204);" class="ui item">© 程序员客栈</span>
  41. </div>
  42. <div class="safe">
  43. <a href="http://www.miibeian.gov.cn" target="_blank" rel="nofollow">浙ICP备15029175号</a>
  44. <div>
  45. <a
  46. style="display: flex;"
  47. target="_blank"
  48. href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=33011002011566"
  49. rel="nofollow"
  50. >
  51. <img width="20" height="20" :src="baseUrl+'/Public/image/common/badge.png'" />
  52. <span
  53. style="height:20px;line-height:20px;margin: 0px 0px 0px 5px;"
  54. >浙公网安备 33011002011566号</span>
  55. </a>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. </template>
  62. <script>
  63. export default {
  64. data() {
  65. return {
  66. baseUrl: "",
  67. jishuBaseUrl: "",
  68. isCity: false,
  69. isBusiness: false,
  70. isDirection: false,
  71. isRecommend: false,
  72. links: []
  73. };
  74. },
  75. mounted() {
  76. this.getLinks();
  77. },
  78. methods: {
  79. clickMore(link, index) {
  80. link.expand = !link.expand;
  81. this.$set(this.links, index, link);
  82. },
  83. async getLinks() {
  84. let res = await this.$axios.$post(
  85. "/api/public_config/get_seo_footer_links"
  86. );
  87. if (res) {
  88. this.links = res.data.links;
  89. }
  90. }
  91. },
  92. created() {
  93. this.baseUrl = this.$store.state.domainConfig.siteUrl;
  94. this.jishuBaseUrl = this.$store.state.domainConfig.jishuinUrl;
  95. }
  96. };
  97. </script>
  98. <style scoped>
  99. #proginn-footer {
  100. width: 100%;
  101. }
  102. #friend-links,
  103. #footer {
  104. display: flex;
  105. justify-content: center;
  106. background: white;
  107. }
  108. #friend-links {
  109. padding: 50px 0 40px;
  110. }
  111. .links,
  112. .footer-container {
  113. display: flex;
  114. justify-content: space-between;
  115. width: 1000px;
  116. font-size: 12px;
  117. color: #4a4a4a;
  118. }
  119. .logo {
  120. width: 115px;
  121. height: 38px;
  122. margin-top: 10px;
  123. }
  124. .items {
  125. display: flex;
  126. flex-direction: column;
  127. align-items: center;
  128. width: 840px;
  129. }
  130. .item {
  131. display: flex;
  132. }
  133. .name {
  134. line-height: 30px;
  135. font-weight: 800;
  136. }
  137. .list {
  138. --height: 30px;
  139. flex: 1;
  140. height: var(--height);
  141. line-height: var(--height);
  142. overflow: hidden;
  143. }
  144. .list a {
  145. display: inline-block;
  146. margin: 0 15px 0 0;
  147. }
  148. .expand {
  149. height: auto;
  150. }
  151. .footer-container a,
  152. .list a {
  153. color: #4a4a4a;
  154. }
  155. .footer-container {
  156. display: flex;
  157. align-items: center;
  158. border-top: 1px solid #ddd;
  159. padding: 20px 0 10px;
  160. }
  161. .footer-links {
  162. display: flex;
  163. align-items: center;
  164. }
  165. .footer-container a {
  166. margin: 0 30px 0 0;
  167. }
  168. .safe {
  169. text-align: right;
  170. }
  171. .safe a {
  172. margin: 0;
  173. }
  174. .more {
  175. line-height: 30px;
  176. cursor: pointer;
  177. }
  178. .more:hover {
  179. color: #1782d9;
  180. }
  181. </style>