Commit 15e4cc17 by 施宇

111

parent 5605d31d
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<div class="content_div"> <div class="content_div">
<div class="notice_left boxsiz"> <div class="notice_left boxsiz">
<div class="notice_left_content boxsiz"> <div class="notice_left_content boxsiz">
</div> </div>
</div> </div>
<div class="notice_right boxsiz"> <div class="notice_right boxsiz">
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
</div> </div>
</div> </div>
<div class="chat_item_content"> <div class="chat_item_content">
</div> </div>
</div> </div>
...@@ -80,6 +80,14 @@ ...@@ -80,6 +80,14 @@
</div> </div>
</div> </div>
<include file="public/foot" /> <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/webim.config.js"></script>
<!-- <script src="__PUBLIC__/js/chat/strophe-1.2.8.js"></script> --> <!-- <script src="__PUBLIC__/js/chat/strophe-1.2.8.js"></script> -->
<script src="__PUBLIC__/js/chat/websdk-1.4.8.js"></script> <script src="__PUBLIC__/js/chat/websdk-1.4.8.js"></script>
......
...@@ -12,11 +12,17 @@ $(function () { ...@@ -12,11 +12,17 @@ $(function () {
name: "", name: "",
id: "", id: "",
init: function () { init: function () {
this.getUserInfo(); if(this.ieFun()){
// this.ieFun(); this.getUserInfo();
this.connection(); this.connection();
this.connListen(); this.connListen();
this.bindFunction(); this.bindFunction();
}else{
layer.open({
title: '提示',
content: '浏览器不兼容聊天系统,建议使用其他浏览器!'
});
}
}, },
deleteCookie: function () { deleteCookie: function () {
Util.delCookie('template', cookieHostname); Util.delCookie('template', cookieHostname);
...@@ -222,15 +228,9 @@ $(function () { ...@@ -222,15 +228,9 @@ $(function () {
}; };
}, },
ieFun: function () { ieFun: function () {
//ie9和ie9以下不能上传图片 if (navigator.appName == "Microsoft Internet Explorer" && (navigator.appVersion.split(";")[1].replace(/[ ]/g, "") == "MSIE8.0" || navigator.appVersion.split(";")[1].replace(/[ ]/g, "") == "MSIE9.0")) {
var browser = navigator.appName; return false}else{
var b_version = navigator.appVersion; return true
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();
} }
}, },
curentTime: function () { curentTime: function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment