Browse Source

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

This reverts commit f845c31d
master
blue 2 years ago
parent
commit
89677f0ccd
  1. 9
      im-uniapp/pages/chat/chat-box.vue

9
im-uniapp/pages/chat/chat-box.vue

@ -72,7 +72,7 @@
<view class="tool-name">文件</view> <view class="tool-name">文件</view>
</view> </view>
<!-- #endif --> <!-- #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-icon iconfont icon-microphone"></view>
<view class="tool-name">语音消息</view> <view class="tool-name">语音消息</view>
</view> </view>
@ -542,6 +542,8 @@
}, },
readedMessage() { readedMessage() {
if(this.unreadCount == 0){ if(this.unreadCount == 0){
console.log("0000000000")
return; return;
} }
let url = "" let url = ""
@ -673,11 +675,12 @@
this.$store.commit("activeChat", options.chatIdx); this.$store.commit("activeChat", options.chatIdx);
// //
this.isReceipt = false; this.isReceipt = false;
// },
onShow() {
//
this.scrollToBottom(); this.scrollToBottom();
}, },
onUnload() { onUnload() {
this.$store.commit("activeChat", -1); this.$store.commit("activeChat", -1);
} }
} }

Loading…
Cancel
Save