小程序目录调整完成

This commit is contained in:
aixianling
2022-05-12 12:16:40 +08:00
parent 6ed5ef69ad
commit 5d0801ac21
96 changed files with 14 additions and 1268 deletions

View File

@@ -0,0 +1,51 @@
<template>
<section class="contentDetail">
<AiDetail :detail="detail" :props="props"/>
</section>
</template>
<script>
export default {
name: "contentDetail",
appName:"内容详情",
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: this.detail.title,
path: '/mods/AppContent/contentDetail?id=' + this.id
};
}
}
</script>
<style lang="scss" scoped>
.contentDetail {
}
</style>