From afd1bec458bdb89613df534c33b082d8d70c7cd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8D=93=E7=85=9C?= <2210102150@qq.com> Date: Mon, 21 Jul 2025 14:33:05 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=86=85=E7=BD=91=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/study/coursenew.vue | 203 ++++++++++++++++++++-------------- 1 file changed, 117 insertions(+), 86 deletions(-) diff --git a/src/views/study/coursenew.vue b/src/views/study/coursenew.vue index d6c70f10..0090a74c 100644 --- a/src/views/study/coursenew.vue +++ b/src/views/study/coursenew.vue @@ -22,92 +22,103 @@
-
- - -
-
- -
-
-
- - - -
+
+
+ + +
+
+ +
+
+
+ + + +
+
+
+ + + +
+
-
- - - -
-
-
-
+
- -
-
-
- +
- +
+
+ +
+ {{ toScore(courseInfo.score) }} +
-
-
-
-
{{ contentData.contentName }}
-
- +
+
+
{{ contentData.contentName }}
+
+ +
-
-
-
-
此课程内容无法预览,请联系管理员
-
-
- 此课程内容无法预览,请联系管理员 -
- - -
-
-
-
-
- -
-
-
- -
- -
-
- -
-
- - -
+ +
+ 十分抱歉,您当前的网络环境不符合观看要求。
+ 为了保障案例信息的安全,您需要接入公司内网才能观看。
+
+
+ 重新检测 +
+
@@ -303,6 +314,17 @@
+ +
{{warnTitle}}
+
+   {{warn}} +
+ + 确 + 定 + +
@@ -369,6 +391,7 @@ }, data() { return { + protocolDialogVisible: false, tentative: false, isContentTypeTwo: null, isContentType: null, @@ -390,6 +413,7 @@ curCFile: { converStatus: 4, }, + Internet: 3,//1是成功 2是是失败 3是检测中 radio: '', interactRuning: false, playerBoxShow: false, @@ -454,6 +478,8 @@ cumulativeDuration:0, //非音频累计时长 maxDuration:0, //非音频最大时长 defaultMaxTime:1800, //非音频默认最大时间 + warn:"测试内容", + warnTitle:"测试标题", } }, mounted() { @@ -1357,7 +1383,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 = []; @@ -1387,6 +1414,7 @@ //加载学习的数据 this.loadStudyData(rs.result); if (rs.result.isPermission){ + // if (true){ this.getInternet() console.log('需要内网环境') } @@ -1420,22 +1448,11 @@ if (xmlhttp.status == 200) { clearTimeout(timer); $this.Internet = 1; - $this.$store.dispatch("userTrigger", { - key: "ViewCase",//后台的事件key 发布文章且审核通过 - title: '查看案例',//事件的标题 - parameters: "",//用户自定义参数 name:value,name:value - content: '查看了案例',//事件的内容 - objId: $this.resolveId,//关联的id - objType: "3",//关联的类型 - objInfo: $this.caseDetail?.title, - aid: $this.userInfo.aid, //当前登录人的id - aname: $this.userInfo.name,//当前人的姓名 - status: 1 //状态,直接写1 - }); - $this.sendEventData(); + $this.protocolDialogVisible=true } else { clearTimeout(timer); $this.Internet = 2; + } } else { if (timedOut) return;//忽略中止请求 @@ -2419,4 +2436,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; + } +} From 33c9d2140fa51cc4f1bb28890579db477fd1c6d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8D=93=E7=85=9C?= <2210102150@qq.com> Date: Mon, 21 Jul 2025 14:42:42 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=86=85=E7=BD=91=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/study/coursenew.vue | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/views/study/coursenew.vue b/src/views/study/coursenew.vue index 0090a74c..3a07b434 100644 --- a/src/views/study/coursenew.vue +++ b/src/views/study/coursenew.vue @@ -110,15 +110,14 @@
- +
- 十分抱歉,您当前的网络环境不符合观看要求。
- 为了保障案例信息的安全,您需要接入公司内网才能观看。
+ 十分抱歉,您当前的网络环境不符合观看要求。为了保障案例信息的安全,您需要接入公司内网才能观看。
重新检测
- +
@@ -1452,7 +1451,6 @@ } else { clearTimeout(timer); $this.Internet = 2; - } } else { if (timedOut) return;//忽略中止请求