<style>
  .hor_BtmContent {
    /*display: inline-block;*/
    width: 100%;
    background: #2B2B2B;
    padding-top: 60px;
  }
  .hor_BtmContent .footer-content {
    max-width: 1200px;
    margin:0 auto;
  }
  .hor_BtmContent .footer-top {
    max-width: 1200px;
    margin:0 auto;
  }

  .hor_BtmContent .footer-link {
    display: inline-block;
    width: 100%;
    height: 44px;
    background-color: #292929;
    text-align: left;
    font-weight: 700;
  }

  .hor_BtmContent .hor_footuu li:first-child {
    color: #fff;
    margin-left: 24px;
  }

  .hor_BtmContent .hor_footuu {
    margin: 0;
    padding: 0;
  }

  .hor_BtmContent .hor_footuu li {
    list-style-type: none;
    display: inline-block;
    margin-left: 30px;
    font-size: 15px;
    color: #76ccff;
    line-height: 44px;
    position: relative;
    cursor: pointer;
  }

  .hor_BtmContent .hor_footuu li a {
    color: #76ccff;
  }

  .hor_BtmContent .hor_BtmContent ul {
    margin: 0;
    padding: 0;
  }

  .hor_BtmContent .other_li:before {
    position: absolute;
    top: 10px;
    left: -16px;
    content: '';
    width: 1px;
    height: 25px;
    background-color: rgba(58, 58, 58, .8);
  }

  .hor_BtmContent .foot_content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
  }

  .hor_BtmContent .footer-box .footer_title1 {
    font-size: 15px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: 1px;
  }

  .hor_BtmContent .footer_table {
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 10px;
  }

  .hor_BtmContent .footer_table td {
    color: #b1b1b1;
    text-align: left;
    vertical-align: middle;
    font-size: 14px;
  }

  .hor_BtmContent .footer_tbtitle {
    min-width: 100px;
    color: #9bdaff !important;
  }

  .hor_BtmContent .footer-box>* {
    display: block;
    margin-bottom: 10px;
  }

  .hor_BtmContent .social-link a {
    display: inline-block;
    text-decoration: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    line-height: 55px;
    text-align: center;
    margin: 15px 0 0 20px;
    -webkit-box-shadow: 0 3px 12px rgba(39, 39, 39, .95);
    -moz-box-shadow: 0 3px 12px rgba(39, 39, 39, .95);
    box-shadow: 0 3px 12px rgba(39, 39, 39, .95);
  }

  .hor_BtmContent .social-link a:first-child {
    margin-left: 0;
  }

  .social-link a i {
    font-size: 30px;
  }

  .hor_BtmContent .foot_line {
    background-color: #1bb71f
  }

  .hor_BtmContent .foot_fb {
    background-color: #334f8d;
  }

  .hor_BtmContent .foot_mail {
    background-color: #00a6ff;
  }

  .hor_BtmContent .footer_logo_block {
    display: block;
    margin-top: 5px;
  }

  .hor_BtmContent .footer_fb_group {
    display: block;
    width: 300px;
    height: 130px;
    background-color: #2b2b2b;
  }

  .footer_fb_group a img {
    height: 100%;
    min-height: initial;
    width: auto;
  }

  .hor_BtmContent .footer_qrcode a {
    display: inline-block;
    width: 100px;
    height: 100px;
  }

  .hor_BtmContent .footer_qrcode a span {
    color: #fff;
    letter-spacing: 2px;
  }

  .hor_BtmContent .branch-company {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 20px;
    background-color: #2d2d2d;
  }

  .hor_BtmContent .footer-bottom {
    width: 100%;
    padding: 30px;
    text-align: center;
  }

  .hor_BtmContent .sponsor {
    display: inline-block;
  }

  .hor_BtmContent .sponsor>a {
    float: left;
    width: 40px;
    text-decoration: none;
    margin-right: 10px;
  }

  .hor_BtmContent .sponsor>a img {
    width: 100%;
  }

  .hor_BtmContent .copyright {
    display: inline-block;
    width: 100%;
    font-size: 13px;
    margin: 20px 0;
    color: #757575;
  }

  .hor_BtmContent .branch-company .footer-box {
    width: 33%;
  }

  .hor_BtmContent .footer-watermark {
    position: fixed;
    top: 110px;
    z-index: 999;
    width: auto;
  }

  .hor_BtmContent .footer_Left {
    left: 10px;
  }

  .hor_BtmContent .footer_Right {
    right: 10px;
  }

  .footer-watermark>div {
    width: auto;
    width: 140px;
    height: 140px;
    margin-bottom: 10px;
  }

  .footer-watermark>div img {
    width: 100%;
    height: 100%;
  }

  @media only screen and (max-width: 930px) {
    .hor_BtmContent .footer-top {
      padding: 0 15px;
    }

    .hor_BtmContent .footer-link {
      height: auto;
    }

    .hor_BtmContent .hor_footuu li:first-child {
      margin-left: 24px;
    }

    .hor_BtmContent .hor_footuu li {
      font-size: 13px;
      margin-left: 28px;
    }

    .hor_BtmContent .footer-box {
      width: 50% !important;
    }
  }

  @media only screen and (max-width: 520px) {
    .hor_BtmContent .footer-box {
      width: 100% !important;
    }
  }

</style>
<style scoped>
.logo {
  width: 40px;
  height: 34px;
  margin: 10px  16px 6px 0;
}
.nav-title1 {
height: 12px;
font-size: 14px;
font-family: Microsoft JhengHei;
font-weight: bold;
color: #FFFFFF;
line-height: 26px;
padding: 60px 0 25px 0;
cursor: pointer;
}
.nav-title2 {
font-size: 12px;
font-family: Microsoft JhengHei;
font-weight: 400;
color: #7A7A7A;
line-height: 26px;
cursor: pointer;
}
.margin-x {
  margin: 0 10px 0 10px;
}
</style>
<template>
  <div class="hor_BtmContent">
    <template v-if="dataList&&dataList.Config && 1==0">
      <div class="footer-top">
        <div class="foot_content">
          <div class="footer-box">
            <div class="footer_logo_block">
              <img style="width:120px;height:auto;" :src="dataList.Config.WhiteLogo" />
            </div>
            <div class="footer_fb_group">
              <a :href="dataList.Config.FaceBookUrl">
                <div class="fb-page" :data-href="dataList.Config.FaceBookUrl" data-tabs="timeline" data-width="340"
                  data-height="130" data-small-header="false" data-adapt-container-width="false" data-hide-cover="false"
                  data-show-facepile="false">
                  <!-- <blockquote :cite="dataList.Config.FaceBookUrl" class="fb-xfbml-parse-ignore"><a
                      :href="dataList.Config.FaceBookUrl">{{dataList.Config.Name}}</a></blockquote> -->
                </div>
              </a>
            </div>
          </div>
          <!-- 中间导航 -->
          <div class="flex">
            <div class="margin-x" v-for="item in dataList.FooterList" :key="item.Id">
              <div class="nav-title1">{{item.NavTitle}}</div>
              <div v-if="item.SubList">
                <div class="nav-title2" v-for="item2 in item.SubList" :key="item2.Id" @click="navigateTo(item2)">{{item2.NavTitle}}</div>
              </div>
            </div>
          </div>
          <!-- 右侧导航 -->
          <div class="flex">
            <div class="margin-x" v-for="item in dataList.BottomList" :key="item.Id">
              <div class="nav-title1">{{item.NavTitle}}</div>
              <div v-if="item.SubList">
                <div @click="navigateTo(item2)" v-for="item2 in item.SubList" :key="item2.Id">
                  <img class="logo" :src="item2.Icon">
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="footer-bottom">
        <div class="sponsor">
          <a @click="OpenNewUrl(item.url)" target="_blank" v-for="(item,index) in dataList.BottomList" :key="index">
            <img :src="item.icon" />
          </a>
        </div>
        <div class="copyright">
          © {{year}} {{dataList.Config.Name}}. All rights reserved.
        </div>
      </div>
      <div class="footer-watermark footer_Left">
        <template v-if="dataList&&dataList.AdLeftList">
          <div v-for="(item,index) in getAdLeftList" :key="index">
            <a @click="OpenNewUrl(item.AdLink)">
              <img style="width:100%" :src="item.AdImg" />
            </a>
          </div>
        </template>
      </div>
      <div class="footer-watermark footer_Right">
        <template v-if="dataList&&dataList.AdRightList">
          <div v-for="(item,index) in getAdRightList" :key="index">
            <a @click="OpenNewUrl(item.AdLink)">
              <img style="width:100%" :src="item.AdImg" />
            </a>
          </div>
        </template>
      </div>
    </template>
    <div :class="$q.platform.is.desktop ? 'footer-content': 'q-pa-lg'" v-if="dataList&&dataList.Config">
      <div :class="$q.platform.is.desktop ? 'row  justify-between full-width': ''">
      <div>
        <img style="width:auto;height:35px;" :src="dataList.Config.WhiteLogo" />
        <div class="rounded-borders q-mt-lg q-pa-md text-grey-8" style="background:rgba(255,255,255,.05)">
          <div class="f12">服务热线：{{ dataList.Config.Tel }}</div>
          <div class="q-mt-md">服务时间：08:00 至 21:00</div>
        </div>
      </div>
      <div :class="$q.platform.is.desktop ? 'row': 'q-mt-lg'">
        <div  v-for="(item,i) in dataList.FooterList" :key="item.Id" :class="{'q-ml-xl':i>0 && $q.platform.is.desktop}">
          <div class=" text-weight-bold text-white" :class="$q.platform.is.desktop ? 'text-subtitle1': 'f16'">{{ item.NavTitle }}</div>
          <div :class="$q.platform.is.desktop ? 'q-mt-xl': 'q-mt-md row'"  v-if="item.SubList">
            <div :class="$q.platform.is.desktop ? 'text-subtitle2 text-regular': 'f14'" class="q-mb-lg q-mr-md  text-grey-8 cursor-pointer" v-for="item2 in item.SubList" :key="item2.Id" @click="navigateTo(item2)">{{item2.NavTitle}}</div>
          </div>
        </div>
      </div>
      <div  v-for="item in dataList.BottomList" :key="item.Id">
        <div class="text-weight-bold text-white" :class="$q.platform.is.desktop ? 'text-subtitle1': 'f16'">{{ item.NavTitle }}</div>
        <div class="row" :class="$q.platform.is.desktop ? 'q-mt-xl' : 'q-mt-md'" :style="$q.platform.is.desktop ? 'width:210px': 'width:100%'" >
            <div class="bg-white rounded-borders q-pa-xs overflow-hidden q-mb-md q-mr-md" @click="navigateTo(item2)" v-for="item2 in item.SubList" :key="item2.Id"  style="width:40px;height:34px;">
              <img style="width:100%" :src="item2.Icon" :title="item2.NavTitle" />
            </div>
        </div>
      </div>
    </div>
      <div class="q-py-xl text-grey-8" :class="$q.platform.is.desktop ? 'text-center' : ''" style="margin-top:35px">
        <a href="https://beian.miit.gov.cn/#/Integrated/index" target="_blank" class="text-grey-8" style="text-decoration: none;">蜀ICP备13000760号 ©</a> 2010-{{year}} {{ dataList.Config.Name }}. All Rights Reserved. 旅行社业务经营许可证 {{ dataList.Config.UnifyCode }}
      </div>
    </div>
  </div>
</template>
<script>
  export default {
    props: ["dataList"],
    data() {
      return {
        year: ''
      };
    },
    created() {},
    mounted() {
      //获取当前年
      var myDate = new Date();
      this.year = myDate.getFullYear();
    },
    computed: {
      getAdLeftList() {
        var tempArray = [];
        var showId = this.getShowId();
        if (this.dataList && this.dataList.AdLeftList) {
          this.dataList.AdLeftList.forEach(item => {
            if (item.ShowPage.indexOf(showId) > -1) {
              tempArray.push(item);
            }
          });
        }
        return tempArray;
      },
      getAdRightList() {
        var tempArray = [];
        var showId = this.getShowId();
        if (this.dataList && this.dataList.AdRightList) {
          this.dataList.AdRightList.forEach(item => {
            if (item.ShowPage.indexOf(showId) > -1) {
              tempArray.push(item);
            }
          });
        }
        return tempArray;
      }
    },
    methods: {
      navigateTo(urlInfo) {
        if(urlInfo.IsNewOpen === 1) {
          window.open(urlInfo.NavUrl)
        } else {
          window.location.href = urlINfo.NavUrl
        }
      },
      getShowId() {
        let locationName = this.GetDomain();
        var routeStr = this.$route.path.toLowerCase();
        var showId = 0;
        switch (routeStr) {
          case "/index":
            showId = 1;
            break;
          case '/search':
            showId = 2;
            break;
          case '/trip':
            showId = 3;
            break;
          case '/self':
            showId = 4;
            break;
        }
        return showId;
      }
    },
  };

</script>
