index.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <view>
  3. <view class="content">
  4. <!-- 学生选择按钮 -->
  5. <button class="student" @click="getStudentId">
  6. <view class="stu">
  7. 学生
  8. </view>
  9. <view class="stu_point">
  10. 学生选择此项
  11. </view>
  12. <view class="stu_img">
  13. <image src="../../static/stu_img.svg" mode=""></image>
  14. </view>
  15. </button>
  16. <!-- 维修人员选择按钮 -->
  17. <button class="worker" @click="getlogin">
  18. <view class="work">
  19. 维修人员
  20. </view>
  21. <view class="work_point">
  22. 维修人员选择此项
  23. </view>
  24. <view class="work_img">
  25. <image src="../../static/work_img.svg" mode=""></image>
  26. </view>
  27. </button>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. export default {
  33. data() {
  34. return {
  35. }
  36. },
  37. methods: {
  38. //维修工登录跳转页面
  39. getlogin() {
  40. uni.reLaunch({
  41. url: '../login/login',
  42. })
  43. },
  44. //用户登录跳转页面
  45. async getStudentId() {
  46. uni.reLaunch({
  47. url: '../login-filter/login-filter'
  48. })
  49. },
  50. }
  51. }
  52. </script>
  53. <style>
  54. .content {
  55. flex-direction: column;
  56. display: flex;
  57. height: 100vh;
  58. padding: 0 10rpx;
  59. }
  60. .student {
  61. position: relative;
  62. width: 702rpx;
  63. height: 300rpx;
  64. margin-top: 200rpx;
  65. border-radius: 32rpx;
  66. background-color: rgba(42, 69, 228, 0.89);
  67. }
  68. .student .stu {
  69. position: absolute;
  70. top: 34rpx;
  71. left: 50rpx;
  72. font-size: 56rpx;
  73. font-weight: 700;
  74. color: rgba(255, 255, 255, 1);
  75. }
  76. .student .stu_point {
  77. position: absolute;
  78. top: 140rpx;
  79. left: 160rpx;
  80. font: 32rpx;
  81. color: rgba(255, 255, 255, 1);
  82. }
  83. .student image {
  84. position: absolute;
  85. right: 40rpx;
  86. top: 72rpx;
  87. width: 152rpx;
  88. height: 152rpx;
  89. }
  90. .worker {
  91. position: relative;
  92. width: 702rpx;
  93. height: 300rpx;
  94. margin-top: 114rpx;
  95. border-radius: 32rpx;
  96. background-color: rgba(42, 130, 228, 1);
  97. }
  98. .worker .work {
  99. position: absolute;
  100. top: 34rpx;
  101. left: 50rpx;
  102. font-size: 56rpx;
  103. font-weight: 700;
  104. color: rgba(255, 255, 255, 1);
  105. }
  106. .worker .work_point {
  107. position: absolute;
  108. top: 140rpx;
  109. left: 160rpx;
  110. font: 32rpx;
  111. color: rgba(255, 255, 255, 1);
  112. }
  113. .worker image {
  114. position: absolute;
  115. right: 40rpx;
  116. top: 72rpx;
  117. width: 152rpx;
  118. height: 152rpx;
  119. }
  120. </style>