
<!-- 企业搜索 -->
<view class="search-header">
    <navigator class="search-header-nav" url="./search/search">
        <image class="search-header-icon" src="/static/icons/search_icon.png" mode="widthFix"></image>搜索
    </navigator>
</view>

<!-- 企业浏览记录 -->
<view class="block record">
    <block wx:if="{{record.length > 0}}">
        <view class="record-title">我浏览过的</view>
        <scroll-view class="record-scroll" scroll-x>
            <view class="record-item" wx:for="{{record}}" wx:key="record" bindtap="onCompany" data-item="{{item}}">
                <image class="record-item-logo" src="{{item.cover != '' ? item.cover : '/static/images/logo_null.png'}}" mode="aspectFill"></image>
                <view class="record-item-name nowrap">{{item.name || "-"}}</view>
            </view>
        </scroll-view>
    </block>
    <block wx:else>
        <view class="pages-hint record-null">暂无浏览记录~</view>
    </block>
</view>

<!-- 企业广场列表 -->
<view class="lists-title">全部企业</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/null_icon.png" mode="widthFix"></image>
            <view>企业广场还是空的~</view>
        </view>
    </block>
</view>
