|
|
@ -32,7 +32,8 @@ |
|
|
<chat-record v-if="showRecord" class="chat-record" @send="onSendRecord"></chat-record> |
|
|
<chat-record v-if="showRecord" class="chat-record" @send="onSendRecord"></chat-record> |
|
|
<view v-else class="send-text"> |
|
|
<view v-else class="send-text"> |
|
|
<editor id="editor" class="send-text-area" :placeholder="isReceipt ? '[回执消息]' : ''" |
|
|
<editor id="editor" class="send-text-area" :placeholder="isReceipt ? '[回执消息]' : ''" |
|
|
:read-only="isReadOnly" @focus="onEditorFocus" @blur="onEditorBlur" @ready="onEditorReady" @input="onTextInput"> |
|
|
:read-only="isReadOnly" @focus="onEditorFocus" @blur="onEditorBlur" @ready="onEditorReady" |
|
|
|
|
|
@input="onTextInput"> |
|
|
</editor> |
|
|
</editor> |
|
|
</view> |
|
|
</view> |
|
|
<view v-if="chat && chat.type == 'GROUP'" class="iconfont icon-at" @click="openAtBox()"></view> |
|
|
<view v-if="chat && chat.type == 'GROUP'" class="iconfont icon-at" @click="openAtBox()"></view> |
|
|
@ -93,7 +94,7 @@ |
|
|
<scroll-view v-if="chatTabBox === 'emo'" class="chat-emotion" scroll-y="true" |
|
|
<scroll-view v-if="chatTabBox === 'emo'" class="chat-emotion" scroll-y="true" |
|
|
:style="{height: keyboardHeight+'px'}"> |
|
|
:style="{height: keyboardHeight+'px'}"> |
|
|
<view class="emotion-item-list"> |
|
|
<view class="emotion-item-list"> |
|
|
<image class="emotion-item emoji-large" :title="emoText" :src="$emo.textToPath(emoText)" |
|
|
<image class="emotion-item emoji-large" :title="emoText" :src="$emo.textToPath(emoText,false)" |
|
|
v-for="(emoText, i) in $emo.emoTextList" :key="i" @click="selectEmoji(emoText)" mode="aspectFit" |
|
|
v-for="(emoText, i) in $emo.emoTextList" :key="i" @click="selectEmoji(emoText)" mode="aspectFit" |
|
|
lazy-load="true"></image> |
|
|
lazy-load="true"></image> |
|
|
</view> |
|
|
</view> |
|
|
@ -369,7 +370,7 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
selectEmoji(emoText) { |
|
|
selectEmoji(emoText) { |
|
|
let path = this.$emo.textToPath(emoText) |
|
|
let path = this.$emo.textToPath(emoText, true) |
|
|
// 先把键盘禁用了,否则会重新弹出键盘 |
|
|
// 先把键盘禁用了,否则会重新弹出键盘 |
|
|
this.isReadOnly = true; |
|
|
this.isReadOnly = true; |
|
|
this.isEmpty = false; |
|
|
this.isEmpty = false; |
|
|
|