home.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <view>
  3. <view class="content">
  4. <!-- 学生选择按钮 -->
  5. <button class="student" @click="goSigned">
  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"></image>
  14. </view>
  15. </button>
  16. <!-- 维修人员选择按钮 -->
  17. <button class="worker" @click="goUnwind">
  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"></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. goSigned() {
  39. // 跳转到签约页面
  40. uni.navigateTo({
  41. url: "/pages/index/index"
  42. })
  43. },
  44. goUnwind() {
  45. // 跳转到解约页面
  46. uni.navigateTo({
  47. url: "/pages/unwind/unwind"
  48. })
  49. }
  50. }
  51. }
  52. </script>
  53. <style lang="scss">
  54. .content {
  55. flex-direction: column;
  56. display: flex;
  57. .student {
  58. position: relative;
  59. width: 702rpx;
  60. height: 300rpx;
  61. margin-top: 148rpx;
  62. margin-left: 24rpx;
  63. border-radius: 32rpx;
  64. background-color: rgba(42, 69, 228, 0.89);
  65. .stu {
  66. position: absolute;
  67. top: 34rpx;
  68. left: 50rpx;
  69. font-size: 56rpx;
  70. font-weight: 700;
  71. color: rgba(255, 255, 255, 1);
  72. }
  73. .stu_point {
  74. position: absolute;
  75. top: 140rpx;
  76. left: 50rpx;
  77. font: 32rpx;
  78. color: rgba(255, 255, 255, 1);
  79. }
  80. image {
  81. position: absolute;
  82. right: 44rpx;
  83. top: 72rpx;
  84. width: 152rpx;
  85. height: 152rpx;
  86. }
  87. }
  88. .worker {
  89. position: relative;
  90. width: 702rpx;
  91. height: 300rpx;
  92. margin-top: 114rpx;
  93. margin-left: 24rpx;
  94. border-radius: 32rpx;
  95. background-color: rgba(42, 130, 228, 1);
  96. .work {
  97. position: absolute;
  98. top: 34rpx;
  99. left: 50rpx;
  100. font-size: 56rpx;
  101. font-weight: 700;
  102. color: rgba(255, 255, 255, 1);
  103. }
  104. .work_point {
  105. position: absolute;
  106. top: 140rpx;
  107. left: 50rpx;
  108. font: 32rpx;
  109. color: rgba(255, 255, 255, 1);
  110. }
  111. image {
  112. position: absolute;
  113. right: 40rpx;
  114. top: 72rpx;
  115. width: 152rpx;
  116. height: 152rpx;
  117. }
  118. }
  119. }
  120. </style>