<template>
  <div class="foot-mark-box">
    <div>
      <div class="hover" @click="handleJumpFiling">© 陕ICP备2024033180号-1</div>
      <div class="case-cont" @click="handleJumpCase">陕公网安备61019102000586号</div>
      <div>服务邮箱：citp@changan-inkasso.com</div>
      <div>服务电话：029-86689192</div>
      <div class="hover" @click="aboutClick">关于我们</div>
      <!-- <div>安全合规</div> -->
      <div class="hover" @click="userProtocol">用户协议</div>
    </div>

    <cy-dialog ref="dialog" title="用户协议" top="10vh">
      <div class="user-protocol-content">
        <register-protocal />
      </div>
    </cy-dialog>
  </div>
</template>

<script>
export default {
  components: {
    RegisterProtocal: () => import('@/views/login/components/RegisterProtocal')
  },
  methods: {
    handleJumpFiling() {
      window.open('https://beian.miit.gov.cn/')
    },
    handleJumpCase() {
      window.open('https://beian.mps.gov.cn/#/query/webSearch?code=61019102000586')
    },
    aboutClick() {
      this.$router.push('/login/aboutUs')
    },
    userProtocol() {
      this.$refs.dialog.show = true
    }
  }
}
</script>

<style lang="scss" scoped>
.foot-mark-box {
  height: 50px;
  background: #000;
  position: fixed;
  width: 100%;
  left: 0px;
  bottom: 0px;
  color: #fff;
  z-index: 999;
  & > div:first-child {
    display: flex;
    justify-content: center;
    margin-right: 40px;
    line-height: 50px;
    font-size: 14px;
    cursor: pointer;
    & > div {
      margin-right: 40px;
    }
  }
  div.hover:hover {
    color: #FE7D0B;
  }
  .case-cont:hover {
    color: #FE7D0B;
  }
  .case-cont::before {
    content: ' ';
    display: inline-block;
    width: 16px;
    height: 18px;
    background: url('../../../assets/login/case-icon.png') no-repeat;
    vertical-align: middle;
    margin-right: 5px;
  }
  .user-protocol-content {
    height: 80vh;
    overflow-y: auto;
    margin: -20px;
    margin-top: -60px;
  }
}
</style>
