index.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <template>
  2. <div id="footer_main">
  3. <div class="width_1200 headers">
  4. <div class="lf">
  5. <h2 v-if="footer.sloganStatus == 1">{{ footer.slogan }}</h2>
  6. <div class="botm">
  7. <div class="li" v-if="footer.sub1Status == 1">
  8. <img src="@/assets/new1/rspz.png" alt="" />
  9. <div class="r_li">
  10. <p>{{ footer.sub1Title }}</p>
  11. <p>{{ footer.sub1Description }}</p>
  12. </div>
  13. </div>
  14. <div class="li" v-if="footer.sub2Status == 1">
  15. <img src="@/assets/new1/tenzz.png" alt="" />
  16. <div class="r_li">
  17. <p>{{ footer.sub2Title }}</p>
  18. <p>{{ footer.sub2Description }}</p>
  19. </div>
  20. </div>
  21. <div class="li" v-if="footer.sub3Status == 1">
  22. <img src="@/assets/new1/jxsl.png" alt="" />
  23. <div class="r_li">
  24. <p>{{ footer.sub3Title }}</p>
  25. <p>{{ footer.sub3Description }}</p>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. <div class="rg">
  31. <div v-if="consultPc.h5Status == 1 && consultPc.h5Sync.includes(1)">
  32. <p>移动端</p>
  33. <img :src="$tools.splitImgHost(consultPc.h5Img)" alt="" />
  34. </div>
  35. <div v-if="consultPc.appletStatus == 1 && consultPc.appletSync.includes(1)">
  36. <p>小程序</p>
  37. <img :src="$tools.splitImgHost(consultPc.appletImg)" alt="" />
  38. </div>
  39. <div v-if="consultPc.accountsStatus == 1 && consultPc.accountsSync.includes(1)">
  40. <p>公众号</p>
  41. <img :src="$tools.splitImgHost(consultPc.accountsImg)" alt="" />
  42. </div>
  43. </div>
  44. </div>
  45. <div class="fgx"></div>
  46. <div class="width_1200 yq" v-if="showList(links).length > 0">
  47. <div class="lf">友情链接:</div>
  48. <div class="rg">
  49. <a
  50. v-for="(item, index) in showList(links)"
  51. :key="index"
  52. :href="item.url ? item.url : 'javascript:;'"
  53. target="_blank"
  54. >{{ item.name }}</a
  55. >
  56. <div style="clear:both"></div>
  57. </div>
  58. </div>
  59. <div
  60. class="fgx"
  61. style="width: 1200px;margin: 0px auto;"
  62. v-if="showList(links).length > 0"
  63. ></div>
  64. <div class="width_1200 ftend">
  65. <div class="f1">
  66. <p v-for="(item, index) in footer.tableData" :key="index">{{ item.name }}</p>
  67. <a style="color:#e1e1e1;" target="_blank" :href="footer.miit">{{footer.icp}}</a>
  68. <p v-if="footer.technologyStatus == 1">技术支持:{{ footer.technology }}</p>
  69. <p v-if="footer.copyrightStatus == 1">版权所有:{{ footer.copyright }}</p>
  70. <div v-html="footer.otherHtml"></div>
  71. </div>
  72. </div>
  73. </div>
  74. </template>
  75. <script>
  76. import { mapGetters } from "vuex";
  77. export default {
  78. data() {
  79. return {};
  80. },
  81. computed: {
  82. ...mapGetters(["footer", "links", "consultPc"]),
  83. showList: function() {
  84. return function(list) {
  85. let showList = [];
  86. if (list) {
  87. showList = list.filter(item => {
  88. return item.status == 1;
  89. });
  90. }
  91. return showList;
  92. };
  93. },
  94. sty: function() {
  95. return function(str) {
  96. let a = str.replace(
  97. /<a/gi,
  98. '<a style="color:#e1e1e1;" target="_blank"'
  99. );
  100. return a;
  101. };
  102. }
  103. },
  104. methods: {}
  105. };
  106. </script>
  107. <style lang="scss" scoped>
  108. #footer_main {
  109. background-color: rgb(31, 40, 51);
  110. & > .headers {
  111. display: flex;
  112. align-items: center;
  113. & > .lf {
  114. flex: 1;
  115. & > h2 {
  116. font-size: 18px;
  117. color: #f2f2f2;
  118. margin-bottom: 30px;
  119. }
  120. & > .botm {
  121. display: flex;
  122. align-items: center;
  123. & > .li {
  124. display: flex;
  125. align-items: center;
  126. margin-right: 30px;
  127. &:last-child {
  128. margin-right: 0px;
  129. }
  130. & > img {
  131. width: 40px;
  132. height: 40px;
  133. margin-right: 6px;
  134. }
  135. & > .r_li > p {
  136. color: #c9cdd1;
  137. font-size: 14px;
  138. }
  139. }
  140. }
  141. }
  142. & > .rg {
  143. flex-shrink: 0;
  144. display: flex;
  145. align-items: center;
  146. & > div {
  147. margin-left: 28px;
  148. &:first-child {
  149. margin-left: 0px;
  150. }
  151. & > p {
  152. text-align: center;
  153. padding-bottom: 14px;
  154. color: #c9cdd1;
  155. font-size: 12px;
  156. }
  157. & > img {
  158. width: 80px;
  159. height: 80px;
  160. border-radius: 4px;
  161. overflow: hidden;
  162. background-color: #fff;
  163. }
  164. }
  165. }
  166. }
  167. & > .yq {
  168. display: flex;
  169. font-size: 14px;
  170. color: #e1e1e1;
  171. opacity: 0.5;
  172. & > .lf {
  173. width: 80px;
  174. flex-shrink: 0;
  175. }
  176. & > .rg {
  177. flex: 1;
  178. & > a {
  179. color: #e1e1e1;
  180. user-select: none;
  181. cursor: pointer;
  182. float: left;
  183. margin: 0px 10px 14px 14px;
  184. transition: all 0.2s;
  185. &:hover {
  186. color: rgb(0, 122, 255);
  187. }
  188. }
  189. }
  190. }
  191. & > .ftend {
  192. display: flex;
  193. color: #e1e1e1 !important;
  194. opacity: 0.5;
  195. & > .f1 {
  196. flex: 0.6;
  197. & > p {
  198. display: inline-block;
  199. margin: 0px 24px 18px 0px;
  200. }
  201. & > a {
  202. display: inline-block;
  203. margin: 0px 24px 18px 0px;
  204. }
  205. }
  206. }
  207. }
  208. .width_1200 {
  209. width: 1200px;
  210. padding: 40px 0px;
  211. margin: 0px auto;
  212. }
  213. .fgx {
  214. border-bottom: 1px dashed rgb(48, 56, 57);
  215. }
  216. </style>