加油站付款小程序,打印小票
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.

195 lines
5.2 KiB

  1. <template>
  2. <view class="content">
  3. <!-- app和小程序使用以下svg会报错 h5正常 -->
  4. <!-- <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
  5. width="100%" height="100%" viewBox="0 0 1600 900" preserveAspectRatio="xMidYMax slice">
  6. <defs>
  7. <linearGradient id="bg">
  8. <stop offset="0%" style="stop-color:rgba(130, 158, 249, 0.06)"></stop>
  9. <stop offset="50%" style="stop-color:rgba(76, 190, 255, 0.6)"></stop>
  10. <stop offset="100%" style="stop-color:rgba(115, 209, 72, 0.2)"></stop>
  11. </linearGradient>
  12. <path id="wave" fill="url(#bg)"
  13. d="M-363.852,502.589c0,0,236.988-41.997,505.475,0
  14. s371.981,38.998,575.971,0s293.985-39.278,505.474,5.859s493.475,48.368,716.963-4.995v560.106H-363.852V502.589z" />
  15. </defs>
  16. <g>
  17. <use xlink:href='#wave' opacity=".3">
  18. <animateTransform attributeName="transform" attributeType="XML" type="translate" dur="10s"
  19. calcMode="spline" values="270 230; -334 180; 270 230" keyTimes="0; .5; 1"
  20. keySplines="0.42, 0, 0.58, 1.0;0.42, 0, 0.58, 1.0" repeatCount="indefinite" />
  21. </use>
  22. <use xlink:href='#wave' opacity=".6">
  23. <animateTransform attributeName="transform" attributeType="XML" type="translate" dur="8s"
  24. calcMode="spline" values="-270 230;243 220;-270 230" keyTimes="0; .6; 1"
  25. keySplines="0.42, 0, 0.58, 1.0;0.42, 0, 0.58, 1.0" repeatCount="indefinite" />
  26. </use>
  27. <use xlink:href='#wave' opacty=".9">
  28. <animateTransform attributeName="transform" attributeType="XML" type="translate" dur="6s"
  29. calcMode="spline" values="0 230;-140 200;0 230" keyTimes="0; .4; 1"
  30. keySplines="0.42, 0, 0.58, 1.0;0.42, 0, 0.58, 1.0" repeatCount="indefinite" />
  31. </use>
  32. </g>
  33. </svg> -->
  34. <view class="loginBox">
  35. <h3 style="text-align: center;margin-bottom:120rpx;">欢迎登录</h3>
  36. <view class="inputBox">
  37. <view class="ipt">
  38. <uni-icons type="contact" size="24" color="rgb(66,157,250)"></uni-icons>
  39. <input type="text" value="" placeholder="请输入手机号"/>
  40. </view>
  41. <view class="ipt">
  42. <uni-icons type="eye" size="24" color="rgb(66,157,250)"></uni-icons>
  43. <input type="passsword" value="" placeholder="请输入密码"/>
  44. </view>
  45. <view class="ipt">
  46. <uni-icons type="checkmarkempty" size="24" color="rgb(66,157,250)"></uni-icons>
  47. <input type="text" value="" placeholder="请输入验证码"/>
  48. <view class="yzm">
  49. 验证码
  50. </view>
  51. </view>
  52. <button @click="login">登录</button>
  53. <view class="forgetPwd">
  54. <!-- <span>忘记密码</span> -->
  55. <!-- <span>没有账号去注册</span> -->
  56. </view>
  57. </view>
  58. <view class="tipbox">
  59. <view class="txt">
  60. 其他账号登录
  61. </view>
  62. <view class="otherUser">
  63. <uni-icons type="weixin" size="40" color="rgb(2,187,17)"
  64. @click="$store.commit('login')"></uni-icons>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. </template>
  70. <script>
  71. export default {
  72. data() {
  73. return {
  74. }
  75. },
  76. methods: {
  77. //登录
  78. login(){
  79. uni.switchTab({
  80. url: '/pages/repair/repair'
  81. })
  82. }
  83. }
  84. }
  85. </script>
  86. <style scoped>
  87. svg {
  88. position: absolute;
  89. bottom: 0;
  90. left: 0;
  91. width: 100%;
  92. height:40%;
  93. box-sizing: border-box;
  94. display: block;
  95. background-color: #ffffff;
  96. }
  97. .loginBox{
  98. position: absolute;
  99. top: 50%;
  100. left: 50%;
  101. transform: translate(-50%,-60%);
  102. width: 90%;
  103. border-radius: 20rpx;
  104. padding: 60rpx;
  105. box-sizing: border-box;
  106. }
  107. h3{
  108. color:rgb(66,157,250);
  109. font-size: 40rpx;
  110. letter-spacing: 10rpx;
  111. margin-bottom: 40rpx;
  112. }
  113. .inputBox{
  114. }
  115. .ipt{
  116. height: 86rpx;
  117. display: flex;
  118. justify-content: flex-start;
  119. align-items: center;
  120. margin-bottom: 40rpx;
  121. background-color: #f5f5f5;
  122. border-radius: 10rpx;
  123. padding-left: 10rpx;
  124. }
  125. .ipt input{
  126. margin-left: 20rpx;
  127. font-size: 28rpx;
  128. }
  129. .ipt input{
  130. margin-left: 20rpx;
  131. }
  132. .forgetPwd{
  133. margin-top: 30rpx;
  134. font-size: 26rpx;
  135. color: #b5b5b5;
  136. text-align: end;
  137. padding:0 10rpx;
  138. display: flex;
  139. justify-content: space-between;
  140. }
  141. button{
  142. margin-top: 20rpx;
  143. line-height: 85rpx;
  144. text-align: center;
  145. background: rgb(66,157,250);
  146. border-radius: 40rpx;
  147. color: #fff;
  148. margin-top: 40rpx;
  149. }
  150. .tip{
  151. text-align: center;
  152. font-size: 28rpx;
  153. position: fixed;
  154. bottom: 50rpx;
  155. left: 50%;
  156. transform: translate(-50%,-50%);
  157. color: #f4f4f4;
  158. }
  159. .tipbox {
  160. text-align: center;
  161. margin-top: 100rpx;
  162. }
  163. .otherUser {
  164. margin-top: 30rpx;
  165. display: flex;
  166. justify-content: center;
  167. }
  168. .txt {
  169. font-size: 28rpx;
  170. color: #cbcbcb;
  171. }
  172. .otherUser .uni-icons {
  173. margin-left: 20rpx;
  174. }
  175. .yzm{
  176. text-align: end;
  177. font-size: 24rpx;
  178. background: linear-gradient(to right,rgb(66,157,250),rgb(0, 170, 127));
  179. height: 60rpx;
  180. width: 150rpx;
  181. line-height: 60rpx;
  182. text-align: center;
  183. border-radius: 10rpx;
  184. color: #fff;
  185. }
  186. </style>