showMy.wxml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <view wx:if="{{loading}}" class='loading'>
  2. <van-loading color="#fff" size="80rpx" custom-class='loading-spin'/>
  3. </view>
  4. <view wx:if="{{orders !== '' && orders.length === 0}}" class='no-order'>你还没有订单呢</view>
  5. <!--<van-dialog id="van-dialog" />-->
  6. <block wx:for="{{orders}}" wx:key="{{order.id}}" wx:for-item="order">
  7. <van-card
  8. num="{{order.customerNumber}}人"
  9. price="{{order.service_id.price}}"
  10. desc="服务时间: {{order.service_id.formatDate}} 的 {{order.service_id.formatStartTime}} ~ {{order.service_id.formatEndTime}}"
  11. title="{{order.service_id.description}}"
  12. custom-class="card"
  13. title-class="title"
  14. desc-class="description"
  15. num-class="count"
  16. price-class="price"
  17. >
  18. <view slot="footer">
  19. <van-button
  20. wx:if="{{kind==='success'}}"
  21. id="{{order.id}}"
  22. data-count="{{order.service_id.repertory_id.count}}"
  23. data-repertoryid="{{order.service_id.repertory_id.id}}"
  24. bind:click="cancelThis"
  25. size="small"
  26. type='danger'
  27. >
  28. 取消
  29. </van-button>
  30. <van-button
  31. wx:else
  32. id="{{order.id}}"
  33. data-count="{{order.service_id.repertory_id.count}}"
  34. bind:click="deleteThis"
  35. size="small"
  36. >
  37. 删除
  38. </van-button>
  39. </view>
  40. </van-card>
  41. </block>