index.wxml 1.5 KB

1234567891011121314151617181920212223242526272829
  1. <!--pages/order/index.wxml-->
  2. <view class="sg-container">
  3. <view class="sg-top-box sg-fix-top sg-white-bg">
  4. <view class="sg-search-box sg-flex sg-align-center">
  5. <van-dropdown-menu active-color="#5992fd">
  6. <van-dropdown-item value="{{ work_point_id }}" options="{{ work_points }}" bind:change="onDropChange"
  7. data-name="work_point_id" />
  8. </van-dropdown-menu>
  9. <van-search value="{{ keyword }}" placeholder="请输入订单号或提交人搜索" use-right-icon-slot class="sg-flex-grow"
  10. left-icon="none" bind:change="onDropChange" data-name="keyword">
  11. <van-icon name="search" class="sg-index-color sg-icon" slot="right-icon" bindtap="search"></van-icon>
  12. </van-search>
  13. </view>
  14. <view class="sg-tabs sg-flex sg-align-center sg-white-bg sg-pad sg-bottom-border sg-top-border sg-font-small">
  15. <view wx:for="{{tabs}}" wx:key="index" class="sg-tab {{tabIndex == index ? 'sg-selected' : ''}}"
  16. bindtap="switchTab" data-index="{{index}}" hidden="{{ type=='check' && index > 2 ||type=='abnormal'&&index<4}}">
  17. {{ item }}
  18. </view>
  19. </view>
  20. </view>
  21. <view class="sg-list-box sg-pad">
  22. <view class="sg-list" wx:for="{{list}}" hidden="{{tabIndex != index}}" wx:key="index">
  23. <block wx:for="{{item}}" wx:for-item="i_item" wx:for-index="i_index" wx:key="i_index">
  24. <out-order-item item="{{i_item}}" bind:update="search" role="{{role}}"></out-order-item>
  25. </block>
  26. </view>
  27. </view>
  28. <van-dialog id="van-dialog" />
  29. </view>