localPhoneLogin.vue 2.3 KB

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