identity.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <template>
  2. <view>
  3. <!-- 学生选择按钮 -->
  4. <button class="student" open-type="getUserInfo" @getuserinfo="wxLogin">
  5. <view class="stu">
  6. 学生
  7. </view>
  8. <view class="stu_point">
  9. 学生用户选择此项
  10. </view>
  11. <view class="stu_img">
  12. <image src="../../static/stu_img.svg" mode=""></image>
  13. </view>
  14. </button>
  15. <!-- 维修人员选择按钮 -->
  16. <button class="worker" @click="getlogin()">
  17. <view class="work">
  18. 维修人员
  19. </view>
  20. <view class="work_point">
  21. 维修人员选择此项
  22. </view>
  23. <view class="work_img">
  24. <image src="../../static/work_img.svg" mode=""></image>
  25. </view>
  26. </button>
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. data() {
  32. return {
  33. }
  34. },
  35. methods: {
  36. getlogin(){
  37. uni.reLaunch({
  38. url:'../list-center/list-center',
  39. })
  40. }
  41. }
  42. }
  43. </script>
  44. <style>
  45. .student{
  46. position: relative;
  47. width: 351px;
  48. height: 149px;
  49. margin-top: 74px;
  50. margin-left: 12px;
  51. border-radius: 16px;
  52. background-color: rgba(42, 69, 228, 0.89);
  53. }
  54. .student .stu{
  55. position: absolute;
  56. top: 17px;
  57. left: 25px;
  58. font-size: 28px;
  59. font-weight: 700;
  60. color: rgba(255, 255, 255, 1);
  61. }
  62. .student .stu_point{
  63. position: absolute;
  64. top: 69px;
  65. left: 79px;
  66. font: 16px;
  67. color: rgba(255, 255, 255, 1);
  68. }
  69. .student image{
  70. position: absolute;
  71. right: 20px;
  72. top: 36px;
  73. width: 76px;
  74. height: 76px;
  75. }
  76. .worker{
  77. position: relative;
  78. width: 351px;
  79. height: 149px;
  80. margin-top: 57px;
  81. margin-left: 12px;
  82. border-radius: 16px;
  83. background-color: rgba(42, 130, 228, 1);
  84. }
  85. .worker .work {
  86. position: absolute;
  87. top: 17px;
  88. left: 25px;
  89. font-size: 28px;
  90. font-weight: 700;
  91. color: rgba(255, 255, 255, 1);
  92. }
  93. .worker .work_point{
  94. position: absolute;
  95. top: 69px;
  96. left: 79px;
  97. font: 16px;
  98. color: rgba(255, 255, 255, 1);
  99. }
  100. .worker image{
  101. position: absolute;
  102. right: 20px;
  103. top: 36px;
  104. width: 76px;
  105. height: 76px;
  106. }
  107. </style>