修改为一尘带4标十收购贴

This commit is contained in:
甲辰生产 2026-04-12 00:05:01 +08:00
parent 7736164e5d
commit 607c5b440f
1 changed files with 8 additions and 3 deletions

View File

@ -112,8 +112,13 @@ export default function Home() {
setDragonStats(data || {}) setDragonStats(data || {})
}).catch(() => {}) }).catch(() => {})
fetch('/api/yichens/posts?limit=20&offset=0').then(res => res.json()).then(data => { fetch('/api/yichens/posts?limit=50&offset=0&keyword=标十').then(res => res.json()).then(data => {
setRecentPosts(data.posts || data || []) // 4/
const filtered = (data.posts || data || []).filter(item => {
const cat = item.category || ''
return cat.includes('带4') || cat.includes('通货')
})
setRecentPosts(filtered)
}).catch(() => {}) }).catch(() => {})
// //
@ -430,7 +435,7 @@ export default function Home() {
{/* 最新一尘发帖 */} {/* 最新一尘发帖 */}
<div> <div>
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: '12px', paddingLeft: '4px' }}> <div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: '12px', paddingLeft: '4px' }}>
<div style={{ color: 'rgba(255,255,255,0.7)', fontSize: '14px' }}>📝 最新一尘发帖</div> <div style={{ color: 'rgba(255,255,255,0.7)', fontSize: '14px' }}>📝 一尘带4标十收购贴</div>
<div onClick={() => window.location.hash = '#/news'} style={{ color: '#3b82f6', fontSize: '12px', cursor: 'pointer' }}>查看全部 </div> <div onClick={() => window.location.hash = '#/news'} style={{ color: '#3b82f6', fontSize: '12px', cursor: 'pointer' }}>查看全部 </div>
</div> </div>
<div style={{ <div style={{