diff --git a/pages/chat/chat.vue b/pages/chat/chat.vue index fa655a03710e9c6e15625f46ecf3de158a990b23..4d4dea32513f8d72aa542cd925a00dff5dec168d 100644 --- a/pages/chat/chat.vue +++ b/pages/chat/chat.vue @@ -151,8 +151,6 @@ leave:false, title: '' }, - //聊天输入框高度 - textareaHeight: 26, navTitle:"",//导航栏标题 keyboardHeight: 0, keyboardMaxHeight: 0, @@ -849,7 +847,6 @@ }, resetChatInput() { this.chatInputContent = '' - this.textareaHeight = 26 // 关闭引用的消息 this.answerMsg = false }, @@ -966,19 +963,6 @@ nickname: this.group_member[user_id].users.nickname },needDeleteLeftART,this.aboutUserKeyword.length) }, - linechange(e) { - //console.log(e.detail); - let { - height, - lineCount - } = e.detail; - // console.log(height,lineCount); - if (lineCount === 1) { - this.textareaHeight = 26; - } else if (height <= 100) { - this.textareaHeight = height - 2; - } - }, async showControl({ msgId, msgContentDomInfo @@ -1041,34 +1025,9 @@ }); this.chooseMoreMsg = false }, - clickMenu(index, e) { - // console.log('clickMenu-',index); - if (index < 2) { - this.chooseFileSendMsg(index === 0 ? 'image' : 'video') - } - if (index === 2) { - // #ifdef APP-PLUS - return uni.showToast({ - title: '暂不支持,发送文件', - icon: 'none' - }); - // #endif - this.chooseFileSendMsg('all') - } - e.stopPropagation() - }, - clickEmojiItem(emojiUniCode, e) { - this.chatInputContent += emojiUniCode - e.stopPropagation() - }, tapUnreadCount() { //点击未读消息文字按钮事件 - if (this.isWidescreen) { - // this.$emit('tapUnreadCount') //点击后会话列表自动滚动 置顶 待读项 - // console.log('tapUnreadCount'); - } else { - uni.navigateBack(); - } + uni.navigateBack(); }, updateNavTitle(){ this.navTitle = this.conversation.title