ce4f05b60f
- 更新登录响应模拟数据以匹配真实的AppLoginVo结构 - 添加认证客户端租户和授权字段验证 - 增加操作码枚举验证测试用例 - 移除对旧token别名的兼容性测试 - 修复测试用例中的短信验证码长度一致性问题 - 更新区域接口路径为PC专用路径 - 调整分片上传接口参数以符合新契约定义 refactor(api): 重构API客户端实现以严格遵循YAML契约 - 添加认证操作码和短信操作码枚举验证 - 实现严格的token响应解析只接受access_token字段 - 使用pickDefined函数过滤请求体中未定义的字段 - 重构认证接口参数映射以符合契约定义 - 更新区域接口路径为PC专用路径/genealogy/pc/region/* - 优化分片上传接口参数结构与契约保持一致 - 添加操作码枚举验证函数toRequiredOperationCode - 实现请求体字段选择性提取功能 feat(auth): 优化认证页面的验证码处理流程 - 添加takeCaptchaToken函数用于一次性获取验证码票据 - 更新短信验证码长度验证从4-6位改为精确4位 - 在登录和密码重置流程中集成验证码票据处理 - 修复验证码发送后票据清理逻辑 - 更新HTML模板中的验证码输入字段属性 chore(config): 提取常量配置并扩展配置对象结构 - 将客户端ID、租户ID和令牌键提取为常量 - 扩展配置对象返回客户端配置信息 - 更新配置测试用例以验证新增配置项 docs(planning): 更新PC接口对接规划文档 - 更新契约源说明以反映YAML冻结契约 - 添加YAML与在线Apifox复核对比内容 - 更新阻断项状态表格 - 修订登录响应token字段处理规范 - 更新文件上传和行政区划接口规范说明 style(profile): 优化相册管理页面的文件上传交互 - 将封面和照片OSS ID输入改为隐藏字段 - 添加文件选择标签以改善用户体验 - 移除手动输入OSS ID的选项保持界面简洁
141 lines
6.7 KiB
HTML
141 lines
6.7 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-album-page data-feature-status="pending" data-feature-message="家族相册服务正在开发中,当前页面仅保留设计预览。">
|
|
<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-album.html">相册</a
|
|
><a href="profile-video.html">视频</a>
|
|
</nav>
|
|
<div class="nav-actions">
|
|
<a href="profile-content.html">返回发布中心</a
|
|
><a class="btn primary magnetic" href="#album-form">新建相册</a>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<main>
|
|
<section class="module-hero">
|
|
<div class="container">
|
|
<div class="module-kicker">Album</div>
|
|
<div class="module-title-row">
|
|
<div>
|
|
<h1>家族相册</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-article.html">谱文</a
|
|
><a class="active" href="profile-album.html">相册</a
|
|
><a href="profile-video.html">视频</a
|
|
><a href="profile-family-home.html">家谱主页</a>
|
|
</aside>
|
|
<div class="module-main">
|
|
<section class="module-panel">
|
|
<h2>相册列表</h2>
|
|
<!-- 相册列表由 /albums 接口渲染,点击后加载照片 -->
|
|
<div class="module-list" data-album-list>
|
|
<div class="api-empty">相册加载中...</div>
|
|
</div>
|
|
</section>
|
|
<section class="module-panel">
|
|
<h2>新建 / 编辑相册</h2>
|
|
<form id="album-form" class="editor-form" data-album-form>
|
|
<div class="editor-field">
|
|
<label for="albumName">相册名称</label>
|
|
<input id="albumName" name="albumName" type="text" placeholder="请输入相册名称" required />
|
|
</div>
|
|
<div class="editor-field">
|
|
<label for="albumDesc">相册描述</label>
|
|
<textarea id="albumDesc" name="albumDesc" placeholder="请输入相册描述"></textarea>
|
|
</div>
|
|
<div class="editor-two">
|
|
<div class="editor-field">
|
|
<label for="albumCoverFile">封面文件</label>
|
|
<input id="coverOssId" name="coverOssId" type="hidden" />
|
|
<label class="upload-control" for="albumCoverFile">选择封面图片</label>
|
|
<input id="albumCoverFile" class="upload-input" type="file" accept="image/*" data-upload-target="#coverOssId" data-upload-status="#albumCoverStatus" />
|
|
<p id="albumCoverStatus" class="upload-status">未选择文件</p>
|
|
</div>
|
|
<div class="editor-field">
|
|
<label for="albumStatus">状态</label>
|
|
<select id="albumStatus" name="status">
|
|
<option value="0">启用</option>
|
|
<option value="1">停用</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="bottom-actions">
|
|
<button class="btn primary" type="submit">保存相册</button>
|
|
<button class="btn ghost" type="reset">清空</button>
|
|
</div>
|
|
</form>
|
|
</section>
|
|
<section class="module-panel">
|
|
<h2>照片管理</h2>
|
|
<!-- 选择相册后由 /albums/{albumId}/photos 接口渲染 -->
|
|
<div class="module-list" data-album-photo-list>
|
|
<div class="api-empty">请选择相册查看照片</div>
|
|
</div>
|
|
<form class="editor-form album-photo-form" data-album-photo-form>
|
|
<div class="editor-two">
|
|
<div class="editor-field">
|
|
<label for="albumPhotoFile">照片文件</label>
|
|
<input id="photoOssId" name="ossId" type="hidden" required />
|
|
<label class="upload-control" for="albumPhotoFile">选择照片</label>
|
|
<input id="albumPhotoFile" class="upload-input" type="file" accept="image/*" data-upload-target="#photoOssId" data-upload-status="#albumPhotoStatus" />
|
|
<p id="albumPhotoStatus" class="upload-status">未选择文件</p>
|
|
</div>
|
|
<div class="editor-field">
|
|
<label for="photoTitle">照片标题</label>
|
|
<input id="photoTitle" name="photoTitle" type="text" placeholder="请输入照片标题" />
|
|
</div>
|
|
</div>
|
|
<div class="editor-field">
|
|
<label for="photoDesc">照片说明</label>
|
|
<textarea id="photoDesc" name="photoDesc" placeholder="请输入照片说明"></textarea>
|
|
</div>
|
|
<div class="bottom-actions">
|
|
<button class="btn primary" type="submit">添加照片</button>
|
|
</div>
|
|
</form>
|
|
</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"></script>
|
|
<script src="config.js"></script>
|
|
<script src="utils/StorageUtil.js"></script>
|
|
<script src="utils/FormUtil.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/pending-pages.js"></script>
|
|
<script src="public/js/page-effects.js"></script>
|
|
</body>
|
|
</html>
|