scheduleCalc.wxml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <view>
  2. <view class="calc-condition">
  3. <view class="calc-item">
  4. <view class="calc-tip">*</view>
  5. <view class="calc-title">服务类型</view>
  6. <view class="select-result">保洁固定</view>
  7. </view>
  8. <view class="calc-item">
  9. <view class="calc-tip">*</view>
  10. <view class="calc-title">服务次数</view>
  11. <view class="select-result" bindtap="serviceTimesTap">{{serviceTimes}}</view>
  12. </view>
  13. <view class="calc-item">
  14. <view class="calc-tip">*</view>
  15. <view class="calc-title">首次时间</view>
  16. <view class="select-result" bindtap="dateSelect">{{firstDate}}</view>
  17. </view>
  18. <view class="calc-item">
  19. <view class="calc-tip">*</view>
  20. <view class="calc-title">服务频率</view>
  21. <view class="select-result" bindtap="frequencySelect">{{serviceFrequency}}</view>
  22. </view>
  23. </view>
  24. <view class="calc-btn" bindtap="caclSchedule">计算预估
  25. </view>
  26. <!-- 档期结果 -->
  27. <view class="calc-result">
  28. <view class="result-item">
  29. <image mode="aspectFit" src="/static/images/upgrade/icon-wydq.png"></image>
  30. <view class="number">{{scheduleData.mastUseCount}}</view>
  31. <view class="desc">我有档期</view>
  32. </view>
  33. <view class="result-item">
  34. <image mode="aspectFit" src="/static/images/upgrade/icon-qtjm.png"></image>
  35. <view class="number">{{scheduleData.otherUseCount}}</view>
  36. <view class="desc">其他姐妹</view>
  37. </view>
  38. <view class="result-item">
  39. <image mode="aspectFit" src="/static/images/upgrade/icon-dml.png"></image>
  40. <view class="number">{{scheduleData.unUseCount}}</view>
  41. <view class="desc">都满啦</view>
  42. </view>
  43. </view>
  44. <view class="schedule-block" wx:if="{{scheduleData.monthData.length>0}}">
  45. <view class="schedule-detail" wx:for="{{scheduleData.monthData}}" wx:key="index1"
  46. wx:for-item="item1" wx:for-index="index1">
  47. <view class="detail-left">
  48. <view class="month">{{item1.month}}</view>
  49. <view class="amount">{{item1.amount}}次</view>
  50. </view>
  51. <view class="detail-link">
  52. <view class="circle"></view>
  53. <view class="line" wx:if="{{index1<scheduleData.monthData.length-1}}"></view>
  54. </view>
  55. <view class="detail-right">
  56. <view class="date-item" wx:for="{{item1.list}}" wx:for-item="item2" wx:key="index2">
  57. <view class="{{item2.tips=='其他姐妹'?'isOther':''}} {{item2.tips=='无档期'?'isNone':''}} date">{{item2.date}}</view>
  58. <view class="{{item2.tips=='无档期'?'isNone':''}} date-tips">{{item2.tips}}</view>
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. <!-- 弹框 -->
  64. <van-popup show="{{showPicker}}" position="bottom">
  65. <van-datetime-picker
  66. wx:if="{{showPicker&&datePicker}}"
  67. type="date"
  68. value="{{ currentDate }}"
  69. bind:cancel="dateCancel"
  70. bind:confirm="dateConfirm"
  71. bind:input="onDateInput"
  72. />
  73. <van-picker show-toolbar columns="{{columns}}"
  74. bind:cancel="pickerCancel" bind:confirm="pickerConfirm"
  75. wx:if="{{showPicker&&!datePicker}}"
  76. />
  77. </van-popup>
  78. </view>