|
@@ -967,23 +967,25 @@ export default {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
!this.userInfo && this.$api.refreshUserInfo();
|
|
!this.userInfo && this.$api.refreshUserInfo();
|
|
|
|
|
+ option.informId && this.clickOfficial(option.informId);
|
|
|
|
|
+
|
|
|
this.courseId = Number(option.id) || "";
|
|
this.courseId = Number(option.id) || "";
|
|
|
this.goodsId = Number(option.goodsId);
|
|
this.goodsId = Number(option.goodsId);
|
|
|
this.orderGoodsId = Number(option.orderGoodsId) || "";
|
|
this.orderGoodsId = Number(option.orderGoodsId) || "";
|
|
|
this.gradeId = option.gradeId;
|
|
this.gradeId = option.gradeId;
|
|
|
this.option = option;
|
|
this.option = option;
|
|
|
- // 公众号模板消息的数据埋点
|
|
|
|
|
- option.informId && this.clickOfficial(option.informId);
|
|
|
|
|
|
|
+
|
|
|
if (this.option.skipPort) {
|
|
if (this.option.skipPort) {
|
|
|
await this.$method.skipLogin(this.option.skipPort);
|
|
await this.$method.skipLogin(this.option.skipPort);
|
|
|
}
|
|
}
|
|
|
if (this.$method.isGoLogin()) {
|
|
if (this.$method.isGoLogin()) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
+ await getPlaySection()
|
|
|
this.courseCourseList();
|
|
this.courseCourseList();
|
|
|
},
|
|
},
|
|
|
async onShow() {
|
|
async onShow() {
|
|
|
- console.log('12123123')
|
|
|
|
|
|
|
+ console.log("12123123");
|
|
|
},
|
|
},
|
|
|
onUnload() {
|
|
onUnload() {
|
|
|
console.log("onUnloadonUnloadonUnloadonUnload");
|
|
console.log("onUnloadonUnloadonUnloadonUnload");
|
|
@@ -1024,7 +1026,8 @@ export default {
|
|
|
})
|
|
})
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
|
- this.courseList.push.apply(this.courseList, res.data.rows);
|
|
|
|
|
|
|
+ console.log(res.data,res.data.rows)
|
|
|
|
|
+ this.courseList = res.data.rows;
|
|
|
// 科目
|
|
// 科目
|
|
|
let allItem = [{ subjectId: 0, subjectName: "所有" }];
|
|
let allItem = [{ subjectId: 0, subjectName: "所有" }];
|
|
|
let ids = [];
|
|
let ids = [];
|
|
@@ -1059,6 +1062,21 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
// 查询用户最后一次看的录播的信息
|
|
// 查询用户最后一次看的录播的信息
|
|
|
|
|
+ getPlaySection() {
|
|
|
|
|
+ return this.$http({
|
|
|
|
|
+ url: "/study/record/getUserWatchLast",
|
|
|
|
|
+ method: "get",
|
|
|
|
|
+ data: {
|
|
|
|
|
+ orderGoodsId: this.orderGoodsId,
|
|
|
|
|
+ },
|
|
|
|
|
+ }).then((res) => {
|
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
|
+ this.sectionItem = res.data.data || {};
|
|
|
|
|
+ }
|
|
|
|
|
+ return Promise.resolve()
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ // 查询用户最后一次看的录播的信息
|
|
|
getUserWatchLast() {
|
|
getUserWatchLast() {
|
|
|
this.$http({
|
|
this.$http({
|
|
|
url: "/study/record/getUserWatchLast",
|
|
url: "/study/record/getUserWatchLast",
|
|
@@ -1068,6 +1086,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
|
|
|
+ console.log(res.data)
|
|
|
this.sectionItem = res.data.data || {};
|
|
this.sectionItem = res.data.data || {};
|
|
|
if (res.data.data && Object.keys(res.data.data).length) {
|
|
if (res.data.data && Object.keys(res.data.data).length) {
|
|
|
//有最后一次看的录播的信息
|
|
//有最后一次看的录播的信息
|