From a47e2089e3a15ecc5e3ff43135c117380508bd52 Mon Sep 17 00:00:00 2001 From: weinan2087 Date: Fri, 14 Oct 2022 14:17:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=B0=E5=A2=9E=E7=AC=94?= =?UTF-8?q?=E8=AE=B0=E6=8F=90=E7=A4=BA=E7=9A=84U=E7=AC=94=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=95=B0=E9=87=8F=EF=BC=9B=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=AC=94=E8=AE=B0=E6=97=B6=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E6=A1=86=E6=95=B0=E6=8D=AE=E6=B8=85=E7=A9=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Course/myNote.vue | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/components/Course/myNote.vue b/src/components/Course/myNote.vue index fbc4a3e5..23fa9de9 100644 --- a/src/components/Course/myNote.vue +++ b/src/components/Course/myNote.vue @@ -14,7 +14,7 @@
@@ -86,7 +86,7 @@ alt=""> 视频位置 公开 私密 - 取消 + 取消 保存 @@ -133,6 +133,7 @@ export default { courseName: '',// 课程名称 openType: 9,// 1表不公开 9表完全公开 }, + content_new: '', editRadio: 9 , // 单选按钮(笔记公开状态)状态值 : 1- 私密 9-公开 noteList: [], type: 1, // 1自动保存 2点击保存 @@ -254,9 +255,10 @@ export default { }, notetabType(num) { this.notetab = num; - // if(num == 1) { - // this.autoSaveNote(); - // } + if(num == 1) { + this.content_new = ''; // 清空内容 + this.btnPlayTime=true; // 显示添加视频时间 + } }, saveNote() { let that = this; @@ -289,10 +291,11 @@ export default { } }) } else { + this.mynoteData.content = this.content_new; // 赋值笔记内容 apiNote.save(this.mynoteData).then(res => { if (res.status == 200) { if (!this.mynoteData.id) { - this.inAnimationText = '笔记保存成功,U币+2'; + this.inAnimationText = '笔记保存成功,U币+5'; this.inAnimation = true; this.editRadio = 9; // 重置默认笔记公开状态 this.mynoteData.openType = 9;