|
@@ -5997,11 +5997,11 @@ export default {
|
|
|
this.taskCount = 0;
|
|
|
this.navList[this.courseType].isOpen = true;
|
|
|
} else {
|
|
|
- var bbb = this.taskCount + 1;
|
|
|
+ var bbb = parseInt(this.taskCount) + 1;
|
|
|
if (
|
|
|
!this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
|
|
|
.isLook &&
|
|
|
- this.courseDetail.userid != this.userid
|
|
|
+ this.courseDetail.userid != this.userid && this.IsLookOpen
|
|
|
) {
|
|
|
this.$message.error("任务未解锁");
|
|
|
return;
|
|
@@ -6020,10 +6020,10 @@ export default {
|
|
|
this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
|
|
|
1
|
|
|
) {
|
|
|
- var bbb = this.courseType + 1;
|
|
|
+ var bbb = parseInt(this.courseType) + 1;
|
|
|
if (
|
|
|
!this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
|
|
|
- this.courseDetail.userid != this.userid
|
|
|
+ this.courseDetail.userid != this.userid && this.IsLookOpen
|
|
|
) {
|
|
|
this.$message.error("任务未解锁");
|
|
|
return;
|
|
@@ -6033,11 +6033,11 @@ export default {
|
|
|
this.taskCount = 0;
|
|
|
this.navList[this.courseType].isOpen = true;
|
|
|
} else {
|
|
|
- var bbb = this.taskCount + 1;
|
|
|
+ var bbb = parseInt(this.taskCount) + 1;
|
|
|
if (
|
|
|
!this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
|
|
|
.isLook &&
|
|
|
- this.courseDetail.userid != this.userid
|
|
|
+ this.courseDetail.userid != this.userid && this.IsLookOpen
|
|
|
) {
|
|
|
this.$message.error("任务未解锁");
|
|
|
return;
|