<!-- pages/myModule/components/myRelease/myRelease.wxml -->
<view class="my-release-page page-container">
    <view class="header">
        <view class="search-view">
            <view class="input-box fl">
                <input class="weui-serach-input" value="{{ keyword }}" bindinput="bindKeyInput" confirm-type="search" placeholder="请输入关键字搜索" placeholder-class="phcolor" bindconfirm="toSearch"></input>
            </view>
            <view class="search-img-view" bindtap="toSearch">
                <image class="search-img" src="/images/home/search-icon.png" />
            </view>
        </view>
    </view>
    <!-- list块 -->
    <view class="list-loading text-center" wx:if="{{ listLoading }}">
        <van-loading size="24px">加载中...</van-loading>
    </view>
    <view wx:else>
        <view class="not-data" wx:if="{{ listData.length < 1 }}">
            <image class="not-data-img" src="/images/home/not-data.png" />
            <view class="not-info">暂无需求</view>
        </view>
        <view wx:else>
            <view class="list-view " wx:for="{{ listData }}" wx:key="*this">
                <listItem item="{{ item }}" pageStatus="myCollect" bind:getItem="goDetails" listClass="{{ item.isDeleted > 0 || item.state < 0 ? 'disabled-model-view' : '' }}" customerId="{{ customerId }}"/>
                <image class="disabled-model-img" src="/images/home/isDelete-icon.png" wx:if="{{ item.isDeleted > 0 }}"/>
                <image class="disabled-model-img" src="/images/home/isState-0-icon.png" wx:if="{{ item.isDeleted == 0 &&  item.state < 0}}"/>
                <view class="del-collect-view" bindtap="delCollect" data-id="{{ item.businessCommunicationDemandId }}">
                    <image class="del-collect-img" src="/images/home/del-collect.png" wx:if="{{ item.isDeleted > 0 || item.state < 0 }}"/>
                </view>
            </view>
            <view class="text-center" wx:if="{{ itemLoading }}">
                <van-loading size="24px">加载中...</van-loading>
            </view>
            <view class="list-finished text-center" wx:if="{{ isFinished }}">
                <image class="finished-img" src="/images/home/finished-icon.png" />
                没有更多啦~
            </view>
        </view>
    </view>
</view>