<template>
  <div class="c-loginBox small" v-loading="isLogining">
    <div class="logo">MeeChat账号登录</div>
    <!-- <mee-account></mee-account> -->
    <h3 class="title-other">{{$t('login.otherType')}}</h3>
    <other-account @initMiniLoginCallback="initMiniLoginCallback"></other-account>
  </div>
</template>

<script>
import { mapState } from 'vuex'
// import meeAccount from '@/components/login/meeAccount'
import otherAccount from '@/components/login/otherAccount'

export default {
  name: 'loginBox',
  components: {
    // meeAccount,
    otherAccount
  },
  created () {

  },
  computed: {
    ...mapState(['isLogining'])
  },
  methods: {
    initMiniLoginCallback () {
      this.$emit('initMiniLoginCallback')
    }
  }
}
</script>

<style lang="scss" scoped>
.c-loginBox{
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -358px 0 0 -477px;
  border-radius: 4px;
  background-color: #e4e8eb;
  width: 954px;
  height: 717px;
  box-shadow: 0 2px 10px #999;
  text-align: center;
  overflow: hidden;
  &.small{
    width: 400px;
    height: 270px;
    margin: -150px 0 0 -200px;
    .logo{
      margin: 60px 0 50px;
    }
  }
}
.logo{
    margin: 100px 0 40px;
    height: 38px;
    background: url(./img/logo.png) center no-repeat;
    color: transparent;
}
.title-other{
  font-size: 12px;
  color: #999999;
  display: none;
}
.mini-wrap{
  .c-loginBox{
    position: relative;
    z-index: 1015;
    width: 90%;
    height: auto;
    transform: translate(-50%,-50%);
    margin: 0;
    padding: 30px 20px 50px;
    box-sizing: border-box;
    // background-color: #fff;
  }
  .logo{
    // font-size: 16px;
    // color: #333333;
    // background: no-repeat;
    // margin: 50px 0 0;
    // height: auto;
    display: none;
  }
  .title-other{
    display: block;
  }
}
</style>
