appointment.scss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. @import "../../../../themes/t.cell.scss";
  2. @import "../../../../themes/page.scss";
  3. /* module/order/pages/appointment/appointment.wxss */
  4. .page-scroll__container {
  5. flex: 0 1 auto;
  6. height: var(--page-container-safeHeight, 100vh);
  7. background: #f7f8fa;
  8. padding-bottom: 120rpx;
  9. }
  10. // 服务信息卡片
  11. .service-card {
  12. display: flex;
  13. align-items: center;
  14. background: #fff;
  15. margin: 20rpx;
  16. padding: 24rpx;
  17. border-radius: 16rpx;
  18. box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
  19. }
  20. .service-image {
  21. width: 120rpx;
  22. height: 120rpx;
  23. border-radius: 12rpx;
  24. margin-right: 24rpx;
  25. flex-shrink: 0;
  26. background: #f5f5f5;
  27. }
  28. .service-placeholder {
  29. width: 120rpx;
  30. height: 120rpx;
  31. border-radius: 12rpx;
  32. margin-right: 24rpx;
  33. flex-shrink: 0;
  34. background: #f5f5f5;
  35. display: flex;
  36. align-items: center;
  37. justify-content: center;
  38. font-size: 48rpx;
  39. }
  40. .service-info {
  41. flex: 1;
  42. display: flex;
  43. // flex-direction: column;
  44. align-items: center;
  45. justify-content: space-between;
  46. gap: 12rpx;
  47. }
  48. .service-name {
  49. font-size: 32rpx;
  50. font-weight: 500;
  51. color: #333;
  52. }
  53. .service-duration {
  54. font-size: 28rpx;
  55. color: #666;
  56. }
  57. // 时间选择卡片
  58. .time-selection-card {
  59. background: #fff;
  60. margin: 0 20rpx 20rpx 20rpx;
  61. // padding: 32rpx;
  62. padding: 20rpx;
  63. border-radius: 16rpx;
  64. box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
  65. }
  66. .time-selection-header {
  67. display: flex;
  68. align-items: center;
  69. justify-content: center;
  70. position: relative;
  71. background: white;
  72. border-radius: 12rpx;
  73. padding: 24rpx 32rpx;
  74. }
  75. .time-selection-title {
  76. font-size: 30rpx;
  77. font-weight: 500;
  78. color: black;
  79. text-align: center;
  80. width: 100%;
  81. }
  82. .time-selection-icon {
  83. position: absolute;
  84. right: 32rpx;
  85. top: 50%;
  86. transform: translateY(-50%);
  87. display: flex;
  88. align-items: center;
  89. }
  90. // 日期选择器
  91. .date-selector {
  92. display: flex;
  93. gap: 12rpx;
  94. margin-bottom: 32rpx;
  95. overflow-x: auto;
  96. padding-bottom: 8rpx;
  97. align-items: center;
  98. justify-content: space-between;
  99. }
  100. .date-item {
  101. flex-shrink: 0;
  102. display: flex;
  103. flex-direction: column;
  104. align-items: center;
  105. padding: 16rpx 18rpx;
  106. border-radius: 12rpx;
  107. // background: #f7f8fa;
  108. background: white;
  109. border: 2rpx solid transparent;
  110. transition: all 0.3s ease;
  111. // min-width: 100rpx;
  112. &:active {
  113. transform: scale(0.95);
  114. }
  115. }
  116. .date-item--selected {
  117. // 选中状态样式在子元素中定义
  118. position: relative;
  119. }
  120. .date-label {
  121. font-size: 24rpx;
  122. color: #666;
  123. margin-bottom: 6rpx;
  124. }
  125. .date-item--selected .date-label {
  126. color: #4caf50;
  127. font-weight: 600;
  128. }
  129. .date-value {
  130. font-size: 26rpx;
  131. color: #333;
  132. font-weight: 500;
  133. }
  134. .date-item--selected .date-value {
  135. color: #4caf50;
  136. font-weight: 600;
  137. }
  138. // 时间选择网格 - 5行5列表格
  139. .time-grid {
  140. display: flex;
  141. flex-wrap: wrap;
  142. border: 1rpx solid #e0e0e0;
  143. border-radius: 0;
  144. background: #fff;
  145. width: 100%;
  146. box-sizing: border-box;
  147. }
  148. .time-slot {
  149. width: 20%;
  150. text-align: center;
  151. font-size: 28rpx;
  152. color: #000;
  153. background: #fff;
  154. border-right: 1rpx solid #e0e0e0;
  155. border-bottom: 1rpx solid #e0e0e0;
  156. border-radius: 0;
  157. transition: all 0.3s ease;
  158. display: flex;
  159. align-items: center;
  160. justify-content: center;
  161. min-height: 88rpx;
  162. box-sizing: border-box;
  163. padding: 0;
  164. flex-shrink: 0;
  165. // 每行最后一个去掉右边框
  166. &:nth-child(5n) {
  167. border-right: none;
  168. }
  169. // 最后一行去掉下边框
  170. &:nth-child(n+21) {
  171. border-bottom: none;
  172. }
  173. &:active:not(.time-slot--disabled):not(.time-slot--selected) {
  174. background: #fafafa;
  175. }
  176. }
  177. .time-slot--selected {
  178. background: #1d6ff6 !important;
  179. border-color: #1d6ff6 !important;
  180. color: #fff !important;
  181. font-weight: 500;
  182. z-index: 1;
  183. position: relative;
  184. }
  185. .time-slot--disabled {
  186. background: #fff;
  187. border-color: #e0e0e0;
  188. color: #ccc;
  189. opacity: 0.6;
  190. }
  191. // 底部安全区占位
  192. .safe-bottom-spacer {
  193. height: 120rpx;
  194. }
  195. // 提交按钮
  196. .submit-footer {
  197. position: fixed;
  198. bottom: 0;
  199. left: 0;
  200. right: 0;
  201. width: 100%;
  202. background: #fff;
  203. padding: 20rpx;
  204. box-shadow: 0 -4rpx 20rpx rgba(0, 0, 0, 0.08);
  205. z-index: 100;
  206. box-sizing: border-box;
  207. }
  208. .submit-btn {
  209. width: 100%;
  210. height: 88rpx;
  211. line-height: 88rpx;
  212. text-align: center;
  213. background: linear-gradient(135deg, #1d6ff6 0%, #4a90ff 100%);
  214. color: #fff;
  215. font-size: 32rpx;
  216. font-weight: 600;
  217. border-radius: 44rpx;
  218. box-shadow: 0 4rpx 12rpx rgba(29, 111, 246, 0.3);
  219. transition: all 0.3s ease;
  220. &:active {
  221. opacity: 0.9;
  222. transform: scale(0.98);
  223. box-shadow: 0 2rpx 8rpx rgba(29, 111, 246, 0.4);
  224. }
  225. }