index.wxml 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. <wxs src="/utils/util.wxs" module="tools"></wxs>
  2. <block wx:if="{{Session_list.length>0}}">
  3. <view style="height:calc(100% - 50px);">
  4. <view class="inforList">
  5. <view wx:for="{{Session_list}}" wx:key="index" class="list" bindlongpress="drawEnd" style="left:{{item.left}}rpx" data-index="{{index}}" data-userid="{{item.userID}}" data-unreadcount="{{item.unreadCount}}" data-showname="{{item.showName}}" data-faceurl="{{item.faceURL}}" bindtap="chat">
  6. <image src="{{item.faceURL}}" class="infor_img"></image>
  7. <view class="content">
  8. <view class="con_top">
  9. <view class="con_right">
  10. <view class="infor_name">{{item.showName}}</view>
  11. </view>
  12. <view class="infor_time">{{tools.getDateDiff(now,item.latestMsgSendTime)}}</view>
  13. </view>
  14. <view class="con_bottom">
  15. <block wx:if="{{item.latestMsg.contentType==101}}">
  16. <view class="infor_near">{{item.latestMsg.content}}</view>
  17. </block>
  18. <block wx:else="">
  19. <view class="infor_near">[图片]</view>
  20. </block>
  21. <view class="infor_num" wx:if="{{item.unreadCount>0}}">{{item.unreadCount}}</view>
  22. </view>
  23. </view>
  24. <view class="remove" data-index="{{index}}" data-conversationid="{{item.conversationID}}" catchtap="delTap">删除</view>
  25. </view>
  26. </view>
  27. </view>
  28. </block>
  29. <block wx:else="">
  30. <nodata />
  31. </block>
  32. <tabbar tabbar="{{tabbar}}" unreadCount="{{unreadCountMes}}">
  33. </tabbar>