艺易修小程序24.08.21
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.

194 lines
5.2 KiB

1 year ago
  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)"></uni-icons>
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. </template>
  69. <script>
  70. export default {
  71. data() {
  72. return {
  73. }
  74. },
  75. methods: {
  76. //登录
  77. login(){
  78. uni.switchTab({
  79. url: '/pages/repair/repair'
  80. })
  81. }
  82. }
  83. }
  84. </script>
  85. <style scoped>
  86. svg {
  87. position: absolute;
  88. bottom: 0;
  89. left: 0;
  90. width: 100%;
  91. height:40%;
  92. box-sizing: border-box;
  93. display: block;
  94. background-color: #ffffff;
  95. }
  96. .loginBox{
  97. position: absolute;
  98. top: 50%;
  99. left: 50%;
  100. transform: translate(-50%,-60%);
  101. width: 90%;
  102. border-radius: 20rpx;
  103. padding: 60rpx;
  104. box-sizing: border-box;
  105. }
  106. h3{
  107. color:rgb(66,157,250);
  108. font-size: 40rpx;
  109. letter-spacing: 10rpx;
  110. margin-bottom: 40rpx;
  111. }
  112. .inputBox{
  113. }
  114. .ipt{
  115. height: 86rpx;
  116. display: flex;
  117. justify-content: flex-start;
  118. align-items: center;
  119. margin-bottom: 40rpx;
  120. background-color: #f5f5f5;
  121. border-radius: 10rpx;
  122. padding-left: 10rpx;
  123. }
  124. .ipt input{
  125. margin-left: 20rpx;
  126. font-size: 28rpx;
  127. }
  128. .ipt input{
  129. margin-left: 20rpx;
  130. }
  131. .forgetPwd{
  132. margin-top: 30rpx;
  133. font-size: 26rpx;
  134. color: #b5b5b5;
  135. text-align: end;
  136. padding:0 10rpx;
  137. display: flex;
  138. justify-content: space-between;
  139. }
  140. button{
  141. margin-top: 20rpx;
  142. line-height: 85rpx;
  143. text-align: center;
  144. background: rgb(66,157,250);
  145. border-radius: 40rpx;
  146. color: #fff;
  147. margin-top: 40rpx;
  148. }
  149. .tip{
  150. text-align: center;
  151. font-size: 28rpx;
  152. position: fixed;
  153. bottom: 50rpx;
  154. left: 50%;
  155. transform: translate(-50%,-50%);
  156. color: #f4f4f4;
  157. }
  158. .tipbox {
  159. text-align: center;
  160. margin-top: 100rpx;
  161. }
  162. .otherUser {
  163. margin-top: 30rpx;
  164. display: flex;
  165. justify-content: center;
  166. }
  167. .txt {
  168. font-size: 28rpx;
  169. color: #cbcbcb;
  170. }
  171. .otherUser .uni-icons {
  172. margin-left: 20rpx;
  173. }
  174. .yzm{
  175. text-align: end;
  176. font-size: 24rpx;
  177. background: linear-gradient(to right,rgb(66,157,250),rgb(0, 170, 127));
  178. height: 60rpx;
  179. width: 150rpx;
  180. line-height: 60rpx;
  181. text-align: center;
  182. border-radius: 10rpx;
  183. color: #fff;
  184. }
  185. </style>