appointment.scss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  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. align-items: center;
  44. justify-content: space-between;
  45. gap: 12rpx;
  46. }
  47. .service-name {
  48. font-size: 32rpx;
  49. font-weight: 500;
  50. color: #333;
  51. }
  52. .service-duration {
  53. font-size: 28rpx;
  54. color: #999;
  55. }
  56. // 时间选择卡片
  57. .time-selection-card {
  58. background: #fff;
  59. margin: 0 20rpx 20rpx 20rpx;
  60. padding: 20rpx;
  61. border-radius: 16rpx;
  62. box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
  63. }
  64. .time-selection-header {
  65. display: flex;
  66. align-items: center;
  67. justify-content: center;
  68. position: relative;
  69. background: white;
  70. border-radius: 12rpx;
  71. padding: 24rpx 32rpx;
  72. }
  73. .time-selection-title {
  74. font-size: 30rpx;
  75. font-weight: 500;
  76. color: #333;
  77. text-align: center;
  78. width: 100%;
  79. }
  80. .time-selection-icon {
  81. position: absolute;
  82. right: 32rpx;
  83. top: 50%;
  84. transform: translateY(-50%);
  85. display: flex;
  86. align-items: center;
  87. }
  88. // 日期选择器
  89. .date-selector {
  90. display: flex;
  91. gap: 12rpx;
  92. margin: 24rpx 0 32rpx 0;
  93. overflow-x: auto;
  94. padding-bottom: 8rpx;
  95. align-items: center;
  96. }
  97. .date-item {
  98. flex: 1;
  99. min-width: 0;
  100. display: flex;
  101. flex-direction: column;
  102. align-items: center;
  103. padding: 16rpx 18rpx;
  104. border-radius: 12rpx;
  105. background: white;
  106. border: 2rpx solid transparent;
  107. transition: all 0.3s ease;
  108. &:active {
  109. transform: scale(0.95);
  110. }
  111. }
  112. .date-item--selected {
  113. background: #f0faf0;
  114. border-color: #4caf50;
  115. border-radius: 12rpx;
  116. }
  117. .date-label {
  118. font-size: 24rpx;
  119. color: #999;
  120. margin-bottom: 6rpx;
  121. }
  122. .date-item--selected .date-label {
  123. color: #4caf50;
  124. font-weight: 600;
  125. }
  126. .date-value {
  127. font-size: 26rpx;
  128. color: #333;
  129. font-weight: 500;
  130. }
  131. .date-item--selected .date-value {
  132. color: #4caf50;
  133. font-weight: 600;
  134. }
  135. // 时间选择网格 - 5列
  136. // 用背景色+gap实现网格线,避免border导致rpx舍入溢出
  137. .time-grid {
  138. display: flex;
  139. flex-wrap: wrap;
  140. background: #e8e8e8;
  141. gap: 1rpx;
  142. width: 100%;
  143. box-sizing: border-box;
  144. border: 1rpx solid #e8e8e8;
  145. border-bottom: none;
  146. }
  147. .time-slot {
  148. width: calc((100% - 4rpx) / 5);
  149. text-align: center;
  150. font-size: 26rpx;
  151. color: #333;
  152. background: #fff;
  153. border-bottom: 1rpx solid #e8e8e8;
  154. border-radius: 0;
  155. transition: all 0.3s ease;
  156. display: flex;
  157. align-items: center;
  158. justify-content: center;
  159. min-height: 96rpx;
  160. box-sizing: border-box;
  161. padding: 0;
  162. &:active:not(.time-slot--disabled):not(.time-slot--selected) {
  163. background: #fafafa;
  164. }
  165. }
  166. .time-slot--selected {
  167. background: #1d6ff6 !important;
  168. color: #fff !important;
  169. font-weight: 500;
  170. z-index: 1;
  171. position: relative;
  172. }
  173. .time-slot--disabled {
  174. background: #fff;
  175. color: #ccc;
  176. opacity: 0.6;
  177. }
  178. // 底部安全区占位
  179. .safe-bottom-spacer {
  180. height: 120rpx;
  181. }
  182. // 提交按钮
  183. .submit-footer {
  184. position: fixed;
  185. bottom: 0;
  186. left: 0;
  187. right: 0;
  188. width: 100%;
  189. background: #fff;
  190. padding: 20rpx 20rpx calc(20rpx + env(safe-area-inset-bottom));
  191. box-shadow: 0 -4rpx 20rpx rgba(0, 0, 0, 0.08);
  192. z-index: 100;
  193. box-sizing: border-box;
  194. }
  195. .submit-btn {
  196. width: 100%;
  197. height: 88rpx;
  198. line-height: 88rpx;
  199. text-align: center;
  200. background: #1d6ff6;
  201. color: #fff;
  202. font-size: 32rpx;
  203. font-weight: 600;
  204. border-radius: 44rpx;
  205. transition: all 0.3s ease;
  206. &:active {
  207. opacity: 0.9;
  208. transform: scale(0.98);
  209. }
  210. }
  211. // ========================================
  212. // TDesign Calendar Skyline 兼容性覆盖
  213. // Skyline 不支持 CSS Grid,用 flexbox 替代
  214. // 利用组件 styleIsolation: apply-shared 注入样式
  215. // ========================================
  216. .t-calendar__days {
  217. display: flex !important;
  218. flex-wrap: wrap !important;
  219. }
  220. .t-calendar__days-item {
  221. width: 14.2857% !important;
  222. box-sizing: border-box !important;
  223. text-align: center !important;
  224. }
  225. .t-calendar__dates {
  226. display: flex !important;
  227. flex-wrap: wrap !important;
  228. }
  229. .t-calendar__dates-item {
  230. width: 14.2857% !important;
  231. box-sizing: border-box !important;
  232. }