Files
jiapu/profile-relative-edit.html
T
fizzleaf fb1743aa2a feat(api): 完善家谱系统API客户端契约
- 实现家谱管理相关方法,包括创建、详情、概览、我的家谱和选项查询
- 添加家谱加入申请功能,支持申请、审核、取消和待审核列表操作
- 集成通知详情获取方法和通知ID安全验证机制
- 完善功德记录、谱文、相册、视频、祭祀活动的完整CRUD操作契约
- 实现家谱成员管理功能,包含成员列表、更新、移除和转让所有者操作
- 优化路径ID验证逻辑,拒绝不安全的数值ID并提供明确错误提示
- 更新测试用例以验证所有新增API方法的路径和请求体白名单机制
2026-07-29 16:57:27 +08:00

131 lines
6.5 KiB
HTML

<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>新建亲友记录 - 个人中心 - 代代相传</title>
<link rel="stylesheet" href="public/css/public.css" />
<link rel="stylesheet" href="public/layui/css/layui.css" />
<link rel="stylesheet" href="public/css/profile-module.css" />
</head>
<body class="page-profile-module" data-relative-edit-page>
<header class="site-header">
<div class="container nav">
<a class="brand magnetic" href="profile.html">
<img class="brand-logo brand-logo-mark" src="public/images/logo-mark.png" alt="" />
<span class="brand-text">个人中心</span>
</a>
<nav class="nav-links">
<a href="profile-content.html">内容发布</a>
<a class="active" href="profile-relative.html" data-genealogy-context-link>亲友往来</a>
</nav>
<div class="nav-actions">
<a href="profile-relative.html" data-genealogy-context-link>返回记录</a>
<button class="btn primary magnetic" type="submit" form="relative-edit-form" data-relative-editor-action hidden>保存</button>
</div>
</div>
</header>
<main>
<section class="module-hero">
<div class="container">
<div class="module-kicker">Relative Record</div>
<div class="module-title-row">
<div>
<h1 data-relative-editor-title>新建亲友记录</h1>
<p>附件由上传组件自动生成内部编号,页面不允许手工填写。</p>
</div>
</div>
</div>
</section>
<section class="section">
<div class="container module-layout">
<aside class="module-nav">
<a href="profile-content.html">内容发布</a>
<a href="profile-growth.html" data-genealogy-context-link>成长记录</a>
<a class="active" href="profile-relative.html" data-genealogy-context-link>亲友往来</a>
<a href="profile-memo.html">备忘录</a>
</aside>
<div class="module-main">
<section class="module-panel">
<h2>记录内容</h2>
<form id="relative-edit-form" class="editor-form" data-relative-form data-relative-editor hidden>
<div class="editor-two">
<div class="editor-field">
<label for="relativeName">亲友姓名</label>
<input id="relativeName" name="relativeName" type="text" placeholder="请输入亲友姓名" required />
</div>
<div class="editor-field">
<label for="relationName">关系名称</label>
<input id="relationName" name="relationName" type="text" placeholder="可选,例如长辈、同学" />
</div>
</div>
<div class="editor-two">
<div class="editor-field">
<label for="eventName">事件名称</label>
<input id="eventName" name="eventName" type="text" placeholder="可选,例如寿宴、婚礼" />
</div>
<div class="editor-field">
<label for="eventTime">事件时间</label>
<input id="eventTime" name="eventTime" type="datetime-local" />
</div>
</div>
<div class="editor-two">
<div class="editor-field">
<label for="giftAmount">礼金金额</label>
<input id="giftAmount" name="giftAmount" type="number" step="any" placeholder="可选;后端未限定精度或正负" />
</div>
<div class="editor-field">
<label for="relativeSortOrder">排序值</label>
<input id="relativeSortOrder" name="sortOrder" type="number" step="1" placeholder="可选;安全整数" />
</div>
</div>
<div class="editor-field">
<label for="relativeContent">记录内容</label>
<textarea id="relativeContent" name="recordContent" placeholder="可选,记录往来详情"></textarea>
</div>
<div class="editor-field">
<label for="relativeMediaFiles">附件文件</label>
<input id="relativeMediaOssIds" name="mediaOssIds" type="hidden" />
<label class="upload-control" for="relativeMediaFiles">选择附件</label>
<input
id="relativeMediaFiles"
class="upload-input"
type="file"
multiple
data-upload-multiple="true"
data-upload-target="#relativeMediaOssIds"
data-upload-status="#relativeMediaStatus"
data-relative-media-input
/>
<p id="relativeMediaStatus" class="upload-status" data-relative-media-status>未选择文件</p>
<button class="pill" type="button" data-relative-clear-media>清除附件</button>
</div>
<input name="status" type="hidden" value="0" />
<div class="bottom-actions">
<button class="btn primary magnetic" type="submit">保存</button>
<a class="btn ghost magnetic" href="profile-relative.html" data-genealogy-context-link>取消</a>
<span class="form-status" data-relative-form-status></span>
</div>
</form>
<div class="api-empty" data-relative-editor-placeholder>正在加载亲友记录编辑信息…</div>
</section>
</div>
</div>
</section>
</main>
<script src="public/js/jquery360.js"></script>
<script src="public/layui/layui.js"></script>
<script src="public/js/lay-config.js"></script>
<script src="public/js/profile-common.js?v=20260725-entry"></script>
<script src="config.js"></script>
<script src="utils/StorageUtil.js"></script>
<script src="utils/axios.js"></script>
<script src="utils/AxiosRequestUtil.js"></script>
<script src="utils/ApiClient.js"></script>
<script src="public/js/md5.js"></script>
<script src="public/js/upload-pages.js"></script>
<script src="public/js/relative-pages.js"></script>
<script src="public/js/page-effects.js"></script>
</body>
</html>