|
|
@@ -47,9 +47,9 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="addBtn flex-center gradient border_radius_10">
|
|
|
- <div class="gap10" @click="openAddDialog">
|
|
|
+ <div class="gap10" @click="toAddNote">
|
|
|
<img :src="addIcon" alt="" style="width:30px;height:30px">
|
|
|
- <span class="font_size18">{{$t('common.add')}}{{$t('common.xuxibiji')}}</span>
|
|
|
+ <span class="font_size18">120篇笔记</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -59,16 +59,21 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="detail_right">
|
|
|
- <div class="bg_color_fff padding16 border_radius_16 box_shadow_card">
|
|
|
+ <div class="bg_color_fff padding16 border_radius_16 box_shadow_card" v-show="!isShowNote">
|
|
|
<CourseDirectory :info="info" />
|
|
|
</div>
|
|
|
- <div class=" bg_color_fff padding16 border_radius_16 box_shadow_card mt10">
|
|
|
+ <div class=" bg_color_fff padding16 border_radius_16 box_shadow_card mt10" v-show="!isShowNote">
|
|
|
<OtherCourse />
|
|
|
</div>
|
|
|
+ <div class="isShowNote bg_color_fff padding16 border_radius_16 box_shadow_card mt10" v-show="isShowNote">
|
|
|
+ <div class="CloseBold" @click="isShowNote=false">
|
|
|
+ <el-icon size="18"><CloseBold /></el-icon>
|
|
|
+ </div>
|
|
|
+ <Xuxibiji :info="info" />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <BlockNoteEditorDialog ref="blockNoteEditorDialogRef" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -83,7 +88,7 @@ import OtherCourse from './components/OtherCourse.vue'
|
|
|
import CourseDirectory from './components/CourseDirectory.vue'
|
|
|
import VideoPlayer from '@/components/VideoPlayer.vue'
|
|
|
import Pinglun from './components/pinglun.vue'
|
|
|
-import BlockNoteEditorDialog from '@/components/BlockNoteEditorDialog.vue'
|
|
|
+import Xuxibiji from './components/Xuxibiji.vue'
|
|
|
import DGTMessage from '@/utils/message'
|
|
|
|
|
|
// 引入api
|
|
|
@@ -124,9 +129,9 @@ const getDetail = async () => {
|
|
|
};
|
|
|
|
|
|
// 打开添加对话框
|
|
|
-const blockNoteEditorDialogRef = ref(null)
|
|
|
-const openAddDialog = () => {
|
|
|
- blockNoteEditorDialogRef.value.openDialog();
|
|
|
+const isShowNote = ref(false)
|
|
|
+const toAddNote = () => {
|
|
|
+ isShowNote.value = true
|
|
|
};
|
|
|
|
|
|
// 播放指定视频
|
|
|
@@ -293,6 +298,16 @@ const playNextVideo = () => {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ .isShowNote{
|
|
|
+ position: relative;
|
|
|
+ .CloseBold{
|
|
|
+ position: absolute;
|
|
|
+ top: 16px;
|
|
|
+ right: 16px;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|