index.wxml 1.6 KB

1234567891011121314151617181920212223242526
  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>
  6. <van-dropdown-item value="{{ work_point_id }}" options="{{ work_points }}" bind:change="onDropChange" data-name="work_point_id"/>
  7. </van-dropdown-menu>
  8. <van-search value="{{ keyword }}" placeholder="请输入订单号或提交人搜索" use-right-icon-slot class="sg-flex-grow" left-icon="none" bind:change="onDropChange" data-name="keyword">
  9. <van-icon name="search" class="sg-index-color sg-icon" slot="right-icon" bindtap="search"></van-icon>
  10. </van-search>
  11. </view>
  12. <view class="sg-tabs sg-flex sg-align-center sg-white-bg sg-pad sg-bottom-border sg-top-border sg-font-small">
  13. <view wx:for="{{tabs}}" wx:key="index" class="sg-tab {{tabIndex == index ? 'sg-selected' : ''}}"
  14. bindtap="switchTab" data-index="{{index}}" hidden="{{ index == 2 && (!role || !role.rights || !role.rights.applyHandle) }}">{{ item }}</view>
  15. </view>
  16. </view>
  17. <view class="sg-list-box sg-pad">
  18. <view class="sg-list" wx:for="{{list}}" hidden="{{tabIndex != index}}" wx:key="index">
  19. <block wx:for="{{item}}" wx:for-item="i_item" wx:for-index="i_index" wx:key="i_index">
  20. <out-order-item wx:if="{{i_item.type == 1}}" item="{{i_item}}" role="{{role}}" bind:update="search"></out-order-item>
  21. <inner-order-item wx:else item="{{i_item}}" role="{{role}}" bind:update="search"></inner-order-item>
  22. </block>
  23. </view>
  24. </view>
  25. <van-dialog id="van-dialog" />
  26. </view>