<!--
 * @Descripttion: 当前组件信息
 * @version: 1.0.0
 * @Author: 无尘
 * @Date: 2019-10-28 09:32:04
 * @LastEditors: 无尘
 * @LastEditTime: 2020-07-20 09:49:55
 -->
<template>
  <div style="background:#f0f2f5;margin-top: -20px;height:100vh;">
    <div class="wscn-http404">
      <div class="pic-404">
        <img class="pic-404__parent" :src="img_404" alt="404" />
      </div>
      <div class="bullshit">
        <!-- <div class="bullshit__oops">404</div> -->
        <div class="bullshit__headline">{{ message }}</div>
        <a href="/gic-web/#/login?ishb=1" class="bullshit__return-home" rel="noopener noreferrer">返回好办登录页</a>
      </div>
    </div>
  </div>
</template>

<script>
import img_404 from '@/assets/gic-error.png';

export default {
  name: 'page404',
  data() {
    return {
      img_404
    };
  },
  computed: {
    message() {
      return '登录遇到错误啦！请确认您是否是好办小程序管理员。如不是，请联系管理员在<企业微信-我的企业-权限管理>添加好办管理员。';
    }
  },
  /* eslint-disable */
  mounted() {

  }
};
</script>

<style lang="scss" scoped>
.wscn-http404 {
  position: relative;
  width: 1200px;
  margin: 20px auto 60px;
  padding: 0 100px;
  overflow: hidden;
  .pic-404 {
    position: relative;
    width: 100%;
    padding: 150px 0 0 ;
    text-align: center;
    overflow: hidden;
    &__parent {
      width: 148px;
      max-width: 430px;
    }
    &__child {
      position: absolute;
      &.left {
        width: 80px;
        top: 17px;
        left: 220px;
        opacity: 0;
        animation-name: cloudLeft;
        animation-duration: 2s;
        animation-timing-function: linear;
        animation-fill-mode: forwards;
        animation-delay: 1s;
      }
      &.mid {
        width: 46px;
        top: 10px;
        left: 420px;
        opacity: 0;
        animation-name: cloudMid;
        animation-duration: 2s;
        animation-timing-function: linear;
        animation-fill-mode: forwards;
        animation-delay: 1.2s;
      }
      &.right {
        width: 62px;
        top: 100px;
        left: 500px;
        opacity: 0;
        animation-name: cloudRight;
        animation-duration: 2s;
        animation-timing-function: linear;
        animation-fill-mode: forwards;
        animation-delay: 1s;
      }
      @keyframes cloudLeft {
        0% {
          top: 17px;
          left: 220px;
          opacity: 0;
        }
        20% {
          top: 33px;
          left: 188px;
          opacity: 1;
        }
        80% {
          top: 81px;
          left: 92px;
          opacity: 1;
        }
        100% {
          top: 97px;
          left: 60px;
          opacity: 0;
        }
      }
      @keyframes cloudMid {
        0% {
          top: 10px;
          left: 420px;
          opacity: 0;
        }
        20% {
          top: 40px;
          left: 360px;
          opacity: 1;
        }
        70% {
          top: 130px;
          left: 180px;
          opacity: 1;
        }
        100% {
          top: 160px;
          left: 120px;
          opacity: 0;
        }
      }
      @keyframes cloudRight {
        0% {
          top: 100px;
          left: 500px;
          opacity: 0;
        }
        20% {
          top: 120px;
          left: 460px;
          opacity: 1;
        }
        80% {
          top: 180px;
          left: 340px;
          opacity: 1;
        }
        100% {
          top: 200px;
          left: 300px;
          opacity: 0;
        }
      }
    }
  }
  .bullshit {
    position: relative;
    width: 100%;
    padding: 46px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    &__oops {
      color: #434e59;
      font-size: 72px;
      font-weight: 600;
      line-height: 72px;
      margin-bottom: 24px;
      /*animation-name: slideUp;
      animation-duration: 0.5s;
      animation-fill-mode: forwards;*/
    }
    &__headline {
      color: #606266;
      font-size: 14px;
      line-height: 28px;
      margin-bottom: 37px;
      /*animation-name: slideUp;
      animation-duration: 0.5s;
      animation-delay: 0.1s;
      animation-fill-mode: forwards;*/
    }

    &__return-home {
      display: inline-block;
      height: 32px;
      line-height: 32px;
      font-weight: 400;
      text-align: center;
      -ms-touch-action: manipulation;
      touch-action: manipulation;
      background-image: none;
      white-space: nowrap;
      padding: 0 15px;
      font-size: 14px;
      border-radius: 4px;
      border: 1px solid #2f54eb;
      color: #fff;
      background-color: #2f54eb;
      text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
      -webkit-box-shadow: 0 2px 0 rgba(0, 0, 0, 0.035);
      box-shadow: 0 2px 0 rgba(0, 0, 0, 0.035);
      cursor: pointer;
      /*animation-name: slideUp;
      animation-duration: 0.5s;
      animation-delay: 0.3s;
      animation-fill-mode: forwards;*/
      &:hover {
        color: #fff;
        background-color: #597ef7;
        border-color: #597ef7;
      }
      &:active {
        color: #fff;
        background-color: #597ef7;
        border-color: #597ef7;
      }
    }
    @keyframes slideUp {
      0% {
        transform: translateY(60px);
        opacity: 0;
      }
      100% {
        transform: translateY(0);
        opacity: 1;
      }
    }
  }
}
</style>
