|
@@ -73,24 +73,7 @@
|
|
|
<div>
|
|
|
<div class="main_box">
|
|
|
<div style="display:flex;flex-wrap:wrap" v-if="!typeCheck">
|
|
|
- <div class="box_course" v-for="(item, index) in zoneClass" :key="index" @click="
|
|
|
- goTo(
|
|
|
- '/courseDetail?courseId=' +
|
|
|
- item.courseId +
|
|
|
- '&userid=' +
|
|
|
- userid +
|
|
|
- '&oid=' +
|
|
|
- oid +
|
|
|
- '&org=' +
|
|
|
- org +
|
|
|
- '&cid=' +
|
|
|
- classId +
|
|
|
- '&tType=' +
|
|
|
- tType +
|
|
|
- '&screenType=' +
|
|
|
- screenType,item.courseId
|
|
|
- )
|
|
|
- ">
|
|
|
+ <div class="box_course" v-for="(item, index) in zoneClass" :key="index" @click="goToCourseDetail(item)">
|
|
|
<div class="wheel">
|
|
|
<img :src="
|
|
|
item.cover
|
|
@@ -149,24 +132,7 @@
|
|
|
<div class="FirstTypeBox" v-for="(type, tindex) in CourseType2" :key="tindex">
|
|
|
<div class="title">{{ type.name }}</div>
|
|
|
<div style="display: flex;flex-flow: wrap;margin-top: 20px;">
|
|
|
- <div class="box_course" v-for="(item, index) in type.course" :key="tindex + '-' + index" @click="
|
|
|
- goTo(
|
|
|
- '/courseDetail?courseId=' +
|
|
|
- item.courseId +
|
|
|
- '&userid=' +
|
|
|
- userid +
|
|
|
- '&oid=' +
|
|
|
- oid +
|
|
|
- '&org=' +
|
|
|
- org +
|
|
|
- '&cid=' +
|
|
|
- classId +
|
|
|
- '&tType=' +
|
|
|
- tType +
|
|
|
- '&screenType=' +
|
|
|
- screenType,item.courseId
|
|
|
- )
|
|
|
- ">
|
|
|
+ <div class="box_course" v-for="(item, index) in type.course" :key="tindex + '-' + index" @click="goToCourseDetail(item)">
|
|
|
<div class="wheel">
|
|
|
<img :src="
|
|
|
item.cover
|
|
@@ -532,7 +498,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
this.typea = ""
|
|
|
this.typeb = ""
|
|
|
this.typed = ""
|
|
@@ -909,6 +875,44 @@ export default {
|
|
|
// console.error(err);
|
|
|
// });
|
|
|
},
|
|
|
+ goToCourseDetail(item){
|
|
|
+ if(this.tType == '2' && item.state == 7){
|
|
|
+ this.goTo(
|
|
|
+ "/pptEasyClass?type="+
|
|
|
+ "&courseId=" +
|
|
|
+ item.courseId +
|
|
|
+ "&userid=" +
|
|
|
+ this.userid +
|
|
|
+ "&oid=" +
|
|
|
+ this.oid +
|
|
|
+ "&org=" +
|
|
|
+ this.org +
|
|
|
+ "&cid=" +
|
|
|
+ this.classId +
|
|
|
+ "&tType=" +
|
|
|
+ this.tType +
|
|
|
+ "&screenType=" +
|
|
|
+ this.screenType
|
|
|
+ );
|
|
|
+ }else{
|
|
|
+ this.goTo(
|
|
|
+ '/courseDetail?courseId=' +
|
|
|
+ item.courseId +
|
|
|
+ '&userid=' +
|
|
|
+ this.userid +
|
|
|
+ '&oid=' +
|
|
|
+ this.oid +
|
|
|
+ '&org=' +
|
|
|
+ this.org +
|
|
|
+ '&cid=' +
|
|
|
+ this.classId +
|
|
|
+ '&tType=' +
|
|
|
+ this.tType +
|
|
|
+ '&screenType=' +
|
|
|
+ this.screenType,item.courseId
|
|
|
+ );
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
clearInterval(this.timer);
|