login.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <template>
  2. <view>
  3. <view class="main">
  4. <view class="close">
  5. <u-icon name="close" size="32" color="#101010"></u-icon>
  6. </view>
  7. <view class="logo">
  8. <img src="../../assets/img/logo.png" alt="">
  9. </view>
  10. <view class="name">
  11. 荆州市地方铁路有限公司
  12. </view>
  13. <view class="login">
  14. <view class="login-box">
  15. <view class="tel highlight" >
  16. <view class="icon">
  17. <u-icon name="account-fill" size="40" color="#1F4A99 "></u-icon>
  18. </view>
  19. <u-line color="red" direction="col" length="40rpx" margin="auto 0" />
  20. <view class="tips">
  21. <u-input type="number" placeholder="请填写系统预留手机号码" />
  22. </view>
  23. </view>
  24. <view class="pwd">
  25. <view class="icon">
  26. <u-icon name="chat-fill" size="40"></u-icon>
  27. </view>
  28. <u-line color="red" direction="col" length="40rpx" margin="auto 0" />
  29. <view class="tips">
  30. <view class="input">
  31. <u-input type="number" placeholder="请输入验证码" />
  32. </view>
  33. <view class="verification-code">获取验证码</view>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="btn">
  39. <button>登录</button>
  40. </view>
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. export default {
  46. data() {
  47. return {
  48. show:true
  49. }
  50. },
  51. methods: {
  52. }
  53. }
  54. </script>
  55. <style lang="scss" scoped>
  56. page {
  57. background: url("../../assets/img/bgc.png");
  58. }
  59. .main {
  60. width: 100%;
  61. padding-top:240rpx;
  62. position: relative;
  63. .close{
  64. position: absolute;
  65. top: 24rpx;
  66. left: 24rpx;
  67. }
  68. .logo {
  69. display: flex;
  70. justify-content: center;
  71. }
  72. .name {
  73. color: rgba(16, 16, 16, 1);
  74. font-size: 40rDDpx;
  75. text-align: center;
  76. font-weight: bold;
  77. margin-top: 8rpx;
  78. font-family: 'SemiBold';
  79. }
  80. }
  81. .login-box {
  82. margin-top: 160rpx;
  83. .tel {
  84. /deep/.u-input {
  85. width: 400rpx;
  86. }
  87. }
  88. .tel,
  89. .pwd {
  90. display: flex;
  91. width: 74.4%;
  92. height: 80rpx;
  93. line-height: 80rpx;
  94. color: rgba(183, 172, 172, 1);
  95. margin: auto;
  96. margin-bottom: 36rpx;
  97. border: 1px solid rgba(193, 204, 223, 1);
  98. border-radius: 8px;
  99. /deep/.u-input__input{
  100. font-size: 32rpx;
  101. }
  102. .icon {
  103. width: 14%;
  104. text-align: center;
  105. img {
  106. vertical-align: middle;
  107. }
  108. }
  109. .tips {
  110. text-indent: 16rpx;
  111. padding-right: 16rpx;
  112. display: flex;
  113. justify-content: space-between;
  114. /deep/uni-input {
  115. height: 80rpx !important;
  116. line-height: 80rpx !important;
  117. }
  118. .input {
  119. width: 60%;
  120. }
  121. }
  122. // 验证码
  123. .verification-code {
  124. color: #1F4A99;
  125. line-height: 80rpx;
  126. font-family: 'Regular';
  127. }
  128. }
  129. .highlight {
  130. border: 1px solid rgba(31, 74, 153, 1);
  131. box-shadow: 0px 0px 8rpx 0px rgba(0, 90, 217, 50);
  132. /deep/.u-input__input{
  133. color: rgba(0, 90, 217, 1);
  134. }
  135. }
  136. }
  137. .btn{
  138. width: 100%;
  139. margin-top: 120rpx;
  140. uni-button{
  141. margin:0 96rpx;
  142. height: 80rpx;
  143. border-radius: 8px;
  144. background-color: rgba(31, 74, 153, 1);
  145. color: rgba(255, 255, 255, 1);
  146. font-size: 16px;
  147. }
  148. }
  149. </style>