设计完成30%
This commit is contained in:
@@ -31,7 +31,15 @@ onMounted(async () => {
|
||||
if (!genealogyId.value) { loadError.value = '请先从“我的家谱”选择一个家谱。'; return }
|
||||
try { feeds.value = await appApi.getFeeds(genealogyId.value) } catch (error) { loadError.value = error.message || '家族动态加载失败。' }
|
||||
})
|
||||
const openSection = (type) => uni.navigateTo({ url: `/pages/skeleton/content-list-skeleton?type=${type}&genealogyId=${genealogyId.value}` })
|
||||
const openSection = (type) => {
|
||||
const routes = {
|
||||
article: '/pages/family/f04-article-list',
|
||||
album: '/pages/family/f07-album-list',
|
||||
ceremony: '/pages/records/r05-ritual-list',
|
||||
record: '/pages/records/r10-memo-list'
|
||||
}
|
||||
uni.navigateTo({ url: `${routes[type]}?genealogyId=${genealogyId.value}` })
|
||||
}
|
||||
const publishFeed = () => {
|
||||
if (!genealogyId.value) { uni.showToast({ title: '请先选择家谱', icon: 'none' }); return }
|
||||
uni.navigateTo({ url: `/pages/family/f02-publish-feed?type=feed&genealogyId=${genealogyId.value}` })
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<!-- 页面编号:F-03;用途:动态详情、评论、点赞与删除确认。 -->
|
||||
<template><ModulePage page-id="f03" /></template>
|
||||
<script setup>import ModulePage from '@/components/ModulePage.vue'</script>
|
||||
@@ -0,0 +1,3 @@
|
||||
<!-- 页面编号:F-04;用途:谱文分类与文章列表。 -->
|
||||
<template><ModulePage page-id="f04" /></template>
|
||||
<script setup>import ModulePage from '@/components/ModulePage.vue'</script>
|
||||
@@ -0,0 +1,3 @@
|
||||
<!-- 页面编号:F-05;用途:谱文详情。 -->
|
||||
<template><ModulePage page-id="f05" /></template>
|
||||
<script setup>import ModulePage from '@/components/ModulePage.vue'</script>
|
||||
@@ -0,0 +1,3 @@
|
||||
<!-- 页面编号:F-06;用途:新建与编辑谱文。 -->
|
||||
<template><ModulePage page-id="f06" /></template>
|
||||
<script setup>import ModulePage from '@/components/ModulePage.vue'</script>
|
||||
@@ -0,0 +1,3 @@
|
||||
<!-- 页面编号:F-07;用途:家族相册列表。 -->
|
||||
<template><ModulePage page-id="f07" /></template>
|
||||
<script setup>import ModulePage from '@/components/ModulePage.vue'</script>
|
||||
@@ -0,0 +1,3 @@
|
||||
<!-- 页面编号:F-08;用途:相册详情与照片墙。 -->
|
||||
<template><ModulePage page-id="f08" /></template>
|
||||
<script setup>import ModulePage from '@/components/ModulePage.vue'</script>
|
||||
@@ -0,0 +1,3 @@
|
||||
<!-- 页面编号:F-09;用途:图片预览、上传与失败状态。 -->
|
||||
<template><ModulePage page-id="f09" /></template>
|
||||
<script setup>import ModulePage from '@/components/ModulePage.vue'</script>
|
||||
@@ -0,0 +1,3 @@
|
||||
<!-- 页面编号:F-10;用途:家族视频列表、详情与待开放状态。 -->
|
||||
<template><ModulePage page-id="f10" /></template>
|
||||
<script setup>import ModulePage from '@/components/ModulePage.vue'</script>
|
||||
Reference in New Issue
Block a user