|
@@ -607,7 +607,7 @@
|
|
|
<text> {{ item.stuAllNum + item.recordNum }}/{{ item.secAllNum + item.examNum}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="course_rights" @click="jump(item, index, 'jump')">
|
|
|
+ <view class="course_rights" @click="jump(item, gTindex, 'jump')">
|
|
|
<view class="cicles">
|
|
|
<u-icon name="arrow-right" color="#498AFE" size="20"></u-icon>
|
|
|
</view>
|
|
@@ -966,7 +966,7 @@ export default {
|
|
|
this.goodsTeacher.push(data)
|
|
|
})
|
|
|
}
|
|
|
- // console.log(this.goodsTeacher,'this.goodsTeacher', this.courseId);
|
|
|
+ console.log(this.goodsTeacher,'this.goodsTeacher', this.courseId);
|
|
|
this.goodsTeacher.forEach((item) => {
|
|
|
if(item.courseList.some(x => x.courseId == this.courseId)){
|
|
|
this.teacherList = item.teaList
|
|
@@ -1128,26 +1128,11 @@ export default {
|
|
|
},
|
|
|
// 进入学习
|
|
|
async jump(item, index, type) {
|
|
|
- // console.log('item------>', index,item,'courseId:',item.courseId, 'goodsId:', this.goodsId, 'orderGoodsId:',item.orderGoodsId)
|
|
|
- this.vid = ''
|
|
|
- this.hasStart = true
|
|
|
- await this.originUnload()
|
|
|
+ // console.log('item------>', index,item,this.goodsTeacher)
|
|
|
|
|
|
- if (type) {
|
|
|
- this.teacherIndex = 0
|
|
|
- this.goodsTeacher.forEach((citem) => {
|
|
|
- if(citem.courseList.some(x => x.courseId == item.courseId)){
|
|
|
- this.teacherList = citem.teaList
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- this.reStart = false
|
|
|
- this.courseId = item.courseId
|
|
|
- this.gradeId = item.gradeId
|
|
|
- this.toggleCourseShow = false
|
|
|
-
|
|
|
-
|
|
|
if (index == 0) {
|
|
|
+ await this.nextCourses(item, type)
|
|
|
+
|
|
|
if (item.rebuild === 0) {
|
|
|
//未重修
|
|
|
this.$navTo.togo("/pages2/learn/details", {
|
|
@@ -1198,6 +1183,8 @@ export default {
|
|
|
if (
|
|
|
prevItem.stuAllNum == prevItem.secAllNum
|
|
|
) {
|
|
|
+ await this.nextCourses(item, type)
|
|
|
+
|
|
|
if (item.rebuild === 0) {
|
|
|
//未重修
|
|
|
this.$navTo.togo("/pages2/learn/details", {
|
|
@@ -1247,6 +1234,7 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
} else {
|
|
|
+ await this.nextCourses(item, type)
|
|
|
if (item.rebuild === 0) {
|
|
|
//未重修
|
|
|
this.$navTo.togo("/pages2/learn/details", {
|
|
@@ -1292,6 +1280,24 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ async nextCourses(item, type) {
|
|
|
+ this.vid = ''
|
|
|
+ this.hasStart = true
|
|
|
+ await this.originUnload()
|
|
|
+
|
|
|
+ if (type) {
|
|
|
+ this.teacherIndex = 0
|
|
|
+ this.goodsTeacher.forEach((citem) => {
|
|
|
+ if(citem.courseList.some(x => x.courseId == item.courseId)){
|
|
|
+ this.teacherList = citem.teaList
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.reStart = false
|
|
|
+ this.courseId = item.courseId
|
|
|
+ this.gradeId = item.gradeId
|
|
|
+ this.toggleCourseShow = false
|
|
|
+ },
|
|
|
clickLeft() {
|
|
|
uni.navigateBack()
|
|
|
},
|