成交详情列表按价格排序

This commit is contained in:
甲辰生产 2026-04-11 22:32:38 +08:00
parent 161ff51b72
commit 6d7ba6e097
1 changed files with 1 additions and 1 deletions

View File

@ -648,7 +648,7 @@ export default function News() {
style={{ background: 'none', border: 'none', color: '#94a3b8', fontSize: '20px', cursor: 'pointer' }}></button> style={{ background: 'none', border: 'none', color: '#94a3b8', fontSize: '20px', cursor: 'pointer' }}></button>
</div> </div>
<div style={{ display: 'flex', flexDirection: 'column', gap: '8px' }}> <div style={{ display: 'flex', flexDirection: 'column', gap: '8px' }}>
{dealDetailItems.map((item, idx) => { {([...dealDetailItems].sort((a, b) => (a.deal_price || 0) - (b.deal_price || 0))).map((item, idx) => {
const content = item.content || '' const content = item.content || ''
const grade = content.includes('评级:') ? content.split('评级:')[1].split('\n')[0].trim() : (item.grading_score || '') const grade = content.includes('评级:') ? content.split('评级:')[1].split('\n')[0].trim() : (item.grading_score || '')
const sizeMatch = content.match(/大小号:\s*(.+?)(?:\n|$)/) const sizeMatch = content.match(/大小号:\s*(.+?)(?:\n|$)/)