OtherLogin.vue 1.34 KB
<template>
  <div class="login_others">
    <div class="otherLogin_title">其他登录方式</div>
    <div class="other_icon">
      <div class="wechat">
        <img :src="wechatIcon" alt="">
        <span>微信快速登录</span>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: 'OtherLogin',
  data() {
    return {
      wechatIcon: require('@/assets/icon/wechat.png'),
    }
  }
}
</script>
<style lang="less" scoped>
/** 其他登录方式 **/
.login_others {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 20px;
  .other_icon {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 5px;
    .wechat {
      display: flex;
      flex-direction: column;
      align-items: center;
      span {
        color: #666;
        font-size: 11px;
        margin-top: 5px;
      }
    }

    img {
      // display: block;
      width: 38px;
    }
  }
}

.otherLogin_title {
  position: relative;
  color: #666;
  font-size: 14px;

  &:before {
    content: "";
    position: absolute;
    top: 10px;
    left: -30px;
    width: 25px;
    border-bottom: 1px solid #cfcfcf;
  }

  &:after {
    content: "";
    position: absolute;
    top: 10px;
    right: -30px;
    width: 25px;
    border-bottom: 1px solid #cfcfcf;
  }
}
</style>