loginBox.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <template>
  2. <div class="c-loginBox small" v-loading="isLogining">
  3. <div class="logo">MeeChat账号登录</div>
  4. <!-- <mee-account></mee-account> -->
  5. <h3 class="title-other">{{$t('login.otherType')}}</h3>
  6. <other-account @initMiniLoginCallback="initMiniLoginCallback"></other-account>
  7. </div>
  8. </template>
  9. <script>
  10. import { mapState } from 'vuex'
  11. // import meeAccount from '@/components/login/meeAccount'
  12. import otherAccount from '@/components/login/otherAccount'
  13. export default {
  14. name: 'loginBox',
  15. components: {
  16. // meeAccount,
  17. otherAccount
  18. },
  19. created () {
  20. },
  21. computed: {
  22. ...mapState(['isLogining'])
  23. },
  24. methods: {
  25. initMiniLoginCallback () {
  26. this.$emit('initMiniLoginCallback')
  27. }
  28. }
  29. }
  30. </script>
  31. <style lang="scss" scoped>
  32. .c-loginBox{
  33. position: absolute;
  34. top: 50%;
  35. left: 50%;
  36. margin: -358px 0 0 -477px;
  37. border-radius: 4px;
  38. background-color: #e4e8eb;
  39. width: 954px;
  40. height: 717px;
  41. box-shadow: 0 2px 10px #999;
  42. text-align: center;
  43. overflow: hidden;
  44. &.small{
  45. width: 400px;
  46. height: 270px;
  47. margin: -150px 0 0 -200px;
  48. .logo{
  49. margin: 60px 0 50px;
  50. }
  51. }
  52. }
  53. .logo{
  54. margin: 100px 0 40px;
  55. height: 38px;
  56. background: url(./img/logo.png) center no-repeat;
  57. color: transparent;
  58. }
  59. .title-other{
  60. font-size: 12px;
  61. color: #999999;
  62. display: none;
  63. }
  64. .mini-wrap{
  65. .c-loginBox{
  66. position: relative;
  67. z-index: 1015;
  68. width: 90%;
  69. height: auto;
  70. transform: translate(-50%,-50%);
  71. margin: 0;
  72. padding: 30px 20px 50px;
  73. box-sizing: border-box;
  74. // background-color: #fff;
  75. }
  76. .logo{
  77. // font-size: 16px;
  78. // color: #333333;
  79. // background: no-repeat;
  80. // margin: 50px 0 0;
  81. // height: auto;
  82. display: none;
  83. }
  84. .title-other{
  85. display: block;
  86. }
  87. }
  88. </style>