|
@@ -2153,7 +2153,7 @@
|
|
import Footer from "@/components/footer/index";
|
|
import Footer from "@/components/footer/index";
|
|
import Header from "@/components/header/index";
|
|
import Header from "@/components/header/index";
|
|
import ToolBar from "@/components/toolbar/index";
|
|
import ToolBar from "@/components/toolbar/index";
|
|
-import { mapGetters,mapMutations } from "vuex";
|
|
|
|
|
|
+import { mapGetters, mapMutations } from "vuex";
|
|
import * as baseUrls from "@/axios.js";
|
|
import * as baseUrls from "@/axios.js";
|
|
import pdf from "vue-pdf";
|
|
import pdf from "vue-pdf";
|
|
import print from "print-js";
|
|
import print from "print-js";
|
|
@@ -2281,7 +2281,7 @@ export default {
|
|
idcard_national_photo: "",
|
|
idcard_national_photo: "",
|
|
commitment_electr_signature: "",
|
|
commitment_electr_signature: "",
|
|
},
|
|
},
|
|
- recommendList:[],
|
|
|
|
|
|
+ recommendList: [],
|
|
rules: {
|
|
rules: {
|
|
name: [
|
|
name: [
|
|
{
|
|
{
|
|
@@ -2473,6 +2473,8 @@ export default {
|
|
showRecordStatus: false,
|
|
showRecordStatus: false,
|
|
hasStart: false,
|
|
hasStart: false,
|
|
needOpen: true, //是否需要展开第一章节
|
|
needOpen: true, //是否需要展开第一章节
|
|
|
|
+ menuIndex: [],
|
|
|
|
+ clickLock: false,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -4071,6 +4073,11 @@ export default {
|
|
item.parent = menuItem;
|
|
item.parent = menuItem;
|
|
}
|
|
}
|
|
menuItem.list = res.data;
|
|
menuItem.list = res.data;
|
|
|
|
+
|
|
|
|
+ if (this.needOpen) {
|
|
|
|
+ this.needOpen = false;
|
|
|
|
+ this.openChapter(menuItem.list[0]);
|
|
|
|
+ }
|
|
});
|
|
});
|
|
},
|
|
},
|
|
openChapter(chapter) {
|
|
openChapter(chapter) {
|
|
@@ -4381,6 +4388,10 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
if (section.type != 2) {
|
|
if (section.type != 2) {
|
|
|
|
+ if (this.clickLock) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ this.clickLock = true;
|
|
if (
|
|
if (
|
|
this.playSectionId &&
|
|
this.playSectionId &&
|
|
(this.playSectionId == section.sectionId ||
|
|
(this.playSectionId == section.sectionId ||
|
|
@@ -4389,6 +4400,7 @@ export default {
|
|
this.chapterId == (section.chapterId || 0)
|
|
this.chapterId == (section.chapterId || 0)
|
|
) {
|
|
) {
|
|
//切换为同一频道不作为
|
|
//切换为同一频道不作为
|
|
|
|
+ this.clickLock = false;
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -4424,6 +4436,7 @@ export default {
|
|
if (isAllLearn) {
|
|
if (isAllLearn) {
|
|
this.initVideo(section);
|
|
this.initVideo(section);
|
|
} else {
|
|
} else {
|
|
|
|
+ this.clickLock = false;
|
|
this.$message({
|
|
this.$message({
|
|
type: "warning",
|
|
type: "warning",
|
|
message: "请按顺序学习视频课程",
|
|
message: "请按顺序学习视频课程",
|
|
@@ -4495,6 +4508,7 @@ export default {
|
|
);
|
|
);
|
|
if (this.goodsData.sectionMaxNum > 0) {
|
|
if (this.goodsData.sectionMaxNum > 0) {
|
|
if (learnNum >= this.goodsData.sectionMaxNum && !hasLearn) {
|
|
if (learnNum >= this.goodsData.sectionMaxNum && !hasLearn) {
|
|
|
|
+ this.clickLock = false;
|
|
this.$message({
|
|
this.$message({
|
|
type: "warning",
|
|
type: "warning",
|
|
message: `每天最多学习${this.goodsData.sectionMaxNum}节`,
|
|
message: `每天最多学习${this.goodsData.sectionMaxNum}节`,
|
|
@@ -4503,6 +4517,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (!option.recordingUrl) {
|
|
if (!option.recordingUrl) {
|
|
|
|
+ this.clickLock = false;
|
|
this.$message({
|
|
this.$message({
|
|
type: "warning",
|
|
type: "warning",
|
|
message: `暂无播放地址数据`,
|
|
message: `暂无播放地址数据`,
|
|
@@ -4526,6 +4541,7 @@ export default {
|
|
|
|
|
|
if (this.goodsData.sectionMaxNum > 0) {
|
|
if (this.goodsData.sectionMaxNum > 0) {
|
|
if (learnNum >= this.goodsData.sectionMaxNum && !hasLearn) {
|
|
if (learnNum >= this.goodsData.sectionMaxNum && !hasLearn) {
|
|
|
|
+ this.clickLock = false;
|
|
this.$message({
|
|
this.$message({
|
|
type: "warning",
|
|
type: "warning",
|
|
message: `每天最多学习${this.goodsData.sectionMaxNum}节`,
|
|
message: `每天最多学习${this.goodsData.sectionMaxNum}节`,
|
|
@@ -4534,6 +4550,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (!option.liveUrl) {
|
|
if (!option.liveUrl) {
|
|
|
|
+ this.clickLock = false;
|
|
this.$message({
|
|
this.$message({
|
|
type: "warning",
|
|
type: "warning",
|
|
message: `暂无直播地址数据`,
|
|
message: `暂无直播地址数据`,
|
|
@@ -4596,6 +4613,9 @@ export default {
|
|
this.vid = option.recordingUrl;
|
|
this.vid = option.recordingUrl;
|
|
this.hasStart = true;
|
|
this.hasStart = true;
|
|
this.loadPlayerScript(this.loadPlayer);
|
|
this.loadPlayerScript(this.loadPlayer);
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.clickLock = false;
|
|
|
|
+ }, 3000);
|
|
// uni.$emit("levelId", this.levelId);
|
|
// uni.$emit("levelId", this.levelId);
|
|
// uni.$emit("getSection", this.menuItem);
|
|
// uni.$emit("getSection", this.menuItem);
|
|
// uni.$emit("isRebuild", this.isRebuild);
|
|
// uni.$emit("isRebuild", this.isRebuild);
|
|
@@ -4630,6 +4650,9 @@ export default {
|
|
this.hasStart = true;
|
|
this.hasStart = true;
|
|
this.vidzb = option.liveUrl;
|
|
this.vidzb = option.liveUrl;
|
|
this.loadPlayerScriptzb(this.loadPlayerzb);
|
|
this.loadPlayerScriptzb(this.loadPlayerzb);
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.clickLock = false;
|
|
|
|
+ }, 3000);
|
|
// uni.$emit("levelId", this.levelId);
|
|
// uni.$emit("levelId", this.levelId);
|
|
// uni.$emit("getChannel", this.menuItem);
|
|
// uni.$emit("getChannel", this.menuItem);
|
|
// uni.$emit("isRebuild", this.isRebuild);
|
|
// uni.$emit("isRebuild", this.isRebuild);
|
|
@@ -5560,6 +5583,21 @@ export default {
|
|
item.parent = this.menuList;
|
|
item.parent = this.menuList;
|
|
}
|
|
}
|
|
self.menuList = res.rows;
|
|
self.menuList = res.rows;
|
|
|
|
+
|
|
|
|
+ if (this.needOpen) {
|
|
|
|
+ for (let i = 0; i < res.rows.length; i++) {
|
|
|
|
+ if (res.rows[i].type == 1) {
|
|
|
|
+ this.menuIndex = [i];
|
|
|
|
+ this.openModule(this.menuList[i]);
|
|
|
|
+ break;
|
|
|
|
+ } else if (res.rows[i].type == 2) {
|
|
|
|
+ this.menuIndex = [i];
|
|
|
|
+ this.needOpen = false;
|
|
|
|
+ this.openChapter(this.menuList[i]);
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
|