<!-- pages/index/components/listDetails/Details.wxml -->
<view class="details-page page-container">
    <view class="list-loading text-center" wx:if="{{ pageLoading }}">
        <van-loading size="24px">加载中...</van-loading>
    </view>
    <view wx:else>
        <view class="list-view {{ customerId != currentData.customerId ? 'have-hot' : '' }}">
            <listItem item="{{ currentData }}" pageStatus="detatil" isCollect="{{ isCollect }}" isShowCollect="{{ customerId != currentData.customerId }}" bind:changeCollect="changeCollect" customerId="{{ userCustomerId }}" />
        </view>
        <view wx:if="{{ userCustomerId != currentData.customerId }}">
            <view class="view-interested">你可能感兴趣的需求</view>
            <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="index">
                    <listItem item="{{ item }}" bind:getItem="goDetails" customerId="{{ userCustomerId }}" />
                </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>
    <tabBar currentIndex="{{currentIndex}}"></tabBar>
</view>