zhangym118

 

<div class="list-body" bindtap=\'openChat\' data-Obj=\'{{oitem}}\'>
        <!-- 头像 -->
        <div class=\'list-img\'>
          <div style=\'margin:10rpx 15rpx 0rpx 15rpx;display:block;\'>
            <image class=\'cst-img\' src="{{oitem.userinfo.avatarUrl}}"></image>
          </div>
          
          <!-- 红点 -->
           <div style=\'vertical-align:top;line-height:16rpx;color:#ffffff;font-size:14px;background-color:red;border-radius:50%;position:absolute;bottom:86rpx;left:84rpx;text-align:center;height:18rpx; display:{{oitem.noReadCount==0 ?"none" : ""}}\'>
            <span style="color:#ffffff;font-size:20rpx;display:inline-block;text-align:center">
            {{oitem.noReadCount}}</span>
         </div> 
</div>

  注: div 不可加固定宽度,如果未读消息为两位数三位数则显示不全。

 

分类:

技术点:

相关文章:

  • 2021-09-13
  • 2021-09-25
  • 2022-01-11
  • 2021-12-29
  • 2021-10-08
  • 2021-08-13
  • 2022-01-07
猜你喜欢
  • 2021-12-05
  • 2022-12-23
  • 2021-12-05
  • 2021-12-30
  • 2021-12-10
  • 2021-12-05
  • 2021-12-05
相关资源
相似解决方案