|
|
@ -1,12 +1,6 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div class="curse-collection"> |
|
|
|
<div class="curse-collection"> |
|
|
|
<el-tabs |
|
|
|
<el-tabs v-model="activeName" type="card" class="demo-tabs" @tab-click="handleClick" style="padding-top: 0"> |
|
|
|
v-model="activeName" |
|
|
|
|
|
|
|
type="card" |
|
|
|
|
|
|
|
class="demo-tabs" |
|
|
|
|
|
|
|
@tab-click="handleClick" |
|
|
|
|
|
|
|
style="padding-top: 0" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<!-- 课程收藏页面 --> |
|
|
|
<!-- 课程收藏页面 --> |
|
|
|
<ContainerCla /> |
|
|
|
<ContainerCla /> |
|
|
|
<!-- 资源收藏页面 --> |
|
|
|
<!-- 资源收藏页面 --> |
|
|
@ -54,7 +48,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- 页面-2 --> |
|
|
|
<!-- 小页面-2 --> |
|
|
|
<div class="Res_con" v-show="activeIndex == 2"> |
|
|
|
<div class="Res_con" v-show="activeIndex == 2"> |
|
|
|
<div class="item_2-2" v-for="(item, index) in 7" :key="index"> |
|
|
|
<div class="item_2-2" v-for="(item, index) in 7" :key="index"> |
|
|
|
<div class="ResImg-2"> |
|
|
|
<div class="ResImg-2"> |
|
|
@ -94,6 +88,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div></div> |
|
|
|
<div></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- 小页面-5 --> |
|
|
|
<div class="Res_con" v-show="activeIndex == 5"> |
|
|
|
<div class="Res_con" v-show="activeIndex == 5"> |
|
|
|
<div class="item_2-5" v-for="(item, index) in 10" :key="index"> |
|
|
|
<div class="item_2-5" v-for="(item, index) in 10" :key="index"> |
|
|
|
<div class="ResImg-2"> |
|
|
|
<div class="ResImg-2"> |
|
|
@ -106,7 +101,11 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="Page-2"></div> |
|
|
|
<div class="Page-2"> |
|
|
|
|
|
|
|
<el-pagination v-model:current-page="currentPage1" v-model:page-size="pageSize1" :disabled="disabled" |
|
|
|
|
|
|
|
:page-sizes="[6, 8, 12, 15]" layout="total, sizes, prev, pager, next, jumper" :total="10" |
|
|
|
|
|
|
|
@size-change="handleSizeChange" @current-change="handleCurrentChange" /> |
|
|
|
|
|
|
|
</div> |
|
|
|
</el-tab-pane> |
|
|
|
</el-tab-pane> |
|
|
|
<!-- 知识点收藏页面 --> |
|
|
|
<!-- 知识点收藏页面 --> |
|
|
|
<el-tab-pane label="知识点收藏" name="third"> |
|
|
|
<el-tab-pane label="知识点收藏" name="third"> |
|
|
@ -125,7 +124,7 @@ |
|
|
|
<div class="Knowledge_point"> |
|
|
|
<div class="Knowledge_point"> |
|
|
|
<ul> |
|
|
|
<ul> |
|
|
|
<li v-for="(item, index) in 6" :key="index"> |
|
|
|
<li v-for="(item, index) in 6" :key="index"> |
|
|
|
知识点{{ item }} |
|
|
|
知识点知识点知识点{{ item }} |
|
|
|
<div @click="" class="btn">×</div> |
|
|
|
<div @click="" class="btn">×</div> |
|
|
|
|
|
|
|
|
|
|
|
</li> |
|
|
|
</li> |
|
|
@ -149,13 +148,24 @@ import ContainerCla from './ContainerCla.vue' |
|
|
|
const activeIndex = ref(1) |
|
|
|
const activeIndex = ref(1) |
|
|
|
function hsndelShow(index: number) { |
|
|
|
function hsndelShow(index: number) { |
|
|
|
activeIndex.value = index |
|
|
|
activeIndex.value = index |
|
|
|
console.log('触发了', index, activeIndex.value) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const activeName = ref('first') |
|
|
|
const activeName = ref('first') |
|
|
|
const handleClick = (tab: TabsPaneContext, event: Event) => { |
|
|
|
const handleClick = (tab: TabsPaneContext, event: Event) => { |
|
|
|
console.log(tab, event) |
|
|
|
console.log(tab, event) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 分页器 |
|
|
|
|
|
|
|
const currentPage1 = ref(1) |
|
|
|
|
|
|
|
const pageSize1 = ref(10) |
|
|
|
|
|
|
|
const disabled = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const handleSizeChange = (val: number) => { |
|
|
|
|
|
|
|
console.log(`${val} items per page`) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
const handleCurrentChange = (val: number) => { |
|
|
|
|
|
|
|
console.log(`current page: ${val}`) |
|
|
|
|
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
<style lang="scss" scoped> |
|
|
@ -163,7 +173,7 @@ const handleClick = (tab: TabsPaneContext, event: Event) => { |
|
|
|
justify-content: center; |
|
|
|
justify-content: center; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.example-pagination-block + .example-pagination-block { |
|
|
|
.example-pagination-block+.example-pagination-block { |
|
|
|
margin-top: 10px; |
|
|
|
margin-top: 10px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -244,6 +254,7 @@ const handleClick = (tab: TabsPaneContext, event: Event) => { |
|
|
|
.Res_con { |
|
|
|
.Res_con { |
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
height: 100%; |
|
|
|
|
|
|
|
min-height: 750px; |
|
|
|
display: grid; |
|
|
|
display: grid; |
|
|
|
grid-template-columns: repeat(auto-fill, 350px); |
|
|
|
grid-template-columns: repeat(auto-fill, 350px); |
|
|
|
justify-content: space-around; |
|
|
|
justify-content: space-around; |
|
|
@ -299,7 +310,7 @@ const handleClick = (tab: TabsPaneContext, event: Event) => { |
|
|
|
align-items: center; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.ResClaDic > p { |
|
|
|
.ResClaDic>p { |
|
|
|
font-family: Inter, Inter; |
|
|
|
font-family: Inter, Inter; |
|
|
|
font-weight: 500; |
|
|
|
font-weight: 500; |
|
|
|
font-size: 20px; |
|
|
|
font-size: 20px; |
|
|
@ -329,16 +340,16 @@ const handleClick = (tab: TabsPaneContext, event: Event) => { |
|
|
|
height: 100%; |
|
|
|
height: 100%; |
|
|
|
padding: 15px; |
|
|
|
padding: 15px; |
|
|
|
display: grid; |
|
|
|
display: grid; |
|
|
|
grid-template-columns: repeat(auto-fill, 210px); |
|
|
|
grid-template-columns: repeat(auto-fill, 250px); |
|
|
|
justify-content: space-around; |
|
|
|
justify-content: space-around; |
|
|
|
background-color: #f2f7fb; |
|
|
|
background-color: #f2f7fb; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.item_3 { |
|
|
|
.item_3 { |
|
|
|
width: 200px; |
|
|
|
width: 240px; |
|
|
|
height: 240px; |
|
|
|
height: 320px; |
|
|
|
margin-bottom: 18px; |
|
|
|
margin-bottom: 30px; |
|
|
|
padding-left: 15px; |
|
|
|
padding-left: 20px; |
|
|
|
border: 1px solid #e4e4e4; |
|
|
|
border: 1px solid #e4e4e4; |
|
|
|
border-radius: 6px; |
|
|
|
border-radius: 6px; |
|
|
|
box-shadow: 2px 2px 2px 2px #dbd8d8; |
|
|
|
box-shadow: 2px 2px 2px 2px #dbd8d8; |
|
|
@ -347,11 +358,11 @@ const handleClick = (tab: TabsPaneContext, event: Event) => { |
|
|
|
|
|
|
|
|
|
|
|
.KnowledgeCollent { |
|
|
|
.KnowledgeCollent { |
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
|
height: 55px; |
|
|
|
height: 85px; |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|
justify-content: space-between; |
|
|
|
flex-direction: row; |
|
|
|
flex-direction: row; |
|
|
|
padding-left: 9px; |
|
|
|
padding-left: 8px; |
|
|
|
padding-right: 20px; |
|
|
|
padding-right: 20px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -361,27 +372,27 @@ const handleClick = (tab: TabsPaneContext, event: Event) => { |
|
|
|
justify-content: space-around; |
|
|
|
justify-content: space-around; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.KnoBtn > img { |
|
|
|
.KnoBtn>img { |
|
|
|
padding-top: 20px; |
|
|
|
padding-top: 20px; |
|
|
|
cursor: pointer; |
|
|
|
cursor: pointer; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.KnowledgeCollent h4 { |
|
|
|
.KnowledgeCollent h4 { |
|
|
|
margin-top: 3px; |
|
|
|
margin-top: 3px; |
|
|
|
font-size: 24px; |
|
|
|
font-size: 30px; |
|
|
|
font-weight: 550; |
|
|
|
font-weight: 550; |
|
|
|
font-style: normal; |
|
|
|
font-style: normal; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.KnowledgeCollent p { |
|
|
|
.KnowledgeCollent p { |
|
|
|
margin-left: 3px; |
|
|
|
margin-left: 3px; |
|
|
|
font-size: 14px; |
|
|
|
font-size: 18px; |
|
|
|
font-weight: 500; |
|
|
|
font-weight: 500; |
|
|
|
font-style: normal; |
|
|
|
font-style: normal; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.Knowledge_point { |
|
|
|
.Knowledge_point { |
|
|
|
height: 185px; |
|
|
|
height: 235px; |
|
|
|
padding-left: 5px; |
|
|
|
padding-left: 5px; |
|
|
|
font-size: 15px; |
|
|
|
font-size: 15px; |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
@ -389,19 +400,18 @@ const handleClick = (tab: TabsPaneContext, event: Event) => { |
|
|
|
flex-direction: column; |
|
|
|
flex-direction: column; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.Knowledge_point > ul > li { |
|
|
|
.Knowledge_point>ul>li { |
|
|
|
display: inline-block; |
|
|
|
display: inline-block; |
|
|
|
margin-top: 5px; |
|
|
|
margin-top: 3px; |
|
|
|
margin-bottom: 5px; |
|
|
|
margin-bottom: 3px; |
|
|
|
font-family: Inter, Inter; |
|
|
|
font-family: Inter, Inter; |
|
|
|
font-weight: bold; |
|
|
|
font-weight: bold; |
|
|
|
font-size: 12px; |
|
|
|
font-size: 15px; |
|
|
|
color: #0052d9; |
|
|
|
color: #0052d9; |
|
|
|
line-height: 20px; |
|
|
|
line-height: 25px; |
|
|
|
padding-left: 5px; |
|
|
|
padding-left: 5px; |
|
|
|
background-color: #bfc5fe; |
|
|
|
background-color: #bfc5fe; |
|
|
|
border-radius: 3px; |
|
|
|
border-radius: 3px; |
|
|
|
margin-right: 10px; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.btn { |
|
|
|
.btn { |
|
|
@ -414,8 +424,12 @@ const handleClick = (tab: TabsPaneContext, event: Event) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.Page-2 { |
|
|
|
.Page-2 { |
|
|
|
position: absolute; |
|
|
|
|
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
|
|
|
|
|
padding: 10px; |
|
|
|
|
|
|
|
position: flex; |
|
|
|
justify-content: center; |
|
|
|
justify-content: center; |
|
|
|
|
|
|
|
background-color: #fff; |
|
|
|
|
|
|
|
border-top: 1px solid rgb(229, 227, 227, .5); |
|
|
|
|
|
|
|
border-bottom: 1px solid rgb(229, 227, 227, .5); |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |
|
|
|