litian
2024-12-24 6df96b3e7a7da1985ee875e84711e9f15c5fbff0
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