评论组件完成

This commit is contained in:
aixianling
2022-05-25 17:04:52 +08:00
parent f36e184fb7
commit 8f40ac4dd4
5 changed files with 424 additions and 170 deletions

View File

@@ -1,14 +1,19 @@
<template>
<section class="contentDetail">
<AiDetail :detail="detail" :props="props"/>
<u-gap height="16"/>
<AiComment v-if="detail.id" :bid="detail.id"/>
</section>
</template>
<script>
import AiComment from "dvcp-wui/AiComment/AiComment";
export default {
name: "contentDetail",
appName:"内容详情",
components: {AiComment},
appName: "内容详情",
data() {
return {
detail: {title: "内容详情"},
@@ -35,12 +40,14 @@ export default {
})
},
},
onShareAppMessage() {
return {
title: this.detail.title,
path: '/mods/AppContent/contentDetail?id=' + this.id
};
},
onReachBottom() {
uni.$emit("moreComments")
}
}
</script>