|
|
@@ -16,24 +16,24 @@
|
|
|
</view>
|
|
|
<view class="chat-msg-bottom">
|
|
|
<view v-if="msgInfo.type == $enums.MESSAGE_TYPE.TEXT">
|
|
|
- <pop-menu :items="menuItems" @select="onSelectMenu">
|
|
|
+ <long-press-menu :items="menuItems" @select="onSelectMenu">
|
|
|
<rich-text class="chat-msg-text" :nodes="$emo.transform(msgInfo.content)"></rich-text>
|
|
|
- </pop-menu>
|
|
|
+ </long-press-menu>
|
|
|
</view>
|
|
|
<view class="chat-msg-image" v-if="msgInfo.type == $enums.MESSAGE_TYPE.IMAGE">
|
|
|
- <pop-menu :items="menuItems" @select="onSelectMenu">
|
|
|
+ <long-press-menu :items="menuItems" @select="onSelectMenu">
|
|
|
<view class="img-load-box">
|
|
|
<image class="send-image" mode="widthFix" :src="JSON.parse(msgInfo.content).thumbUrl"
|
|
|
lazy-load="true" @click.stop="onShowFullImage()">
|
|
|
</image>
|
|
|
<loading v-if="loading"></loading>
|
|
|
</view>
|
|
|
- </pop-menu>
|
|
|
+ </long-press-menu>
|
|
|
<text title="发送失败" v-if="loadFail" @click="onSendFail"
|
|
|
class="send-fail iconfont icon-warning-circle-fill"></text>
|
|
|
</view>
|
|
|
<view class="chat-msg-file" v-if="msgInfo.type == $enums.MESSAGE_TYPE.FILE">
|
|
|
- <pop-menu :items="menuItems" @select="onSelectMenu">
|
|
|
+ <long-press-menu :items="menuItems" @select="onSelectMenu">
|
|
|
<view class="chat-file-box">
|
|
|
<view class="chat-file-info">
|
|
|
<uni-link class="chat-file-name" :text="data.name" showUnderLine="true"
|
|
|
@@ -43,19 +43,19 @@
|
|
|
<view class="chat-file-icon iconfont icon-file"></view>
|
|
|
<loading v-if="loading"></loading>
|
|
|
</view>
|
|
|
- </pop-menu>
|
|
|
+ </long-press-menu>
|
|
|
<text title="发送失败" v-if="loadFail" @click="onSendFail"
|
|
|
class="send-fail iconfont icon-warning-circle-fill"></text>
|
|
|
</view>
|
|
|
- <pop-menu v-if="msgInfo.type == $enums.MESSAGE_TYPE.AUDIO" :items="menuItems" @select="onSelectMenu">
|
|
|
+ <long-press-menu v-if="msgInfo.type == $enums.MESSAGE_TYPE.AUDIO" :items="menuItems" @select="onSelectMenu">
|
|
|
<view class="chat-msg-audio chat-msg-text" @click="onPlayAudio()">
|
|
|
<text class="iconfont icon-voice-play"></text>
|
|
|
<text class="chat-audio-text">{{ JSON.parse(msgInfo.content).duration + '"' }}</text>
|
|
|
<text v-if="audioPlayState == 'PAUSE'" class="iconfont icon-play"></text>
|
|
|
<text v-if="audioPlayState == 'PLAYING'" class="iconfont icon-pause"></text>
|
|
|
</view>
|
|
|
- </pop-menu>
|
|
|
- <pop-menu v-if="isAction" :items="menuItems" @select="onSelectMenu">
|
|
|
+ </long-press-menu>
|
|
|
+ <long-press-menu v-if="isAction" :items="menuItems" @select="onSelectMenu">
|
|
|
<view class="chat-realtime chat-msg-text" @click="$emit('call')">
|
|
|
<text v-if="msgInfo.type == $enums.MESSAGE_TYPE.ACT_RT_VOICE"
|
|
|
class="iconfont icon-chat-voice"></text>
|
|
|
@@ -63,7 +63,7 @@
|
|
|
class="iconfont icon-chat-video"></text>
|
|
|
<text>{{ msgInfo.content }}</text>
|
|
|
</view>
|
|
|
- </pop-menu>
|
|
|
+ </long-press-menu>
|
|
|
<view class="chat-msg-status" v-if="!isAction">
|
|
|
<text class="chat-readed" v-show="msgInfo.selfSend && !msgInfo.groupId
|
|
|
&& msgInfo.status == $enums.MESSAGE_STATUS.READED">已读</text>
|