v0.0.3 - 快捷操作黑色背景,所有页面添加文件版本号显示

This commit is contained in:
甲辰生产 2026-04-20 10:04:22 +08:00
parent 5959d4c41a
commit 65d5603f9a
13 changed files with 65 additions and 26 deletions

View File

@ -1,5 +1,5 @@
{
"version": "0.0.1",
"version": "v0.0.3",
"updated": "2026-04-19",
"modules": {
"frontend": {

View File

@ -1,6 +1,6 @@
/**
* Add - 添加藏品页面
* Version: 0.0.1x
* Version: 0.0.1
* 更新
*/

View File

@ -1,6 +1,6 @@
/**
* Admin - 管理员用户管理页面
* Version: 0.0.1 (2026-04-19)
* Version: 0.0.2 (2026-04-19)
* 更新新增 dealCount 字段显示用户发布的行情数量
*/
@ -589,7 +589,7 @@ export default function Admin() {
{/* 版本号 - 移到表格下方,避免被底部导航遮挡 */}
<div style={{ textAlign: 'center', padding: '20px', color: 'rgba(255,255,255,0.3)', fontSize: '12px' }}>
v{APP_VERSION}
文件版本 v0.0.2 | 主版本 v{APP_VERSION}
</div>
</div>
)

View File

@ -1,6 +1,6 @@
/**
* Detail - 藏品详情页面
* Version: 0.0.1x
* Version: 0.0.1
* 更新
*/
@ -388,6 +388,9 @@ export default function Detail() {
</div>
</div>
)}
{/* 版本号显示 */}
<div style={{ position: 'fixed', bottom: '70px', right: '12px', color: 'rgba(255,255,255,0.2)', fontSize: '10px' }}>v0.0.1</div>
</div>
)
}

View File

@ -1,6 +1,6 @@
/**
* Edit - 编辑藏品页面
* Version: 0.0.1x
* Version: 0.0.1
* 更新
*/
@ -492,6 +492,9 @@ export default function Edit() {
🔄 返回列表
</button>
</div>
{/* 版本号显示 */}
<div style={{ position: 'fixed', bottom: '70px', right: '12px', color: 'rgba(255,255,255,0.2)', fontSize: '10px' }}>v0.0.1</div>
</div>
)
}

View File

@ -1,7 +1,7 @@
/**
* Home - 首页
* Version: 0.0.1x
* 更新
* Version: 0.0.2
* 更新快捷操作改为黑色背景2026-04-20
*/
import React, { useState, useEffect } from 'react'
@ -178,9 +178,10 @@ export default function Home() {
<div style={{ color: 'rgba(255,255,255,0.7)', fontSize: '14px', marginBottom: '12px', paddingLeft: '4px' }}>快捷操作</div>
<div style={{ display: 'grid', gridTemplateColumns: 'repeat(2, 1fr)', gap: '12px' }}>
<div onClick={() => window.location.hash = '#/add?mode=ocr'} style={{
background: 'linear-gradient(135deg, #22c55e 0%, #16a34a 100%)',
background: 'linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%)',
borderRadius: '12px',
padding: '12px 16px',
border: '1px solid rgba(255,255,255,0.08)',
cursor: 'pointer',
display: 'flex',
flexDirection: 'column',
@ -188,13 +189,14 @@ export default function Home() {
justifyContent: 'center',
textAlign: 'center'
}}>
<div style={{ color: '#fff', fontSize: '14px', fontWeight: '600', whiteSpace: 'nowrap' }}>藏品录入</div>
<div style={{ color: 'rgba(255,255,255,0.7)', fontSize: '10px', marginTop: '2px' }}>AI识别添加</div>
<div style={{ color: '#22c55e', fontSize: '18px', fontWeight: '600', whiteSpace: 'nowrap' }}>藏品录入</div>
<div style={{ color: 'rgba(255,255,255,0.5)', fontSize: '10px', marginTop: '2px' }}>AI识别添加</div>
</div>
<div onClick={() => window.location.hash = '#/add?mode=deal'} style={{
background: 'linear-gradient(135deg, #ec4899 0%, #db2777 100%)',
background: 'linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%)',
borderRadius: '12px',
padding: '12px 16px',
border: '1px solid rgba(255,255,255,0.08)',
cursor: 'pointer',
display: 'flex',
flexDirection: 'column',
@ -202,13 +204,14 @@ export default function Home() {
justifyContent: 'center',
textAlign: 'center'
}}>
<div style={{ color: '#fff', fontSize: '14px', fontWeight: '600', whiteSpace: 'nowrap' }}>行情录入</div>
<div style={{ color: 'rgba(255,255,255,0.7)', fontSize: '10px', marginTop: '2px' }}>录入成交行情</div>
<div style={{ color: '#ec4899', fontSize: '18px', fontWeight: '600', whiteSpace: 'nowrap' }}>行情录入</div>
<div style={{ color: 'rgba(255,255,255,0.5)', fontSize: '10px', marginTop: '2px' }}>录入成交行情</div>
</div>
<div onClick={() => window.location.hash = '#/news?type=seek'} style={{
background: 'linear-gradient(135deg, #f59e0b 0%, #d97706 100%)',
background: 'linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%)',
borderRadius: '12px',
padding: '12px 16px',
border: '1px solid rgba(255,255,255,0.08)',
cursor: 'pointer',
display: 'flex',
flexDirection: 'column',
@ -216,13 +219,14 @@ export default function Home() {
justifyContent: 'center',
textAlign: 'center'
}}>
<div style={{ color: '#fff', fontSize: '14px', fontWeight: '600', whiteSpace: 'nowrap' }}>发布寻号</div>
<div style={{ color: 'rgba(255,255,255,0.7)', fontSize: '10px', marginTop: '2px' }}>发布寻配需求</div>
<div style={{ color: '#f59e0b', fontSize: '18px', fontWeight: '600', whiteSpace: 'nowrap' }}>发布寻号</div>
<div style={{ color: 'rgba(255,255,255,0.5)', fontSize: '10px', marginTop: '2px' }}>发布寻配需求</div>
</div>
<div onClick={() => window.location.hash = '#/add?mode=manual'} style={{
background: 'linear-gradient(135deg, #3b82f6 0%, #2563eb 100%)',
background: 'linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%)',
borderRadius: '12px',
padding: '12px 16px',
border: '1px solid rgba(255,255,255,0.08)',
cursor: 'pointer',
display: 'flex',
flexDirection: 'column',
@ -230,8 +234,8 @@ export default function Home() {
justifyContent: 'center',
textAlign: 'center'
}}>
<div style={{ color: '#fff', fontSize: '14px', fontWeight: '600', whiteSpace: 'nowrap' }}>发布藏品</div>
<div style={{ color: 'rgba(255,255,255,0.7)', fontSize: '10px', marginTop: '2px' }}>手动发布</div>
<div style={{ color: '#3b82f6', fontSize: '18px', fontWeight: '600', whiteSpace: 'nowrap' }}>发布藏品</div>
<div style={{ color: 'rgba(255,255,255,0.5)', fontSize: '10px', marginTop: '2px' }}>手动发布</div>
</div>
</div>
</div>
@ -421,6 +425,17 @@ export default function Home() {
))}
</div>
<div style={{ height: '70px' }}></div>
{/* 版本号显示 */}
<div style={{
position: 'fixed',
bottom: '70px',
right: '12px',
color: 'rgba(255,255,255,0.2)',
fontSize: '10px'
}}>
v0.0.2
</div>
</div>
)
}

View File

@ -1,6 +1,6 @@
/**
* List - 藏品列表页面
* Version: 0.0.1x
* Version: 0.0.1
* 更新
*/
@ -949,6 +949,9 @@ function DealListItem({ deal, onRefresh }) {
)}
</div>
)}
{/* 版本号显示 */}
<div style={{ position: 'fixed', bottom: '70px', right: '12px', color: 'rgba(255,255,255,0.2)', fontSize: '10px' }}>v0.0.1</div>
</div>
)
}

View File

@ -1,6 +1,6 @@
/**
* Login - 登录页面
* Version: 0.0.1x
* Version: 0.0.1
* 更新
*/
@ -696,6 +696,9 @@ export default function Login() {
</div>
</div>
)}
{/* 版本号显示 */}
<div style={{ position: 'fixed', bottom: '70px', right: '12px', color: 'rgba(255,255,255,0.2)', fontSize: '10px' }}>v0.0.1</div>
</div>
)
}

View File

@ -1,6 +1,6 @@
/**
* News - 资讯列表页面
* Version: 0.0.1x
* Version: 0.0.1
* 更新
*/
@ -1245,6 +1245,9 @@ export default function News() {
</div>
</div>
)}
{/* 版本号显示 */}
<div style={{ position: 'fixed', bottom: '70px', right: '12px', color: 'rgba(255,255,255,0.2)', fontSize: '10px' }}>v0.0.1</div>
</div>
)
}

View File

@ -1,6 +1,6 @@
/**
* News_YichensBoard - 一尘帖子页面
* Version: 0.0.1x
* Version: 0.0.1
* 更新
*/
@ -219,6 +219,9 @@ export default function YichensBoard() {
</div>
</div>
)}
{/* 版本号显示 */}
<div style={{ position: 'fixed', bottom: '70px', right: '12px', color: 'rgba(255,255,255,0.2)', fontSize: '10px' }}>v0.0.1</div>
</div>
)
}

View File

@ -1,6 +1,6 @@
/**
* Settings - 设置页面
* Version: 0.0.1x
* Version: 0.0.1
* 更新
*/
@ -435,6 +435,9 @@ export default function Settings() {
退出登录
</button>
</div>
{/* 版本号显示 */}
<div style={{ position: 'fixed', bottom: '70px', right: '12px', color: 'rgba(255,255,255,0.2)', fontSize: '10px' }}>v0.0.1</div>
</div>
)
}

View File

@ -1,6 +1,6 @@
/**
* Stats - 统计页面
* Version: 0.0.1x
* Version: 0.0.1
* 更新
*/

View File

@ -292,6 +292,9 @@ export default function YichensBoard() {
</div>
</div>
)}
{/* 版本号显示 */}
<div style={{ position: 'fixed', bottom: '70px', right: '12px', color: 'rgba(255,255,255,0.2)', fontSize: '10px' }}>v0.0.3</div>
</div>
)
}