serviceDetail.wxml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <view class="service-detail-page">
  2. <view class="order-main-top">
  3. <view class="order-main-left">
  4. <view class="order-detail-status">
  5. {{orderBook.status==3||orderBook.status==4?'订单已完成':(orderBook.status==6?'订单已取消':'订单服务中')}}
  6. </view>
  7. <view class="order-detail-des"
  8. wx:if="{{orderBook.status==2&&bookCount>=1}}">
  9. 您剩余{{bookCount}}次保洁次卡可预约
  10. </view>
  11. </view>
  12. <view class="order-main-right">
  13. <view class="service-times">
  14. <text class="current-times">{{orderBook.servicedTimes}}</text>/{{orderBook.serviceTimes}}
  15. </view>
  16. </view>
  17. </view>
  18. <!-- 订单详情信息 -->
  19. <view class="service-info">
  20. <view class="info-title">
  21. {{orderBook.goodsName}} 鲸致生活
  22. </view>
  23. <view class="info-content">
  24. <image mode="aspectFit" class="product-img"
  25. src="{{goods.picUrl}}"></image>
  26. <view class="info-detail">
  27. <view>规格:1</view>
  28. <view>服务次数:{{orderBook.serviceTimes}}</view>
  29. <view>单价:¥ {{goods.retailPrice}} 元</view>
  30. </view>
  31. </view>
  32. </view>
  33. <!-- 次卡列表 -->
  34. <van-tabs active="{{ activeTab }}" color="#09afff" bind:change="onTabChange">
  35. <van-tab title="未使用" name="1"></van-tab>
  36. <van-tab title="已使用" name="2"></van-tab>
  37. </van-tabs>
  38. <view class="service-list">
  39. <view class="service-item" wx:for="{{serList}}" wx:key="index">
  40. <view class="service-item-top">
  41. <view class="item-left">
  42. <image mode="aspectFit" class="ci-img"
  43. src="/static/images/icon-ci.png"></image>
  44. <text>服务次卡</text>
  45. </view>
  46. <view class="service-item-status">{{activeTab=='2'?'服务已完成':(item.status===0?'未预约':'已预约')}}</view>
  47. </view>
  48. <view class="service-item-bottom">
  49. <!-- <view class="go-appoint" wx:if="{{item.status===0&&activeTab=='1'}}" bindtap="showAppoint" data-id="{{item.id}}">去预约</view> -->
  50. <view class="service-time" >
  51. <text>预约时间:</text>
  52. <text>{{item.bookTime}}</text>
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. <view class="no-list" wx:if="{{serList.length==0}}">没有更多了</view>
  58. <!-- custom-style="height: 80%" -->
  59. <van-popup
  60. show="{{ choosePopup }}"
  61. round
  62. position="bottom"
  63. bind:click-overlay="onClose"
  64. >
  65. <view class="popup-wrapper">
  66. <!-- 标题 -->
  67. <view class="popup-title">
  68. 选择预约时间
  69. </view>
  70. <block>
  71. <view class="popup-content">
  72. <view class="time-select-left">
  73. <view wx:for="{{dateList}}" wx:key="index" class="time-select-left-item" bindtap="dateCheck" data-index="{{index}}">
  74. <view hidden="{{index>1}}" class="date-tag">{{index==0?'明天':'后天'}}</view>
  75. <view class="{{dateIndex==index?'current-date':''}}">{{item.date+' '+item.week}}</view>
  76. </view>
  77. </view>
  78. <view class="time-select-right">
  79. <view wx:for="{{timeList}}" wx:key="id" class="time-select-right-item" bindtap="timeCheck" data-index="{{index}}">
  80. <view class="{{timeIndex==index?'current-date':''}}">{{item.time}}</view>
  81. <view wx:if="{{timeIndex==index}}" class="date-tag">已选</view>
  82. </view>
  83. </view>
  84. </view>
  85. </block>
  86. </view>
  87. <!-- 确认按钮 -->
  88. <view class="popup-btn-wrapper">
  89. <van-button type="info" block round bindtap="confirmTime">确定</van-button>
  90. </view>
  91. </van-popup>
  92. </view>