index.wxml 4.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <view>
  2. <view class="nav-bar">
  3. <view class="nav-bar-inner">
  4. <view bindtap="getOrder" wx:for="{{tabs}}" wx:key="id" class="nav-bar-item {{order_status==item.id?'current':''}}" data-type="{{item.id}}" style="{{order_status==item.id?'border-color:'+skin.color:''}}">
  5. {{item.name}}
  6. </view>
  7. </view>
  8. </view>
  9. <view class='nav-bar-content'>
  10. <!-- 订单项目 S -->
  11. <block wx:if="{{!is_empty}}">
  12. <view class="card" wx:for="{{order}}" wx:key="id" bindtap="goOrder" data-type="{{item.order_id}}" data-delivery="{{item.delivery}}">
  13. <i-card data-orderId="{{item.order_id}}" iClass="my-card" showModal="true">
  14. <view class="card-header" slot="header">
  15. <view>下单时间:
  16. <text>{{item.createTime}}</text>
  17. </view>
  18. <view class="bold {{item.order_status_id==3?'red':'gray'}}" style="{{item.order_status_id==3?'color:'+skin.color:''}}">
  19. <block wx:if="{{item.delivery=='hexiao'&&(item.order_status_id==3||item.order_status_id==4||item.order_status_id==11)}}">{{hexiaoStatus[item.order_status_id]}}</block>
  20. <block wx:else>{{item.status_name}}</block>
  21. </view>
  22. </view>
  23. <view class="card-content" slot="content">
  24. <view class="content-wrap" wx:if="{{item.is_pin==1}}">
  25. <i-img height="60" iClass="show-img mar-right-10" lazyLoad="true" loadImage="{{item.goods_list[0].goods_images}}" width="60"></i-img>
  26. <view class="i-flex-item">
  27. <view class="name bold">
  28. <text class="pintag" style="background:{{skin.color}}">拼团</text>
  29. {{item.goods_list[0].name}}
  30. </view>
  31. <view class="mount">{{item.goods_list[0].option_str}} x {{item.goods_list[0].quantity}}</view>
  32. <view class="bottom-info">¥{{item.goods_list[0].price}} <text>¥{{item.goods_list[0].orign_price}}</text></view>
  33. </view>
  34. </view>
  35. <view class="content-wrap" wx:else>
  36. <view class='clearfix'>
  37. <i-img wx:for="{{item.goods_list}}" wx:if="{{i_inx<4}}" wx:key="id" wx:for-item="img" wx:for-index="i_inx" height="60" iClass="show-img {{i_inx<4?'mar-right-10':''}}" lazyLoad="true" loadImage="{{img.goods_images}}" width="60"></i-img>
  38. </view>
  39. <view class="dot" wx:if="{{item.goods_list.length>=4}}">
  40. <view class="dot-item"></view>
  41. <view class="dot-item dot-middle"></view>
  42. <view class="dot-item"></view>
  43. </view>
  44. </view>
  45. </view>
  46. <view class="card-footer" slot="footer">
  47. <view>共
  48. <text class="i-class">{{item.goods_list.length}}</text> 件商品
  49. <view class="accual-pay" wx:if="{{item.orderStatus!=3}}">实付:
  50. <view class="money" wx:if="{{item.type=='integral'}}">
  51. <block wx:if="{{item.shipping_fare>0}}">¥{{item.shipping_fare}} + </block>{{item.score}}积分
  52. </view>
  53. <view class="money" wx:else>
  54. ¥{{item.total}}
  55. </view>
  56. </view>
  57. </view>
  58. <view class="button-group" wx:if="{{item.order_status_id==3}}">
  59. <view catchtap="cancelOrder" data-type="{{item.order_id}}" class="my-button" data-show="cancelVisible">取消订单</view>
  60. <view catchtap="preOrderPay" data-type="{{item.order_id}}" data-delivery="{{item.delivery}}" class="my-button-pay padding-15" style="background: linear-gradient(90deg, {{skin.color}} 0%, {{skin.light}} 100%)">
  61. 立即支付
  62. </view>
  63. </view>
  64. <view wx:if="{{item.order_status_id==4}}">
  65. <view data-type="{{item.order_id}}" class="my-button" size="small" wx:if="{{item.delivery=='hexiao'}}">去使用</view>
  66. <view data-type="{{item.order_id}}" class="get-goods" data-delivery="{{item.delivery}}" wx:else>
  67. <view class="sure-get">{{item.delivery=="pickup"?"确认提货":"确认收货"}}</view>
  68. <image class="right-arrow" src="../../images/rightArrowImg.png"></image>
  69. </view>
  70. </view>
  71. <view wx:if="{{item.order_status_id==1||item.order_status_id==6||item.order_status_id==11||item.order_status_id==14}}">
  72. <view data-type="{{item.order_id}}" class="my-button" size="small">查看详情</view>
  73. </view>
  74. </view>
  75. </i-card>
  76. </view>
  77. </block>
  78. <view class="empty-wrap" wx:else>
  79. <image class="empty-img" src="../../images/noData.png"></image>
  80. <view class="empty-txt">暂无任何订单记录~</view>
  81. </view>
  82. <!-- 订单项目 E -->
  83. <i-loadMore tip="{{tip}}" wx:if="{{!isHideLoadMore}}"></i-loadMore>
  84. </view>
  85. </view>