Commit 115d8100 by xiexiaoqin

feat: 添加未读消息

parent 4424e79b
...@@ -38,6 +38,21 @@ ...@@ -38,6 +38,21 @@
align-items: center; 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 { .userDynamic {
margin-bottom: 34rpx; margin-bottom: 34rpx;
} }
...@@ -50,7 +65,7 @@ ...@@ -50,7 +65,7 @@
margin-bottom: 24rpx; margin-bottom: 24rpx;
} }
.dynamicTime text{ .dynamicTime text {
opacity: 0.56; opacity: 0.56;
font-size: 26rpx; font-size: 26rpx;
color: #1B263D; color: #1B263D;
......
...@@ -11,14 +11,17 @@ ...@@ -11,14 +11,17 @@
<view class="dynamicList"> <view class="dynamicList">
<view a:for="{{dynamicList}}" class="dynamicContent" key="{{item.meetingId}}"> <view a:for="{{dynamicList}}" class="dynamicContent" key="{{item.meetingId}}">
<view class="dynamicDetails"> <view class="dynamicDetails">
<view class="meetingtitle" catchTap="nextDetail" data-item="{{item}}"> <view class="meetingtitle" data-groupId="{{item.meetingId}}" catchTap="nextDetail" data-item="{{item}}">
<view> <view>
{{item.title}} {{item.title}}
</view> </view>
<view a:if="{{item.unReadMessageTotal}}" class="unread-message">
{{item.unReadMessageTotal}}
</view>
</view> </view>
<block a:for="{{item.commentListDataModelList}}" a:for-item="dynamicItem" key="{{item.id}}"> <block a:for="{{item.commentListDataModelList}}" a:for-item="dynamicItem" key="{{item.id}}">
<view class="userDynamic"> <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.creator && dynamicItem.creator.name}}</text>
<text>{{dynamicItem.actionLog}}</text> <text>{{dynamicItem.actionLog}}</text>
<text>{{dynamicItem.createTime}}</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