|
@@ -74,6 +74,7 @@
|
|
|
</template>
|
|
|
<el-tag
|
|
|
v-else
|
|
|
+ v-show="allSectionList.length > 0"
|
|
|
size="mini"
|
|
|
effect="light"
|
|
|
:type="getStudyStatus(item1)['style']"
|
|
@@ -158,6 +159,7 @@
|
|
|
</template>
|
|
|
<el-tag
|
|
|
v-else
|
|
|
+ v-show="allSectionList.length > 0"
|
|
|
size="mini"
|
|
|
effect="light"
|
|
|
:type="getStudyStatus(item2)['style']"
|
|
@@ -243,9 +245,13 @@
|
|
|
>
|
|
|
</template>
|
|
|
</template>
|
|
|
- <el-tag v-else size="mini" effect="dark">{{
|
|
|
- getStudyStatus(item3)["name"]
|
|
|
- }}</el-tag>
|
|
|
+ <el-tag
|
|
|
+ v-else
|
|
|
+ size="mini"
|
|
|
+ effect="dark"
|
|
|
+ v-show="allSectionList.length > 0"
|
|
|
+ >{{ getStudyStatus(item3)["name"] }}</el-tag
|
|
|
+ >
|
|
|
</div>
|
|
|
</div>
|
|
|
</li>
|
|
@@ -354,7 +360,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
if (item.sectionType == 2) {
|
|
|
- console.log("aaasdasdasd", item, this.nowTime);
|
|
|
if (item.liveStartTime > this.nowTime) {
|
|
|
console.log("asdasdasd");
|
|
|
return {
|
|
@@ -422,7 +427,7 @@ export default {
|
|
|
i =>
|
|
|
i.moduleId == this.activeSection.moduleId &&
|
|
|
i.chapterId == this.activeSection.chapterId &&
|
|
|
- i.sectionId == this.activeSection.sectionId &&
|
|
|
+ i.sectionId == this.activeSection.sectionId &&
|
|
|
i.studyStatus != 1
|
|
|
) !== -1
|
|
|
) {
|
|
@@ -441,7 +446,7 @@ export default {
|
|
|
i =>
|
|
|
i.moduleId == this.activeSection.moduleId &&
|
|
|
i.chapterId == this.activeSection.chapterId &&
|
|
|
- i.sectionId == this.activeSection.sectionId &&
|
|
|
+ i.sectionId == this.activeSection.sectionId &&
|
|
|
i.studyStatus != 1
|
|
|
) !== -1
|
|
|
) {
|
|
@@ -451,7 +456,6 @@ export default {
|
|
|
};
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
if (STATUSARRAY.every(i => i.studyStatus == 1)) {
|
|
|
return {
|
|
|
name: "已学完",
|
|
@@ -864,9 +868,9 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
this.$confirm(
|
|
|
- `确定前往观看${item.sectionType == 2 ? " [直播] " : " [回放] "}${
|
|
|
- item.sectionName || item.name
|
|
|
- }?`,
|
|
|
+ `确定前往观看${
|
|
|
+ item.sectionType == 2 ? " [直播] " : " [回放] "
|
|
|
+ }${item.sectionName || item.name}?`,
|
|
|
"提示",
|
|
|
{
|
|
|
confirmButtonText: "确定",
|
|
@@ -1140,9 +1144,9 @@ export default {
|
|
|
Object.assign({}, this.allSectionList[index])
|
|
|
); //重新赋值当前节数据
|
|
|
ary = this.allSectionList[index + 1];
|
|
|
- if (ary && ary.studyStatus == 1){
|
|
|
- ary = null
|
|
|
- hasNoStudyStatus = null
|
|
|
+ if (ary && ary.studyStatus == 1) {
|
|
|
+ ary = null;
|
|
|
+ hasNoStudyStatus = null;
|
|
|
}
|
|
|
}
|
|
|
if (ary) {
|