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 | 22 ++++++++++++++++++---- 1 files changed, 18 insertions(+), 4 deletions(-) diff --git a/packageCourse/pages/course/index.js b/packageCourse/pages/course/index.js index 65b3410..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, @@ -50,6 +51,18 @@ this.getData() }, + showDialog() { + this.setData({ + showContentOnly: true, + }); + }, + + closeDialog() { + this.setData({ + showContentOnly: false + }); + }, + // 璇剧▼璇︽儏 todetail(e) { const { @@ -57,14 +70,15 @@ item } = e.currentTarget.dataset const refCode = item.linkProduct.refCode ? item.linkProduct.refCode : '' - if (item.applyState == 'WaitAudit' || item.applyState == 'Reject') { + if (item.applyState == 'WaitAudit') { wx.showToast({ - title: item.applyState == 'WaitAudit' ? '瀹℃牳涓�' : '鏈�氳繃', + title: '瀹℃牳涓�', duration: 1000, icon: 'none', }) return false } + if (item.applyState == 'Reject') return false wx.navigateTo({ url: '/packageCourse/pages/course/detail/index?courseId=' + courseId + "&bookRefCode=" + refCode, }) @@ -275,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