12345678910111213141516171819202122232425262728293031323334 |
- <wxs src="/utils/util.wxs" module="tools"></wxs>
- <block wx:if="{{Session_list.length>0}}">
- <view style="height:calc(100% - 50px);">
- <view class="inforList">
- <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">
- <image src="{{item.faceURL}}" class="infor_img"></image>
- <view class="content">
- <view class="con_top">
- <view class="con_right">
- <view class="infor_name">{{item.showName}}</view>
- </view>
- <view class="infor_time">{{tools.getDateDiff(now,item.latestMsgSendTime)}}</view>
- </view>
- <view class="con_bottom">
- <block wx:if="{{item.latestMsg.contentType==101}}">
- <view class="infor_near">{{item.latestMsg.content}}</view>
- </block>
- <block wx:else="">
- <view class="infor_near">[图片]</view>
- </block>
- <view class="infor_num" wx:if="{{item.unreadCount>0}}">{{item.unreadCount}}</view>
- </view>
- </view>
- <view class="remove" data-index="{{index}}" data-conversationid="{{item.conversationID}}" catchtap="delTap">删除</view>
- </view>
- </view>
- </view>
- </block>
- <block wx:else="">
- <nodata />
- </block>
- <tabbar tabbar="{{tabbar}}" unreadCount="{{unreadCountMes}}">
- </tabbar>
|