| | |
| | | updateCourse: false, |
| | | currentCourse: null, |
| | | submitLoading: false, |
| | | showContentOnly: false, |
| | | // 加载参数 |
| | | bottomLoading: false, |
| | | isMoreData: false, |
| | |
| | | this.getData() |
| | | }, |
| | | |
| | | showDialog() { |
| | | this.setData({ |
| | | showContentOnly: true, |
| | | }); |
| | | }, |
| | | |
| | | closeDialog() { |
| | | this.setData({ |
| | | showContentOnly: false |
| | | }); |
| | | }, |
| | | |
| | | // 课程详情 |
| | | todetail(e) { |
| | | const { |
| | |
| | | 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, |
| | | }) |
| | |
| | | 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 |