appointment.wxml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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"></view>
  9. <view class="ac-name">测试用户</view>
  10. </view>
  11. <view class="ac-right ac-item ittflex-jcs">
  12. <text class="ac-count">100</text>
  13. <text class="ac-unit">次</text>
  14. </view>
  15. </view>
  16. </view>
  17. <view class="address">
  18. <view class="ad-title sub-title">上门检测地址</view>
  19. <view wx:if="{{!hasAddress}}" class="no-address chose-address ittflex" bindtap="handleChoseAddress">选择上门服务地址</view>
  20. <view wx:else class="address-card ittflex-jcs">
  21. <view class="ad-left">
  22. <view class="ad-top ittflex-jcs">
  23. <text class="ad-name">测试用户</text>
  24. <text class="ad-phone">18626576880</text>
  25. </view>
  26. <view class="ad-bottom address-detail">
  27. {{address}}
  28. </view>
  29. </view>
  30. <view class="ad-right ittflex">
  31. <view class="chose-address-btn {{appointmentSuccess ? 'itt-btn-disabled' : 'itt-btn'}}" bindtap="handleChangeAddress">更换地址</view>
  32. </view>
  33. </view>
  34. <view class="ad-tips">注:预约成功后,检测地址不允许更改</view>
  35. </view>
  36. <view class="calendar-wy">
  37. <view class="sub-title ca-title">预约上门服务时间</view>
  38. <view class="calendar-card">
  39. <view class="calendar-card-header">
  40. <view class="curr-date">
  41. <text>{{curYear}}年{{curMonth}}月</text>
  42. </view>
  43. <view class="cal-tips ittflex">
  44. <view class="warn-icon"></view>
  45. <text class="warn-text">代表繁忙时间</text>
  46. </view>
  47. </view>
  48. <van-calendar title="日历" class="calendar"
  49. poppable="{{ false }}"
  50. show-mark="{{false}}"
  51. show-title="{{false}}"
  52. show-confirm="{{false}}"
  53. first-day-of-week="{{ 1 }}"
  54. show-subtitle="{{false}}"
  55. color="{{calendarcolor}}"
  56. max-date="{{maxDate}}"
  57. default-date="{{defaultDate}}"
  58. formatter="{{ formatter }}"
  59. row-height="45"
  60. bind:select="handleSelect"
  61. />
  62. </view>
  63. <view class="time-list ittflex">
  64. <view class="time-a time-item time-nurse {{timeActive == '0' ? 'time-active' : ''}}" data-time="0" bindtap="handleTime">
  65. <text class="t-text">8:00-12:00</text>
  66. <!-- <text class="time-nurse-text">剩余紧张</text> -->
  67. </view>
  68. <view class="time-b time-item {{timeActive == '1' ? 'time-active' : ''}}" data-time="1" bindtap="handleTime">
  69. <text class="t-text">13:00-18:00</text>
  70. </view>
  71. <view class="time-c time-item {{timeActive == '2' ? 'time-active' : ''}}" data-time="2" bindtap="handleTime">
  72. <text class="t-text">18:00-21:00</text>
  73. </view>
  74. </view>
  75. </view>
  76. <view class="footer-actions ittflex-jcb">
  77. <view class="f-btn cancel-btn ittflex">取消</view>
  78. <view class="f-btn confirm-btn itt-btn" bindtap="handleConfirm">确定</view>
  79. </view>
  80. <van-dialog
  81. title="您当前的检测次数为0,先充值次数"
  82. show="{{ dialogsShow }}"
  83. show-cancel-button
  84. confirm-button-text="去充值"
  85. confirm-button-color="#333"
  86. cancel-button-text="实体卡激活"
  87. cancel-button-color="#666"
  88. bind:confirm="handleCharge"
  89. bind:cancel="handleActiveCard"
  90. >
  91. </van-dialog>
  92. </view>
  93. </view>