|
@@ -32,28 +32,30 @@
|
|
|
:key="index"
|
|
|
>
|
|
|
<span>{{ item.name }}:</span>
|
|
|
- <div
|
|
|
- class="cName"
|
|
|
- @click="getCourse(item.name, '', item.id, 1)"
|
|
|
- :class="typeE.indexOf(item.id) != -1 ? 'isCType' : ''"
|
|
|
- >
|
|
|
- 全部
|
|
|
- </div>
|
|
|
- <div
|
|
|
- v-for="item1 in CourseTypeJson[item.id]"
|
|
|
- :key="item1.id"
|
|
|
- :label="item1.id"
|
|
|
- @click="getCourse(item.name, item.id, item1.id, 2)"
|
|
|
- >
|
|
|
+ <div class="typeCss">
|
|
|
<div
|
|
|
class="cName"
|
|
|
- :class="
|
|
|
- typea == item1.id || typeb == item1.id || typed == item1.id
|
|
|
- ? 'isCType'
|
|
|
- : ''
|
|
|
- "
|
|
|
+ @click="getCourse(item.name, '', item.id, 1)"
|
|
|
+ :class="typeE.indexOf(item.id) != -1 ? 'isCType' : ''"
|
|
|
+ >
|
|
|
+ 全部
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ v-for="item1 in CourseTypeJson[item.id]"
|
|
|
+ :key="item1.id"
|
|
|
+ :label="item1.id"
|
|
|
+ @click="getCourse(item.name, item.id, item1.id, 2)"
|
|
|
>
|
|
|
- {{ item1.name }}
|
|
|
+ <div
|
|
|
+ class="cName"
|
|
|
+ :class="
|
|
|
+ typea == item1.id || typeb == item1.id || typed == item1.id
|
|
|
+ ? 'isCType'
|
|
|
+ : ''
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{ item1.name }}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -394,6 +396,11 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
+@media screen and (max-width: 1024px) {
|
|
|
+ .box_course{
|
|
|
+ margin: 0px 5px 20px 5px !important;
|
|
|
+ }
|
|
|
+}
|
|
|
.student_head .imgS {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
@@ -589,7 +596,7 @@ export default {
|
|
|
|
|
|
.cName {
|
|
|
cursor: pointer;
|
|
|
- margin: 0 10px;
|
|
|
+ margin: 0 10px 10px 0;
|
|
|
color: #b9b6b9;
|
|
|
min-width: 80px;
|
|
|
width: 80px;
|
|
@@ -607,7 +614,6 @@ export default {
|
|
|
width: 90%;
|
|
|
border-radius: 5px;
|
|
|
padding-left: 20px;
|
|
|
- min-width: 1490px;
|
|
|
}
|
|
|
.reTop {
|
|
|
padding: 20px 0 0 0;
|
|
@@ -669,4 +675,11 @@ export default {
|
|
|
.isCType {
|
|
|
color: #6282c2;
|
|
|
}
|
|
|
+.typeCss {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ justify-content: flex-start;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
</style>
|