index.wxml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <nav type="back" background-color="#46a9a4" title="订单列表" />
  2. <block wx:for="{{list}}" wx:key="index">
  3. <view class="box" data-item="{{item}}" bindtap="orderdeils">
  4. <view class="order-number">
  5. <view class="number">订单号:{{item.orderNum}}</view>
  6. <block wx:if="{{item.status==100}}">
  7. <view class="state">已付款</view>
  8. </block>
  9. <block wx:if="{{item.status==200}}">
  10. <view class="state">已入住</view>
  11. </block>
  12. <block wx:if="{{item.status==200}}">
  13. <view class="state">续住</view>
  14. </block>
  15. <block wx:if="{{item.status==400}}">
  16. <view class="state">已退房</view>
  17. </block>
  18. <block wx:if="{{item.status==500}}">
  19. <view class="state">申请退款</view>
  20. </block>
  21. <block wx:if="{{item.status==601}}">
  22. <view class="state">退款审核通过</view>
  23. </block>
  24. <block wx:if="{{item.status==602}}">
  25. <view class="state">退款被驳回</view>
  26. </block>
  27. <block wx:if="{{item.status==00}}">
  28. <view class="state">退款成功</view>
  29. </block>
  30. <block wx:if="{{item.status==800}}">
  31. <view class="state">已完成</view>
  32. </block>
  33. </view>
  34. <view class="order-txt">
  35. <image class="order-image" src="{{item.images[0]}}" />
  36. <view class="order-name">
  37. <view class="name">{{item.room.name}}</view>
  38. <view class="order-price">¥{{item.room.price}}/晚</view>
  39. <view class="order-time">{{item.shopStore.address}}</view>
  40. </view>
  41. </view>
  42. <view class="order-times">
  43. <view class="order-date">
  44. <view class="date">{{item.orderTime}}——{{item.Time}}</view>
  45. <view class="sky">{{item.day}}晚</view>
  46. </view>
  47. <view class="price">¥{{item.price}}</view>
  48. </view>
  49. <!-- <view class="order-order">
  50. <view class="service">联系客服</view>
  51. <view class="service" >联系房东</view>
  52. <block wx:if="{{item.status==100}}">
  53. <view class="service" data-index="{{index}}" catchtap="delOrder">取消定单</view>
  54. </block>
  55. <block wx:if="{{item.status==200}}">
  56. <view class="service">申请退款</view>
  57. </block>
  58. <block wx:if="{{item.status==100}}">
  59. <view class="pay" data-item="{{item}}" catchtap="storepackage">去支付</view>
  60. </block>
  61. <block wx:if="{{item.status==200}}">
  62. <view class="pay">详情</view>
  63. </block>
  64. <block wx:if="{{item.status==400}}">
  65. <view class="pay" data-item="{{item}}" catchtap="evaluation">去评价</view>
  66. </block>
  67. </view> -->
  68. </view>
  69. </block>