小程序产品库完成

This commit is contained in:
aixianling
2022-02-14 17:25:54 +08:00
parent cb5f434edb
commit 8d2905428e
145 changed files with 22037 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
<template>
<section class="contentDetail">
<ai-detail :detail="detail" :props="props"/>
</section>
</template>
<script>
import AiDetail from "../../components/AiDetail/AiDetail";
export default {
name: "contentDetail",
components: {AiDetail},
data() {
return {
detail: {title: "内容详情"},
props: {
count: "viewCount"
},
id: "",
}
},
onLoad({id}) {
if (id) {
this.id = id;
this.getDetail(id);
}
},
methods: {
getDetail(id) {
this.$instance.post(`/app/appcontentinfo/queryDetailById`, null, {
params: {id}
}).then(res => {
if (res?.data) {
this.detail = res.data
}
})
},
},
onShareAppMessage() {
return {
title: detail.title,
path: '/mods/AppContent/contentDetail?id=' + this.id
};
}
}
</script>
<style lang="scss" scoped>
.contentDetail {
}
</style>