selectPostCompany.wxml 1.65 KB
<!--page/subPackage/pages/selectPostCompany/selectPostCompany.wxml-->

<view class='column'>
  <view class="search-bar-bg row">
    <view class="search-bar row middle-text-size">
      <image class="serachIcon margin-left margin-right" src="../../../../pages/index/images/home_search@2x.png"></image>
      <input class="searchInput" placeholder="搜索快递公司" bindconfirm="searchCompany"></input>
    </view>
  </view>
  <view class="company-list">
    <block tt:for="{{company_list}}" tt:for-item="value" tt:key="{{key}}" tt:for-index="key">
      <view class="table-cell-header middle-text-size padding-left">{{key}}</view>
      <view class="table-cell column">
        <block tt:for="{{value}}" tt:key="{{company_index}}" tt:for-item="company" tt:for-index="company_index">
          <view class="column {{ company_index === value.length - 1 ? '' : 'border-bottom'}}" bindtap="backSelectCompany" data-company="{{company}}">
            <text class="margin-left margin-top margin-bottom large-text-size">{{company.company_name}}</text>
          </view>
        </block>
      </view>
    </block>
  </view>
  <block tt:if="{{search_value}}">
  <view class="search-bg" catchtouchmove="doNothing">
    <view class="table-cell column">
      <block tt:for="{{return_value}}" tt:key="{{company_index}}" tt:for-item="company" tt:for-index="company_index">
        <view class="column {{ company_index === value.length - 1 ? '' : 'border-bottom'}}" bindtap="backSelectCompany" data-company="{{company}}">
          <text class="margin-left margin-top margin-bottom large-text-size">{{company.company_name}}</text>
        </view>
      </block>
    </view>
  </view>
  </block>
</view>