login.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <template>
  2. <view class="login">
  3. <car-common mytitle="登录" :noback="false" ref="common" ></car-common>
  4. <view class="login-logo">
  5. <img src="static/img/logo.png" alt="">
  6. </view>
  7. <view class="login-name">车信达</view>
  8. <view class="login-form">
  9. <view class="login-form-row">
  10. <view class="login-form-title">
  11. <u-icon name="zhanghao" custom-prefix="custom-icon" size="38" color="#1677ff"></u-icon>
  12. </view>
  13. <view class="login-form-input">
  14. <u-input placeholder="请输入手机号" v-model="subFormCode.phone" type="text"></u-input>
  15. </view>
  16. </view>
  17. <view class="login-form-row">
  18. <view class="login-form-title">
  19. <u-icon name="yanzhengma" custom-prefix="custom-icon" size="38" color="#1677ff"></u-icon>
  20. </view>
  21. <view class="login-form-input">
  22. <u-input placeholder="请输入验证码" v-model="subFormCode.verifyCode" type="number" ></u-input>
  23. </view>
  24. <view class="login-form-code">
  25. <span @click="sendMsg" v-text="isSendMsgIng?(sendMsgSecond+'秒'):'发送验证码'" >发送验证码</span>
  26. </view>
  27. </view>
  28. <view class="login-button">
  29. <u-button type="primary" shape="circle" @click="login" >立即登录</u-button>
  30. </view>
  31. <view class="forget"><span>忘记密码?</span></view>
  32. <view class="login-foot">
  33. <p>登录即为同意</p><span>《用户协议》</span><span>《隐私政策》</span>
  34. </view>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. import api from './login.js'
  40. export default api;
  41. </script>
  42. <style scoped lang="scss">
  43. .login{
  44. text-align: center;
  45. }
  46. .login-logo{
  47. width: 200rpx;
  48. height: 200rpx;
  49. border-radius: 20px;
  50. overflow: hidden;
  51. margin: 160rpx auto 0;
  52. img{
  53. width: 100%;
  54. height: 100%;
  55. }
  56. }
  57. .login-name{
  58. font-size:16px;
  59. font-weight: bold;
  60. margin-top: 20rpx;
  61. }
  62. .login-form{
  63. width: 300px;
  64. margin: 30px auto;
  65. }
  66. .login-form-row{
  67. display: flex;
  68. align-items: center;
  69. padding: 20rpx 0;
  70. border-bottom: 1px solid #f7f7f7;
  71. position: relative;
  72. .login-form-title{
  73. margin-right: 20rpx;
  74. }
  75. .login-form-input{
  76. flex: 1;
  77. padding-right: 20rpx;
  78. }
  79. }
  80. .login-button{
  81. margin: 40rpx 0;
  82. }
  83. .forget{
  84. text-align: right;
  85. color:#1677ff;
  86. }
  87. .login-form-code{
  88. color:#1677ff;
  89. }
  90. .login-foot{
  91. display: flex;
  92. text-align: center;
  93. position: fixed;
  94. bottom:20rpx;
  95. left:50%;
  96. margin-left:-250rpx;
  97. color:#999;
  98. span{
  99. color:#1677ff
  100. }
  101. }
  102. </style>