<!-- components/listItem/listItem.wxml -->
<view class="{{ listClass }}">
    <!-- 置顶 -->
    <image class="ontop-img" src="/images/home/ontop-icon.png" wx:if="{{ (pageStatus == 'homepage' || pageStatus == 'myRelease') &&  item.isOnTop == 1}}" />
    <!-- 平台认证 -->
    <view class="list-certification" wx:if="{{ item.isPartner && listClass != 'disabled-model-view' }}">
        <image class="certification-img" src="/images/home/certification-icon.png" />
        平台认证
    </view>
    <!-- 头部 -->
    <view class="list-avatar" wx:if="{{ pageStatus != 'homepage' && pageStatus != 'myRelease' }}">
        <view class="list-chatHeads fl">
            <image class="chatHeads-img" src="{{ item.chatHeads }}" />
        </view>
        <view class="list-nick-name fl">{{ item.nickName }}</view>
        <view class="list-home fl" bindtap="goHomePage" data-customerid="{{ item.customerId }}">
            <image class="home-img" src="{{ item.isPartner ? '/images/home/company-icon.png' : '/images/home/personal-icon.png' }}" />
            主页
        </view>
    </view>
    <!-- 内容 -->
    <view class="list-content">
        <view bindtap="goDetails" data-value="{{ item.businessCommunicationDemandId }}">
            <!-- 详情 -->
            <view>
                <text space class="list-details-text" user-select wx:if="{{ pageStatus == 'detatil' || pageStatus == 'myRelease' }}">{{ item.info }}
                </text>
                <text space wx:elif="{{ pageStatus == 'myCollect' }}" class="list-details-text need"><text style="color:red">{{ item.isDeleted > 0 ? '【已删除】' : item.state < 0 ? '【已下架】' : '' }}</text>{{ item.info }}
                </text>
                <text space wx:else class="list-details-text need">{{ item.info }}</text>
            </view>
            <!-- 标签 -->
            <view class="list-tag-view">
                <view class="list-tag" wx:for="{{ item.type }}" wx:for-item="tag" wx:key="*this">
                    {{ tag }}
                </view>
            </view>
        </view>
        <!-- 底部 -->
        <view class="list-foot {{ pageStatus == 'detatil' ? 'is-details-page' : '' }}">
            <view class="fl list-foot-text-lf">
                <image class="time-img" src="/images/home/time-icon.png" />
                {{ item.createdOn }}
            </view>
            <view class="fl list-foot-text-lf">
                <image class="browse-img" src="/images/home/browse-icon.png" />
                {{ item.pageView || 0}}浏览量
            </view>
            <view class="fl list-collect-view" wx:if="{{ pageStatus == 'detatil' && isShowCollect }}" bindtap="productCollect">
                <image class="collect-img" src="/images/home/is-collect.png" wx:if="{{ isCollect }}" />
                <image class="collect-img" src="/images/home/not-collect.png" wx:else />
                收藏
            </view>
            <view class="fr list-foot-text-chat" wx:if="{{ pageStatus != 'myRelease' && isOther && customerId != item.customerId  }}" bindtap="goToChat" data-item="{{ item }}">
                <image class="chat-img" src="/images/home/chat-icon.png" />
                聊一聊
            </view>
        </view>
    </view>
</view>