Draft
作为企业用户, 我希望管理企业相关的视频资料和查看企业基本信息, 以便进行资料归档和账户管理。
docs/小程序原型/yongren.html中的视频管理页面依赖故事:
API依赖状态:
视频管理API(史诗012提供):
企业管理API(company模块):
技术集成:
api/v1/yongren视频管理页设计规范:
必须严格对照原型文件 docs/小程序原型/yongren.html 第1440-1609行(企业维度)和第1610-...行(个人维度)的视频管理页面设计实现:
页面结构:
h-[calc(100%-60px)] overflow-y-auto(仅减去底部导航60px)顶部信息区域(第1455-1465行):
p-4 border-b border-gray-200flex items-center justify-between
<h3 class="font-semibold text-gray-800">阿里巴巴2023-11</h3>,副标题 <p class="text-sm text-gray-500">企业维度 - 打卡视频管理</p><button class="text-blue-500 text-sm"><i class="fas fa-download mr-1"></i>批量下载</button>视频分类筛选区域(第1468-1475行):
p-4 border-b border-gray-200flex space-x-2 overflow-x-auto pb-2
bg-blue-100 text-blue-800 text-xs px-3 py-1 rounded-full whitespace-nowrap(激活状态)bg-gray-100 text-gray-800 text-xs px-3 py-1 rounded-full whitespace-nowrap视频列表标题区域(第1479-1489行):
flex justify-between items-center mb-4<h3 class="font-semibold text-gray-700">视频列表 (12)</h3>flex space-x-2
<button class="text-gray-500"><i class="fas fa-sort"></i></button><button class="text-gray-500"><i class="fas fa-filter"></i></button>视频卡片列表(第1491-...行):
space-y-4card bg-white p-4视频卡片头部(第1494-1500行):
flex justify-between items-start mb-3
<h4 class="font-semibold text-gray-800">张明 - 工资视频</h4>,上传时间 <p class="text-xs text-gray-500">2023-11-25 上传</p><span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">已验证</span>视频内容区域(第1501-1509行):
flex items-center mb-3
w-16 h-16 bg-gray-200 rounded-lg flex items-center justify-center mr-3,播放图标 <i class="fas fa-play text-gray-500"></i>flex-1<p class="text-sm text-gray-700">工资发放确认视频</p><p class="text-xs text-gray-500">时长: 00:45 · 大小: 12.3MB</p>操作按钮区域(第1510-1520行):
flex justify-between text-sm
text-blue-500,图标 <i class="fas fa-play mr-1"></i>,文字"播放"text-green-500,图标 <i class="fas fa-download mr-1"></i>,文字"下载"text-gray-500,图标 <i class="fas fa-share mr-1"></i>,文字"分享"企业设置页设计规范:
必须严格对照原型文件 docs/小程序原型/yongren.html 第1302-1439行的企业设置页面设计实现:
页面结构:
h-[calc(100%-60px)] overflow-y-auto(仅减去底部导航60px)企业信息区域(第1317-1341行):
p-4 border-b border-gray-200flex items-center mb-4
w-16 h-16 rounded-full bg-blue-100 flex items-center justify-center mr-4<i class="fas fa-building text-blue-500 text-2xl"></i><h3 class="font-semibold text-gray-800">阿里巴巴集团</h3>,<p class="text-sm text-gray-500">企业账号</p>grid grid-cols-3 gap-3 text-center
<p class="text-xl font-bold text-gray-800">24</p>,标签 <p class="text-xs text-gray-500">在职人员</p>功能列表区域(第1344-...行):
p-4第一组功能列表(第1345-1373行):
space-y-1 mb-6flex items-center justify-between p-3 rounded-lg hover:bg-gray-50
flex items-centerw-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mr-3<i class="fas fa-user text-blue-500"></i><span class="text-gray-700">账号信息</span><i class="fas fa-chevron-right text-gray-400"></i>第二组功能列表(第1375-...行):
space-y-1 mb-6延期功能处理:
<span class="text-xs text-gray-400 ml-2">(后期优化)</span>UI组件使用:
页面组件位置:
mini/src/pages/yongren/video/ - 视频管理页面mini/src/pages/yongren/settings/ - 企业设置页面业务组件位置:
mini/src/components/video/ - 视频相关组件
VideoGrid.tsx - 视频网格组件VideoPlayer.tsx - 视频播放器组件VideoBatchToolbar.tsx - 批量操作工具栏mini/src/components/settings/ - 设置相关组件
CompanyInfoCard.tsx - 企业信息卡片FeaturePlaceholder.tsx - 功能占位组件基于史诗012扩展的数据库schema:
order_person_asset表的asset_type枚举已扩展视频类型 [来源:docs/stories/012.001.story.md#数据模型]
salary_video(工资视频)、tax_video(个税视频)、checkin_video(打卡视频)、work_video(工作视频)受影响的系统设置功能:
处理方案:
测试框架:Jest + Testing Library 关键测试场景:
| 日期 | 版本 | 描述 | 作者 |
|---|---|---|---|
| 2025-12-17 | 1.0 | 初始创建(视频与系统管理故事) | Bob(Scrum Master) |
此部分由开发代理在实施过程中填充
来自QA代理对已完成故事实施的QA审查结果