修改为一尘带4标十收购贴
This commit is contained in:
parent
7736164e5d
commit
607c5b440f
|
|
@ -112,8 +112,13 @@ export default function Home() {
|
|||
setDragonStats(data || {})
|
||||
}).catch(() => {})
|
||||
|
||||
fetch('/api/yichens/posts?limit=20&offset=0').then(res => res.json()).then(data => {
|
||||
setRecentPosts(data.posts || data || [])
|
||||
fetch('/api/yichens/posts?limit=50&offset=0&keyword=标十').then(res => res.json()).then(data => {
|
||||
// 过滤出带4/通货相关的分类
|
||||
const filtered = (data.posts || data || []).filter(item => {
|
||||
const cat = item.category || ''
|
||||
return cat.includes('带4') || cat.includes('通货')
|
||||
})
|
||||
setRecentPosts(filtered)
|
||||
}).catch(() => {})
|
||||
|
||||
// 获取寻配号统计数据
|
||||
|
|
@ -430,7 +435,7 @@ export default function Home() {
|
|||
{/* 最新一尘发帖 */}
|
||||
<div>
|
||||
<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>
|
||||
<div style={{
|
||||
|
|
|
|||
Loading…
Reference in New Issue