diff --git a/src/project/qujing/AppLegalLearning/classDetail.vue b/src/project/qujing/AppLegalLearning/classDetail.vue index d6bc142..a394ec1 100644 --- a/src/project/qujing/AppLegalLearning/classDetail.vue +++ b/src/project/qujing/AppLegalLearning/classDetail.vue @@ -3,31 +3,31 @@
- -
- -
-
{{ data.title }}
-

{{ data.learnerNumber || 0 }}人已学习

+
{{ detail.title }}
+

{{ detail.learnerNumber || 0 }}人已学习

- +
我来说两句...
- {{ data.msgCount || 0 }}+ + {{ detail.msgCount || 0 }}+
-

共{{ data.msgCount }}条评论

+

共{{ detail.msgCount }}条评论

@@ -59,8 +59,7 @@ v-model="content" :cursor-spacing="40" placeholder="我来说两句..." - maxlength="100" - @keyboardheightchange="keyboard"> + maxlength="100">
发送
@@ -78,7 +77,7 @@ export default { showSend: false, content: '', height: 0, - data: {}, + detail: {}, commentList: [], id: '', flag: false, @@ -93,7 +92,7 @@ export default { getDetail() { this.$instance.post(`/app/appcourseinfo/queryDetailById?id=${this.id}`).then(res => { if (res?.data) { - this.data = res.data + this.detail = res.data } }).catch(err => this.$u.toast(err.msg)) }, @@ -103,7 +102,7 @@ export default { params: { current: this.current, size: 10, - courseId: this.data.id, + courseId: this.detail.id, } }).then(res => { if (res?.data) { @@ -121,7 +120,7 @@ export default { this.flag = true this.$instance.post(`/app/appcoursecomment/add`, { - courseId: this.data.id, + courseId: this.detail.id, content: this.content, type: '1' }).then(res => { @@ -141,8 +140,8 @@ export default { stop() { this.$instance.post(`/app/appcourseinfo/stopLearnById`, null, { params: { - id: this.data.id, - recordId: this.data.recordId + id: this.detail.id, + recordId: this.detail.recordId } }).then(res => { if (res.code == 0) { @@ -150,9 +149,6 @@ export default { } }).catch(err => this.$u.toast(err.msg)) }, - keyboard(e) { - console.log(e.detail.height); - }, scrollLower() { this.current++ this.getComment()