提交 8172ab1b 编写于 作者: guangjun.yang's avatar guangjun.yang

Merge branch 'dev-coursedetail-0817' of...

Merge branch 'dev-coursedetail-0817' of http://192.168.110.53/com.pica.cloud.education.frontend/pica-professional-exam into dev-coursedetail-0817

* 'dev-coursedetail-0817' of http://192.168.110.53/com.pica.cloud.education.frontend/pica-professional-exam:
  修改上报
...@@ -419,7 +419,7 @@ export default { ...@@ -419,7 +419,7 @@ export default {
if (!chapterId || !courseId || !lectureId) { if (!chapterId || !courseId || !lectureId) {
return; return;
} }
this.POST('/contents/files/resourceRecord', { this.POST('contents/files/resourceRecord', {
fileType: 1, fileType: 1,
resourceInfo1: courseId, resourceInfo1: courseId,
resourceInfo2: chapterId, resourceInfo2: chapterId,
...@@ -439,7 +439,7 @@ export default { ...@@ -439,7 +439,7 @@ export default {
if (!chapterId || !courseId || !lectureId) { if (!chapterId || !courseId || !lectureId) {
return; return;
} }
this.POST('/contents/joinCourse/', { this.POST('contents/joinCourse/', {
requestList: [{ requestList: [{
chapterId, chapterId,
courseId, courseId,
......
...@@ -167,7 +167,7 @@ export default { ...@@ -167,7 +167,7 @@ export default {
const { courseId = 6 } = this.$route.query; const { courseId = 6 } = this.$route.query;
const projectId = this.projectId || 797; const projectId = this.projectId || 797;
this.showLoading = true; this.showLoading = true;
this.GET(`/contents/courses/${courseId}/pcCourseInfo`, { projectId }).then(res => { this.GET(`contents/courses/${courseId}/pcCourseInfo`, { projectId }).then(res => {
this.showLoading = false; this.showLoading = false;
this.showDownloadButton = true; this.showDownloadButton = true;
if (res.code == "000000") { if (res.code == "000000") {
...@@ -254,7 +254,7 @@ export default { ...@@ -254,7 +254,7 @@ export default {
btnText = '试看'; // 可试看 btnText = '试看'; // 可试看
} }
if (showFlag === 0) { if (showFlag === 0) {
btnText = lecture.progress === 100 ? '复习课程' : '学习'; btnText = lecture.progress === 1 ? '复习课程' : '学习';
} }
lecture.btnText = btnText; lecture.btnText = btnText;
const totalTime = formatLeftTimeObj(lecture.totalTime); const totalTime = formatLeftTimeObj(lecture.totalTime);
...@@ -343,7 +343,7 @@ export default { ...@@ -343,7 +343,7 @@ export default {
getCourseQas() { getCourseQas() {
const { courseId = 3 } = this.$route.query; const { courseId = 3 } = this.$route.query;
const projectId = this.projectId || 797; const projectId = this.projectId || 797;
this.GET(`/contents/courses/v2/${courseId}/qas`, { projectId, pageNo: 1, pageSize: 10 }).then(res => { this.GET(`contents/courses/v2/${courseId}/qas`, { projectId, pageNo: 1, pageSize: 10 }).then(res => {
if (res.code == "000000") { if (res.code == "000000") {
this.qsList = res.data.model && res.data.model.qaPostModel || []; this.qsList = res.data.model && res.data.model.qaPostModel || [];
} else { } else {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册