123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374 |
- <template>
- <common-header/>
- <div class="courseResources">
- <div class="courseResourcesCont">
- <div class="baseTop">
- <p>课程资源,搜索一下</p>
- <div class="searchValue">
- <input type="text" placeholder="搜索关键字" v-model="searchKey" >
- <div class="searchBtn">
- <img src="/kczy/searchIcon.png" alt="">
- </div>
- </div>
- <div class="littleTab">
- <ul>
- <li>微课|</li>
- <li>教案|</li>
- <li class="active">课件|</li>
- <li>微视频| </li>
- <li>网络资源</li>
- </ul>
- </div>
- </div>
-
- <CourseType :transBaseData="baseData" @toParentDetail="toDetail" @baseCourseAll="baseCourseAll"></CourseType>
- <CourseType :transBaseData="famousBaseData" @toParentDetail="toDetail"></CourseType>
- <CourseType :transBaseData="resourceBaseData" @toParentDetail="toDetail"></CourseType>
- <CourseType :transBaseData="familyBaseData" @toParentDetail="toDetail"></CourseType>
- <CourseType :transBaseData="specialBaseData" @toParentDetail="toDetail"></CourseType>
- <CourseType :transBaseData="extendBaseData" @toParentDetail="toDetail"></CourseType>
- </div>
- </div>
- </template>
- <script>
- import CourseType from '../components/CourseType.vue'
- import commonHeader from "@/components/header/index.vue";
- export default {
- name: 'courseResources',
- components:{
- CourseType,
- commonHeader
- },
- data() {
- return {
- searchKey: '',
- num:0,
- baseData: {
- id:"baseCourse",
- mainTitle: '基础课程',
- secTitle: '实现直播教师上传资源,兼职美术老师下载资源',
- label: ['微课', '教案', '课件', '微视频', '网络资源'],
- courseDetail: [
- {
- id: 'base_1',
- img: '/kczy/singlePic1.png',
- title: '野天鹅',
- starNum: 5,
- collectNum: '10w+',
- zanNum:'14w+'
- },
- {
- id:'base_2',
- img: '/kczy/singlePic2.png',
- title: '安徒生世界插画',
- starNum: 5,
- collectNum: '10w+',
- zanNum:'14w+'
- },
- {
- id:'base_3',
- img: '/kczy/singlePic3.png',
- title: '传送门',
- starNum: 5,
- collectNum: '10w+',
- zanNum:'14w+'
- }
- ]
- },
- famousBaseData: {
- id:"famousCourse",
- mainTitle: '名师在线',
- secTitle: '实现直播教师上传资源,兼职美术老师下载资源',
- label: ['微课', '教案', '课件', '微视频', '网络资源'],
- courseDetail: [
- {
- img: '/kczy/singlePic4.png',
- title: '书中花园',
- starNum: 5,
- collectNum: '10w+',
- zanNum:'14w+'
- },
- {
- img: '/kczy/singlePic5.png',
- title: '拇指姑娘',
- starNum: 4,
- collectNum: '10w+',
- zanNum:'14w+'
- },
- {
- img: '/kczy/singlePic3.png',
- title: '传送门',
- starNum: 3,
- collectNum: '10w+',
- zanNum:'14w+'
- },
- {
- img: '/kczy/singlePic2.png',
- title: '安徒生世界插画',
- starNum: 1,
- collectNum: '10w+',
- zanNum:'14w+'
- },
- {
- img: '/kczy/singlePic1.png',
- title: '野天鹅',
- starNum: 5,
- collectNum: '10w+',
- zanNum:'14w+'
- },
- {
- img: '/kczy/singlePic5.png',
- title: '拇指姑娘',
- starNum: 5,
- collectNum: '10w+',
- zanNum:'14w+'
- }
- ]
- },
- resourceBaseData: {
- id:"resourceCourse",
- mainTitle: '课程资源',
- secTitle: '实现直播教师上传资源,兼职美术老师下载资源',
- label: ['微课', '教案', '课件', '微视频', '网络资源'],
- courseDetail: [
- {
- img: '/kczy/singlePic4.png',
- title: '书中花园',
- starNum:5,
- collectNum: '10w+',
- zanNum:'14w+'
- },
- {
- img: '/kczy/singlePic5.png',
- title: '拇指姑娘',
- starNum: 4,
- collectNum: '10w+',
- zanNum:'14w+'
- },
- {
- img: '/kczy/singlePic3.png',
- title: '传送门',
- starNum: 3,
- collectNum: '10w+',
- zanNum:'14w+'
- },
- {
- img: '/kczy/singlePic2.png',
- title: '安徒生世界插画',
- starNum:1,
- collectNum: '10w+',
- zanNum:'14w+'
- },
- {
- img: '/kczy/singlePic1.png',
- title: '野天鹅',
- starNum: 5,
- collectNum: '10w+',
- zanNum:'14w+'
- },
- {
- img: '/kczy/singlePic5.png',
- title: '拇指姑娘',
- starNum: 5,
- collectNum: '10w+',
- zanNum:'14w+'
- }
- ]
- },
- familyBaseData: {
- id:"familyCourse",
- mainTitle: '家庭教育',
- secTitle: '实现直播教师上传资源,兼职美术老师下载资源',
- label: ['微课', '教案', '课件', '微视频', '网络资源'],
- courseDetail: [
- {
- img: '/kczy/singlePic3.png',
- title: '传送门',
- starNum: 3,
- collectNum: '10w+',
- zanNum:'14w+'
- },
- ]
- },
- specialBaseData: {
- id:"specialCourse",
- mainTitle: '特色课程',
- secTitle: '实现直播教师上传资源,兼职美术老师下载资源',
- label: ['微课', '教案', '课件', '微视频', '网络资源'],
- courseDetail: [
- {
- img: '/kczy/singlePic3.png',
- title: '传送门',
- starNum: 3,
- collectNum: '10w+',
- zanNum:'14w+'
- },
- {
- img: '/kczy/singlePic4.png',
- title: '书中花园',
- starNum:5,
- collectNum: '10w+',
- zanNum:'14w+'
- },
- ]
- },
- extendBaseData: {
- id:"extendCourse",
- mainTitle: '拓展课程',
- secTitle: '实现直播教师上传资源,兼职美术老师下载资源',
- label: ['微课', '教案', '课件', '微视频', '网络资源'],
- courseDetail: [
- {
- img: '/kczy/singlePic4.png',
- title: '书中花园',
- starNum:5,
- collectNum: '10w+',
- zanNum:'14w+'
- },
- {
- img: '/kczy/singlePic5.png',
- title: '拇指姑娘',
- starNum: 4,
- collectNum: '10w+',
- zanNum:'14w+'
- },
- {
- img: '/kczy/singlePic3.png',
- title: '传送门',
- starNum: 3,
- collectNum: '10w+',
- zanNum:'14w+'
- },
- {
- img: '/kczy/singlePic2.png',
- title: '安徒生世界插画',
- starNum:1,
- collectNum: '10w+',
- zanNum:'14w+'
- },
- {
- img: '/kczy/singlePic1.png',
- title: '野天鹅',
- starNum: 5,
- collectNum: '10w+',
- zanNum:'14w+'
- },
- {
- img: '/kczy/singlePic5.png',
- title: '拇指姑娘',
- starNum: 5,
- collectNum: '10w+',
- zanNum:'14w+'
- }
- ]
- },
- }
- },
- mounted() {
-
- },
- methods: {
- //暂时注释掉
- switchTab(index) {
- this.num = index;
- },
- //全部-查看更多
- baseCourseAll(markLable) {
- switch (markLable) {
- case 'baseCourse':
- this.$router.push('/resourceAll');
- break;
- default:
- this.$router.push('/resourceAll');
-
- }
- },
- //详情页
- toDetail(transParams) {
- console.log(transParams);
- },
- },
- }
- </script>
- <style scoped lang="scss">
- .courseResources{
- width:100%;
- min-height: 1650px;
- background: url("/kczy/sourceBg.png") no-repeat left top;
- background-size: 100%;
- .courseResourcesCont{
- width: 1280px;
- margin: 0 auto;
- .baseTop{
- p{
- font-size: 48px;
- font-weight: 600;
- text-align: center;
- color: #000000;
- padding-top:60px;
- }
- .searchValue{
- width: 497px;
- height: 50px;
- margin:0 auto;
- background: #ffffff;
- border: 1px solid #00a3ff;
- border-radius: 8px;
- margin-top: 33px;
- overflow: hidden;
- position:relative;
- input{
- width:100%;
- height: 100%;
- outline: 0;
- box-sizing: border-box;
- padding-left: 10px;
- }
- .searchBtn{
- width: 26px;
- height: 26px;
- background: #00a3ff;
- border-radius: 6px;
- position: absolute;
- right:5px;
- top:50%;
- transform: translate(-50%,-50%);
- text-align: center;
- vertical-align: middle;
- cursor: pointer;
- img{
- display: block;
- text-align: center;
- margin: 6px auto 0;
- }
- }
- }
- .littleTab{
- width: 300px;
- margin: 0 auto;
- ul{
- margin-top:22px;
- display: flex;
- li{
- display: inline-block;
- font-size: 16px;
- font-weight: 400;
- text-align: left;
- color: #606565;
- margin-right: 5px;
- justify-content: space-between;
- }
- }
- }
- }
- }
- }
- .active{
- color: #000000!important;
- font-weight: bold;
- }
- </style>
|