<template>
  <div class="home-footer-content">
    <div class="home-footer">
      <div class="home-footer-body flex flex-space-between">
        <div class="home-footer-left">
          <a class="demogic" href="javascript:;">
            <img src="../assets/demogic.png" draggable="false" />
          </a>
          <p class="fonr-14 color-9ba5b4 m-t-9">浙江达摩网络科技有限公司</p>
          <div class="qrcode-content m-t-30 font-0">
            <template v-for="(item, index) in qrcodeList">
              <el-popover placement="bottom" width="70" trigger="hover" popper-class="el-qrcode-popper" :key="index + 'qrcode'">
                <img :src="item.img_qrcode" alt="" style="width: 70px" />
                <span slot="reference" :class="[index != 0 ? 'qrcode-popper' : '']">
                  <img class="qrcode-wx qrcode-common-img font-12" :src="activeIndex == index ? item.img_active : item.img" alt="" @mouseover="changeIndex($event, index)" @mouseleave="setIndex" />
                </span>
              </el-popover>
            </template>
          </div>
        </div>
        <div class="content clearfix flex flex-space-between">
          <ul class="flex-1">
            <li>关于我们</li>
            <li><a href="">达摩官网</a></li>
            <li><a href="">达摩商户后台</a></li>
            <li><a href="">达摩开发者中心</a></li>
          </ul>
          <ul class="flex-1">
            <li>用户指南</li>
            <li><a href="">开发者接入</a></li>
            <li><a href="">解决方案</a></li>
          </ul>
          <ul class="flex-1">
            <li>快捷入口</li>
            <li><a href="">GIC服务市场</a></li>
            <li><a href="">好办服务市场</a></li>
          </ul>
        </div>
      </div>
    </div>
    <div class="home-site-footer">
      <p>Copyright © {{ new Date().getFullYear() }} 浙江达摩网络科技有限公司 ｜ 浙ICP备15033117号-1</p>
    </div>
  </div>
</template>
<script>
export default {
  name: 'index',
  data() {
    return {
      /* eslint-disable */
      activeIndex: null,
      qrcodeList: [
        {
          img: require('../assets/index/wx.png'),
          img_active: require('../assets/index/wx_active.png'),
          img_qrcode: require('../assets/index/wx_qrcode.png')
        },
        {
          img: require('../assets/index/iOS.png'),
          img_active: require('../assets/index/iOS_active.png'),
          img_qrcode: require('../assets/index/app_qrcode.png')
        },
        {
          img: require('../assets/index/android.png'),
          img_active: require('../assets/index/android_active.png'),
          img_qrcode: require('../assets/index/app_qrcode.png')
        }
      ]
    };
  },
  methods: {
    changeSrc(item, index) {
      const that = this;
      that.activeIndex = index;
    },
    changeIndex(e,index) {
      const that = this;
      that.activeIndex = index;
    },
    setIndex() {
      const that = this;
      that.activeIndex = null;
    }
  }
};
</script>
<style lang="less" scoped>
.home-footer-content {
  width: 100%;
  height: 320px;
  .home-footer {
    width: 100%;
    height: 268px;
    background: #0a1633;
    .home-footer-body {
      width: 1200px;
      margin: 0 auto;
      .home-footer-left {
        padding-top: 40px;
        .qrcode-content {
          .qrcode-popper {
            margin-left: 20px;
          }
          .qrcode-common-img {
            width: 34px;
            height: 34px;
            cursor: pointer;
          }
        }
      }
      .content {
        padding-top: 40px;
        padding-left: 400px;
        ul {
          width: 120px;
          margin-right: 110px;
          &:last-child {
            margin-right: 0;
          }
          li {
            line-height: 32px;
            height: 32px;
          }
          a {
            height: 32px;
            line-height: 32px;
            display: inline-block;
            -webkit-transition: all 0.2s ease;
            transition: all 0.2s ease;
            &:hover {
              color: white;
            }
          }
          li,
          a {
            font-size: 13px;
            color: #9ba5b4;
          }
          li:first-child {
            margin-bottom: 20px;
            border-bottom: 1px solid rgba(89, 114, 153, 0.36);
          }
        }
      }
    }
  }
  .home-site-footer {
    width: 100%;
    height: 52px;
    line-height: 52px;
    background: #071025;
    text-align: center;
    font-size: 13px;
    color: #9ba5b4;
  }
}
</style>
