SelectLogin.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <template>
  2. <div class="inner_box">
  3. <div class="select_login">
  4. <div class="title">选择登录方式</div>
  5. <div class="select_type clear">
  6. <div class="left" @click="quickHandler">
  7. <i class="iconfont icon-shandian"></i>
  8. <div class="type">快速登录</div>
  9. </div>
  10. <div class="right" @click="onLogin">
  11. <i class="iconfont icon-mobile"></i>
  12. <div class="type">账号/手机号登录</div>
  13. </div>
  14. </div>
  15. </div>
  16. </div>
  17. </template>
  18. <script>
  19. export default {
  20. name: "selectLogin",
  21. components: {},
  22. inject: ["onQuickHandler"],
  23. data() {
  24. return {};
  25. },
  26. computed: {},
  27. watch: {},
  28. created() {},
  29. mounted() {},
  30. methods: {
  31. quickHandler() {
  32. this.onQuickHandler();
  33. },
  34. onLogin() {
  35. this.$emit("showInnerControl", "");
  36. },
  37. },
  38. };
  39. </script>
  40. <style lang='less' scoped>
  41. .select_login {
  42. width: 700 / @rem;
  43. height: 550 / @rem;
  44. position: absolute;
  45. top: 50%;
  46. left: 50%;
  47. margin-left: -350 / @rem;
  48. margin-top: -300 / @rem;
  49. font-size: 32 / @rem;
  50. background-color: #fff;
  51. box-sizing: border-box;
  52. border-radius: 5px;
  53. overflow: hidden;
  54. .title {
  55. height: 100 / @rem;
  56. line-height: 100 / @rem;
  57. background-color: #3faeed;
  58. color: #fff;
  59. font-size: 36 / @rem;
  60. }
  61. .select_type {
  62. .left,
  63. .right {
  64. width: 50%;
  65. margin-top: 120 / @rem;
  66. float: left;
  67. i {
  68. line-height: 100 / @rem;
  69. }
  70. }
  71. .left {
  72. i {
  73. color: #3faeed;
  74. font-size: 70 / @rem;
  75. }
  76. }
  77. .right {
  78. i {
  79. font-size: 70 / @rem;
  80. }
  81. }
  82. }
  83. }
  84. // 横屏
  85. @media screen and (orientation: landscape),
  86. /**竖屏 */ all and (orientation: portrait) and (min-width: 600px) and (min-height: 800px),
  87. /**ipad */ all and (min-device-aspect-ratio: 3/4) and (max-device-aspect-ratio: 4/3),
  88. all and (device-aspect-ratio: 4/3) {
  89. .select_login {
  90. width: 350 / @rem;
  91. height: 260 / @rem;
  92. margin-left: -175 / @rem;
  93. margin-top: -130 / @rem;
  94. font-size: 16 / @rem;
  95. .title {
  96. height: 40 / @rem;
  97. line-height: 40 / @rem;
  98. font-size: 18 / @rem;
  99. }
  100. .select_type {
  101. .left,
  102. .right {
  103. margin-top: 60 / @rem;
  104. i {
  105. line-height: 50 / @rem;
  106. }
  107. }
  108. .left {
  109. i {
  110. font-size: 35 / @rem;
  111. }
  112. }
  113. .right {
  114. i {
  115. font-size: 35 / @rem;
  116. }
  117. }
  118. }
  119. }
  120. }
  121. </style>