Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-im
提交
12e89108
U
uni-im
项目概览
DCloud
/
uni-im
通知
3
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-im
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
12e89108
编写于
6月 21, 2024
作者:
DCloud_JSON
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新 修复部分情况下,消息操作菜单的选择更多功能的样式错误的问题
上级
e131ae99
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
44 addition
and
38 deletion
+44
-38
components/uni-im-msg-list/uni-im-msg-list.vue
components/uni-im-msg-list/uni-im-msg-list.vue
+8
-3
pages/chat/chat.vue
pages/chat/chat.vue
+36
-35
未找到文件。
components/uni-im-msg-list/uni-im-msg-list.vue
浏览文件 @
12e89108
...
@@ -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
pages/chat/chat.vue
浏览文件 @
12e89108
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录