+
+
+
+
+
+
+
+
+
+
![]()
+
![]()
+
+
赞
+
+
+
![]()
+
![]()
+
+
踩
+
-
-
![]()
-
![]()
-
-
踩
-
-
-
+
-
-
-
-
-
+
-
+
+
+
+
+
{{ toScore(courseInfo.score) }}
分
+
-
-
-
-
{{ contentData.contentName }}
-
-
+
+
+
{{ contentData.contentName }}
+
-
-
-
-
- 此课程内容无法预览,请联系管理员
-
-
-
-
-
-
-
-
-
-
-
-
{{ contentData.contentName }}
-
{{ conLink.url }}
+
+
-
+
+ 此课程内容无法预览,请联系管理员
+
+
+
+
+
+
+
+
+
+
+
+
{{ contentData.contentName }}
+
{{ conLink.url }}
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+ 十分抱歉,您当前的网络环境不符合观看要求。为了保障案例信息的安全,您需要接入公司内网才能观看。
+
+
+ 重新检测
+
@@ -303,6 +313,17 @@
+
+ {{warnTitle}}
+
+ {{warn}}
+
+
+
@@ -369,6 +390,7 @@
},
data() {
return {
+ protocolDialogVisible: false,
tentative: false,
isContentTypeTwo: null,
isContentType: null,
@@ -390,6 +412,7 @@
curCFile: {
converStatus: 4,
},
+ Internet: 3,//1是成功 2是是失败 3是检测中
radio: '',
interactRuning: false,
playerBoxShow: false,
@@ -454,6 +477,8 @@
cumulativeDuration:0, //非音频累计时长
maxDuration:0, //非音频最大时长
defaultMaxTime:1800, //非音频默认最大时间
+ warn:"测试内容",
+ warnTitle:"测试标题",
}
},
mounted() {
@@ -1357,7 +1382,8 @@
}
}
this.courseInfo = rs.result.course;
-
+ this.warn = rs.result.warn;
+ this.warnTitle = rs.result.warnTitle;
if (rs.result.teachers && rs.result.teachers.length > 0) {
let userIds = [];
let ctoUsers = [];
@@ -1386,12 +1412,52 @@
this.totalContent = rs.result.contents.length;
//加载学习的数据
this.loadStudyData(rs.result);
-
+ if (rs.result.isPermission){
+ // if (true){
+ this.getInternet()
+ console.log('需要内网环境')
+ }
} else {
this.$message.error(rs.message);
}
});
},
+ getXmlHttpRequest() {
+ if (window.XMLHttpRequest) {
+ return new XMLHttpRequest();
+ }
+ else if (window.ActiveXObject) {
+ return new ActiveXObject("Microsoft.XMLHTTP");
+ }
+ },
+ // 检测是否为内网
+ getInternet() {
+ this.Internet = 3;
+ 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/500.html", true);
+ xmlhttp.send();
+ xmlhttp.onreadystatechange = function () {
+ if (xmlhttp.readyState == 4) {
+ if (xmlhttp.status == 200) {
+ clearTimeout(timer);
+ $this.Internet = 1;
+ $this.protocolDialogVisible=true
+ } else {
+ clearTimeout(timer);
+ $this.Internet = 2;
+ }
+ } else {
+ if (timedOut) return;//忽略中止请求
+ clearTimeout(timer);//取消等待的超时
+ }
+ }
+ },
loadStudyData(result) {
let $this=this;
this.loadScorePraiseAndTrample();
@@ -1724,6 +1790,7 @@
display: flex;
justify-content: space-between;
.course-player{ //内容播放区域
+ background-color: rgb(238, 238, 238);
flex:1;
min-width: 700px;
min-height: 400px;
@@ -2368,4 +2435,18 @@
height: 200px;
background: url('../../../public/images/couresdetail.png');
}
+
+.protocol {
+ .protocol-title {
+ font-size: 20px;
+ font-weight: 600;
+ text-align: center;
+ margin-bottom: 25px;
+ }
+
+ .protocol-content {
+ font-size: 14px;
+ line-height: 25px;
+ }
+}