Compare commits
4 Commits
master-110
...
master-062
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1bd77d3d5b | ||
|
|
21d1dffa7b | ||
|
|
231e9ed09b | ||
|
|
f13a77f075 |
|
Before Width: | Height: | Size: 84 KiB |
|
Before Width: | Height: | Size: 111 KiB |
|
Before Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 244 KiB |
|
Before Width: | Height: | Size: 186 KiB |
|
Before Width: | Height: | Size: 1.4 MiB |
|
Before Width: | Height: | Size: 3.0 KiB |
@@ -141,7 +141,6 @@
|
|||||||
<el-radio style="margin-right: 10px;" v-model="courseInfo.device" :label="1">PC端可见</el-radio>
|
<el-radio style="margin-right: 10px;" v-model="courseInfo.device" :label="1">PC端可见</el-radio>
|
||||||
<el-radio style="margin-right: 10px;" v-model="courseInfo.device" :label="2">移动端可见</el-radio>
|
<el-radio style="margin-right: 10px;" v-model="courseInfo.device" :label="2">移动端可见</el-radio>
|
||||||
<el-radio style="margin-right: 10px;" v-model="courseInfo.device" :label="3">多端可见</el-radio>
|
<el-radio style="margin-right: 10px;" v-model="courseInfo.device" :label="3">多端可见</el-radio>
|
||||||
<el-radio style="margin-right: 10px;" v-model="courseInfo.device" v-if="isPermission" :label="4">仅内网访问</el-radio>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="!weike.onlyRequired" label="课程来源">
|
<el-form-item v-if="!weike.onlyRequired" label="课程来源">
|
||||||
<el-radio-group v-model="courseInfo.source">
|
<el-radio-group v-model="courseInfo.source">
|
||||||
@@ -306,7 +305,6 @@
|
|||||||
<el-radio v-model="courseInfo.device" :label="1">PC端可见</el-radio>
|
<el-radio v-model="courseInfo.device" :label="1">PC端可见</el-radio>
|
||||||
<el-radio v-model="courseInfo.device" :label="2">移动端可见</el-radio>
|
<el-radio v-model="courseInfo.device" :label="2">移动端可见</el-radio>
|
||||||
<el-radio v-model="courseInfo.device" :label="3">多端可见</el-radio>
|
<el-radio v-model="courseInfo.device" :label="3">多端可见</el-radio>
|
||||||
<el-radio style="margin-right: 10px;" v-model="courseInfo.device" v-if="isPermission" :label="4">仅内网访问</el-radio>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="10">
|
<el-col :span="10">
|
||||||
<el-form-item label="课程来源">
|
<el-form-item label="课程来源">
|
||||||
@@ -490,8 +488,6 @@ export default {
|
|||||||
refType:''
|
refType:''
|
||||||
},
|
},
|
||||||
visibleShow:false,
|
visibleShow:false,
|
||||||
isPermission:false,
|
|
||||||
dicts:[],
|
|
||||||
extendRefId:'',
|
extendRefId:'',
|
||||||
extendRefType:'',
|
extendRefType:'',
|
||||||
courseTeachers: [], //课程的老师
|
courseTeachers: [], //课程的老师
|
||||||
@@ -531,11 +527,7 @@ export default {
|
|||||||
dlgShow: false
|
dlgShow: false
|
||||||
},
|
},
|
||||||
rightTypeId: {},
|
rightTypeId: {},
|
||||||
catalogSortDialogShow: false,
|
catalogSortDialogShow: false
|
||||||
selectedOrg: {
|
|
||||||
orgId: null,
|
|
||||||
name: ''
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -560,15 +552,9 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
courseInfo: {
|
courseInfo: {
|
||||||
handler(newVal, oldVal) {
|
handler(newVal) {
|
||||||
// 需要保存
|
//需要保存
|
||||||
this.requireSaveCourse = true;
|
this.requireSaveCourse = true;
|
||||||
|
|
||||||
console.log("--- watch比较 = ", oldVal.orgId, newVal.orgId);
|
|
||||||
if (newVal.orgId !== oldVal.orgId) {
|
|
||||||
console.log("--- watch newVal.orgId = ", newVal.orgId);
|
|
||||||
this.checkOrgPermission(newVal.orgId);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
deep: true
|
deep: true
|
||||||
}
|
}
|
||||||
@@ -595,22 +581,6 @@ export default {
|
|||||||
this.loadUserGroup();
|
this.loadUserGroup();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 检查机构权限
|
|
||||||
checkOrgPermission(orgId) {
|
|
||||||
console.log("--- 监测组织id orgId = ",orgId)
|
|
||||||
console.log("--- this.isPermission = ",this.isPermission)
|
|
||||||
console.log("--- device = ",this.courseInfo.device)
|
|
||||||
if (!orgId) {
|
|
||||||
this.isPermission = false;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.isPermission = this.dicts.includes(orgId);
|
|
||||||
this.courseInfo.device = 3;
|
|
||||||
if(this.isPermission){
|
|
||||||
this.courseInfo.device = 4;
|
|
||||||
}
|
|
||||||
console.log("--- 监听结束 this.isPermission = ",this.isPermission)
|
|
||||||
},
|
|
||||||
// 关键字的更改
|
// 关键字的更改
|
||||||
changeKeywords(option){
|
changeKeywords(option){
|
||||||
if(option.target.value){
|
if(option.target.value){
|
||||||
@@ -919,8 +889,7 @@ export default {
|
|||||||
async getDetail(id) {
|
async getDetail(id) {
|
||||||
this.curCourseId = id;
|
this.curCourseId = id;
|
||||||
this.orgName='';
|
this.orgName='';
|
||||||
this.isPermission = false;
|
let $this = this;
|
||||||
let $this = this;
|
|
||||||
try {
|
try {
|
||||||
const { result, status } = await apiCourse.detail(id);
|
const { result, status } = await apiCourse.detail(id);
|
||||||
if (status === 200) {
|
if (status === 200) {
|
||||||
@@ -937,10 +906,7 @@ export default {
|
|||||||
this.contentInfo.list = result.contents;
|
this.contentInfo.list = result.contents;
|
||||||
this.sectionInfo.list = result.sections;
|
this.sectionInfo.list = result.sections;
|
||||||
this.courseTeachers = result.teachers; //课程的老师信息
|
this.courseTeachers = result.teachers; //课程的老师信息
|
||||||
this.isPermission = result.isPermission; //课程的老师信息
|
|
||||||
this.dicts = result.dicts; //课程的老师信息
|
|
||||||
console.log("--- 编辑查看 this.isPermission = ",this.isPermission)
|
|
||||||
console.log("--- 编辑查看 this.dicts = ",this.dicts)
|
|
||||||
if(!this.courseInfo.orgId){
|
if(!this.courseInfo.orgId){
|
||||||
//根据课程创建者获取机构id
|
//根据课程创建者获取机构id
|
||||||
apiUser.getOrgSimpleByUserId(result.course.sysCreateAid).then(ors=>{
|
apiUser.getOrgSimpleByUserId(result.course.sysCreateAid).then(ors=>{
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ export default {
|
|||||||
if(res.status==200){
|
if(res.status==200){
|
||||||
this.info=res.result;
|
this.info=res.result;
|
||||||
//检查是否过期
|
//检查是否过期
|
||||||
if(res.result.deadTime!='' && res.result.deadTime != null){
|
if(res.result.deadTime!=''){
|
||||||
var d = new Date(res.result.deadTime);
|
var d = new Date(res.result.deadTime);
|
||||||
var now=new Date();
|
var now=new Date();
|
||||||
if(now.getTime() > d.getTime()){
|
if(now.getTime() > d.getTime()){
|
||||||
|
|||||||
@@ -317,8 +317,8 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
// console.log('this.currentProgress::',this.currentProgress,this.isDrag,this.videoDom.currentTime , this.videoDom.readyState)
|
//console.log('this.currentProgress::',this.currentProgress,this.isDrag,this.videoDom.currentTime , this.videoDom.duration)
|
||||||
// 视频播放时本地记录视频实时播放时长,视频设置了禁止拖动时执行
|
// 视频播放时本地记录视频实时播放时长,视频设置了禁止拖动时执行
|
||||||
if(!this.isDrag){
|
if(!this.isDrag){
|
||||||
var time = localStorage.getItem('videoProgressData')
|
var time = localStorage.getItem('videoProgressData')
|
||||||
var arr = time&&JSON.parse(time) || {}
|
var arr = time&&JSON.parse(time) || {}
|
||||||
@@ -364,11 +364,6 @@ export default {
|
|||||||
}
|
}
|
||||||
// 根据视频的readyState判断下一帧是否已加载,并控制loading的显示
|
// 根据视频的readyState判断下一帧是否已加载,并控制loading的显示
|
||||||
this.isShowLoading = this.videoDom.readyState < 3;
|
this.isShowLoading = this.videoDom.readyState < 3;
|
||||||
// console.log("当前缓存:"+this.videoDom.readyState)
|
|
||||||
if (this.videoDom.readyState < 1){
|
|
||||||
// console.log("详细信息",this.videoDom)
|
|
||||||
// console.log("卡了",this.videoDom.readyState)
|
|
||||||
}
|
|
||||||
//if()
|
//if()
|
||||||
//console.log(this.videoDom.readyState,'this.videoDom.readyState');
|
//console.log(this.videoDom.readyState,'this.videoDom.readyState');
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|||||||
@@ -86,9 +86,10 @@ export default {
|
|||||||
if(current<0) current = 0;
|
if(current<0) current = 0;
|
||||||
var time = localStorage.getItem('videoProgressData');
|
var time = localStorage.getItem('videoProgressData');
|
||||||
var arr = time&&JSON.parse(time) || {}
|
var arr = time&&JSON.parse(time) || {}
|
||||||
console.log('down arr:',this.isDrag,this.blobId,arr,arr[this.blobId],current)
|
//console.log('down arr:',this.isDrag,this.blobId,arr,arr[this.blobId],current)
|
||||||
// 禁止拖动 true:禁止拖动,false:允许拖动
|
// 禁止拖动
|
||||||
if(!this.isDrag && time && arr[this.blobId] < current) return;
|
if(!this.isDrag && time && arr[this.blobId] < current) return;
|
||||||
|
|
||||||
this.$emit("updateProgress", current);
|
this.$emit("updateProgress", current);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
@@ -102,7 +103,7 @@ export default {
|
|||||||
if(current<0) current = 0;
|
if(current<0) current = 0;
|
||||||
var time = localStorage.getItem('videoProgressData');
|
var time = localStorage.getItem('videoProgressData');
|
||||||
var arr = time&&JSON.parse(time) || {}
|
var arr = time&&JSON.parse(time) || {}
|
||||||
console.log('move arr:',this.isDrag,this.blobId,arr,arr[this.blobId],current)
|
//console.log('move arr:',this.isDrag,this.blobId,arr,arr[this.blobId],current)
|
||||||
// 禁止拖动
|
// 禁止拖动
|
||||||
if(!this.isDrag && time && arr[this.blobId] < current) return;
|
if(!this.isDrag && time && arr[this.blobId] < current) return;
|
||||||
this.$emit("updateProgress", current);
|
this.$emit("updateProgress", current);
|
||||||
@@ -118,12 +119,12 @@ export default {
|
|||||||
if(current<0) current = 0;
|
if(current<0) current = 0;
|
||||||
var time = localStorage.getItem('videoProgressData');
|
var time = localStorage.getItem('videoProgressData');
|
||||||
var arr = time&&JSON.parse(time) || {}
|
var arr = time&&JSON.parse(time) || {}
|
||||||
console.log('up arr:',this.isDrag,this.blobId,arr,arr[this.blobId],current)
|
//console.log('up arr:',this.isDrag,this.blobId,arr,arr[this.blobId],current)
|
||||||
this.$emit("getMouseDownStatus", false);
|
this.$emit("getMouseDownStatus", false);
|
||||||
// 禁止拖动
|
// 禁止拖动
|
||||||
if(!this.isDrag && time && arr[this.blobId] < current) return;
|
if(!this.isDrag && time && arr[this.blobId] < current) return;
|
||||||
this.$emit("updateProgress", current);
|
this.$emit("updateProgress", current);
|
||||||
this.$emit("getMouseDownStatus", false);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -954,7 +954,7 @@ export default {
|
|||||||
},
|
},
|
||||||
findPapers() {
|
findPapers() {
|
||||||
let params={
|
let params={
|
||||||
pageSize:10000,
|
pageSize:200,
|
||||||
name:''
|
name:''
|
||||||
}
|
}
|
||||||
apiPaper.querypaper(params).then((res) => {
|
apiPaper.querypaper(params).then((res) => {
|
||||||
|
|||||||
@@ -1,179 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="hot">
|
|
||||||
<div>
|
|
||||||
<div class="center">
|
|
||||||
<div class="item" :style="{marginRight:(i%2==0||i==0)?'49px':'0'}" v-for="item,i in imgData" :key="i">
|
|
||||||
<img class="img" @click="goLearn(item.url)" :src="require(`../../assets/images/hotforum/${item.img}.png`)" alt="">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div style="display: flex;justify-content: center;margin-bottom: 52px;">
|
|
||||||
<img src="../../assets/images/hotforum/foot.png" alt="">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
name: "hotforum",
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
imgData:[
|
|
||||||
{img:'01',url:'1265897142383042560'},
|
|
||||||
{img:'02',url:'1265697724606210048'},
|
|
||||||
{img:'003',url:'1280185851054231552'},
|
|
||||||
{img:'04',url:'1321778585966247936'},
|
|
||||||
],
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
goLearn(item){
|
|
||||||
if(item){
|
|
||||||
// this.$router.push({path:'/course/detail',query:{id:item}})
|
|
||||||
window.open(`https://u.boe.com/pc/course/detail?id=${item}`)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
.hot{
|
|
||||||
width: 100%;
|
|
||||||
// max-width: 1920px;
|
|
||||||
min-height: 100%;
|
|
||||||
// min-height: 1373px;
|
|
||||||
background: url("../../assets/images/hotforum/back.jpg") no-repeat;
|
|
||||||
background-size: 100% 100%;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
.center{
|
|
||||||
max-width: 1270px;
|
|
||||||
max-height: 700px;
|
|
||||||
margin-bottom: 5%;
|
|
||||||
margin-top: 22%;
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
.item{
|
|
||||||
width: 610px;
|
|
||||||
height: 330px;
|
|
||||||
background: url("../../assets/images/hotforum/border.png") no-repeat;
|
|
||||||
background-size: 100%;
|
|
||||||
padding: 14px;
|
|
||||||
padding-top: 31px;
|
|
||||||
margin-bottom: 59px;
|
|
||||||
cursor: pointer;
|
|
||||||
.img{
|
|
||||||
width: 581px;
|
|
||||||
height: 283px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* 当窗口宽度大于3068px时的样式 */
|
|
||||||
}
|
|
||||||
@media (min-width: 3000px) {
|
|
||||||
.hot{
|
|
||||||
width: 100%;
|
|
||||||
// max-width: 1920px;
|
|
||||||
min-height: 100%;
|
|
||||||
// min-height: 1373px;
|
|
||||||
background: url("../../assets/images/hotforum/back.jpg") no-repeat;
|
|
||||||
background-size: 100% 100%;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
.center {
|
|
||||||
max-width: 2560px;
|
|
||||||
max-height: 1300px;
|
|
||||||
margin-bottom: 5%;
|
|
||||||
margin-top: 30vh;
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
|
|
||||||
.item {
|
|
||||||
width: 1220px;
|
|
||||||
height: 660px;
|
|
||||||
background: url("../../assets/images/hotforum/border.png") no-repeat;
|
|
||||||
background-size: 100%;
|
|
||||||
padding: 28px;
|
|
||||||
padding-top: 62px;
|
|
||||||
margin-bottom: 59px;
|
|
||||||
|
|
||||||
.img {
|
|
||||||
width: 100%; // 图片宽度占满item宽度
|
|
||||||
height: auto; // 自动调整高度
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@media (min-height: 1500px) {
|
|
||||||
.hot{
|
|
||||||
width: 100%;
|
|
||||||
// max-width: 1920px;
|
|
||||||
min-height: 100%;
|
|
||||||
// min-height: 1373px;
|
|
||||||
background: url("../../assets/images/hotforum/back.jpg") no-repeat;
|
|
||||||
background-size: 100% 100%;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
.center {
|
|
||||||
max-width: 1068px;
|
|
||||||
max-height: 580px;
|
|
||||||
margin-bottom: 5%;
|
|
||||||
margin-top: 30vh;
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
|
|
||||||
.item {
|
|
||||||
width: 500px;
|
|
||||||
height: 271px;
|
|
||||||
background: url("../../assets/images/hotforum/border.png") no-repeat;
|
|
||||||
background-size: 100%;
|
|
||||||
padding: 14px;
|
|
||||||
padding-top: 26px;
|
|
||||||
margin-bottom: 30px;
|
|
||||||
|
|
||||||
.img {
|
|
||||||
width: 100%; // 图片宽度占满item宽度
|
|
||||||
height: auto; // 自动调整高度
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@media (min-width: 1928px) and (max-width: 3000px) {
|
|
||||||
.hot{
|
|
||||||
width: 100%;
|
|
||||||
// max-width: 1920px;
|
|
||||||
min-height: 100%;
|
|
||||||
// min-height: 1373px;
|
|
||||||
background: url("../../assets/images/hotforum/back.jpg") no-repeat;
|
|
||||||
background-size: 100% 100%;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
.center {
|
|
||||||
max-width: 1800px;
|
|
||||||
max-height: 1100px;
|
|
||||||
margin-bottom: 5%;
|
|
||||||
margin-top: 35vh;
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
|
|
||||||
.item {
|
|
||||||
width: 860px;
|
|
||||||
height: 466px;
|
|
||||||
background: url("../../assets/images/hotforum/border.png") no-repeat;
|
|
||||||
background-size: 100%;
|
|
||||||
padding: 28px;
|
|
||||||
padding-top: 48px;
|
|
||||||
margin-bottom: 70px;
|
|
||||||
|
|
||||||
.img {
|
|
||||||
width: 100%; // 图片宽度占满item宽度
|
|
||||||
height: auto; // 自动调整高度
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@@ -1,24 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="hot25">
|
<div class="hot">
|
||||||
<div>
|
<div>
|
||||||
<div class="title25" style="">
|
<div class="center">
|
||||||
<img class="img" src="../../assets/images/hotforum/2025.png" alt="">
|
|
||||||
</div>
|
|
||||||
<div class="center" style="margin-top: 60px;">
|
|
||||||
<div class="item" style="margin-right: 49px;">
|
|
||||||
<img class="img" @click="goLearn('1351506180295131136')" src="../../assets/images/hotforum/2501.jpg" alt="">
|
|
||||||
</div>
|
|
||||||
<div class="item">
|
|
||||||
<img class="img" @click="goLearn('1375146833375027200')" src="../../assets/images/hotforum/2503.png" alt="">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="line" style="margin: 0 auto;margin-top: 60px;width: 100%;text-align: center;">
|
|
||||||
<img class="img" src="../../assets/images/hotforum/line.png" alt="">
|
|
||||||
</div>
|
|
||||||
<div class="title24" style="margin: 0 auto;margin-top: 60px;width: 100%;text-align: center;">
|
|
||||||
<img class="img" src="../../assets/images/hotforum/2024.png" alt="">
|
|
||||||
</div>
|
|
||||||
<div class="center" style="margin-top: 60px;">
|
|
||||||
<div class="item" :style="{marginRight:(i%2==0||i==0)?'49px':'0'}" v-for="item,i in imgData" :key="i">
|
<div class="item" :style="{marginRight:(i%2==0||i==0)?'49px':'0'}" v-for="item,i in imgData" :key="i">
|
||||||
<img class="img" @click="goLearn(item.url)" :src="require(`../../assets/images/hotforum/${item.img}.png`)" alt="">
|
<img class="img" @click="goLearn(item.url)" :src="require(`../../assets/images/hotforum/${item.img}.png`)" alt="">
|
||||||
</div>
|
</div>
|
||||||
@@ -28,12 +11,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "hotforumNew",
|
name: "hotforum",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
imgData:[
|
imgData:[
|
||||||
@@ -42,10 +24,6 @@
|
|||||||
{img:'003',url:'1280185851054231552'},
|
{img:'003',url:'1280185851054231552'},
|
||||||
{img:'04',url:'1321778585966247936'},
|
{img:'04',url:'1321778585966247936'},
|
||||||
],
|
],
|
||||||
imgData25:[
|
|
||||||
{img:'2501',url:'1351506180295131136'},
|
|
||||||
{img:'2503',url:'1375146833375027200'},
|
|
||||||
],
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -60,22 +38,20 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.hot25{
|
.hot{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
// max-width: 1920px;
|
// max-width: 1920px;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
// min-height: 1373px;
|
// min-height: 1373px;
|
||||||
background: url("../../assets/images/hotforum/back25.png") no-repeat;
|
background: url("../../assets/images/hotforum/back.jpg") no-repeat;
|
||||||
background-size: cover;
|
background-size: 100% 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
.title25{
|
|
||||||
margin: 0 auto;margin-top: 100px;width: 100%;text-align: center;
|
|
||||||
}
|
|
||||||
.center{
|
.center{
|
||||||
max-width: 1270px;
|
max-width: 1270px;
|
||||||
max-height: 700px;
|
max-height: 700px;
|
||||||
margin-bottom: 5%;
|
margin-bottom: 5%;
|
||||||
|
margin-top: 22%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
.item{
|
.item{
|
||||||
@@ -95,109 +71,109 @@
|
|||||||
}
|
}
|
||||||
/* 当窗口宽度大于3068px时的样式 */
|
/* 当窗口宽度大于3068px时的样式 */
|
||||||
}
|
}
|
||||||
// @media (min-width: 3000px) {
|
@media (min-width: 3000px) {
|
||||||
// .hot{
|
.hot{
|
||||||
// width: 100%;
|
width: 100%;
|
||||||
// // max-width: 1920px;
|
// max-width: 1920px;
|
||||||
// min-height: 100%;
|
min-height: 100%;
|
||||||
// // min-height: 1373px;
|
// min-height: 1373px;
|
||||||
// background: url("../../assets/images/hotforum/back.jpg") no-repeat;
|
background: url("../../assets/images/hotforum/back.jpg") no-repeat;
|
||||||
// background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
// display: flex;
|
display: flex;
|
||||||
// justify-content: center;
|
justify-content: center;
|
||||||
// .center {
|
.center {
|
||||||
// max-width: 2560px;
|
max-width: 2560px;
|
||||||
// max-height: 1300px;
|
max-height: 1300px;
|
||||||
// margin-bottom: 5%;
|
margin-bottom: 5%;
|
||||||
// margin-top: 30vh;
|
margin-top: 30vh;
|
||||||
// display: flex;
|
display: flex;
|
||||||
// flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|
||||||
// .item {
|
.item {
|
||||||
// width: 1220px;
|
width: 1220px;
|
||||||
// height: 660px;
|
height: 660px;
|
||||||
// background: url("../../assets/images/hotforum/border.png") no-repeat;
|
background: url("../../assets/images/hotforum/border.png") no-repeat;
|
||||||
// background-size: 100%;
|
background-size: 100%;
|
||||||
// padding: 28px;
|
padding: 28px;
|
||||||
// padding-top: 62px;
|
padding-top: 62px;
|
||||||
// margin-bottom: 59px;
|
margin-bottom: 59px;
|
||||||
|
|
||||||
// .img {
|
.img {
|
||||||
// width: 100%; // 图片宽度占满item宽度
|
width: 100%; // 图片宽度占满item宽度
|
||||||
// height: auto; // 自动调整高度
|
height: auto; // 自动调整高度
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// @media (min-height: 1500px) {
|
@media (min-height: 1500px) {
|
||||||
// .hot{
|
.hot{
|
||||||
// width: 100%;
|
width: 100%;
|
||||||
// // max-width: 1920px;
|
// max-width: 1920px;
|
||||||
// min-height: 100%;
|
min-height: 100%;
|
||||||
// // min-height: 1373px;
|
// min-height: 1373px;
|
||||||
// background: url("../../assets/images/hotforum/back.jpg") no-repeat;
|
background: url("../../assets/images/hotforum/back.jpg") no-repeat;
|
||||||
// background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
// display: flex;
|
display: flex;
|
||||||
// justify-content: center;
|
justify-content: center;
|
||||||
// .center {
|
.center {
|
||||||
// max-width: 1068px;
|
max-width: 1068px;
|
||||||
// max-height: 580px;
|
max-height: 580px;
|
||||||
// margin-bottom: 5%;
|
margin-bottom: 5%;
|
||||||
// margin-top: 30vh;
|
margin-top: 30vh;
|
||||||
// display: flex;
|
display: flex;
|
||||||
// flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|
||||||
// .item {
|
.item {
|
||||||
// width: 500px;
|
width: 500px;
|
||||||
// height: 271px;
|
height: 271px;
|
||||||
// background: url("../../assets/images/hotforum/border.png") no-repeat;
|
background: url("../../assets/images/hotforum/border.png") no-repeat;
|
||||||
// background-size: 100%;
|
background-size: 100%;
|
||||||
// padding: 14px;
|
padding: 14px;
|
||||||
// padding-top: 26px;
|
padding-top: 26px;
|
||||||
// margin-bottom: 30px;
|
margin-bottom: 30px;
|
||||||
|
|
||||||
// .img {
|
.img {
|
||||||
// width: 100%; // 图片宽度占满item宽度
|
width: 100%; // 图片宽度占满item宽度
|
||||||
// height: auto; // 自动调整高度
|
height: auto; // 自动调整高度
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// @media (min-width: 1928px) and (max-width: 3000px) {
|
@media (min-width: 1928px) and (max-width: 3000px) {
|
||||||
// .hot{
|
.hot{
|
||||||
// width: 100%;
|
width: 100%;
|
||||||
// // max-width: 1920px;
|
// max-width: 1920px;
|
||||||
// min-height: 100%;
|
min-height: 100%;
|
||||||
// // min-height: 1373px;
|
// min-height: 1373px;
|
||||||
// background: url("../../assets/images/hotforum/back.jpg") no-repeat;
|
background: url("../../assets/images/hotforum/back.jpg") no-repeat;
|
||||||
// background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
// display: flex;
|
display: flex;
|
||||||
// justify-content: center;
|
justify-content: center;
|
||||||
// .center {
|
.center {
|
||||||
// max-width: 1800px;
|
max-width: 1800px;
|
||||||
// max-height: 1100px;
|
max-height: 1100px;
|
||||||
// margin-bottom: 5%;
|
margin-bottom: 5%;
|
||||||
// margin-top: 35vh;
|
margin-top: 35vh;
|
||||||
// display: flex;
|
display: flex;
|
||||||
// flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|
||||||
// .item {
|
.item {
|
||||||
// width: 860px;
|
width: 860px;
|
||||||
// height: 466px;
|
height: 466px;
|
||||||
// background: url("../../assets/images/hotforum/border.png") no-repeat;
|
background: url("../../assets/images/hotforum/border.png") no-repeat;
|
||||||
// background-size: 100%;
|
background-size: 100%;
|
||||||
// padding: 28px;
|
padding: 28px;
|
||||||
// padding-top: 48px;
|
padding-top: 48px;
|
||||||
// margin-bottom: 70px;
|
margin-bottom: 70px;
|
||||||
|
|
||||||
// .img {
|
.img {
|
||||||
// width: 100%; // 图片宽度占满item宽度
|
width: 100%; // 图片宽度占满item宽度
|
||||||
// height: auto; // 自动调整高度
|
height: auto; // 自动调整高度
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -22,101 +22,91 @@
|
|||||||
<div class="course-playbox" ref="coursePlayerBox" id="id_course_player_box">
|
<div class="course-playbox" ref="coursePlayerBox" id="id_course_player_box">
|
||||||
<div class="course-player" ref="coursePlayer" id="id_course_player">
|
<div class="course-player" ref="coursePlayer" id="id_course_player">
|
||||||
<div>
|
<div>
|
||||||
<div v-if="false">
|
<div v-if="resType == null || resType == 0">
|
||||||
<div v-if="resType == null || resType == 0">
|
<!--先显示视频图片-->
|
||||||
<!--先显示视频图片-->
|
<course-image v-if="courseInfo.id != ''" :course="courseInfo"></course-image>
|
||||||
<course-image v-if="courseInfo.id != ''" :course="courseInfo"></course-image>
|
</div>
|
||||||
</div>
|
<div v-if="resType == 10" style="position: relative;">
|
||||||
<div v-if="resType == 10" style="position: relative;">
|
<videoPlayer ref="myVideoPlayer" id="myVideoPlayer" @progress="progress" :src="blobUrl" :blobId="blobId" @onPlayerPlaying="onPlayerPlaying"
|
||||||
<videoPlayer ref="myVideoPlayer" id="myVideoPlayer" @progress="progress" :src="blobUrl" :blobId="blobId" @onPlayerPlaying="onPlayerPlaying"
|
:initTime="contentData.lastStudyTime" :notePlay="notePlay" @onPlayerPlay="onPlayerPlay"
|
||||||
:initTime="contentData.lastStudyTime" :notePlay="notePlay" @onPlayerPlay="onPlayerPlay"
|
:isDrag="curriculumData.isDrag" @onFullscreen="onFullscreen" @onPlayerPause="onPlayerPause"
|
||||||
:isDrag="curriculumData.isDrag" @onFullscreen="onFullscreen" @onPlayerPause="onPlayerPause"
|
@onPlayerEnded="onPlayerEnded" :isCrowd="isCrowd" @onTimeUpdate="handleAudioTimeUpdate"></videoPlayer>
|
||||||
@onPlayerEnded="onPlayerEnded" :isCrowd="isCrowd" @onTimeUpdate="handleAudioTimeUpdate"></videoPlayer>
|
<div class="player-box" v-if="playerBoxShow">
|
||||||
<div class="player-box" v-if="playerBoxShow">
|
<div class="player-praise" style="cursor: pointer;">
|
||||||
<div class="player-praise" style="cursor: pointer;">
|
<div @click="praiseContent">
|
||||||
<div @click="praiseContent">
|
<img class="icon-small" v-if="isPraise" :src="require('@/assets/images/icon/praise-active.png')" />
|
||||||
<img class="icon-small" v-if="isPraise" :src="require('@/assets/images/icon/praise-active.png')" />
|
<img class="icon-small" v-else :src="require('@/assets/images/icon/zhan.png')" />
|
||||||
<img class="icon-small" v-else :src="require('@/assets/images/icon/zhan.png')" />
|
<!-- {{ courseInfo.praises }} -->
|
||||||
<!-- {{ courseInfo.praises }} -->
|
<div style="color:#fff;cursor: pointer;">赞</div>
|
||||||
<div style="color:#fff;cursor: pointer;">赞</div>
|
|
||||||
</div>
|
|
||||||
<div style="margin-left: 15px;cursor: pointer;" @click="treadContent">
|
|
||||||
<img class="icon-small" v-if="isTrample"
|
|
||||||
:src="require('@/assets/images/icon/trample-active.png')" />
|
|
||||||
<img class="icon-small" v-else :src="require('@/assets/images/icon/cai.png')" />
|
|
||||||
<!-- {{ courseInfo.trampleCount }} -->
|
|
||||||
<div style="color:#fff;cursor: pointer;">踩</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!scoreInfo.has" class="player-rate">
|
<div style="margin-left: 15px;cursor: pointer;" @click="treadContent">
|
||||||
|
<img class="icon-small" v-if="isTrample"
|
||||||
|
:src="require('@/assets/images/icon/trample-active.png')" />
|
||||||
|
<img class="icon-small" v-else :src="require('@/assets/images/icon/cai.png')" />
|
||||||
|
<!-- {{ courseInfo.trampleCount }} -->
|
||||||
|
<div style="color:#fff;cursor: pointer;">踩</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-if="!scoreInfo.has" class="player-rate">
|
||||||
|
|
||||||
<el-rate v-model="scoreInfo.score" text-color="#ff9900" score-template="{value}" void-color="#fff" @change="addScore"></el-rate>
|
<el-rate v-model="scoreInfo.score" text-color="#ff9900" score-template="{value}" void-color="#fff" @change="addScore"></el-rate>
|
||||||
|
</div>
|
||||||
|
<div v-if="scoreInfo.has" style="padding-top: 5px;display: flex;">
|
||||||
|
<div class="player-rate" style="padding-left: 35px;">
|
||||||
|
<el-rate disabled v-model="courseInfo.score" :allow-half="true"></el-rate>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="scoreInfo.has" style="padding-top: 5px;display: flex;">
|
<span class="score-text" style="margin-top:35px">
|
||||||
<div class="player-rate" style="padding-left: 35px;">
|
|
||||||
<el-rate disabled v-model="courseInfo.score" :allow-half="true"></el-rate>
|
|
||||||
</div>
|
|
||||||
<span class="score-text" style="margin-top:35px">
|
|
||||||
<span style="color:#ffb30f;">{{ toScore(courseInfo.score) }}</span>
|
<span style="color:#ffb30f;">{{ toScore(courseInfo.score) }}</span>
|
||||||
<span style="font-size: 12px;color: #fff">分</span>
|
<span style="font-size: 12px;color: #fff">分</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="resType == 20">
|
|
||||||
<div class="con-audio">
|
|
||||||
<div class="con-audio-title">{{ contentData.contentName }}</div>
|
|
||||||
<div class="con-audio-player">
|
|
||||||
<audioPlayer v-if="resType == 20" :url="blobUrl" :name="contentData.contentName" @onPlaying="audioPlaying" :isDrag="curriculumData.isDrag"
|
|
||||||
@onPlay="audioPlay" @onPause="audioPause" @onPlayEnd="audioEnd"></audioPlayer>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div v-if="resType == 40">
|
|
||||||
<div style="padding: 10px;color: #ed0000; " v-if="curCFile.converStatus < 2 && !contentData.content">
|
|
||||||
<div>此课程内容无法预览,请联系管理员</div>
|
|
||||||
</div>
|
|
||||||
<div style="padding: 10px;color: #ed0000;" v-if="curCFile.converStatus == 3 && !contentData.content">
|
|
||||||
此课程内容无法预览,请联系管理员
|
|
||||||
</div>
|
|
||||||
<pdfPreview :autoScroll="true" v-if="resType == 40" :filePath="fileBaseUrl + contentData.content">
|
|
||||||
</pdfPreview>
|
|
||||||
</div>
|
|
||||||
<div v-if="resType == 41">
|
|
||||||
<div style="padding: 20px;" v-html="contentData.content"></div>
|
|
||||||
</div>
|
|
||||||
<div v-if="resType == 50" style="min-height: 500px;">
|
|
||||||
<iframe v-if="scormUrl" :src="scormUrl" frameborder="0" border="0px" style="width:100%;height:500px;border:0px;"></iframe>
|
|
||||||
</div>
|
|
||||||
<div v-if="resType == 52">
|
|
||||||
<div v-if="contentData.content != ''">
|
|
||||||
<div class="hyper-link" v-if="conLink.openType == 2">
|
|
||||||
<div class="hyper-link-row">{{ contentData.contentName }}</div>
|
|
||||||
<div class="hyper-link-row">{{ conLink.url }}</div>
|
|
||||||
</div>
|
|
||||||
<div v-if="conLink.openType == 1"><iframe :src="conLink.url"
|
|
||||||
style="width: 100%;border:0px;min-height: 473px;" frameborder="0"></iframe></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div v-if="resType == 60">
|
|
||||||
<homework @submit="homeWorkSubmit" v-if="resType == 60 && studyId != ''" :studyId="studyId" :content="contentData"></homework>
|
|
||||||
</div>
|
|
||||||
<div v-if="resType == 61">
|
|
||||||
<exam @startTest="startTest" v-if="resType == 61 && studyId != '' " :studyId="studyId" :content="contentData"></exam>
|
|
||||||
</div>
|
|
||||||
<div v-if="resType == 62" style="padding:5px">
|
|
||||||
<assess v-if="resType == 62 && studyId != '' && contentData.id" :studyId="studyId" :content="contentData">
|
|
||||||
</assess>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div v-if="true" style="margin:350px 250px" class="jianjie pdftext" id="pdfPreview">
|
<div v-if="resType == 20">
|
||||||
<div style="margin-top:40px;font-weight:700;font-size: 22px;color: #ccc">
|
<div class="con-audio">
|
||||||
<span>十分抱歉,您当前的网络环境不符合观看要求。为了保障案例信息的安全,您需要接入公司内网才能观看。</span>
|
<div class="con-audio-title">{{ contentData.contentName }}</div>
|
||||||
|
<div class="con-audio-player">
|
||||||
|
<audioPlayer v-if="resType == 20" :url="blobUrl" :name="contentData.contentName" @onPlaying="audioPlaying" :isDrag="curriculumData.isDrag"
|
||||||
|
@onPlay="audioPlay" @onPause="audioPause" @onPlayEnd="audioEnd"></audioPlayer>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top:20px;text-align:center" @click="getInternet" >
|
</div>
|
||||||
<el-button type="primary">重新检测</el-button>
|
<div v-if="resType == 40">
|
||||||
|
<div style="padding: 10px;color: #ed0000; " v-if="curCFile.converStatus < 2 && !contentData.content">
|
||||||
|
<div>此课程内容无法预览,请联系管理员</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div style="padding: 10px;color: #ed0000;" v-if="curCFile.converStatus == 3 && !contentData.content">
|
||||||
|
此课程内容无法预览,请联系管理员
|
||||||
|
</div>
|
||||||
|
<pdfPreview :autoScroll="true" v-if="resType == 40" :filePath="fileBaseUrl + contentData.content">
|
||||||
|
</pdfPreview>
|
||||||
|
</div>
|
||||||
|
<div v-if="resType == 41">
|
||||||
|
<div style="padding: 20px;" v-html="contentData.content"></div>
|
||||||
|
</div>
|
||||||
|
<div v-if="resType == 50" style="min-height: 500px;">
|
||||||
|
<iframe v-if="scormUrl" :src="scormUrl" frameborder="0" border="0px" style="width:100%;height:500px;border:0px;"></iframe>
|
||||||
|
</div>
|
||||||
|
<div v-if="resType == 52">
|
||||||
|
<div v-if="contentData.content != ''">
|
||||||
|
<div class="hyper-link" v-if="conLink.openType == 2">
|
||||||
|
<div class="hyper-link-row">{{ contentData.contentName }}</div>
|
||||||
|
<div class="hyper-link-row">{{ conLink.url }}</div>
|
||||||
|
</div>
|
||||||
|
<div v-if="conLink.openType == 1"><iframe :src="conLink.url"
|
||||||
|
style="width: 100%;border:0px;min-height: 473px;" frameborder="0"></iframe></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-if="resType == 60">
|
||||||
|
<homework @submit="homeWorkSubmit" v-if="resType == 60 && studyId != ''" :studyId="studyId" :content="contentData"></homework>
|
||||||
|
</div>
|
||||||
|
<div v-if="resType == 61">
|
||||||
|
<exam @startTest="startTest" v-if="resType == 61 && studyId != '' " :studyId="studyId" :content="contentData"></exam>
|
||||||
|
</div>
|
||||||
|
<div v-if="resType == 62" style="padding:5px">
|
||||||
|
<assess v-if="resType == 62 && studyId != '' && contentData.id" :studyId="studyId" :content="contentData">
|
||||||
|
</assess>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--交互部分-->
|
<!--交互部分-->
|
||||||
@@ -287,12 +277,15 @@
|
|||||||
<div class="teacher" v-for="(item, idx) in teachers" :key="idx">
|
<div class="teacher" v-for="(item, idx) in teachers" :key="idx">
|
||||||
<div class="teacher-avator" @click="toUserHome(item)" title="点击进入他的主页">
|
<div class="teacher-avator" @click="toUserHome(item)" title="点击进入他的主页">
|
||||||
<!-- <div class="teacher-text" v-if="item.authorInfo.avatar == ''">{{userAvatarText(item.teacherName)}}</div> -->
|
<!-- <div class="teacher-text" v-if="item.authorInfo.avatar == ''">{{userAvatarText(item.teacherName)}}</div> -->
|
||||||
<div v-if="item.authorInfo.avatar !== ''">
|
<div v-if="item.authorInfo && item.authorInfo.avatar">
|
||||||
<el-avatar :src="fileBaseUrl + item.authorInfo.avatar" shape="circle" :size="50"></el-avatar>
|
<el-avatar :src="fileBaseUrl + item.authorInfo.avatar" shape="circle" :size="50"></el-avatar>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-else-if="item.photo">
|
||||||
|
<el-avatar :src="item.photo" shape="circle" :size="50"></el-avatar>
|
||||||
|
</div>
|
||||||
<div v-else class="teacher-text">
|
<div v-else class="teacher-text">
|
||||||
<div v-if="item.authorInfo.sex === 1 "><img src="../../../public/images/Avatarman.png" alt=""></div>
|
<div v-if="item.authorInfo && item.authorInfo.sex === 1"><img src="../../../public/images/Avatarwoman.png" alt=""></div>
|
||||||
<div v-else><img src="../../../public/images/Avatarwoman.png" alt=""></div>
|
<div v-else><img src="../../../public/images/Avatarman.png" alt=""></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="teacher-info">
|
<div class="teacher-info">
|
||||||
@@ -313,17 +306,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-dialog class="protocol" :close-on-click-modal="false" :visible="protocolDialogVisible" width="30%"
|
|
||||||
:show-close="false">
|
|
||||||
<div class="protocol-title">{{warnTitle}}</div>
|
|
||||||
<div class="protocol-content">
|
|
||||||
  {{warn}}
|
|
||||||
</div>
|
|
||||||
<span slot="footer" class="dialog-footer">
|
|
||||||
<el-button type="primary" @click="protocolDialogVisible = false">确
|
|
||||||
定</el-button>
|
|
||||||
</span>
|
|
||||||
</el-dialog>
|
|
||||||
<!-- <div><portal-footer></portal-footer></div> -->
|
<!-- <div><portal-footer></portal-footer></div> -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -390,7 +372,6 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
protocolDialogVisible: false,
|
|
||||||
tentative: false,
|
tentative: false,
|
||||||
isContentTypeTwo: null,
|
isContentTypeTwo: null,
|
||||||
isContentType: null,
|
isContentType: null,
|
||||||
@@ -412,7 +393,6 @@
|
|||||||
curCFile: {
|
curCFile: {
|
||||||
converStatus: 4,
|
converStatus: 4,
|
||||||
},
|
},
|
||||||
Internet: 3,//1是成功 2是是失败 3是检测中
|
|
||||||
radio: '',
|
radio: '',
|
||||||
interactRuning: false,
|
interactRuning: false,
|
||||||
playerBoxShow: false,
|
playerBoxShow: false,
|
||||||
@@ -477,8 +457,6 @@
|
|||||||
cumulativeDuration:0, //非音频累计时长
|
cumulativeDuration:0, //非音频累计时长
|
||||||
maxDuration:0, //非音频最大时长
|
maxDuration:0, //非音频最大时长
|
||||||
defaultMaxTime:1800, //非音频默认最大时间
|
defaultMaxTime:1800, //非音频默认最大时间
|
||||||
warn:"测试内容",
|
|
||||||
warnTitle:"测试标题",
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -1382,8 +1360,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.courseInfo = rs.result.course;
|
this.courseInfo = rs.result.course;
|
||||||
this.warn = rs.result.warn;
|
|
||||||
this.warnTitle = rs.result.warnTitle;
|
|
||||||
if (rs.result.teachers && rs.result.teachers.length > 0) {
|
if (rs.result.teachers && rs.result.teachers.length > 0) {
|
||||||
let userIds = [];
|
let userIds = [];
|
||||||
let ctoUsers = [];
|
let ctoUsers = [];
|
||||||
@@ -1412,52 +1389,12 @@
|
|||||||
this.totalContent = rs.result.contents.length;
|
this.totalContent = rs.result.contents.length;
|
||||||
//加载学习的数据
|
//加载学习的数据
|
||||||
this.loadStudyData(rs.result);
|
this.loadStudyData(rs.result);
|
||||||
if (rs.result.isPermission){
|
|
||||||
// if (true){
|
|
||||||
this.getInternet()
|
|
||||||
console.log('需要内网环境')
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(rs.message);
|
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) {
|
loadStudyData(result) {
|
||||||
let $this=this;
|
let $this=this;
|
||||||
this.loadScorePraiseAndTrample();
|
this.loadScorePraiseAndTrample();
|
||||||
@@ -1790,7 +1727,6 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
.course-player{ //内容播放区域
|
.course-player{ //内容播放区域
|
||||||
background-color: rgb(238, 238, 238);
|
|
||||||
flex:1;
|
flex:1;
|
||||||
min-width: 700px;
|
min-width: 700px;
|
||||||
min-height: 400px;
|
min-height: 400px;
|
||||||
@@ -2435,18 +2371,4 @@
|
|||||||
height: 200px;
|
height: 200px;
|
||||||
background: url('../../../public/images/couresdetail.png');
|
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||