评论组件完成
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user