From 9385713c95cd1cb92d0ba8c89318a6822aab6cb5 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期一, 20 一月 2025 18:24:14 +0800 Subject: [PATCH] home --- 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