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

139 lines
2.8 KiB

8 months ago
8 months ago
8 months ago
  1. <template>
  2. <view class="content">
  3. <view class="topBox">
  4. <h3 class="title">登录</h3>
  5. <h3>欢迎使用xx报修</h3>
  6. </view>
  7. <view class="inputBox">
  8. <view class="ipt">
  9. <h4>学号</h4>
  10. <input type="text" value="" placeholder="请输入学生学号" />
  11. </view>
  12. <view class="ipt">
  13. <h4>密码</h4>
  14. <input type="text" value="" placeholder="请输入密码" />
  15. </view>
  16. <button class="loginBtn">登录</button>
  17. <!-- <button class="registerBtn">注册</button> -->
  18. <!-- <view class="tipbox">
  19. <view class="txt">
  20. 其他账号登录
  21. </view>
  22. <view class="otherUser">
  23. <uni-icons type="qq" size="40" color="rgb(66,157,250)"></uni-icons>
  24. <uni-icons type="weixin" size="40" color="rgb(2,187,17)"></uni-icons>
  25. </view>
  26. </view> -->
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. export default {
  32. data() {
  33. return {
  34. }
  35. },
  36. methods: {
  37. }
  38. }
  39. </script>
  40. <style scoped>
  41. .content {
  42. height: 100vh;
  43. background-color: #f5f5f5;
  44. /* 微信小程序不允许使用本地图片 */
  45. /* background: url("@/static/login/bj.jpg") no-repeat center; */
  46. /* 所以这里我把背景图片上传在阿里云oss.下面这个地址是阿里云oss图片地址 */
  47. background: url("https://tennis-oss.xzaiyp.top/2024-09-02/0030f0ef-4270-47dc-a870-b24bffb6ce28.jpg") no-repeat center;
  48. background-size: cover;
  49. }
  50. .topBox {
  51. font-size: 34rpx;
  52. color: #fff;
  53. padding: 80rpx 50rpx;
  54. }
  55. .topBox .title{
  56. font-size: 45rpx;
  57. }
  58. h3 {
  59. margin-bottom: 10rpx;
  60. }
  61. .inputBox {
  62. position: fixed;
  63. bottom: 0;
  64. left: 0;
  65. width: 750rpx;
  66. height: 85vh;
  67. background-color: #fff;
  68. border-top-left-radius: 40rpx;
  69. border-top-right-radius: 40rpx;
  70. padding: 60rpx;
  71. box-sizing: border-box;
  72. }
  73. .ipt {
  74. margin-bottom: 50rpx;
  75. }
  76. .ipt h4 {
  77. margin-bottom: 20rpx;
  78. font-size: 36rpx;
  79. color: #333;
  80. }
  81. .ipt input {
  82. border-bottom: 1px solid #dedede;
  83. padding-bottom: 20rpx;
  84. font-size: 28rpx;
  85. }
  86. .loginBtn {
  87. margin-top: 20rpx;
  88. line-height: 85rpx;
  89. text-align: center;
  90. background: #3c9cff;
  91. border-radius: 40rpx;
  92. color: #fff;
  93. margin-top: 50rpx;
  94. }
  95. .registerBtn {
  96. margin-top: 20rpx;
  97. line-height: 85rpx;
  98. text-align: center;
  99. border-radius: 40rpx;
  100. color: #ccc;
  101. margin-top: 50rpx;
  102. border: none;
  103. }
  104. .tipbox {
  105. position: fixed;
  106. bottom: 120rpx;
  107. left: 50%;
  108. transform: translate(-50%, -120px);
  109. }
  110. .otherUser {
  111. margin-top: 30rpx;
  112. display: flex;
  113. justify-content: center;
  114. }
  115. .txt {
  116. font-size: 28rpx;
  117. color: #969696;
  118. }
  119. .otherUser .uni-icons {
  120. margin-left: 20rpx;
  121. }
  122. </style>