localPhoneLogin.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <template>
  2. <view>
  3. <en-nav @navHeight="setNavHeight" ></en-nav>
  4. <view class="login-box" :style="{'height':'calc(100vh - '+navHeight+'px)'}">
  5. <view class="login-top">
  6. <view class="login-title">
  7. <text class="title-item sys-color-black sys-weight-600">登录/注册</text>
  8. <text class="title-item title-two sys-color-black sys-weight-600">更精彩</text>
  9. </view>
  10. <view class="local-txt sys-color-gray-9">本机号码登录</view>
  11. <view class="local-phone sys-color-black sys-weight-400">188****4188</view>
  12. <view class="login-but sys-color-white sys-background-black">一键登录</view>
  13. <view class="other-phone sys-color-gray-6">其他手机号登录</view>
  14. </view>
  15. <view class="login-bottom">
  16. <view class="other-login">
  17. <view class="other-wire"></view>
  18. <view class="other-text sys-color-gray-9">其他登录方式</view>
  19. <view class="other-wire"></view>
  20. </view>
  21. <view class="login-icon">
  22. <image class="login-icon-img" src="/static/img/login/weixin.png" mode="aspectFill"></image>
  23. <image class="login-icon-img" src="/static/img/login/apple.png" mode="aspectFill"></image>
  24. </view>
  25. <login-agreement :type="2"></login-agreement>
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. import EnNav from "@/components/en-utils/en-nav/en-nav";
  32. import LoginAgreement from "@/pages/login/model/loginAgreement";
  33. export default {
  34. name:'localPhoneLogin',
  35. components: {LoginAgreement, EnNav},
  36. data() {
  37. return {
  38. navHeight:40
  39. }
  40. },
  41. methods: {
  42. setNavHeight(navHeight){
  43. console.log('navHeight:'+navHeight)
  44. this.navHeight=navHeight
  45. }
  46. }
  47. }
  48. </script>
  49. <style scoped lang="scss">
  50. .login-box{
  51. padding: 82rpx 80rpx 0 80rpx;
  52. box-sizing: border-box;
  53. position: relative;
  54. .login-top{
  55. .login-title{
  56. padding-bottom: 60rpx;
  57. .title-item{
  58. font-size: 48rpx;
  59. }
  60. .title-two{
  61. margin-left: 30rpx;
  62. }
  63. }
  64. .local-txt{
  65. padding-bottom: 40rpx;
  66. font-size: 24rpx;
  67. }
  68. .local-phone{
  69. padding-bottom: 120rpx;
  70. font-size: 48rpx;
  71. }
  72. .login-but{
  73. border-radius: 200rpx;
  74. height: 88rpx;
  75. line-height: 88rpx;
  76. text-align: center;
  77. }
  78. .other-phone{
  79. padding-top: 60rpx;
  80. font-size: 28rpx;
  81. text-align: center;
  82. }
  83. }
  84. .login-bottom{
  85. padding-bottom: calc(62rpx + env(safe-area-inset-bottom));
  86. position: absolute;
  87. bottom: 0;
  88. left: 80rpx;
  89. width:calc(100vw - 160rpx);
  90. .other-login{
  91. width:calc(100vw - 160rpx);
  92. display: flex;
  93. justify-content: space-between;
  94. .other-text{
  95. font-size: 24rpx;
  96. margin: 0 14rpx;
  97. height: 45rpx;
  98. line-height: 45rpx;
  99. }
  100. .other-wire{
  101. margin-top: 22rpx;
  102. width:calc((100vw - 348rpx) / 2);
  103. height: 1rpx;
  104. background-color: #E0E0E0;
  105. }
  106. }
  107. .login-icon{
  108. padding:40rpx 156rpx 80rpx 156rpx;
  109. display: flex;
  110. justify-content: space-between;
  111. .login-icon-img{
  112. width: 88rpx;
  113. height: 88rpx;
  114. border-radius: 50%;
  115. }
  116. }
  117. }
  118. }
  119. </style>