localPhoneLogin.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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" @click="login">一键登录</view>
  13. <view @click="goToOther" 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. login(){
  40. uni.navigateTo({
  41. 'url':'/pages/perfect/sexAndAge'
  42. })
  43. },
  44. goToOther(){
  45. uni.navigateTo({
  46. 'url':'/pages/login/otherPhoneLogin'
  47. })
  48. }
  49. }
  50. }
  51. </script>
  52. <style scoped lang="scss">
  53. .login-box{
  54. padding: 82rpx 80rpx 0 80rpx;
  55. box-sizing: border-box;
  56. position: relative;
  57. .login-top{
  58. .login-title{
  59. padding-bottom: 60rpx;
  60. .title-item{
  61. font-size: 48rpx;
  62. }
  63. .title-two{
  64. margin-left: 30rpx;
  65. }
  66. }
  67. .local-txt{
  68. padding-bottom: 40rpx;
  69. font-size: 24rpx;
  70. }
  71. .local-phone{
  72. padding-bottom: 120rpx;
  73. font-size: 48rpx;
  74. }
  75. .login-but{
  76. border-radius: 200rpx;
  77. height: 88rpx;
  78. line-height: 88rpx;
  79. text-align: center;
  80. }
  81. .other-phone{
  82. padding-top: 60rpx;
  83. font-size: 28rpx;
  84. text-align: center;
  85. }
  86. }
  87. .login-bottom{
  88. padding-bottom: calc(62rpx + env(safe-area-inset-bottom));
  89. position: absolute;
  90. bottom: 0;
  91. left: 80rpx;
  92. width:calc(100vw - 160rpx);
  93. }
  94. }
  95. </style>