Files
appDistribute/index.html
sakurai d2c42ba4c2 feat: 添加文档管理功能并优化样式
添加文档管理功能,包括文档展示区域和API接口
新增文档相关CSS样式,优化移动端显示
更新Go模块依赖版本
2025-12-25 00:48:13 +08:00

57 lines
2.1 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>App分发系统</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<header>
<h1>App分发系统By拉面王</h1>
<h6>项目经理:Qwen3max,测试经理:Doubao-seed-1.8,开发经理:Doubao-seed-1.8,bug修复和模块整合:拉面王</h6>
</header>
<!-- 文档区域 -->
<div id="docSection" class="section">
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px;">
<h2>文档</h2>
<button onclick="getDoc()">刷新</button>
</div>
<div id="docContent"></div>
</div>
<!-- 登录区域 -->
<div id="loginSection" class="section">
<h2>管理员登录</h2>
<input type="password" id="password" placeholder="请输入密码" maxlength="20">
<button onclick="login()">登录</button>
<p id="loginMessage"></p>
</div>
<!-- 上传区域 -->
<div id="uploadSection" class="section" style="display: none;">
<h2>上传App</h2>
<input type="text" id="appName" placeholder="App名称" maxlength="50">
<input type="file" id="appFile" accept=".apk,.ipa,.zip">
<button onclick="uploadApp()">上传</button>
<p id="uploadMessage"></p>
</div>
<!-- 下载区域 -->
<div id="downloadSection" class="section">
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px;">
<h2>可用App</h2>
<div>
<button id="refreshBtn" onclick="refreshAppList()">刷新</button>
<span id="loadingIndicator" style="display: none; margin-left: 10px; font-size: 12px;">加载中...</span>
</div>
</div>
<div id="appList"></div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>