Commit 15e4cc17 by 施宇

111

parent 5605d31d
......@@ -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>
......
......@@ -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 () {
......
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