提交 12e89108 编写于 作者: DCloud_JSON's avatar DCloud_JSON

更新 修复部分情况下,消息操作菜单的选择更多功能的样式错误的问题

上级 e131ae99
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
:contentText='{"contentrefresh": "正在加载历史消息","contentnomore": "没有更多历史消息"}'></uni-im-load-state> :contentText='{"contentrefresh": "正在加载历史消息","contentnomore": "没有更多历史消息"}'></uni-im-load-state>
</view> </view>
<view :class="['item',msg.type]" :id="'item-'+index" @click="clickItem"> <view :class="['item',msg.type]" :id="'item-'+index" @click="clickItem">
<label class="msg-box" :class="{'active-msg':msg._id === activeMsgId || msg.unique_id === activeMsgId}" @click="checkMsg(msg)"> <view class="msg-box" :class="{'active-msg':msg._id === activeMsgId || msg.unique_id === activeMsgId,'pointer':chooseMore}" @click="checkMsg(msg)">
<template v-if="chooseMore"> <template v-if="chooseMore">
<checkbox :checked="checkedMsgList.find(i=>i._id == msg._id) != undefined" class="checkbox" /> <checkbox :checked="checkedMsgList.find(i=>i._id == msg._id) != undefined" class="checkbox" />
<view class="mask"></view> <view class="mask"></view>
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
@viewMsg="viewMsg" :ref="'uni-im-msg'" class="uni-im-msg" @viewMsg="viewMsg" :ref="'uni-im-msg'" class="uni-im-msg"
> >
</uni-im-msg> </uni-im-msg>
</label> </view>
</view> </view>
</view> </view>
</template> </template>
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
components: { components: {
uniImList uniImList
}, },
emits:['checkedMsgList','longpressMsgAvatar','showControl','clickItem','retriesSendMsg','putChatInputContent'], emits:['checkedMsgList','update:checkedMsgList','longpressMsgAvatar','showControl','clickItem','retriesSendMsg','putChatInputContent'],
computed: { computed: {
...uniIm.mapState(['systemInfo', 'isWidescreen']), ...uniIm.mapState(['systemInfo', 'isWidescreen']),
loadState() { loadState() {
...@@ -693,5 +693,10 @@ ...@@ -693,5 +693,10 @@
cursor: pointer; cursor: pointer;
/* #endif */ /* #endif */
} }
/* #ifdef H5 */
.pointer {
cursor: pointer;
}
/* #endif */
} }
</style> </style>
\ No newline at end of file
...@@ -39,6 +39,40 @@ ...@@ -39,6 +39,40 @@
</view> </view>
</template> </template>
</uni-im-chat-input> </uni-im-chat-input>
<view v-if="chooseMoreMsg" class="toolbar">
<view class="item" @click="shareMsg(checkedMsgList)">
<view class="icons-box">
<uni-icons size="35" type="redo"></uni-icons>
</view>
<text class="title">逐条转发</text>
</view>
<view class="item" @click="shareMsg(checkedMsgList,true)">
<view class="icons-box">
<uni-icons size="35" type="paperplane"></uni-icons>
</view>
<text class="title">合并转发</text>
</view>
<view class="item" @click="toolBarNext">
<view class="icons-box">
<uni-icons size="35" type="folder-add"></uni-icons>
</view>
<text class="title">收藏</text>
</view>
<view class="item" @click="toolBarNext">
<view class="icons-box">
<uni-icons size="35" type="download"></uni-icons>
</view>
<text class="title">保存至电脑</text>
</view>
<view class="item" @click="toolBarNext">
<view class="icons-box">
<uni-icons size="35" type="trash"></uni-icons>
</view>
<text class="title">删除</text>
</view>
<uni-icons @click="chooseMoreMsg = false" color="#999" size="35" type="closeempty"></uni-icons>
</view>
</view> </view>
<msg-popup-control ref="msg-popup-control" @answer="setAnswerMsg" @share="shareMsg" @chooseMore="chooseMoreMsg = true;checkedMsgList = $event"></msg-popup-control> <msg-popup-control ref="msg-popup-control" @answer="setAnswerMsg" @share="shareMsg" @chooseMore="chooseMoreMsg = true;checkedMsgList = $event"></msg-popup-control>
...@@ -81,40 +115,6 @@ ...@@ -81,40 +115,6 @@
chooseMoreMsg:{{chooseMoreMsg}} chooseMoreMsg:{{chooseMoreMsg}}
checkedMsgList:{{checkedMsgList}} --> checkedMsgList:{{checkedMsgList}} -->
</view> </view>
<view v-if="chooseMoreMsg" class="toolbar" @click="chooseMoreMsg = false">
<view class="item" @click="shareMsg(checkedMsgList)">
<view class="icons-box">
<uni-icons size="35" type="redo"></uni-icons>
</view>
<text class="title">逐条转发</text>
</view>
<view class="item" @click="shareMsg(checkedMsgList,true)">
<view class="icons-box">
<uni-icons size="35" type="paperplane"></uni-icons>
</view>
<text class="title">合并转发</text>
</view>
<view class="item" @click="toolBarNext">
<view class="icons-box">
<uni-icons size="35" type="folder-add"></uni-icons>
</view>
<text class="title">收藏</text>
</view>
<view class="item" @click="toolBarNext">
<view class="icons-box">
<uni-icons size="35" type="download"></uni-icons>
</view>
<text class="title">保存至电脑</text>
</view>
<view class="item" @click="toolBarNext">
<view class="icons-box">
<uni-icons size="35" type="trash"></uni-icons>
</view>
<text class="title">删除</text>
</view>
<uni-icons @click="chooseMoreMsg = false" color="#999" size="35" type="closeempty"></uni-icons>
</view>
</view> </view>
</template> </template>
...@@ -1016,6 +1016,7 @@ ...@@ -1016,6 +1016,7 @@
}, },
shareMsg(msgList,merge = false) { shareMsg(msgList,merge = false) {
this.$refs['share-msg'].open(msgList,merge) this.$refs['share-msg'].open(msgList,merge)
this.chooseMoreMsg = false
}, },
toolBarNext(){ toolBarNext(){
uni.showToast({ uni.showToast({
...@@ -1264,7 +1265,7 @@ page { ...@@ -1264,7 +1265,7 @@ page {
bottom: 0; bottom: 0;
left: 0; left: 0;
width: 100%; width: 100%;
height: 260px; height: 100%;
background-color: #ededed; background-color: #ededed;
border-top: solid 1px #ededed; border-top: solid 1px #ededed;
flex-direction: row; flex-direction: row;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册