order.wxml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <wxs src="../../utils/filter.wxs" module="filter"></wxs>
  2. <view class="container">
  3. <!--screen-->
  4. <view class="tui-header-screen">
  5. <view class="cu-bar search bg-white">
  6. <view class="search-form round">
  7. <text class="cuIcon-search"></text>
  8. <input type="text" placeholder="输入订单号" confirm-type="search" data-name="searchParams.orderSn" catchinput="inputedit"></input>
  9. </view>
  10. <view class="action">
  11. <button class="cu-btn bg-blue shadow-blur round" bindtap="submitSearch">搜索</button>
  12. <view class="tui-top-item" bindtap="showSearchModel">
  13. <text>筛选</text>
  14. <tui-icon name="screen" size="12" color="#333" tui-icon-class="tui-ml" bold="{{true}}"></tui-icon>
  15. </view>
  16. </view>
  17. </view>
  18. <!--下拉选择列表--综合-->
  19. <view class="tui-search-model {{selectH>0?'tui-search-model-show':''}}" style="height:{{selectH}}rpx">
  20. <view class="tui-search-model-item">
  21. <tui-list-cell hover="{{false}}" bindtap="timePickerShow">
  22. <view class="tui-line-cell">
  23. <view class="tui-title">起止时间</view>
  24. <input placeholder-class="phcolor" class="tui-input" placeholder="请选择起止时间" type="text" disabled="true"
  25. value="{{dataStr}}" catchinput="inputedit"/>
  26. </view>
  27. </tui-list-cell>
  28. </view>
  29. <view class="tui-search-model-item">
  30. <picker bindchange="bindStorePickerChange" value="{{index}}" range="{{storeList}}" range-key="storeName">
  31. <tui-list-cell hover="{{false}}">
  32. <view class="tui-line-cell">
  33. <view class="tui-title">门店</view>
  34. <input placeholder-class="phcolor" class="tui-input" placeholder="请选择门店" type="text" disabled="true" value="{{searchParams.storeName}}" catchinput="inputedit" data-name="searchParams.storeId"/>
  35. </view>
  36. </tui-list-cell>
  37. </picker>
  38. </view>
  39. <view class="tui-attr-btnbox">
  40. <view class="tui-attr-safearea">
  41. <view class="tui-drawer-btn tui-drawerbtn-black" hover-class="tui-white-hover" hover-stay-time="150"
  42. bindtap="clearSearch">重置</view>
  43. <view class="tui-drawer-btn tui-drawerbtn-primary" hover-class="tui-red-hover" hover-stay-time="150"
  44. bindtap="submitSearch">确定</view>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="tui-search-model-mask {{selectH>0?'tui-mask-show':''}}" catchtap="hideSearchModel"></view>
  49. <!--下拉选择列表--综合-->
  50. </view>
  51. <!--screen-->
  52. <view class="tui-order-list">
  53. <view class="tui-order-item" wx:for="{{orderList}}">
  54. <tui-list-cell hover="{{false}}" lineLeft="{{false}}">
  55. <view class="tui-goods-title">
  56. <view>订单号:{{item.orderSn}}</view>
  57. <view class="tui-order-status" style="color:red">{{filter.orderProductStatus(item.status)}}</view>
  58. </view>
  59. </tui-list-cell>
  60. <tui-list-cell padding="0" bindclick="detail" wx:for="{{item.productOrderDetailList}}">
  61. <view class="tui-goods-item">
  62. <image src="{{item.productImg}}" class="tui-goods-img"></image>
  63. <view class="tui-goods-center">
  64. <view class="tui-goods-name">{{item.productName}}</view>
  65. </view>
  66. <view class="tui-price-right">
  67. <view>¥{{filter.toDecimal2Penny(item.productPrice)}}</view>
  68. <view>x{{item.productQuantity}}</view>
  69. </view>
  70. </view>
  71. </tui-list-cell>
  72. <tui-list-cell hover="{{false}}" last="{{true}}">
  73. <view class="tui-goods-price">
  74. <view> 金额:</view>
  75. <view class="tui-size-24">¥</view>
  76. <view class="tui-price-large">{{filter.toDecimal2Penny(item.totalAmount)}}</view>
  77. </view>
  78. </tui-list-cell>
  79. </view>
  80. </view>
  81. <!--弹出-->
  82. <time-picker pickerShow="{{isPickerShow}}" id="picker" wx:if="{{isPickerRender}}" bind:hidePicker="pickerHide"
  83. bind:setPickerTime="setPickerTime" config="{{pickerConfig}}"></time-picker>
  84. <!--弹出-->
  85. </view>