<import src="chat-item-head.wxml"/>
<template name="chat-item">
    <view class="chat-item-style" bindtap="toChat" data-item="{{item}}" hover-class="press-style">
        <template is="chat-item-head" data="{{headUrl:item.avatar,unread:item.unReadNum}}"/>
        <view class="content">
            <view class="chat-item-content-super-style">
                <view class="chat-item-name-style">
                    <text>{{item.name}}</text>
                    <text class="organ" wx:if="{{item.store}}">{{ item.store }}</text>
                </view>
                <text class="chat-item-content-style">{{item.latestMsgContent}}</text>
            </view>
            <view class="chat-item-status-super-style">
                <view class="chat-item-time-style">{{item.timeStr}}</view>
            </view>
        </view>
    </view>
</template>