|
|
|
@ -48,13 +48,13 @@ |
|
|
|
|
</div> |
|
|
|
|
<div class="catalog flex-1"> |
|
|
|
|
<div class="m-b-20"> |
|
|
|
|
<el-button type="primary" style="width: 100%; height: 50px; font-size: 18px">进 入 实 验</el-button> |
|
|
|
|
<el-button type="primary" @click="goSystem" style="width: 100%; height: 50px; font-size: 18px">进 入 实 验</el-button> |
|
|
|
|
</div> |
|
|
|
|
<div class="list"> |
|
|
|
|
<h4 class="title">{{ courseName }}</h4> |
|
|
|
|
<div class="chapters"> |
|
|
|
|
<template v-if="videoList.length"> |
|
|
|
|
<div class="chapter" v-for="(item,index) in videoList" :key="index"> |
|
|
|
|
<template v-if="chapterList.length"> |
|
|
|
|
<div class="chapter" v-for="(item,index) in chapterList" :key="index"> |
|
|
|
|
<div class="chapterName">{{ item.name }}</div> |
|
|
|
|
<div class="section" v-if="item.subsectionList.length"> |
|
|
|
|
<div class="sectionName" v-for="(section,i) in item.subsectionList" :key="i" |
|
|
|
@ -103,11 +103,13 @@ export default { |
|
|
|
|
courseId: this.$route.query.courseId, |
|
|
|
|
curriculumName: this.$route.query.curriculumName, |
|
|
|
|
video: "http://liuwanr.oss-cn-shenzhen.aliyuncs.com/mp4/20200519/1589871025648.mp4", |
|
|
|
|
videoList: [], |
|
|
|
|
courseName: "", |
|
|
|
|
briefIntroduction: "", |
|
|
|
|
teachingObjectives: "", |
|
|
|
|
coverUrl: "", |
|
|
|
|
chapterList: [], // 章节列表 |
|
|
|
|
coverUrl: "", // 课程封面 |
|
|
|
|
courseName: "", // 课程名称 |
|
|
|
|
briefIntroduction: "", // 课程简介 |
|
|
|
|
teachingObjectives: "", // 课程目标 |
|
|
|
|
assessmentList: "", // 考核列表 |
|
|
|
|
|
|
|
|
|
playAuth: "", |
|
|
|
|
player: null, |
|
|
|
|
previewImg: "", |
|
|
|
@ -150,13 +152,14 @@ export default { |
|
|
|
|
// this.coverUrl = data.coverUrl; |
|
|
|
|
this.briefIntroduction = data.briefIntroduction; |
|
|
|
|
this.teachingObjectives = data.teachingObjectives; |
|
|
|
|
this.assessmentList = data.assessmentConfig; |
|
|
|
|
}, |
|
|
|
|
async getChapter() { |
|
|
|
|
let res = await this.$get(`${this.api.curriculumChapter}/${this.courseId}`); |
|
|
|
|
this.videoList = res.chapterList; |
|
|
|
|
if (this.videoList.length && this.videoList[0].subsectionList && this.videoList[0].subsectionList.length) { |
|
|
|
|
// console.log(this.videoList[0].subsectionList[0]); |
|
|
|
|
this.preview(this.videoList[0].subsectionList[0]); |
|
|
|
|
this.chapterList = res.chapterList; |
|
|
|
|
if (this.chapterList.length && this.chapterList[0].subsectionList && this.chapterList[0].subsectionList.length) { |
|
|
|
|
// console.log(this.chapterList[0].subsectionList[0]); |
|
|
|
|
this.preview(this.chapterList[0].subsectionList[0]); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// 插入阿里云播放器脚本 |
|
|
|
@ -278,38 +281,41 @@ export default { |
|
|
|
|
loadPdfHandler(e) { |
|
|
|
|
this.currentPage = 1; |
|
|
|
|
}, |
|
|
|
|
goSubSystem() { |
|
|
|
|
let type = this.systemId; |
|
|
|
|
let host = Setting.apiBaseURL; |
|
|
|
|
goSystem() { // 进入实验系统 |
|
|
|
|
let id = this.assessmentList[0].systemId; |
|
|
|
|
let host = Setting.systemPath; |
|
|
|
|
let href = ""; |
|
|
|
|
|
|
|
|
|
let roleId = this.roleId == 4 ? 0 : 1; |
|
|
|
|
let userName = window.btoa(encodeURIComponent(this.userName)); |
|
|
|
|
|
|
|
|
|
if (type == 1) { |
|
|
|
|
href = `${host}pyTrials/#/`; |
|
|
|
|
// if(process.env.NODE_ENV === 'development') href = 'http://120.78.198.231/' |
|
|
|
|
} else if (type == 4) { |
|
|
|
|
if (id == 1) { |
|
|
|
|
// href = `${host}pyTrials/#/`; |
|
|
|
|
if(process.env.NODE_ENV === 'development') href = 'http://192.168.31.154:8080/#/' |
|
|
|
|
} else if (id == 4) { |
|
|
|
|
href = `${host}pyFinance/#/`; |
|
|
|
|
} else if (type == 5) { |
|
|
|
|
} else if (id == 5) { |
|
|
|
|
href = `${host}pyProjects/#/`; |
|
|
|
|
} else if (type == 6) { |
|
|
|
|
} else if (id == 6) { |
|
|
|
|
href = `${host}pyRandom/#/`; |
|
|
|
|
} else if (type == 7) { |
|
|
|
|
} else if (id == 7) { |
|
|
|
|
href = `${host}pyQuantification/#/`; |
|
|
|
|
} else if (type == 8) { |
|
|
|
|
} else if (id == 8) { |
|
|
|
|
href = `${host}pyAnalysis/#/`; |
|
|
|
|
} else if (type == 9) { |
|
|
|
|
} else if (id == 9) { |
|
|
|
|
href = `${host}pyDataclean/#/`; |
|
|
|
|
} else if (type == 10) { |
|
|
|
|
} else if (id == 10) { |
|
|
|
|
href = `${host}pyAcquisition/#/`; |
|
|
|
|
} else if (type == 21) { |
|
|
|
|
} else if (id == 11) { |
|
|
|
|
// href = `${host}bank/#/`; |
|
|
|
|
href = "http://39.108.250.202/bank/#/"; |
|
|
|
|
} else if (id == 21) { |
|
|
|
|
window.open(`http://121.37.29.24:80/yyyflogin?userId=${this.userId}&userName=${userName}&userType=${roleId}&reqType=1&reqId=3989a0ad671849b99dcbdcc208782333&caseId=9681f86902314b10bc752909121f9ab9&authorization=87DIVy348Oxzj3ha&classId=1876&courserId=7ff5d4715b114b7398b6f26c20fac460`); |
|
|
|
|
} else if (type == 22) { |
|
|
|
|
} else if (id == 22) { |
|
|
|
|
window.open(`https://danbao.czcyedu.com/#/loginFromYyyf?userId=${this.userId}&userName=${userName}&userType=${roleId}&reqType=1&reqId=eb7d8355119d449184c548b07dc01ed9&caseId=1198241070647873538&authorization=87DIVy348Oxzj3ha&classId=1876&courserId=faaedd82adb9444285a5785e4a3dd4f9`); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (type != 21 && type != 22) { |
|
|
|
|
if (id != 21 && id != 22) { |
|
|
|
|
util.cookies.set("userId", this.userId); |
|
|
|
|
util.cookies.set("studentId", this.studentId); |
|
|
|
|
util.cookies.set("assessmentId", "", -1); |
|
|
|
|