v1.2.31: 修复管理页面用户藏品数显示问题,修复资讯页面is_matched字段NULL问题
This commit is contained in:
parent
72d8d3ef14
commit
0e489fccfe
|
|
@ -58,7 +58,7 @@ class InformationResponse(BaseModel):
|
||||||
deal_price: Optional[float]
|
deal_price: Optional[float]
|
||||||
deal_date: Optional[date]
|
deal_date: Optional[date]
|
||||||
status: str
|
status: str
|
||||||
is_matched: str = "pending"
|
is_matched: Optional[str] = "pending"
|
||||||
matched_user_id: Optional[str] = None
|
matched_user_id: Optional[str] = None
|
||||||
matched_contact: Optional[str] = None
|
matched_contact: Optional[str] = None
|
||||||
view_count: int
|
view_count: int
|
||||||
|
|
|
||||||
|
|
@ -205,7 +205,7 @@ export default function Admin() {
|
||||||
</div>
|
</div>
|
||||||
<div style={{ textAlign: 'right' }}>
|
<div style={{ textAlign: 'right' }}>
|
||||||
<div style={{ color: '#94a3b8', fontSize: '12px' }}>藏品数</div>
|
<div style={{ color: '#94a3b8', fontSize: '12px' }}>藏品数</div>
|
||||||
<div style={{ color: '#60a5fa', fontSize: '20px', fontWeight: 'bold', cursor: 'pointer' }} onClick={() => window.location.hash = '#/list?userId=' + user.id} title='点击查看'>{user.collection_count || 0}</div>
|
<div style={{ color: '#60a5fa', fontSize: '20px', fontWeight: 'bold', cursor: 'pointer' }} onClick={() => window.location.hash = '#/list?userId=' + user.id} title='点击查看'>{user.collectionCount || 0}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginTop: '12px', paddingTop: '12px', borderTop: '1px solid rgba(255,255,255,0.1)' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginTop: '12px', paddingTop: '12px', borderTop: '1px solid rgba(255,255,255,0.1)' }}>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue