<view class="order-sender-mask" wx:if="{{visible}}" catchtap="close"></view>
<view class="order-sender {{visible ? 'show' : ''}}">
  <view class="header">
    <text class="title">选择订单发送</text>
    <text class="close" bindtap="close">✕</text>
  </view>
  <view class="search-row">
    <input class="search-input" placeholder="搜索订单号/内容" value="{{keyword}}" bindinput="onSearchInput" confirm-type="search" />
  </view>
  <scroll-view scroll-y class="order-list" enable-flex>
    <view class="loading-tip" wx:if="{{loading}}">加载中...</view>
    <block wx:for="{{filteredOrders}}" wx:key="dingdan_id">
      <view class="order-item" data-index="{{index}}" bindtap="onSelectOrder">
        <view class="order-item-top">
          <text class="order-id">{{item.dingdan_id}}</text>
          <text class="order-status">{{item.zhuangtaiText}}</text>
        </view>
        <text class="order-desc">{{item.jieshao || '暂无介绍'}}</text>
        <view class="order-item-bottom">
          <text class="order-price">¥{{item.jine || '0'}}</text>
          <text class="order-time">{{item.create_time}}</text>
        </view>
        <text class="order-send-hint">点击发送订单卡片</text>
      </view>
    </block>
    <view class="empty-tip" wx:if="{{!loading && !filteredOrders.length}}">暂无相关订单</view>
  </scroll-view>
</view>
