Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_42566577
o2oa
提交
0333d974
o2oa
项目概览
weixin_42566577
/
o2oa
与 Fork 源项目一致
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0333d974
编写于
3月 03, 2022
作者:
F
fancy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
聊天模式增加但窗口模式
上级
7c928e31
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
25 addition
and
3 deletion
+25
-3
o2web/source/x_component_IMV2/$Main/default/im.html
o2web/source/x_component_IMV2/$Main/default/im.html
+1
-1
o2web/source/x_component_IMV2/Main.js
o2web/source/x_component_IMV2/Main.js
+24
-2
未找到文件。
o2web/source/x_component_IMV2/$Main/default/im.html
浏览文件 @
0333d974
<div
class=
"o2_im_out"
data-o2-element=
"o2ImMainNode"
>
<div
class=
"o2_im_out"
data-o2-element=
"o2ImMainNode"
>
<div
class=
"o2_im_chat_list"
>
<div
class=
"o2_im_chat_list"
data-o2-element=
"o2ConversationListNode"
>
<!--top-->
<!--top-->
<div
class=
"o2_im_chat_list_top"
>
<div
class=
"o2_im_chat_list_top"
>
<div
class=
"add"
data-o2-element=
"o2ImConvCreateNode"
data-o2-events=
"click:tapCreateSingleConv"
>
<div
class=
"add"
data-o2-element=
"o2ImConvCreateNode"
data-o2-events=
"click:tapCreateSingleConv"
>
...
...
o2web/source/x_component_IMV2/Main.js
浏览文件 @
0333d974
MWF
.
require
(
"
MWF.widget.UUID
"
,
null
,
false
);
MWF
.
require
(
"
MWF.widget.UUID
"
,
null
,
false
);
MWF
.
xDesktop
.
requireApp
(
"
Template
"
,
"
MForm
"
,
null
,
false
);
MWF
.
xDesktop
.
requireApp
(
"
Template
"
,
"
MForm
"
,
null
,
false
);
MWF
.
xDesktop
.
requireApp
(
"
Template
"
,
"
MPopupForm
"
,
null
,
false
);
MWF
.
xDesktop
.
requireApp
(
"
Template
"
,
"
MPopupForm
"
,
null
,
false
);
MWF
.
xApplication
.
IMV2
.
options
.
multitask
=
true
;
//多窗口
MWF
.
xApplication
.
IMV2
.
Main
=
new
Class
({
MWF
.
xApplication
.
IMV2
.
Main
=
new
Class
({
Extends
:
MWF
.
xApplication
.
Common
.
Main
,
Extends
:
MWF
.
xApplication
.
Common
.
Main
,
Implements
:
[
Options
,
Events
],
Implements
:
[
Options
,
Events
],
...
@@ -15,13 +16,13 @@ MWF.xApplication.IMV2.Main = new Class({
...
@@ -15,13 +16,13 @@ MWF.xApplication.IMV2.Main = new Class({
"
isResize
"
:
true
,
"
isResize
"
:
true
,
"
isMax
"
:
true
,
"
isMax
"
:
true
,
"
title
"
:
MWF
.
xApplication
.
IMV2
.
LP
.
title
,
"
title
"
:
MWF
.
xApplication
.
IMV2
.
LP
.
title
,
"
conversationId
"
:
""
"
conversationId
"
:
""
,
// 传入的当前会话id
"
mode
"
:
"
default
"
// 展现模式:default onlyChat 。 onlyChat的模式需要传入conversationId 会打开这个会话的聊天窗口并隐藏左边的会话列表
},
},
onQueryLoad
:
function
()
{
onQueryLoad
:
function
()
{
this
.
lp
=
MWF
.
xApplication
.
IMV2
.
LP
;
this
.
lp
=
MWF
.
xApplication
.
IMV2
.
LP
;
this
.
app
=
this
;
this
.
app
=
this
;
this
.
conversationNodeItemList
=
[];
this
.
conversationNodeItemList
=
[];
this
.
conversationId
=
this
.
options
.
conversationId
||
""
;
this
.
messageList
=
[];
this
.
messageList
=
[];
this
.
emojiList
=
[];
this
.
emojiList
=
[];
//添加87个表情
//添加87个表情
...
@@ -32,8 +33,20 @@ MWF.xApplication.IMV2.Main = new Class({
...
@@ -32,8 +33,20 @@ MWF.xApplication.IMV2.Main = new Class({
};
};
this
.
emojiList
.
push
(
emoji
);
this
.
emojiList
.
push
(
emoji
);
}
}
if
(
!
this
.
status
)
{
this
.
conversationId
=
this
.
options
.
conversationId
||
""
;
this
.
mode
=
this
.
options
.
mode
||
"
default
"
;
}
else
{
this
.
conversationId
=
this
.
status
.
conversationId
||
""
;
this
.
mode
=
this
.
status
.
mode
||
"
default
"
;
}
},
},
// 刷新的时候缓存数据
recordStatus
:
function
(){
return
{
"
conversationId
"
:
this
.
conversationId
,
"
mode
"
:
this
.
mode
};
},
onQueryClose
:
function
()
{
onQueryClose
:
function
()
{
this
.
closeListening
();
this
.
closeListening
();
},
},
...
@@ -65,6 +78,15 @@ MWF.xApplication.IMV2.Main = new Class({
...
@@ -65,6 +78,15 @@ MWF.xApplication.IMV2.Main = new Class({
this
.
app
.
content
=
this
.
o2ImMainNode
;
this
.
app
.
content
=
this
.
o2ImMainNode
;
//启动监听
//启动监听
this
.
startListening
();
this
.
startListening
();
// 处理窗口模式
if
(
this
.
mode
===
"
onlyChat
"
&&
this
.
conversationId
!=
""
)
{
this
.
o2ConversationListNode
.
setStyle
(
"
display
"
,
"
none
"
);
this
.
chatNode
.
setStyle
(
"
margin-left
"
,
"
2px
"
);
}
else
{
this
.
o2ConversationListNode
.
setStyle
(
"
display
"
,
"
flex
"
);
this
.
chatNode
.
setStyle
(
"
margin-left
"
,
"
259px
"
);
}
//获取会话列表
//获取会话列表
this
.
conversationNodeItemList
=
[];
this
.
conversationNodeItemList
=
[];
o2
.
Actions
.
load
(
"
x_message_assemble_communicate
"
).
ImAction
.
myConversationList
(
function
(
json
)
{
o2
.
Actions
.
load
(
"
x_message_assemble_communicate
"
).
ImAction
.
myConversationList
(
function
(
json
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录