diff --git a/src/views/Index.vue b/src/views/Index.vue index 336a6708..1cb404e6 100644 --- a/src/views/Index.vue +++ b/src/views/Index.vue @@ -31,9 +31,9 @@ 录播课 - -
高效谈判系列课
-
+ +
高效谈判系列课
+
@@ -62,9 +62,9 @@ 录播课
- -
{{ course.name }}
-
+ +
{{ course.name }}
+
@@ -126,11 +126,11 @@ {{ca.sysCreateTime.substring(0,10)}}
--> - - + + {{ca.title}} - +
{{ca.summary}} diff --git a/src/views/portal/case/Detail.vue b/src/views/portal/case/Detail.vue index 8d313be7..2126a473 100644 --- a/src/views/portal/case/Detail.vue +++ b/src/views/portal/case/Detail.vue @@ -50,10 +50,18 @@ - 案例内容只能在内网环境下查看 +
+ 十分抱歉,您当前的网络环境不符合观看要求。为了保障案例信息的安全,您需要接入公司内网才能观看。 +
+
+ 重新检测 +
+
网络安全检测中 + +
@@ -124,9 +132,11 @@ {{index+1}} - - {{ item.title }} - + +
+ {{ item.title }} +
+
@@ -148,9 +158,12 @@ {{index+1}} - + +
{{ item.title }} - + +
+
@@ -214,30 +227,7 @@ export default { mounted() { let $this = this; this.Intsucc(); - let xmlhttp=this.getXmlHttpRequest(); - let timedOut = false; - let timer = setTimeout(function(){ - timedOut = true; - xmlhttp.abort(); - }, 5000); - xmlhttp.open("HEAD", window.location.protocol+"//uapi.boe.com.cn",true); - xmlhttp.send(); - xmlhttp.onreadystatechange=function() { - if (xmlhttp.readyState==4) { - if (xmlhttp.status==200){ - clearTimeout(timer); - $this.Internet = 1; - }else{ - clearTimeout(timer); - $this.Internet = 2; - - } - }else{ - if(timedOut) return;//忽略中止请求 - clearTimeout(timer);//取消等待的超时 - } - } - + this.retest(); this.resolveId = this.$route.query.id; this.$watermark.set(this.userInfo.name+this.userInfo.loginName); @@ -255,6 +245,31 @@ export default { ); }, methods: { + retest(){ + let $this=this; + let xmlhttp=this.getXmlHttpRequest(); + let timedOut = false; + let timer = setTimeout(function(){ + timedOut = true; + xmlhttp.abort(); + }, 5000); + xmlhttp.open("HEAD", window.location.protocol+"//uapi.boe.com.cn",true); + xmlhttp.send(); + xmlhttp.onreadystatechange=function() { + if (xmlhttp.readyState==4) { + if (xmlhttp.status==200){ + clearTimeout(timer); + $this.Internet = 1; + }else{ + clearTimeout(timer); + $this.Internet = 2; + } + }else{ + if(timedOut) return;//忽略中止请求 + clearTimeout(timer);//取消等待的超时 + } + } + }, getXmlHttpRequest() { if (window.XMLHttpRequest) { return new XMLHttpRequest(); @@ -457,11 +472,13 @@ export default {