localPhoneLogin.vue 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. <other-login></other-login>
  17. <login-agreement :type="2"></login-agreement>
  18. </view>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. import EnNav from "@/components/en-utils/en-nav/en-nav";
  24. import LoginAgreement from "@/pages/login/model/loginAgreement";
  25. import OtherLogin from "@/pages/login/model/otherLogin";
  26. export default {
  27. name:'localPhoneLogin',
  28. components: {OtherLogin, LoginAgreement, EnNav},
  29. data() {
  30. return {
  31. navHeight:40
  32. }
  33. },
  34. methods: {
  35. setNavHeight(navHeight){
  36. console.log('navHeight:'+navHeight)
  37. this.navHeight=navHeight
  38. }
  39. }
  40. }
  41. </script>
  42. <style scoped lang="scss">
  43. .login-box{
  44. padding: 82rpx 80rpx 0 80rpx;
  45. box-sizing: border-box;
  46. position: relative;
  47. .login-top{
  48. .login-title{
  49. padding-bottom: 60rpx;
  50. .title-item{
  51. font-size: 48rpx;
  52. }
  53. .title-two{
  54. margin-left: 30rpx;
  55. }
  56. }
  57. .local-txt{
  58. padding-bottom: 40rpx;
  59. font-size: 24rpx;
  60. }
  61. .local-phone{
  62. padding-bottom: 120rpx;
  63. font-size: 48rpx;
  64. }
  65. .login-but{
  66. border-radius: 200rpx;
  67. height: 88rpx;
  68. line-height: 88rpx;
  69. text-align: center;
  70. }
  71. .other-phone{
  72. padding-top: 60rpx;
  73. font-size: 28rpx;
  74. text-align: center;
  75. }
  76. }
  77. .login-bottom{
  78. padding-bottom: calc(62rpx + env(safe-area-inset-bottom));
  79. position: absolute;
  80. bottom: 0;
  81. left: 80rpx;
  82. width:calc(100vw - 160rpx);
  83. }
  84. }
  85. </style>