SeoFooter.vue 4.4 KB

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