appointment.wxml 4.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <!--pages/appointment/appointment.wxml-->
  2. <view class="appointment">
  3. <view class="main-con">
  4. <view class="account">
  5. <view class="ac-title sub-title">账户信息</view>
  6. <view class="ac-card ittflex-jcs">
  7. <view class="ac-left ac-item ittflex-jcs">
  8. <view class="ac-avat">
  9. <image class="headimg" src="{{appuserheadimg}}"></image>
  10. </view>
  11. <view class="ac-name">{{appusername}}</view>
  12. </view>
  13. <view class="ac-right ac-item ittflex-jcs">
  14. <text class="ac-count">{{accountNumber}}</text>
  15. <text class="ac-unit">次</text>
  16. </view>
  17. </view>
  18. </view>
  19. <view class="address">
  20. <view class="ad-title sub-title">上门检测地址</view>
  21. <view wx:if="{{!hasAddress}}" class="no-address chose-address ittflex" bindtap="handleChoseAddress">选择上门服务地址</view>
  22. <view wx:else class="address-card ittflex-jcs">
  23. <view class="ad-left">
  24. <view class="ad-top ittflex-jcs">
  25. <text class="ad-name">{{contactName}}</text>
  26. <text class="ad-phone">{{contactPhone}}</text>
  27. </view>
  28. <view class="ad-bottom address-detail">
  29. {{address}}
  30. </view>
  31. </view>
  32. <view class="ad-right ittflex">
  33. <view class="chose-address-btn {{appointmentSuccess ? 'itt-btn-disabled' : 'itt-btn'}}" bindtap="handleChangeAddress">更换地址</view>
  34. </view>
  35. </view>
  36. <view class="ad-tips">注:预约成功后,检测地址不允许更改</view>
  37. </view>
  38. <view class="calendar-wy">
  39. <view class="sub-title ca-title">预约上门服务时间</view>
  40. <view class="calendar-card">
  41. <view class="calendar-card-header">
  42. <view class="curr-date">
  43. <text>{{curYear}}年{{curMonth}}月</text>
  44. </view>
  45. <view class="cal-tips ittflex">
  46. <view class="warn-icon"></view>
  47. <text class="warn-text">代表繁忙时间</text>
  48. </view>
  49. </view>
  50. <view class="calendar-card-body">
  51. <view class="week-header ittflex-jcs">
  52. <view class="week-item">日</view>
  53. <view class="week-item">一</view>
  54. <view class="week-item">二</view>
  55. <view class="week-item">三</view>
  56. <view class="week-item">四</view>
  57. <view class="week-item">五</view>
  58. <view class="week-item">六</view>
  59. </view>
  60. <view class="week-body">
  61. <view class="week-body-item backup-week-body-item {{item.disabled ? 'week-body-item-disabled' : ''}} {{item.date == '约满' ? 'week-body-item-full' : ''}}" wx:for="{{backupWeekList}}" wx:key="index">
  62. <view class="date">{{item.date}}</view>
  63. </view>
  64. <view class="week-body-item {{noralitem.disabled ? 'week-body-item-disabled' : ''}} {{noralitem.active ? 'week-body-item-active' : ''}} {{noralitem.date == '约满' ? 'week-body-item-full' : ''}}" wx:for="{{weekList}}" wx:key="index" wx:for-item="noralitem">
  65. <view class="date" data-date="{{noralitem.dateStr}}" data-disabled="{{noralitem.disabled}}" data-index="{{index}}" bindtap="handleSelectDate">{{noralitem.date}}</view>
  66. <view wx:if="{{noralitem.busy}}" class="week-body-item-active-busy-dot"></view>
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. <view class="time-list ittflex">
  72. <view class="time-a time-item time-nurse {{timeActive == '1' ? 'time-active' : ''}} {{durationOneBusy ? 'time-item-disabled' : ''}}" data-time="1" data-dis="{{durationOneBusy}}" bindtap="handleTime">
  73. <text class="t-text">08:30-12:00</text>
  74. <text class="time-nurse-text" wx:if="{{durationOne}}">
  75. <text>{{durationOneBusy ? '约满':'剩余紧张'}}</text>
  76. </text>
  77. </view>
  78. <view class="time-b time-item time-nurse {{timeActive == '2' ? 'time-active' : ''}} {{durationTwoBusy ? 'time-item-disabled' : ''}}" data-dis="{{durationTwoBusy}}" data-time="2" bindtap="handleTime">
  79. <text class="t-text">12:30-17:00</text>
  80. <text class="time-nurse-text" wx:if="{{durationTwo}}">
  81. <text>{{durationTwoBusy ? '约满':'剩余紧张'}}</text>
  82. </text>
  83. </view>
  84. <view class="time-c time-item time-nurse {{timeActive == '3' ? 'time-active' : ''}} {{durationThreeBusy ? 'time-item-disabled' : ''}}" data-dis="{{durationThreeBusy}}" data-time="3" bindtap="handleTime">
  85. <text class="t-text">18:30-21:30</text>
  86. <text class="time-nurse-text" wx:if="{{durationThree}}">
  87. <text>{{durationThreeBusy ? '约满':'剩余紧张'}}</text>
  88. </text>
  89. </view>
  90. </view>
  91. </view>
  92. <view class="footer-actions ittflex-jcb">
  93. <button plain="" class="f-btn cancel-btn ittflex" bindtap="handleCancel">取消</button>
  94. <button class="f-btn confirm-btn itt-btn" bindtap="handleConfirm">确定</button>
  95. </view>
  96. </view>
  97. </view>