chat-item.wxml 1.2 KB

123456789101112131415161718192021222324252627
  1. <import src="chat-item-head.wxml"/>
  2. <template name="chat-item">
  3. <view class="{{item.isTouchMove ? 'chat-item-styleon' : 'chat-item-style'}}" bindtap="toChat" data-item="{{item}}"
  4. data-dsa="{{item.isTouchMove}}" hover-class="press-style">
  5. <template is="chat-item-head" data="{{headUrl:item.img,count:item.count}}"/> <!-- 接收消息 提示小红点 引入页面 -->
  6. <view class="chat-item-content-super-style">
  7. <view class="chat-item-name-style">{{item.nickname}}</view>
  8. <!--<image src="./../../image/chat/send_fail.png" style="width: 28rpx;height: 28rpx;margin-right: 6rpx;"/>-->
  9. <text class="chat-item-content-style">{{item.content}}</text>
  10. </view>
  11. <view class="chat-item-status-super-style">
  12. <view class="chat-item-time-style">{{item.timeStr}}</view>
  13. </view>
  14. </view>
  15. <view class="list-divide-line" style="width: 79.5%;margin-left: 20.5%;border-bottom:1px solid #EEE;"/>
  16. </template>