For agentic workers: REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development to implement this plan task-by-task.
Goal: Reconstruct parent mini-program homepage with child cards as core navigation, add child detail page.
Architecture: Vue 2 + uni-app. Add child card row to parent-index.vue top, move growth archive into new child-detail.vue page. Other pages add childId query param support.
Tech Stack: uni-app (Vue 2), WeChat miniprogram
Files:
cfc-frontend/pages/parent/child-detail.vueSpec:
/pages/parent/child-detail?childId=XonLoad(options) to get childId from query paramsgetChildren() → find child by id, getTodayTasks(childId), getPendingReviewTasks(), wish APIKey code structure:
<template>
<view class="child-detail-container">
<!-- 孩子信息卡片 -->
<view class="info-card">...</view>
<!-- 操作区 -->
<view class="actions">...</view>
<!-- 今日任务 -->
<view class="tasks-section">...</view>
<!-- 待处理 -->
<view class="pending-section">...</view>
</view>
</template>
Files:
cfc-frontend/pages/index/parent-index.vueChanges:
child-status-card with a child cards row at the top (after greeting):
scroll-view, each card ~160rpx wideLayout structure:
welcome greeting
child cards row (scroll-view horizontal, new)
成长数据 (existing stats-grid)
今日重点 (existing today-section)
成长里程碑 (existing milestone-section)
待审核任务 (existing review-section, kept)
快捷操作 (existing quick-section, minus 成长档案)
Files:
cfc-frontend/pages.jsonAdd:
{
"path": "pages/parent/child-detail",
"style": {
"navigationBarTitleText": "孩子详情"
}
}
Files:
cfc-frontend/pages/tasks/create-task.vueChanges:
onLoad(options): if options.childId exists, pre-select that child in the pickerchildId to data, set in onLoadchildren from mounted/getChildren, just set selectedChildIndex based on childIdFiles:
cfc-frontend/pages/parent/wishes/index.vueChanges:
onLoad(options): accept childId, filter wishes by childId if providedchildId to data, pass to API calls that support itFiles:
cfc-frontend/pages/growth/index.vueChanges:
onLoad(options): accept childId, auto-select that child