|
@@ -8,7 +8,7 @@
|
|
|
<view v-if="!down">
|
|
|
<view v-for="(itemM,indexM) in list" >
|
|
|
<view v-if="itemM.type!=2">
|
|
|
- <courseSection :courseId="courseId" :goodsId="goodsId" :isBuy="isBuy" :isRebuild="isRebuild" :gradeId="gradeId" :menuItem="itemM" :levelId="levelId+'-'+itemM.sectionId"></courseSection>
|
|
|
+ <courseSection :courseId="courseId" :goodsId="goodsId" :isBuy="isBuy" :nextMenuItem="findNextSection(indexM)" :isRebuild="isRebuild" :gradeId="gradeId" :menuItem="itemM" :levelId="levelId+'-'+itemM.sectionId"></courseSection>
|
|
|
<u-line v-if="indexM<list.length-1"></u-line>
|
|
|
</view>
|
|
|
<view v-if="itemM.type==2">
|
|
@@ -85,6 +85,12 @@ export default {
|
|
|
mounted() {
|
|
|
},
|
|
|
methods: {
|
|
|
+ findNextSection(index){
|
|
|
+ for(let i=index+1;i<this.list.length;i++){
|
|
|
+ return this.list[i];
|
|
|
+ }
|
|
|
+ return {}
|
|
|
+ },
|
|
|
/**
|
|
|
* 去做题
|
|
|
*/
|