浏览代码

fix: 首页未读消息,只取前20条轮播

zhangsiya 11 月之前
父节点
当前提交
95eb3f2f51
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 5 4
      apps/mobile/src/components/message/message-card.vue

+ 5 - 4
apps/mobile/src/components/message/message-card.vue

@@ -7,7 +7,7 @@
           {{ setUnRead }}
         </span>
         <div class="icon-box" @click="goMore">
-          <AppIcon name="youbian" size="14" color="#c0c4cc"/>
+          <AppIcon name="youbian" size="14" color="#c0c4cc" />
         </div>
       </div>
       <div
@@ -70,12 +70,13 @@ export default {
       offsetHeight: 0,
       groupHeight: 20,
       msgListParams: {
-        offset: 1,
         isColumn: true,
         isColumnNewMsg: false,
         isContainLetter: false,
         isMsgList: true,
-        sortSize: 0
+        isRead: 0,
+        offset: 1,
+        size: 20
       }
     }
   },
@@ -257,7 +258,7 @@ export default {
   border-radius: 12px;
   overflow: hidden;
   box-shadow: 0px 2px 8px rgba(54, 147, 179, 0.05);
-  .card-title{
+  .card-title {
     display: flex;
     justify-content: space-between;
     align-items: center;