Commit 115d8100 by xiexiaoqin

feat: 添加未读消息

parent 4424e79b
......@@ -38,6 +38,21 @@
align-items: center;
}
.unread-message {
position: absolute;
top: 48rpx;
right: 48rpx;
color: #fff;
background: #ea4e6b;
font-size: 24rpx;
height: 40rpx;
line-height: 40rpx;
padding: 0 16rpx;
border-radius: 20rpx;
display: flex;
justify-content: center;
}
.userDynamic {
margin-bottom: 34rpx;
}
......@@ -50,7 +65,7 @@
margin-bottom: 24rpx;
}
.dynamicTime text{
.dynamicTime text {
opacity: 0.56;
font-size: 26rpx;
color: #1B263D;
......
......@@ -11,14 +11,17 @@
<view class="dynamicList">
<view a:for="{{dynamicList}}" class="dynamicContent" key="{{item.meetingId}}">
<view class="dynamicDetails">
<view class="meetingtitle" catchTap="nextDetail" data-item="{{item}}">
<view class="meetingtitle" data-groupId="{{item.meetingId}}" catchTap="nextDetail" data-item="{{item}}">
<view>
{{item.title}}
</view>
<view a:if="{{item.unReadMessageTotal}}" class="unread-message">
{{item.unReadMessageTotal}}
</view>
</view>
<block a:for="{{item.commentListDataModelList}}" a:for-item="dynamicItem" key="{{item.id}}">
<view class="userDynamic">
<view class="dynamicTime" catchTap="nextDetail" data-item="{{dynamicItem}}">
<view class="dynamicTime" data-groupId="{{item.meetingId}}" catchTap="nextDetail" data-item="{{item}}">
<text>{{dynamicItem.creator && dynamicItem.creator.name}}</text>
<text>{{dynamicItem.actionLog}}</text>
<text>{{dynamicItem.createTime}}</text>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment