1
This commit is contained in:
@@ -59,7 +59,7 @@
|
||||
<div :class="[audio.visible ? 'record-icon record-open':'record-icon']" @click="switchAudioKeyboard"></div>
|
||||
<div class="record-input" @longpress="onRecordStart" @touchend="onRecordEnd" v-if="audio.visible" >{{audio.recording ? '松开发送' : '按住录音'}}</div>
|
||||
<div class="message-input" v-else>
|
||||
<input type="text" placeholder="发送消息" v-model="content">
|
||||
<input type="text" placeholder="发送消息" v-model="content" @click="bindtapInput">
|
||||
</div>
|
||||
<div class="file-icon img-video" @click="sendImage"></div>
|
||||
<div class="file-icon" @click="sendVideo"></div>
|
||||
@@ -84,6 +84,7 @@
|
||||
return {
|
||||
//聊天文本框
|
||||
content: '',
|
||||
bottom : '',
|
||||
friend: null,
|
||||
currentUser: null,
|
||||
//已经接收到的消息
|
||||
@@ -154,6 +155,11 @@
|
||||
this.imService.resetFriendUnReadMessage(this.friend);
|
||||
},
|
||||
methods: {
|
||||
bindtapInput(){
|
||||
console.log("222")
|
||||
var _that = this;
|
||||
_that.bottom = 14
|
||||
},
|
||||
initialListeners () {
|
||||
//传入监听器,收到一条私聊消息总是滚到到页面底部
|
||||
this.imService.onNewPrivateMessageReceive = (friendId, message)=> {
|
||||
|
||||
Reference in New Issue
Block a user