Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsales
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
15e4cc17
authored
Aug 12, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
111
parent
5605d31d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
16 deletions
Application/Home/View/Chat/index.html
dist/js/chat/index.js
Application/Home/View/Chat/index.html
View file @
15e4cc17
...
...
@@ -16,7 +16,7 @@
<div
class=
"content_div"
>
<div
class=
"notice_left boxsiz"
>
<div
class=
"notice_left_content boxsiz"
>
</div>
</div>
<div
class=
"notice_right boxsiz"
>
...
...
@@ -70,7 +70,7 @@
</div>
</div>
<div
class=
"chat_item_content"
>
</div>
</div>
...
...
@@ -80,6 +80,14 @@
</div>
</div>
<include
file=
"public/foot"
/>
<!--[if lt IE 9]>
<script>
layer.open({
title: '提示',
content: '浏览器不兼容聊天系统,建议使用其他浏览器!'
});
</script>
<![endif]-->
<script
src=
"__PUBLIC__/js/chat/webim.config.js"
></script>
<!-- <script src="__PUBLIC__/js/chat/strophe-1.2.8.js"></script> -->
<script
src=
"__PUBLIC__/js/chat/websdk-1.4.8.js"
></script>
...
...
dist/js/chat/index.js
View file @
15e4cc17
...
...
@@ -12,11 +12,17 @@ $(function () {
name
:
""
,
id
:
""
,
init
:
function
()
{
this
.
getUserInfo
();
// this.ieFun();
this
.
connection
();
this
.
connListen
();
this
.
bindFunction
();
if
(
this
.
ieFun
()){
this
.
getUserInfo
();
this
.
connection
();
this
.
connListen
();
this
.
bindFunction
();
}
else
{
layer
.
open
({
title
:
'提示'
,
content
:
'浏览器不兼容聊天系统,建议使用其他浏览器!'
});
}
},
deleteCookie
:
function
()
{
Util
.
delCookie
(
'template'
,
cookieHostname
);
...
...
@@ -222,15 +228,9 @@ $(function () {
};
},
ieFun
:
function
()
{
//ie9和ie9以下不能上传图片
var
browser
=
navigator
.
appName
;
var
b_version
=
navigator
.
appVersion
;
var
version
=
b_version
.
split
(
";"
);
var
trim_Version
=
version
[
1
].
replace
(
/
[
]
/g
,
""
);
if
(
browser
==
"Microsoft Internet Explorer"
&&
(
trim_Version
==
"MSIE6.0"
||
trim_Version
==
"MSIE7.0"
||
trim_Version
==
"MSIE8.0"
||
trim_Version
==
"MSIE9.0"
))
{
$
(
'.pic'
).
hide
();
if
(
navigator
.
appName
==
"Microsoft Internet Explorer"
&&
(
navigator
.
appVersion
.
split
(
";"
)[
1
].
replace
(
/
[
]
/g
,
""
)
==
"MSIE8.0"
||
navigator
.
appVersion
.
split
(
";"
)[
1
].
replace
(
/
[
]
/g
,
""
)
==
"MSIE9.0"
))
{
return
false
}
else
{
return
true
}
},
curentTime
:
function
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment