소스 검색

Revert "fix: app点开图片后消息会自动滚到底部的bug"

This reverts commit f845c31d
blue 1 년 전
부모
커밋
89677f0ccd
1개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 6 3
      im-uniapp/pages/chat/chat-box.vue

+ 6 - 3
im-uniapp/pages/chat/chat-box.vue

@@ -72,7 +72,7 @@
 					<view class="tool-name">文件</view>
 				</view>
 				<!-- #endif -->
-				<view class="chat-tools-item" @click="onRecorderInput()">
+				<view class="chat-tools-item" @click="onVoiceInput()">
 					<view class="tool-icon iconfont icon-microphone"></view>
 					<view class="tool-name">语音消息</view>
 				</view>
@@ -542,6 +542,8 @@
 			},
 			readedMessage() {
 				if(this.unreadCount == 0){
+					
+					console.log("0000000000")
 					return;
 				}
 				let url = ""
@@ -673,11 +675,12 @@
 			this.$store.commit("activeChat", options.chatIdx);
 			// 复位回执消息
 			this.isReceipt = false;
-			// 滚动至底部
+		},
+		onShow() {
+			// 页面滚到底部
 			this.scrollToBottom();
 		},
 		onUnload() {
-			
 			this.$store.commit("activeChat", -1);
 		}
 	}