diff --git a/pages.json b/pages.json
index 6179384..79e4cef 100644
--- a/pages.json
+++ b/pages.json
@@ -374,7 +374,10 @@
"path": "pages/im/private/chat",
"style": {
"navigationBarTitleText": "聊天",
- "navigationBarBackgroundColor": "#F3F6FB"
+ "navigationBarBackgroundColor": "#F3F6FB",
+ "app-plus": {
+ "bounce": "none"
+ }
}
},
{
diff --git a/pages/im/private/chat.vue b/pages/im/private/chat.vue
index ec7131d..c49c8b7 100644
--- a/pages/im/private/chat.vue
+++ b/pages/im/private/chat.vue
@@ -1,29 +1,31 @@
+
-
- {{ item.sentTime|timeCustomCN }}
-
-
-
-
-
-
-
- {{ item.sentStatus == 50 ? '已读': '未读'}}
+
+
+ {{ item.sentTime|timeCustomCN }}
+
+
+
+
+
+
+
+ {{ item.sentStatus == 50 ? '已读': '未读'}}
+
-
@@ -108,10 +110,9 @@
this.latestMessage.sentTime || 0,
1,
false,
- (messages) => {
- console.log(messages);
+ (messages) => {
this.messages.unshift(...messages)
- // this.scrollBottom()
+ this.scrollBottom()
})
},
// 获取消息列表
@@ -124,7 +125,7 @@
true,
(messages) => {
this.messages = messages
- // this.scrollBottom()
+ this.scrollBottom()
})
},
// 展示好友信息, type 1 是自己, 2 是对方
@@ -145,13 +146,6 @@
// 更新badge提醒数量
im.setNotifyBadge()
}
- setTimeout(() => {
- let el = this.$refs.chatBottom
- ChatList.scrollToElement(el, {
- offset: 0,
- animated: false
- })
- }, 50)
}
}
}
@@ -160,65 +154,72 @@