Commit 7247dadf authored by wangwei's avatar wangwei

星星系统

parent 94caabfe
...@@ -310,7 +310,7 @@ ...@@ -310,7 +310,7 @@
if(this.thisLesson.content.tips){ if(this.thisLesson.content.tips){
let query = { let query = {
periods_id:this.periods_id, periods_id:this.periods_id,
category_id:this.thisLesson.id, category_id:this.thisLesson.categoryId,
elementId:this.thisLesson.id, elementId:this.thisLesson.id,
course_type:this.$route.query.course_type, course_type:this.$route.query.course_type,
parent_category_id:this.parent_category_id, parent_category_id:this.parent_category_id,
...@@ -320,7 +320,7 @@ ...@@ -320,7 +320,7 @@
}else{ }else{
let query = { let query = {
periods_id:this.periods_id, periods_id:this.periods_id,
category_id:this.thisLesson.category_id, category_id:this.thisLesson.categoryId,
parent_category_id:this.parent_category_id, parent_category_id:this.parent_category_id,
element_id:this.thisLesson.id, element_id:this.thisLesson.id,
course_type:this.$route.query.course_type, course_type:this.$route.query.course_type,
...@@ -343,7 +343,8 @@ ...@@ -343,7 +343,8 @@
getLessonDetailApi(this.periods_id,data.id,data.ele_id).then(res=>{ getLessonDetailApi(this.periods_id,data.id,data.ele_id).then(res=>{
res.content = JSON.parse(res.content); res.content = JSON.parse(res.content);
this.thisLesson = res; this.thisLesson = res;
this.thisLesson.id = data.id; this.thisLesson.id = data.ele_id;
this.thisLesson.categoryId = data.id;
this.thisLesson.domTitle = data.name; this.thisLesson.domTitle = data.name;
this.thisLesson.day = i; this.thisLesson.day = i;
this.popupVisible=true; this.popupVisible=true;
...@@ -378,12 +379,12 @@ ...@@ -378,12 +379,12 @@
if(x>=3){ if(x>=3){
index=x-3 index=x-3
}else{ }else{
index = x index = 0
} }
if(x>4){ if(x>4){
index2 = x-4 index2 = x-4
}else{ }else{
index2 = x index2 = 0
} }
} }
}); });
......
<template>
<div class="nofinish-block" :style="{backgroundImage:`url('${noFinishBg}')`}">
<div class="go-on">
继续学习
</div>
</div>
</template>
<script>
import noFinishBg from '../../assets/newLesson/noFinishBg.png'
export default {
name: "nofinishdia",
data(){
return{
noFinishBg:noFinishBg
}
}
}
</script>
<style scoped lang="less">
@import "../../util/public";
.nofinish-block{
width: 235*@toVw;
height: 270*@toVw;
position: relative;
.go-on{
position: absolute;
;
}
}
</style>
...@@ -33,10 +33,13 @@ ...@@ -33,10 +33,13 @@
<div @click="changeAudio()">音频教学</div> <div @click="changeAudio()">音频教学</div>
</div> </div>
</div> </div>
<div class="finish-block"> <div class="finish-block" v-if="nowShow === 3">
<img :src="finishStuat"> <img :src="finishStuat">
</div> </div>
</div> </div>
<mt-popup>
<no-finish-dia/>
</mt-popup>
<guide-block/> <guide-block/>
</div> </div>
...@@ -48,10 +51,12 @@ ...@@ -48,10 +51,12 @@
import guideBlock from '../guide/video' import guideBlock from '../guide/video'
import tapToAudio from '../../assets/tapToAudio.png' import tapToAudio from '../../assets/tapToAudio.png'
import finishStuat from '../../assets/newLesson/finishStudy.png' import finishStuat from '../../assets/newLesson/finishStudy.png'
import noFinishDia from './nofinishdia'
export default { export default {
name: "play", name: "play",
components:{ components:{
guideBlock guideBlock,
noFinishDia
}, },
data(){ data(){
return{ return{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment