litian
2025-03-17 5b19b0e39a91e566a835460bf1213e7b3a0582b9
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,
    })
  },