From c99f9976a5ef9d8974105feb8fc0580a10adf98c Mon Sep 17 00:00:00 2001 From: QYF-GitLab1 <1940665526@qq.com> Date: 星期一, 23 十二月 2024 14:58:49 +0800 Subject: [PATCH] 111 --- packageCourse/pages/course/index.js | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/packageCourse/pages/course/index.js b/packageCourse/pages/course/index.js index 5179ae4..9a0a0c8 100644 --- a/packageCourse/pages/course/index.js +++ b/packageCourse/pages/course/index.js @@ -34,6 +34,7 @@ updateCourse: false, currentCourse: null, submitLoading: false, + showContentOnly: false, // 鍔犺浇鍙傛暟 bottomLoading: false, isMoreData: false, @@ -48,6 +49,18 @@ */ onLoad(options) { this.getData() + }, + + showDialog() { + this.setData({ + showContentOnly: true, + }); + }, + + closeDialog() { + this.setData({ + showContentOnly: false + }); }, // 璇剧▼璇︽儏 @@ -276,8 +289,8 @@ app.MG.edu .updateCourse({ courseId: this.data.currentCourse.id, - name: this.data.currentCourse.name, - description: this.data.currentCourse.desc + name: this.data.courseName, + description: this.data.courseDesc, }) .then((res) => { app.MG.edu -- Gitblit v1.9.1