加油站付款小程序,打印小票
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

169 lines
3.1 KiB

9 months ago
  1. <template>
  2. <view class="content">
  3. <view class="loginBox">
  4. <h3 style="text-align: center;margin-bottom:120rpx;">欢迎登录</h3>
  5. <view class="inputBox">
  6. <view class="ipt">
  7. <uni-icons type="contact" size="24" color="rgb(66,157,250)"></uni-icons>
  8. <input type="text" value="" placeholder="请输入手机号" />
  9. </view>
  10. <view class="ipt">
  11. <uni-icons type="eye" size="24" color="rgb(66,157,250)"></uni-icons>
  12. <input type="passsword" value="" placeholder="请输入密码" />
  13. </view>
  14. <view class="ipt">
  15. <uni-icons type="checkmarkempty" size="24" color="rgb(66,157,250)"></uni-icons>
  16. <input type="text" value="" placeholder="请输入验证码" />
  17. <view class="yzm">
  18. 验证码
  19. </view>
  20. </view>
  21. <button @click="login">登录</button>
  22. <view class="forgetPwd">
  23. <!-- <span>忘记密码</span> -->
  24. <!-- <span>没有账号去注册</span> -->
  25. </view>
  26. </view>
  27. <view class="tipbox">
  28. <view class="txt">
  29. 其他账号登录
  30. </view>
  31. <view class="otherUser">
  32. <uni-icons type="weixin" size="40" color="rgb(2,187,17)"></uni-icons>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. data() {
  41. return {
  42. }
  43. },
  44. methods: {
  45. //登录
  46. login() {
  47. uni.switchTab({
  48. url: '/pages/payment/payment'
  49. })
  50. }
  51. }
  52. }
  53. </script>
  54. <style scoped>
  55. svg {
  56. position: absolute;
  57. bottom: 0;
  58. left: 0;
  59. width: 100%;
  60. height: 40%;
  61. box-sizing: border-box;
  62. display: block;
  63. background-color: #ffffff;
  64. }
  65. .loginBox {
  66. position: absolute;
  67. top: 50%;
  68. left: 50%;
  69. transform: translate(-50%, -60%);
  70. width: 90%;
  71. border-radius: 20rpx;
  72. padding: 60rpx;
  73. box-sizing: border-box;
  74. }
  75. h3 {
  76. color: rgb(66, 157, 250);
  77. font-size: 40rpx;
  78. letter-spacing: 10rpx;
  79. margin-bottom: 40rpx;
  80. }
  81. .inputBox {}
  82. .ipt {
  83. height: 86rpx;
  84. display: flex;
  85. justify-content: flex-start;
  86. align-items: center;
  87. margin-bottom: 40rpx;
  88. background-color: #f5f5f5;
  89. border-radius: 10rpx;
  90. padding-left: 10rpx;
  91. }
  92. .ipt input {
  93. margin-left: 20rpx;
  94. font-size: 28rpx;
  95. }
  96. .ipt input {
  97. margin-left: 20rpx;
  98. }
  99. .forgetPwd {
  100. margin-top: 30rpx;
  101. font-size: 26rpx;
  102. color: #b5b5b5;
  103. text-align: end;
  104. padding: 0 10rpx;
  105. display: flex;
  106. justify-content: space-between;
  107. }
  108. button {
  109. margin-top: 20rpx;
  110. line-height: 85rpx;
  111. text-align: center;
  112. background: rgb(66, 157, 250);
  113. border-radius: 40rpx;
  114. color: #fff;
  115. margin-top: 40rpx;
  116. }
  117. .tip {
  118. text-align: center;
  119. font-size: 28rpx;
  120. position: fixed;
  121. bottom: 50rpx;
  122. left: 50%;
  123. transform: translate(-50%, -50%);
  124. color: #f4f4f4;
  125. }
  126. .tipbox {
  127. text-align: center;
  128. margin-top: 100rpx;
  129. }
  130. .otherUser {
  131. margin-top: 30rpx;
  132. display: flex;
  133. justify-content: center;
  134. }
  135. .txt {
  136. font-size: 28rpx;
  137. color: #cbcbcb;
  138. }
  139. .otherUser .uni-icons {
  140. margin-left: 20rpx;
  141. }
  142. .yzm {
  143. text-align: end;
  144. font-size: 24rpx;
  145. background: linear-gradient(to right, rgb(66, 157, 250), rgb(0, 170, 127));
  146. height: 60rpx;
  147. width: 150rpx;
  148. line-height: 60rpx;
  149. text-align: center;
  150. border-radius: 10rpx;
  151. color: #fff;
  152. }
  153. </style>