index.wxml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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==400}}">
  13. <view class="state">未评价</view>
  14. </block>
  15. <block wx:if="{{item.status==500}}">
  16. <view class="state">申请退款</view>
  17. </block>
  18. <block wx:if="{{item.status==601}}">
  19. <view class="state">退款审核通过</view>
  20. </block>
  21. <block wx:if="{{item.status==602}}">
  22. <view class="state">退款被驳回</view>
  23. </block>
  24. <block wx:if="{{item.status==700}}">
  25. <view class="state">退款成功</view>
  26. </block>
  27. <block wx:if="{{item.status==800}}">
  28. <view class="state">已完成</view>
  29. </block>
  30. </view>
  31. <view class="order-txt" data-item="{{item}}">
  32. <image class="order-image" src="{{item.image}}" />
  33. <view class="order-name">
  34. <view>{{item.name}}</view>
  35. <view class="order-price">¥{{item.price}}</view>
  36. <view class="order-time">下单用户:{{item.user.mobile ? item.user.mobile : '暂无' }}</view>
  37. <view class="order-time">下单时间:{{item.time}}</view>
  38. </view>
  39. </view>
  40. <!-- <view class="order-order">
  41. <block wx:if="{{item.status == 800}}">
  42. <view class="pay" data-item="{{item}}" catchtap="orderpay">订单详情</view>
  43. </block>
  44. <block wx:if="{{item.status==100}}">
  45. <view class="service" data-index="{{index}}" catchtap="delOrder">取消定单</view>
  46. </block>
  47. <block wx:if="{{item.status==200}}">
  48. <view class="service">申请退款</view>
  49. </block>
  50. <block wx:if="{{item.status==100}}">
  51. <view class="pay" data-item="{{item}}" catchtap="storepackage">去支付</view>
  52. </block>
  53. <block wx:if="{{item.status==200}}">
  54. <view class="pay" data-item="{{item}}" catchtap="orderpay">去使用</view>
  55. </block>
  56. <block wx:if="{{item.status==400}}">
  57. <view class="pay" data-item="{{item}}" catchtap="evaluation">去评价</view>
  58. </block>
  59. </view> -->
  60. </view>
  61. </block>