|
|
@@ -1,12 +1,7 @@
|
|
|
<template>
|
|
|
<tab-side-component>
|
|
|
<back-title>课程详情</back-title>
|
|
|
- <div class="detail">
|
|
|
- <div>课程名称:{{course.name}}</div>
|
|
|
- <div>课程简介:{{course.bio}}</div>
|
|
|
- <div>创建时间:{{createTime}}</div>
|
|
|
- <div>教师:{{course.teacherName}}</div>
|
|
|
- </div>
|
|
|
+ <course-detail :course="course"></course-detail>
|
|
|
<c-button class="secondary full-width mb-16" @click="handleCheckSlideList">点击查看课件列表</c-button>
|
|
|
<c-button class="error full-width" @click="handleQuitCourse">退出本课程</c-button>
|
|
|
</tab-side-component>
|
|
|
@@ -18,9 +13,10 @@ import CButton from '@/components/CButton'
|
|
|
import BackTitle from '@/components/BackTitle'
|
|
|
import { mapState } from 'vuex'
|
|
|
import { quitCourse } from '@/server/course'
|
|
|
+import CourseDetail from '@/components/CourseDetail'
|
|
|
|
|
|
export default {
|
|
|
- components: { BackTitle, CButton, TabSideComponent },
|
|
|
+ components: { CourseDetail, BackTitle, CButton, TabSideComponent },
|
|
|
data () {
|
|
|
return {
|
|
|
newCode: ''
|
|
|
@@ -54,23 +50,6 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-.detail {
|
|
|
- font-weight: bold;
|
|
|
- font-size: 14px;
|
|
|
- margin-bottom: 24px;
|
|
|
- color: #7a8a9a;
|
|
|
-
|
|
|
- div {
|
|
|
- margin-top: 2px;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- div:not(:last-child) {
|
|
|
- border-bottom: 1px dashed #aabaca;
|
|
|
- padding-bottom: 2px;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
.c-input {
|
|
|
margin-bottom: 24px;
|
|
|
}
|