123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- <template>
- <div class="footer">
- <div class="container">
- <div class="footer__header">
- <div class="title">友情链接:</div>
- <div class="links">
- <a
- v-for="(item, index) in showList(links)"
- :key="index"
- :href="item.url ? item.url : 'javascript:;'"
- target="_blank"
- >{{ item.name }}</a
- >
- </div>
- </div>
- <div class="footer__body">
- <p v-for="(item, index) in footer" :key="index">{{ item.name }}</p>
- </div>
- <div class="footer__footer">
- <p>
- Copyright©2016-2022 {{ RECORD_NAME }} 版权所有
- <a href="https://beian.miit.gov.cn/" target="_blank">
- {{ RECORD_NO }}</a
- >
- </p>
- <p>技术支持:广东中正教育科技有限公司</p>
- </div>
- </div>
- </div>
- </template>
- <script>
- import { mapGetters } from "vuex";
- export default {
- name: "Footer",
- data() {
- return {
- RECORD_NAME: process.env.RECORD_NAME,
- RECORD_NO: process.env.RECORD_NO,
- };
- },
- computed: {
- ...mapGetters(["footer", "links"]),
- showList: function () {
- return function (list) {
- let showList = [];
- if (list) {
- showList = list.filter((item) => {
- return item.status == 1;
- });
- }
- return showList;
- };
- },
- recodeMsg() {
- switch (process.env.ENV_ID) {
- case ("680", "test"):
- return {
- name: "广东省祥粤建设职业培训学校",
- no: "粤ICP备15087219号-2",
- support: "广东中正教育科技有限公司",
- };
- case "145":
- return {
- name: "中正云学堂",
- no: "粤ICP备18088045号-1",
- support: "广东中正教育科技有限公司",
- };
- case "520":
- return {
- name: "中山勘设云学堂",
- no: "粤ICP备15087219号-2",
- support: "广东中正教育科技有限公司",
- };
- case "zz":
- return {
- name: "中正云学堂",
- no: "粤ICP备18088045号-1",
- support: "中正科技",
- };
- default:
- break;
- }
- },
- },
- };
- </script>
- <!-- Add "scoped" attribute to limit CSS to this component only -->
- <style scoped lang="scss">
- .footer {
- background: #f8fafc;
- &__header {
- .title {
- height: 40px;
- line-height: 40px;
- font-size: 12px;
- font-family: Microsoft YaHei;
- font-weight: 400;
- color: #999999;
- border-bottom: 1px solid #eeeeee;
- }
- .links {
- padding-bottom: 14px;
- border-bottom: 1px solid #eeeeee;
- a {
- line-height: 14px;
- display: inline-block;
- margin-top: 14px;
- margin-right: 40px;
- font-size: 12px;
- font-family: Microsoft YaHei;
- font-weight: 400;
- color: #999999;
- }
- }
- }
- &__body {
- padding: 14px 0;
- p {
- font-size: 14px;
- font-family: Microsoft YaHei;
- font-weight: 400;
- color: #999999;
- line-height: 24px;
- }
- }
- &__footer {
- padding: 22px 0;
- p {
- text-align: center;
- font-size: 14px;
- font-family: Microsoft YaHei;
- font-weight: 400;
- color: #999999;
- line-height: 24px;
- }
- a {
- color: #999999;
- }
- }
- }
- </style>
|