passLogin.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <template>
  2. <view class="pass-box">
  3. <en-nav :right-show="true" right-text="忘记密码?" @rightClick="goToEditPass"></en-nav>
  4. <view class="login-box" >
  5. <view class="login-top">
  6. <view class="login-title">
  7. <text class="title-item sys-color-black sys-weight-600">验证登录</text>
  8. </view>
  9. <view class="login-from">
  10. <view class="from-text">
  11. <input type="tel" class="from-input sys-color-gray-3" v-model="phone" placeholder="请输入手机号"></input>
  12. </view>
  13. <view class="from-text">
  14. <input type="password" class="from-input sys-color-gray-3" v-model="password" placeholder="请输入手机号"></input>
  15. </view>
  16. </view>
  17. <view class="login-but sys-color-white sys-background-black" :class="{'login-but-no':!isLogin}">登录</view>
  18. <view class="local-txt sys-color-gray-9">若长时间未收到验证码,请使用以下方式快速登录</view>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. data() {
  26. return {
  27. isLogin:false,
  28. phone:'',
  29. password:'',
  30. }
  31. },
  32. methods: {
  33. goToEditPass(){
  34. uni.navigateTo({
  35. 'url':'/pages/login/passLogin'
  36. })
  37. }
  38. }
  39. }
  40. </script>
  41. <style scoped lang="scss">
  42. .pass-box{
  43. padding: 82rpx 80rpx 0 80rpx;
  44. box-sizing: border-box;
  45. position: relative;
  46. .login-top{
  47. .login-title{
  48. padding-bottom: 60rpx;
  49. .title-item{
  50. font-size: 48rpx;
  51. }
  52. }
  53. .login-from{
  54. .from-text{
  55. width: 100%;
  56. padding-bottom: 40rpx;
  57. border-bottom: 1rpx solid #E0E0E0;
  58. .from-input{
  59. font-size: 32rpx;
  60. height: 44rpx;
  61. line-height: 44rpx;
  62. }
  63. .from-input::placeholder{
  64. color: #999999;
  65. }
  66. }
  67. .from-code{
  68. margin-top: 60rpx;
  69. display: flex;
  70. justify-content: space-between;
  71. .from-text{
  72. width: 344rpx;
  73. }
  74. .code-text{
  75. width: 180rpx;
  76. height: 44rpx;
  77. line-height: 44rpx;
  78. text-align: center;
  79. text{
  80. font-size: 32rpx;
  81. }
  82. }
  83. }
  84. }
  85. .login-but{
  86. margin-top: 120rpx;
  87. border-radius: 200rpx;
  88. height: 88rpx;
  89. line-height: 88rpx;
  90. text-align: center;
  91. transition: .5s ease;
  92. }
  93. .login-but-no{
  94. opacity: 0.1;
  95. transition: .5s ease;
  96. }
  97. .local-txt{
  98. padding-top: 32rpx;
  99. font-size: 24rpx;
  100. text-align: center;
  101. }
  102. }
  103. .login-bottom{
  104. padding-bottom: calc(186rpx + env(safe-area-inset-bottom));
  105. position: absolute;
  106. bottom: 0;
  107. left: 80rpx;
  108. width:calc(100vw - 160rpx);
  109. }
  110. }
  111. </style>