courseResources.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. <template>
  2. <common-header/>
  3. <div class="courseResources">
  4. <div class="courseResourcesCont">
  5. <div class="baseTop">
  6. <p>课程资源,搜索一下</p>
  7. <div class="searchValue">
  8. <input type="text" placeholder="搜索关键字" v-model="searchKey" >
  9. <div class="searchBtn">
  10. <img src="/kczy/searchIcon.png" alt="">
  11. </div>
  12. </div>
  13. <div class="littleTab">
  14. <ul>
  15. <li>微课|</li>
  16. <li>教案|</li>
  17. <li class="active">课件|</li>
  18. <li>微视频| </li>
  19. <li>网络资源</li>
  20. </ul>
  21. </div>
  22. </div>
  23. <CourseType :transBaseData="baseData" @toParentDetail="toDetail" @baseCourseAll="baseCourseAll"></CourseType>
  24. <CourseType :transBaseData="famousBaseData" @toParentDetail="toDetail"></CourseType>
  25. <CourseType :transBaseData="resourceBaseData" @toParentDetail="toDetail"></CourseType>
  26. <CourseType :transBaseData="familyBaseData" @toParentDetail="toDetail"></CourseType>
  27. <CourseType :transBaseData="specialBaseData" @toParentDetail="toDetail"></CourseType>
  28. <CourseType :transBaseData="extendBaseData" @toParentDetail="toDetail"></CourseType>
  29. </div>
  30. </div>
  31. </template>
  32. <script>
  33. import CourseType from '../components/CourseType.vue'
  34. import commonHeader from "@/components/header/index.vue";
  35. export default {
  36. name: 'courseResources',
  37. components:{
  38. CourseType,
  39. commonHeader
  40. },
  41. data() {
  42. return {
  43. searchKey: '',
  44. num:0,
  45. baseData: {
  46. id:"baseCourse",
  47. mainTitle: '基础课程',
  48. secTitle: '实现直播教师上传资源,兼职美术老师下载资源',
  49. label: ['微课', '教案', '课件', '微视频', '网络资源'],
  50. courseDetail: [
  51. {
  52. id: 'base_1',
  53. img: '/kczy/singlePic1.png',
  54. title: '野天鹅',
  55. starNum: 5,
  56. collectNum: '10w+',
  57. zanNum:'14w+'
  58. },
  59. {
  60. id:'base_2',
  61. img: '/kczy/singlePic2.png',
  62. title: '安徒生世界插画',
  63. starNum: 5,
  64. collectNum: '10w+',
  65. zanNum:'14w+'
  66. },
  67. {
  68. id:'base_3',
  69. img: '/kczy/singlePic3.png',
  70. title: '传送门',
  71. starNum: 5,
  72. collectNum: '10w+',
  73. zanNum:'14w+'
  74. }
  75. ]
  76. },
  77. famousBaseData: {
  78. id:"famousCourse",
  79. mainTitle: '名师在线',
  80. secTitle: '实现直播教师上传资源,兼职美术老师下载资源',
  81. label: ['微课', '教案', '课件', '微视频', '网络资源'],
  82. courseDetail: [
  83. {
  84. img: '/kczy/singlePic4.png',
  85. title: '书中花园',
  86. starNum: 5,
  87. collectNum: '10w+',
  88. zanNum:'14w+'
  89. },
  90. {
  91. img: '/kczy/singlePic5.png',
  92. title: '拇指姑娘',
  93. starNum: 4,
  94. collectNum: '10w+',
  95. zanNum:'14w+'
  96. },
  97. {
  98. img: '/kczy/singlePic3.png',
  99. title: '传送门',
  100. starNum: 3,
  101. collectNum: '10w+',
  102. zanNum:'14w+'
  103. },
  104. {
  105. img: '/kczy/singlePic2.png',
  106. title: '安徒生世界插画',
  107. starNum: 1,
  108. collectNum: '10w+',
  109. zanNum:'14w+'
  110. },
  111. {
  112. img: '/kczy/singlePic1.png',
  113. title: '野天鹅',
  114. starNum: 5,
  115. collectNum: '10w+',
  116. zanNum:'14w+'
  117. },
  118. {
  119. img: '/kczy/singlePic5.png',
  120. title: '拇指姑娘',
  121. starNum: 5,
  122. collectNum: '10w+',
  123. zanNum:'14w+'
  124. }
  125. ]
  126. },
  127. resourceBaseData: {
  128. id:"resourceCourse",
  129. mainTitle: '课程资源',
  130. secTitle: '实现直播教师上传资源,兼职美术老师下载资源',
  131. label: ['微课', '教案', '课件', '微视频', '网络资源'],
  132. courseDetail: [
  133. {
  134. img: '/kczy/singlePic4.png',
  135. title: '书中花园',
  136. starNum:5,
  137. collectNum: '10w+',
  138. zanNum:'14w+'
  139. },
  140. {
  141. img: '/kczy/singlePic5.png',
  142. title: '拇指姑娘',
  143. starNum: 4,
  144. collectNum: '10w+',
  145. zanNum:'14w+'
  146. },
  147. {
  148. img: '/kczy/singlePic3.png',
  149. title: '传送门',
  150. starNum: 3,
  151. collectNum: '10w+',
  152. zanNum:'14w+'
  153. },
  154. {
  155. img: '/kczy/singlePic2.png',
  156. title: '安徒生世界插画',
  157. starNum:1,
  158. collectNum: '10w+',
  159. zanNum:'14w+'
  160. },
  161. {
  162. img: '/kczy/singlePic1.png',
  163. title: '野天鹅',
  164. starNum: 5,
  165. collectNum: '10w+',
  166. zanNum:'14w+'
  167. },
  168. {
  169. img: '/kczy/singlePic5.png',
  170. title: '拇指姑娘',
  171. starNum: 5,
  172. collectNum: '10w+',
  173. zanNum:'14w+'
  174. }
  175. ]
  176. },
  177. familyBaseData: {
  178. id:"familyCourse",
  179. mainTitle: '家庭教育',
  180. secTitle: '实现直播教师上传资源,兼职美术老师下载资源',
  181. label: ['微课', '教案', '课件', '微视频', '网络资源'],
  182. courseDetail: [
  183. {
  184. img: '/kczy/singlePic3.png',
  185. title: '传送门',
  186. starNum: 3,
  187. collectNum: '10w+',
  188. zanNum:'14w+'
  189. },
  190. ]
  191. },
  192. specialBaseData: {
  193. id:"specialCourse",
  194. mainTitle: '特色课程',
  195. secTitle: '实现直播教师上传资源,兼职美术老师下载资源',
  196. label: ['微课', '教案', '课件', '微视频', '网络资源'],
  197. courseDetail: [
  198. {
  199. img: '/kczy/singlePic3.png',
  200. title: '传送门',
  201. starNum: 3,
  202. collectNum: '10w+',
  203. zanNum:'14w+'
  204. },
  205. {
  206. img: '/kczy/singlePic4.png',
  207. title: '书中花园',
  208. starNum:5,
  209. collectNum: '10w+',
  210. zanNum:'14w+'
  211. },
  212. ]
  213. },
  214. extendBaseData: {
  215. id:"extendCourse",
  216. mainTitle: '拓展课程',
  217. secTitle: '实现直播教师上传资源,兼职美术老师下载资源',
  218. label: ['微课', '教案', '课件', '微视频', '网络资源'],
  219. courseDetail: [
  220. {
  221. img: '/kczy/singlePic4.png',
  222. title: '书中花园',
  223. starNum:5,
  224. collectNum: '10w+',
  225. zanNum:'14w+'
  226. },
  227. {
  228. img: '/kczy/singlePic5.png',
  229. title: '拇指姑娘',
  230. starNum: 4,
  231. collectNum: '10w+',
  232. zanNum:'14w+'
  233. },
  234. {
  235. img: '/kczy/singlePic3.png',
  236. title: '传送门',
  237. starNum: 3,
  238. collectNum: '10w+',
  239. zanNum:'14w+'
  240. },
  241. {
  242. img: '/kczy/singlePic2.png',
  243. title: '安徒生世界插画',
  244. starNum:1,
  245. collectNum: '10w+',
  246. zanNum:'14w+'
  247. },
  248. {
  249. img: '/kczy/singlePic1.png',
  250. title: '野天鹅',
  251. starNum: 5,
  252. collectNum: '10w+',
  253. zanNum:'14w+'
  254. },
  255. {
  256. img: '/kczy/singlePic5.png',
  257. title: '拇指姑娘',
  258. starNum: 5,
  259. collectNum: '10w+',
  260. zanNum:'14w+'
  261. }
  262. ]
  263. },
  264. }
  265. },
  266. mounted() {
  267. },
  268. methods: {
  269. //暂时注释掉
  270. switchTab(index) {
  271. this.num = index;
  272. },
  273. //全部-查看更多
  274. baseCourseAll(markLable) {
  275. switch (markLable) {
  276. case 'baseCourse':
  277. this.$router.push('/resourceAll');
  278. break;
  279. default:
  280. this.$router.push('/resourceAll');
  281. }
  282. },
  283. //详情页
  284. toDetail(transParams) {
  285. console.log(transParams);
  286. },
  287. },
  288. }
  289. </script>
  290. <style scoped lang="scss">
  291. .courseResources{
  292. width:100%;
  293. min-height: 1650px;
  294. background: url("/kczy/sourceBg.png") no-repeat left top;
  295. background-size: 100%;
  296. .courseResourcesCont{
  297. width: 1280px;
  298. margin: 0 auto;
  299. .baseTop{
  300. p{
  301. font-size: 48px;
  302. font-weight: 600;
  303. text-align: center;
  304. color: #000000;
  305. padding-top:60px;
  306. }
  307. .searchValue{
  308. width: 497px;
  309. height: 50px;
  310. margin:0 auto;
  311. background: #ffffff;
  312. border: 1px solid #00a3ff;
  313. border-radius: 8px;
  314. margin-top: 33px;
  315. overflow: hidden;
  316. position:relative;
  317. input{
  318. width:100%;
  319. height: 100%;
  320. outline: 0;
  321. box-sizing: border-box;
  322. padding-left: 10px;
  323. }
  324. .searchBtn{
  325. width: 26px;
  326. height: 26px;
  327. background: #00a3ff;
  328. border-radius: 6px;
  329. position: absolute;
  330. right:5px;
  331. top:50%;
  332. transform: translate(-50%,-50%);
  333. text-align: center;
  334. vertical-align: middle;
  335. cursor: pointer;
  336. img{
  337. display: block;
  338. text-align: center;
  339. margin: 6px auto 0;
  340. }
  341. }
  342. }
  343. .littleTab{
  344. width: 300px;
  345. margin: 0 auto;
  346. ul{
  347. margin-top:22px;
  348. display: flex;
  349. li{
  350. display: inline-block;
  351. font-size: 16px;
  352. font-weight: 400;
  353. text-align: left;
  354. color: #606565;
  355. margin-right: 5px;
  356. justify-content: space-between;
  357. }
  358. }
  359. }
  360. }
  361. }
  362. }
  363. .active{
  364. color: #000000!important;
  365. font-weight: bold;
  366. }
  367. </style>