@@ -105,8 +105,12 @@ import { testType, correctJudgment, numberToLetter } from '@/utils/tools.js';
export default {
props: {
data: {
- type: Object,
- default: () => { }
+ type: Object,
+ default: () => { }
+ },
+ height:{
+ type: Number,
+ default: 200
},
score: {
type:Number,
@@ -118,6 +122,7 @@ export default {
return {
inAnimationText:'笔记保存成功,U币+2',
isEdit:false,
+ inputHeight:168,
courseId:'',
inAnimation: false,
btnPlayTime:false,//是否显示添加视频时间
@@ -150,12 +155,20 @@ export default {
},
watch: {
+ //内容的高度
+ height(val){
+ this.inputHeight=(val-182);
+ //console.log(this.inputHeight,'this.inputHeight');
+ if(this.inputHeight>500){
+ this.inputHeight=500;
+ }
+ },
selected:{
- handler(val,old){
- this.$emit('change',this.selected)
- },
- deep:true
- },
+ handler(val,old){
+ this.$emit('change',this.selected)
+ },
+ deep:true
+ },
data(val){
if(val.id) {
console.log(val,'val');
@@ -170,8 +183,8 @@ export default {
},
methods: {
handleClick(){
- this.$emit('change',this.selected)
- },
+ this.$emit('change',this.selected)
+ },
onPlayVideo(conId,time) {
//这里应该加上内容的id
this.$emit('onPlayVideo',conId,time);
@@ -497,8 +510,8 @@ export default {
}
.mycote-dibu {
- margin: 50px 38%;
-
+ margin: 50px 50px;
+ text-align: center;
color: #999999;
font-size: 14px;
}
diff --git a/src/components/PortalHeader.vue b/src/components/PortalHeader.vue
index 9923daf0..267c8964 100644
--- a/src/components/PortalHeader.vue
+++ b/src/components/PortalHeader.vue
@@ -301,6 +301,12 @@ export default {