From 5b19b0e39a91e566a835460bf1213e7b3a0582b9 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期一, 17 三月 2025 14:27:14 +0800 Subject: [PATCH] 图 --- packageCourse/pages/course/detail/index.js | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/packageCourse/pages/course/detail/index.js b/packageCourse/pages/course/detail/index.js index 3430dc3..433de22 100644 --- a/packageCourse/pages/course/detail/index.js +++ b/packageCourse/pages/course/detail/index.js @@ -222,8 +222,18 @@ }) }, + calendarClose() { + this.setData({ + visibleStart: false, + visibleEnd: false, + isShow: '' + }) + }, + // 鐢宠鎻愪氦鐝骇 submitClass() { + const bTime = moment(this.data.startTime).valueOf() + const eTime = moment(this.data.endTime).valueOf() if (!this.data.className) { wx.showToast({ title: '璇峰~鍐欒绋嬪悕绉�', @@ -243,6 +253,14 @@ if (!this.data.startTime || !this.data.endTime) { wx.showToast({ title: '璇烽�夋嫨鐝骇鏈夋晥鏈�', + duration: 1000, + icon: 'none', + }) + return false + } + if (bTime && eTime && eTime < bTime) { + wx.showToast({ + title: '璇烽�夋嫨鐝纭殑鐝骇鏈夋晥鏈�', duration: 1000, icon: 'none', }) @@ -391,7 +409,7 @@ return false } wx.navigateTo({ - url: '/packageCourse/pages/teachClass/index?classId=' + classId + '&courseId=' + this.data.courseId + '&author=' + this.data.bookData.author + '&isbn=' + this.data.bookData.isbn + '&bookId=' + this.data.bookData.id + '&rootCmsItemId=' + this.data.bookData.rootCmsItemId + "&bookRefCode=" + this.data.defaultCmsPath, + url: '/packageCourse/pages/teachClass/index?classId=' + classId + '&courseId=' + this.data.courseId + '&author=' + this.data.bookData.author + '&isbn=' + this.data.bookData.isbn + '&bookId=' + this.data.bookData.id + '&rootCmsItemId=' + this.data.bookData.rootCmsItemId + "&bookRefCode=" + item.linkProductDto.product.refCode, }) }, -- Gitblit v1.9.1