promotion-order.wxml 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <!--pages/promotion-order/promotion-order.wxml-->
  2. <view class='container'>
  3. <view class='pro-order'>
  4. <view class='title'>
  5. <!-- (0:待支付 1:待结算 2:已结算 -1:订单失效) -->
  6. <text bindtap='onStsTap' data-state="0" class="{{state==0?'on':''}}">全部</text>
  7. <text bindtap='onStsTap' data-state="1" class="{{state==1?'on':''}}">未结算</text>
  8. <text bindtap='onStsTap' data-state="2" class="{{state==2?'on':''}}">已结算</text>
  9. <text bindtap='onStsTap' data-state="-1" class="{{state==-1?'on':''}}">已失效</text>
  10. </view>
  11. <!-- 推广订单列表 -->
  12. <view class='main' >
  13. <view class='prod-item' wx:for="{{records}}" wx:key="id">
  14. <view class="order-num">
  15. <text>订单编号:{{item.orderNumber}}</text>
  16. <view class='order-state'>
  17. <text class="order-sts {{item.status==2?'red':''}} {{(item.status==1)?'gray':''}}">
  18. {{item.status==1?'已结算':(item.status==2?'未结算':'')}}</text>
  19. </view>
  20. </view>
  21. <!-- 一个订单单个商品的显示 -->
  22. <block wx:if="{{item.orderItemDtoList.length===1}}">
  23. <block wx:for="{{item.orderItemDtoList}}" wx:for-item="prod" wx:key="prodName">
  24. <view>
  25. <view class='item-cont' >
  26. <view class='prod-pic'>
  27. <image src='{{prod.pic}}'></image>
  28. </view>
  29. <view class='prod-info'>
  30. <view class='prodname'>
  31. {{prod.prodName}}
  32. </view>
  33. <view class='prod-info-cont'>{{prod.skuName||''}}</view>
  34. <view class='price-nums'>
  35. <text class='prodprice'>
  36. <text class='symbol'>¥</text>
  37. <!-- <text class='big-num'>{{wxs.parsePrice(35)[0]}}</text>
  38. <text class='small-num'>.{{wxs.parsePrice(00)[1]}}</text>-->
  39. <text class='big-num'>{{wxs.toPrice(prod.price)}}</text>
  40. </text>
  41. <text class="prodcount">x{{prod.prodCount}}</text>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. </block>
  47. </block>
  48. <!-- 一个订单多个商品时的显示 -->
  49. <block wx:else>
  50. <view class='item-cont' bindtap='toOrderDetailPage' data-ordernum="{{item.orderNumber}}">
  51. <scroll-view scroll-x="true" scroll-left='0' scroll-with-animation="false" class="categories">
  52. <block wx:for="{{item.orderItemDtoList}}" wx:for-item="prod" wx:key='prodName'>
  53. <view class='prod-pic'>
  54. <image src="{{prod.pic}}"></image>
  55. </view>
  56. </block>
  57. </scroll-view>
  58. </view>
  59. </block>
  60. <view class='total-num'>
  61. <view>
  62. <text class="prodcount">共1件商品</text>
  63. <view class='prodprice'>合计:
  64. <text class='symbol'>¥</text>
  65. <text class='big-num'>{{wxs.toPrice(item.actualTotal)}}</text>
  66. <!-- <text class='big-num'>{{wxs.parsePrice(35)[0]}}</text> -->
  67. <!-- <text class='small-num'>.{{wxs.parsePrice(00)[1]}}</text> -->
  68. </view>
  69. </view>
  70. <view class='prodprice'>佣金:
  71. <text class='symbol color'>¥</text>
  72. <!-- <text class='big-num color'>{{wxs.parsePrice(35)[0]}}</text>
  73. <text class='small-num color'>.{{wxs.parsePrice(00)[1]}}</text> -->
  74. <text class='big-num color'>{{wxs.toPrice(item.incomeAmount)}}</text>
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. <view class="empty" wx:if="{{records.length==0}}">{{emptyMsg}}</view>
  80. <view class="loading" wx:if="{{totalPage>1}}">{{loadingMsg}}</view>
  81. <!-- end 推广订单列表 -->
  82. </view>
  83. </view>
  84. <wxs module="wxs" src="../../wxs/number.wxs" />