|
@@ -1,4 +1,4 @@
|
|
|
-/**
|
|
|
+/**
|
|
|
* 浏览器兼容性,特性检查
|
|
|
* 参考列表: http://kangax.github.io/compat-table/es6/
|
|
|
* 同内核的不同的浏览器需要处理,比如qq浏览器登陆成功后,ie浏览器登陆页面会自动跳转到项目管理页面。因此项目管理页面也需要检测
|
|
@@ -151,7 +151,7 @@ function checkSyntax() {
|
|
|
}
|
|
|
|
|
|
// DOM
|
|
|
- if (typeof document.documentElement.requestFullscreen !== 'function' &&
|
|
|
+ if (typeof document.documentElement.requestFullscreen !== 'function' &&
|
|
|
typeof document.documentElement.mozRequestFullscreen !== 'function' &&
|
|
|
typeof document.documentElement.webkitRequestFullscreen !== 'function' &&
|
|
|
typeof document.documentElement.msRequestFullscreen !== 'function') {
|
|
@@ -170,7 +170,7 @@ function showBrowserTip() {
|
|
|
'<div class="modal-dialog modal-lg" role="document">' +
|
|
|
'<div class="modal-content">' +
|
|
|
'<div class="modal-body">' +
|
|
|
- '<h5>浏览器版本过低,可能会有安全风险;</h5>' +
|
|
|
+ '<h5>浏览器版本过低</h5>' +
|
|
|
'<h5>请更新 「浏览器」 或者 使用 「纵横Z+造价工作平台」 登录。</h5>' +
|
|
|
'<div class="row my-4">' +
|
|
|
'<div class="col-6">' +
|
|
@@ -178,7 +178,13 @@ function showBrowserTip() {
|
|
|
'</div>' +
|
|
|
'<div class="col-6">' +
|
|
|
'<div class="text-center"><a href="https://smartcost.com.cn/downloadzplus" class="btn btn-primary" target="_blank">下载 纵横Z+造价工作平台</a></div>' +
|
|
|
- '</div></div></div></div></div></div>';
|
|
|
+ '</div>' +
|
|
|
+ '</div>' +
|
|
|
+ '</div>' +
|
|
|
+ '<div class="modal-footer">' +
|
|
|
+ '<button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>' +
|
|
|
+ '</div>'
|
|
|
+ '</div></div></div>';
|
|
|
$('body').append(html);
|
|
|
$('#browser').modal('show');
|
|
|
}
|
|
@@ -191,4 +197,4 @@ $(document).ready(function () {
|
|
|
showBrowserTip();
|
|
|
return false;
|
|
|
}
|
|
|
-});
|
|
|
+});
|