feat: 添加页脚和AppID显示
在页面底部添加包含版本信息的页脚,并在应用列表中显示AppID
This commit is contained in:
@@ -54,6 +54,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="appList"></div>
|
<div id="appList"></div>
|
||||||
</div>
|
</div>
|
||||||
|
<footer>
|
||||||
|
<p>App分发系统By拉面王</p>
|
||||||
|
<p>当前发布版本:V0.0.3|||仅供内部使用,严禁分发</p>
|
||||||
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 引入外部JavaScript文件,实现交互功能 -->
|
<!-- 引入外部JavaScript文件,实现交互功能 -->
|
||||||
|
|||||||
@@ -130,6 +130,9 @@ async function loadAppList() {
|
|||||||
const appDate = document.createElement('p'); // 创建App日期元素
|
const appDate = document.createElement('p'); // 创建App日期元素
|
||||||
appDate.textContent = `上传时间:${app.date}`;
|
appDate.textContent = `上传时间:${app.date}`;
|
||||||
|
|
||||||
|
const appId = document.createElement('p'); // 创建App ID元素
|
||||||
|
appId.textContent = `AppID:${app.id}`;
|
||||||
|
|
||||||
const downloadBtn = document.createElement('button'); // 创建下载按钮
|
const downloadBtn = document.createElement('button'); // 创建下载按钮
|
||||||
downloadBtn.className = 'download-btn';
|
downloadBtn.className = 'download-btn';
|
||||||
downloadBtn.textContent = '下载';
|
downloadBtn.textContent = '下载';
|
||||||
@@ -148,6 +151,7 @@ async function loadAppList() {
|
|||||||
// 组装App项
|
// 组装App项
|
||||||
appInfo.appendChild(appName);
|
appInfo.appendChild(appName);
|
||||||
appInfo.appendChild(appDate);
|
appInfo.appendChild(appDate);
|
||||||
|
appInfo.appendChild(appId);
|
||||||
appItem.appendChild(appInfo);
|
appItem.appendChild(appInfo);
|
||||||
|
|
||||||
// 创建按钮容器并添加按钮
|
// 创建按钮容器并添加按钮
|
||||||
|
|||||||
@@ -24,6 +24,15 @@ header {
|
|||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
border-bottom: 1px solid #000;
|
border-bottom: 1px solid #000;
|
||||||
}
|
}
|
||||||
|
/* 页面尾部样式 */
|
||||||
|
footer {
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 30px;
|
||||||
|
padding-top: 20px;
|
||||||
|
margin-bottom: 30px;
|
||||||
|
/* padding-bottom: 20px; */
|
||||||
|
border-top: 1px solid #000;
|
||||||
|
}
|
||||||
|
|
||||||
/* 页面标题样式 */
|
/* 页面标题样式 */
|
||||||
header h1 {
|
header h1 {
|
||||||
|
|||||||
Reference in New Issue
Block a user