...
 
Commits (3)
    https://gitcode.net/roncoocom/roncoo-education-web/-/commit/83469391bf011abec13b23dda63f7cd75d7956e9 评论分页 2023-11-25T11:40:47+08:00 水边哇 690713167@qq.com https://gitcode.net/roncoocom/roncoo-education-web/-/commit/7758ca4ba0e7be791f435a161078eabf579ac55d 去除底部文字 2023-11-25T11:41:22+08:00 水边哇 690713167@qq.com https://gitcode.net/roncoocom/roncoo-education-web/-/commit/079db06f2c983cabc7c68d9d94659ec06f1ac25b 无数据处理 2023-11-25T11:45:48+08:00 水边哇 690713167@qq.com
......@@ -13,12 +13,12 @@
<div class="course_comment_btn"><div class="course_comment_time">{{ comment.gmtCreate }}</div></div>
</div>
</div>
<div class="loading_btn">
<span class="loading_text">已经到底部,没有更多内容了</span>
<div v-if="!pageObj.list || pageObj.list.length === 0" class="loading_btn">
<span class="loading_text">暂无数据</span>
</div>
</div>
</div>
<d-page v-if="pageObj.totalPage > 1" :page="pageObj" @btnClick="getCommentList" />
<d-page v-if="pageObj.totalPage > 1" :page="pageObj" @btnClick="getPage" />
</div>
</template>
......@@ -79,6 +79,11 @@ export default {
}
})
},
getPage(int) {
window.scrollTo(0, 0)
this.pageObj.pageCurrent = int
this.getCommentList()
},
getCommentList() {
courseCommentPage({ courseId: this.id, pageCurrent: this.pageObj.pageCurrent }).then(res => {
this.pageObj = res
......