reservation.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <template>
  2. <view class="container">
  3. <!-- 背景图片区域 -->
  4. <img class="img_bg" src="../../static/images/center-bg.png" />
  5. <!-- 背景墙区域 -->
  6. <view class="wall_bg"></view>
  7. <!-- 背景文字区域 -->
  8. <view class="text_bg">欢迎使用访客预约</view>
  9. <!-- 主体内容区域 -->
  10. <view class="body">
  11. <view class="body_title">选择预约方式</view>
  12. <!-- 学生家长预约选项区域 -->
  13. <view class="body_box" @click="goPage('/pagesReservation/register/register?type=1')">
  14. <img class="box_img" src="../../static/images/reservation.png" />
  15. <view class="box_text">学生家长预约</view>
  16. <img class="box_icon" src="../../static/images/right-blue.png" />
  17. </view>
  18. <!-- 其他访客预约选项区域 -->
  19. <view class="body_box" @click="goPage('/pagesReservation/register/register?type=2')">
  20. <img class="box_img" src="../../static/images/reservation2.png" />
  21. <view class="box_text">其他访客预约</view>
  22. <img class="box_icon" src="../../static/images/right-blue.png" />
  23. </view>
  24. <!-- 生成邀请预约码选项区域 -->
  25. <view class="body_box" @click="goPage('/pagesReservation/QRCode/QRCode')">
  26. <img class="box_img" src="../../static/images/reservation3.png" />
  27. <view class="box_text">生成邀请预约码</view>
  28. <img class="box_icon" src="../../static/images/right-blue.png" />
  29. </view>
  30. </view>
  31. <!-- 底部导航栏区域 -->
  32. <tabber />
  33. </view>
  34. </template>
  35. <script setup>
  36. import { ref } from 'vue'
  37. import { onLoad } from '@dcloudio/uni-app'
  38. import tabber from '@/components/tabber.vue'
  39. onLoad(() => {})
  40. const goPage = (url) => {
  41. uni.navigateTo({
  42. url
  43. })
  44. }
  45. </script>
  46. <style lang="scss" scoped>
  47. .container {
  48. min-height: 100vh;
  49. background-color: #f1f6fe;
  50. // 背景图片区域样式
  51. .img_bg {
  52. position: absolute;
  53. top: -70rpx;
  54. right: -32rpx;
  55. width: 589rpx;
  56. height: 320rpx;
  57. pointer-events: none;
  58. }
  59. // 背景墙区域样式
  60. .wall_bg {
  61. width: 750rpx;
  62. height: 340rpx;
  63. background-color: #0061ff;
  64. border-radius: 0 0 10rpx 10rpx;
  65. }
  66. // 背景文字区域样式
  67. .text_bg {
  68. position: absolute;
  69. top: 56rpx;
  70. left: 20rpx;
  71. color: #fff;
  72. font-size: 54rpx;
  73. font-weight: bold;
  74. }
  75. // 主体内容区域样式
  76. .body {
  77. position: relative;
  78. margin: auto;
  79. margin-top: -160rpx;
  80. padding: 0 50rpx;
  81. box-sizing: border-box;
  82. width: 710rpx;
  83. height: 775rpx;
  84. border-radius: 12rpx;
  85. background-color: #fff;
  86. overflow: hidden;
  87. .body_title {
  88. margin: 44rpx 0 34rpx 0;
  89. font-size: 40rpx;
  90. font-weight: bold;
  91. }
  92. .body_box {
  93. margin: auto;
  94. margin-bottom: 40rpx;
  95. padding: 0 30rpx 0 45rpx;
  96. box-sizing: border-box;
  97. display: flex;
  98. align-items: center;
  99. width: 607rpx;
  100. height: 110rpx;
  101. border-radius: 18rpx;
  102. background-color: #f2f4f9;
  103. .box_img {
  104. width: 40rpx;
  105. height: 40rpx;
  106. }
  107. .box_text {
  108. margin-left: 22rpx;
  109. color: #0061ff;
  110. font-size: 28rpx;
  111. }
  112. .box_icon {
  113. margin-left: auto;
  114. width: 31rpx;
  115. height: 31rpx;
  116. }
  117. }
  118. }
  119. }
  120. </style>