index.wxml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <view class="container">
  2. <view class="status-box">
  3. <view bindtap="statusTap" class="status-label {{index == currentType ? 'active' : ''}}" wx:for-items="{{statusType}}" wx:key="{{index}}" data-index="{{index}}">
  4. {{item}}
  5. <view class="{{tabClass[index]}}" wx:if="{{index!=0}}"></view>
  6. </view>
  7. </view>
  8. <view class="no-order" hidden="{{orderList ? true : false}}">
  9. <image src="/images/no-order.png" class="no-order-img"></image>
  10. <view class="text">暂无订单</view>
  11. </view>
  12. <view class="order-list" hidden="{{orderList ? false : true}}">
  13. <view class="a-order" wx:for-items="{{orderList}}" wx:key="{{index}}">
  14. <view class="order-date">
  15. <view class="date-box">下单时间:{{item.orderDate}}</view>
  16. <view class="status {{(item.status==-1 || item.status==4) ? '':'red'}}">{{item.orderZhuangtai}}</view><!--{{item.orderZhuangtai}}-->
  17. </view>
  18. <view class="goods-info" bindtap="orderDetail" data-id="{{item.orderId}}">
  19. <view class="goods-des">
  20. <view>订单号:{{item.orderBianhao}} </view>
  21. <view wx:if="{{item.remark && item.remark != ''}}">备注: {{item.remark}}
  22. </view>
  23. </view>
  24. </view>
  25. <view class="price-box">
  26. <view class="total-price">合计:¥ {{item.sjfk}}</view>
  27. <view class="btn topay-btn" hidden="{{(item.orderZhuangtai!='已接单' && item.orderZhuangtai!='已取消') ? fslse : true}}" bindtap="toQuxiao" data-id="{{item.orderId}}" data-money="{{item.sjfk}}">取消</view>
  28. <view class="btn topay-btn" hidden="{{item.orderZhuangtai=='待支付'? fslse : true}}" bindtap="toPay" data-id="{{item.orderId}}" data-money="{{item.sjfk}}">支付</view>
  29. <view class="btn topay-btn" bindtap="toDel" data-id="{{item.orderId}}" data-money="{{item.sjfk}}">删除</view>
  30. </view>
  31. </view>
  32. </view>
  33. </view>