<!-- 企业搜索 -->
<view class="search-header">
    <form class="search" bindsubmit="searchForm">
        <image class="search-icon" src="/static/icons/search_icon.png" mode="widthFix"></image>
        <input class="search-input" adjust-position="false" focus type="text" name="search" placeholder="输入关键字搜索"></input>
        <button class="search-btn" form-type="submit" size="mini">搜索</button>
    </form>
</view>

<!-- 搜索结果 -->
<view class="block lists">
    <block wx:if="{{companyList.length > 0}}">
        <view class="lists-item" wx:for="{{companyList}}" wx:key="company" bindtap="onCompany" data-item="{{item}}">
            <image class="lists-item-logo" src="{{item.cover != '' ? item.cover : '/static/images/logo_null.png'}}" mode="aspectFill"></image>
            <view class="lists-item-name nowrap">{{item.name || "-"}}</view>
            <image class="lists-item-icon" src="/static/icons/arrow_right.png" mode="widthFix"></image>
        </view>
    </block>
    <block wx:else>
        <view class="pages-hint list-null">
            <image src="/static/images/search_null.png" mode="widthFix"></image>
            <view>{{searchValue == '' ? '输入关键字搜索' : '暂无搜索结果'}}</view>
        </view>
    </block>
</view>
