appointment.wxml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!--module/order/pages/appointment/appointment.wxml-->
  2. <t-navbar title="预约" left-arrow />
  3. <scroll-view class="page-scroll__container" type="list" scroll-y style="{{containerStyle}}">
  4. <!-- 服务信息卡片 -->
  5. <view class="service-card">
  6. <image class="service-image" src="{{goodsInfo.image}}" mode="aspectFill" wx:if="{{goodsInfo.image}}" />
  7. <view class="service-placeholder" wx:else>
  8. <text class="placeholder-icon">📦</text>
  9. </view>
  10. <view class="service-info">
  11. <text class="service-name">{{goodsInfo.name}}</text>
  12. <text class="service-duration">{{goodsInfo.duration}}分钟</text>
  13. </view>
  14. </view>
  15. <!-- 时间选择区域 -->
  16. <view class="time-selection-card">
  17. <view class="time-selection-header">
  18. <text class="time-selection-title">请选择开始服务时间</text>
  19. <view class="time-selection-icon" bindtap="onOpenCalendar">
  20. <t-icon name="calendar" size="40rpx" color="#000" />
  21. </view>
  22. </view>
  23. <!-- 日期选择 -->
  24. <view class="date-selector">
  25. <view class="date-item {{item.isSelected ? 'date-item--selected' : ''}}" wx:for="{{dateList}}" wx:key="date" bindtap="onDateSelect" data-index="{{index}}">
  26. <text class="date-label">{{item.label}}</text>
  27. <text class="date-value">{{item.dateStr}}</text>
  28. </view>
  29. </view>
  30. <!-- 时间选择网格 -->
  31. <view class="time-grid">
  32. <view class="time-slot {{item.isSelected ? 'time-slot--selected' : ''}} {{item.isDisabled ? 'time-slot--disabled' : ''}}" wx:for="{{timeSlots}}" wx:key="time" bindtap="onTimeSelect" data-index="{{index}}" data-time="{{item.time}}">
  33. {{item.time}}
  34. </view>
  35. </view>
  36. </view>
  37. <!-- 底部安全区占位 -->
  38. <view class="safe-bottom-spacer"></view>
  39. </scroll-view>
  40. <!-- 提交按钮 -->
  41. <view class="submit-footer">
  42. <view class="submit-btn" bindtap="onSubmit">
  43. 提交预约
  44. </view>
  45. </view>
  46. <!-- 日期选择弹窗 -->
  47. <t-calendar visible="{{ show }}" title="日期选择" bind:close="onClose" bind:confirm="onCalendarSelect" />