|
@@ -235,14 +235,7 @@
|
|
}
|
|
}
|
|
// debugger
|
|
// debugger
|
|
Number(this.jieId++)
|
|
Number(this.jieId++)
|
|
- console.log('this.pageData', this.pageData);
|
|
|
|
- let currentObject = this.cacheZhangInfo.zhangList[this.cacheCurrentZhangIndex].jieList.find(item =>
|
|
|
|
- item.jieId == this.jieId);
|
|
|
|
- if (currentObject) {
|
|
|
|
- this.pageData = {
|
|
|
|
- ...currentObject
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
// lastFlag是否是本章最后一节,0否1是 type,1视频,2试题
|
|
// lastFlag是否是本章最后一节,0否1是 type,1视频,2试题
|
|
if (this.pageData.lastFlag == 1 && this.pageData.type == 2) {
|
|
if (this.pageData.lastFlag == 1 && this.pageData.type == 2) {
|
|
uni.redirectTo({
|
|
uni.redirectTo({
|
|
@@ -297,6 +290,18 @@
|
|
this.subjectId + '&tipFlag=' + this.tipFlag
|
|
this.subjectId + '&tipFlag=' + this.tipFlag
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
|
|
+ debugger
|
|
|
|
+ console.log('this.pageData', this.pageData);
|
|
|
|
+ // let currentObject = this.cacheZhangInfo.zhangList[this.cacheCurrentZhangIndex].jieList.find(item =>
|
|
|
|
+ // item.jieId == this.jieId);
|
|
|
|
+ // if (currentObject) {
|
|
|
|
+ // this.pageData = {
|
|
|
|
+ // ...currentObject
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
let zhang = this.cacheZhangInfo.zhangList[this.cacheCurrentZhangIndex]
|
|
let zhang = this.cacheZhangInfo.zhangList[this.cacheCurrentZhangIndex]
|
|
if (zhang.zhangId == this.pageData.nextZhangId) {
|
|
if (zhang.zhangId == this.pageData.nextZhangId) {
|
|
cacheManager.updateObject('zhangInfo', {
|
|
cacheManager.updateObject('zhangInfo', {
|