|
|
@@ -2320,8 +2320,27 @@ export default {
|
|
|
}
|
|
|
|
|
|
this.courseCourseList();
|
|
|
- this.getbaseprofiletplists();
|
|
|
this.dictList();
|
|
|
+
|
|
|
+ this.getbaseprofiletplists().then((res) => {
|
|
|
+ let noteSecond = this.$route.query.noteSecond;
|
|
|
+ if (noteSecond > 0) {
|
|
|
+ let item = {
|
|
|
+ sectionId: this.$route.query.sectionId,
|
|
|
+ recordingUrl: this.$route.query.recordingUrl,
|
|
|
+ noteSecond: noteSecond,
|
|
|
+ studyDuration: noteSecond,
|
|
|
+ moduleId: this.$route.query.moduleId,
|
|
|
+ chapterId: this.$route.query.chapterId,
|
|
|
+ };
|
|
|
+
|
|
|
+ this.sectionItem = item;
|
|
|
+ this.playSectionId = this.$route.query.sectionId;
|
|
|
+ setTimeout(() => {
|
|
|
+ this.noteClick(item);
|
|
|
+ }, 1000);
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
try {
|
|
|
@@ -3075,146 +3094,156 @@ export default {
|
|
|
},
|
|
|
|
|
|
getbaseprofiletplists() {
|
|
|
- let self = this;
|
|
|
- this.$request
|
|
|
- .getbaseprofiletplists({
|
|
|
- goodsId: this.goodsId,
|
|
|
- orderGoodsId: this.orderGoodsId,
|
|
|
- })
|
|
|
- .then((res) => {
|
|
|
- console.log(res, "res");
|
|
|
- if (res.code === 200 && res.rows.length) {
|
|
|
- if (res.rows[0].keyValue) {
|
|
|
- self.$request.getbaseprofiletpId(self.goodsId).then((baseRes) => {
|
|
|
- if (baseRes.code === 200) {
|
|
|
- if (baseRes.data) {
|
|
|
- self.$request
|
|
|
- .getbaseprofiletpgetInfo({
|
|
|
- goodsId: self.goodsId,
|
|
|
- orderGoodsId: self.orderGoodsId,
|
|
|
- })
|
|
|
- .then((result) => {
|
|
|
- console.log(result, "result");
|
|
|
- if (result.code === 200) {
|
|
|
- if (
|
|
|
- !result.data ||
|
|
|
- (result.data.status === 3 &&
|
|
|
- result.data.changeStatus === 1)
|
|
|
- ) {
|
|
|
- if (!result.data) {
|
|
|
- self.needProfileModal = true;
|
|
|
-
|
|
|
- this.$confirm(`请填写资料`, "提示", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "返回",
|
|
|
- closeOnClickModal: false,
|
|
|
- closeOnPressEscape: false,
|
|
|
- distinguishCancelAndClose: false,
|
|
|
- showClose: false,
|
|
|
- })
|
|
|
- .then((_) => {
|
|
|
- this.showInfoDetailModal = true;
|
|
|
- this.getInfo();
|
|
|
- })
|
|
|
- .catch((_) => {
|
|
|
- this.$router.back(-1);
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.$confirm(
|
|
|
- `资料审核不通过,请前往重新填写`,
|
|
|
- "提示",
|
|
|
- {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "返回",
|
|
|
- closeOnClickModal: false,
|
|
|
- closeOnPressEscape: false,
|
|
|
- distinguishCancelAndClose: false,
|
|
|
- showClose: false,
|
|
|
+ return new Promise((resolve) => {
|
|
|
+ let self = this;
|
|
|
+ this.$request
|
|
|
+ .getbaseprofiletplists({
|
|
|
+ goodsId: this.goodsId,
|
|
|
+ orderGoodsId: this.orderGoodsId || "",
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ console.log(res, "res");
|
|
|
+ if (res.code === 200 && res.rows.length) {
|
|
|
+ if (res.rows[0].keyValue) {
|
|
|
+ self.$request
|
|
|
+ .getbaseprofiletpId(self.goodsId)
|
|
|
+ .then((baseRes) => {
|
|
|
+ if (baseRes.code === 200) {
|
|
|
+ if (baseRes.data) {
|
|
|
+ self.$request
|
|
|
+ .getbaseprofiletpgetInfo({
|
|
|
+ goodsId: self.goodsId,
|
|
|
+ orderGoodsId: self.orderGoodsId,
|
|
|
+ })
|
|
|
+ .then((result) => {
|
|
|
+ console.log(result, "result");
|
|
|
+ if (result.code === 200) {
|
|
|
+ if (
|
|
|
+ !result.data ||
|
|
|
+ (result.data.status === 3 &&
|
|
|
+ result.data.changeStatus === 1)
|
|
|
+ ) {
|
|
|
+ if (!result.data) {
|
|
|
+ self.needProfileModal = true;
|
|
|
+
|
|
|
+ this.$confirm(`请填写资料`, "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "返回",
|
|
|
+ closeOnClickModal: false,
|
|
|
+ closeOnPressEscape: false,
|
|
|
+ distinguishCancelAndClose: false,
|
|
|
+ showClose: false,
|
|
|
+ })
|
|
|
+ .then((_) => {
|
|
|
+ this.showInfoDetailModal = true;
|
|
|
+ this.getInfo();
|
|
|
+ })
|
|
|
+ .catch((_) => {
|
|
|
+ this.$router.back(-1);
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$confirm(
|
|
|
+ `资料审核不通过,请前往重新填写`,
|
|
|
+ "提示",
|
|
|
+ {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "返回",
|
|
|
+ closeOnClickModal: false,
|
|
|
+ closeOnPressEscape: false,
|
|
|
+ distinguishCancelAndClose: false,
|
|
|
+ showClose: false,
|
|
|
+ }
|
|
|
+ )
|
|
|
+ .then((_) => {
|
|
|
+ this.showInfoDetailModal = true;
|
|
|
+ this.getInfo();
|
|
|
+ })
|
|
|
+ .catch((_) => {
|
|
|
+ this.$router.back(-1);
|
|
|
+ });
|
|
|
}
|
|
|
- )
|
|
|
- .then((_) => {
|
|
|
- this.showInfoDetailModal = true;
|
|
|
- this.getInfo();
|
|
|
- })
|
|
|
- .catch((_) => {
|
|
|
- this.$router.back(-1);
|
|
|
- });
|
|
|
- }
|
|
|
- } else if (
|
|
|
- result.data.status === 1 &&
|
|
|
- JSON.parse(res.rows[0].keyValue2)[0]
|
|
|
- ) {
|
|
|
- self.$request
|
|
|
- .getbaseprofileStampgetInfo({
|
|
|
- goodsId: self.goodsId,
|
|
|
- orderGoodsId: self.orderGoodsId,
|
|
|
- })
|
|
|
- .then((k) => {
|
|
|
- if (k.code === 200) {
|
|
|
- if (
|
|
|
- !k.data ||
|
|
|
- (k.data.status === 3 &&
|
|
|
- k.data.changeStatus === 1)
|
|
|
- ) {
|
|
|
- if (!k.data) {
|
|
|
- this.$confirm(
|
|
|
- `请前往填写盖章资料`,
|
|
|
- "提示",
|
|
|
- {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "返回",
|
|
|
- closeOnClickModal: false,
|
|
|
- closeOnPressEscape: false,
|
|
|
- distinguishCancelAndClose: false,
|
|
|
- showClose: false,
|
|
|
- }
|
|
|
- )
|
|
|
- .then((_) => {
|
|
|
- this.showStampDetailModail = true;
|
|
|
- this.getInfoStamp();
|
|
|
- })
|
|
|
- .catch((_) => {
|
|
|
- this.$router.back(-1);
|
|
|
- });
|
|
|
- } else {
|
|
|
- self.needProfileModal = true;
|
|
|
- this.$confirm(
|
|
|
- `资料盖章审核不通过,请前往重新填写`,
|
|
|
- "提示",
|
|
|
- {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "返回",
|
|
|
- closeOnClickModal: false,
|
|
|
- closeOnPressEscape: false,
|
|
|
- distinguishCancelAndClose: false,
|
|
|
- showClose: false,
|
|
|
+ } else if (
|
|
|
+ result.data.status === 1 &&
|
|
|
+ JSON.parse(res.rows[0].keyValue2)[0]
|
|
|
+ ) {
|
|
|
+ self.$request
|
|
|
+ .getbaseprofileStampgetInfo({
|
|
|
+ goodsId: self.goodsId,
|
|
|
+ orderGoodsId: self.orderGoodsId,
|
|
|
+ })
|
|
|
+ .then((k) => {
|
|
|
+ if (k.code === 200) {
|
|
|
+ if (
|
|
|
+ !k.data ||
|
|
|
+ (k.data.status === 3 &&
|
|
|
+ k.data.changeStatus === 1)
|
|
|
+ ) {
|
|
|
+ if (!k.data) {
|
|
|
+ this.$confirm(
|
|
|
+ `请前往填写盖章资料`,
|
|
|
+ "提示",
|
|
|
+ {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "返回",
|
|
|
+ closeOnClickModal: false,
|
|
|
+ closeOnPressEscape: false,
|
|
|
+ distinguishCancelAndClose: false,
|
|
|
+ showClose: false,
|
|
|
+ }
|
|
|
+ )
|
|
|
+ .then((_) => {
|
|
|
+ this.showStampDetailModail = true;
|
|
|
+ this.getInfoStamp();
|
|
|
+ })
|
|
|
+ .catch((_) => {
|
|
|
+ this.$router.back(-1);
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ self.needProfileModal = true;
|
|
|
+ this.$confirm(
|
|
|
+ `资料盖章审核不通过,请前往重新填写`,
|
|
|
+ "提示",
|
|
|
+ {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "返回",
|
|
|
+ closeOnClickModal: false,
|
|
|
+ closeOnPressEscape: false,
|
|
|
+ distinguishCancelAndClose: false,
|
|
|
+ showClose: false,
|
|
|
+ }
|
|
|
+ )
|
|
|
+ .then((_) => {
|
|
|
+ this.showStampDetailModail = true;
|
|
|
+ this.getInfoStamp();
|
|
|
+ })
|
|
|
+ .catch((_) => {
|
|
|
+ this.$router.back(-1);
|
|
|
+ });
|
|
|
}
|
|
|
- )
|
|
|
- .then((_) => {
|
|
|
- this.showStampDetailModail = true;
|
|
|
- this.getInfoStamp();
|
|
|
- })
|
|
|
- .catch((_) => {
|
|
|
- this.$router.back(-1);
|
|
|
- });
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ resolve();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ resolve();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ resolve();
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- });
|
|
|
- if (this.gradeId > 0) {
|
|
|
- //提交完资料返回判断是否已开班
|
|
|
+ });
|
|
|
+ if (this.gradeId > 0) {
|
|
|
+ //提交完资料返回判断是否已开班
|
|
|
|
|
|
- this.getGradeInfo();
|
|
|
- }
|
|
|
+ this.getGradeInfo();
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
|
|
|
getInfoStamp() {
|
|
|
@@ -4356,12 +4385,15 @@ export default {
|
|
|
loadPlayer() {
|
|
|
var self = this;
|
|
|
const polyvPlayer = window.polyvPlayer;
|
|
|
+ console.log(polyvPlayer);
|
|
|
self.$request.obtainpolyvvideosign(self.vid).then((res) => {
|
|
|
+ console.log(res, "res2");
|
|
|
self.player = polyvPlayer({
|
|
|
wrap: "#player",
|
|
|
width: 810,
|
|
|
height: 455,
|
|
|
speed: 2,
|
|
|
+ ban_history_time: "on",
|
|
|
vid: self.vid,
|
|
|
teaser_show: 1,
|
|
|
tail_show: 1,
|
|
|
@@ -5087,6 +5119,7 @@ export default {
|
|
|
polyvPlayerContext.changeVid(note.recordingUrl);
|
|
|
} else {
|
|
|
this.vid = note.recordingUrl;
|
|
|
+ console.log(note.recordingUrl);
|
|
|
this.moduleId = note.moduleId;
|
|
|
this.chapterId = note.chapterId;
|
|
|
this.playSectionId = note.sectionId;
|
|
|
@@ -5273,7 +5306,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
- console.log(copydata2)
|
|
|
+ console.log(copydata2);
|
|
|
copydata2.forEach((it) => {
|
|
|
for (let i = 0; i < data1.length; i++) {
|
|
|
const STATUS = data1[i].newArraysAnswerList.some((items) => {
|