diff --git a/VERSION b/VERSION index f36efd3..2d04904 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -VERSION=1.2.84 +1.2.90 diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 79e65c8..f22a1fc 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "jiachenlong-frontend", - "version": "1.2.81", + "version": "1.2.82", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "jiachenlong-frontend", - "version": "1.2.81", + "version": "1.2.82", "dependencies": { "axios": "^1.7.9", "react": "^18.3.1", diff --git a/frontend/src/pages/Add.jsx b/frontend/src/pages/Add.jsx index 47e1382..0c21dd0 100644 --- a/frontend/src/pages/Add.jsx +++ b/frontend/src/pages/Add.jsx @@ -66,7 +66,7 @@ const getDefaultForm = () => ({ name: '藏品', code: '', category: '自持', rarity: '通货', prefixSerial: '', version: '2024 龙', denomination: '', status: 'in_collection', packaging: '单张', material: '塑料钞', issueQuantity: '1 亿', purpose: '收藏', isGraded: false, - gradingCompany: '', gradingScore: '', threeStar: false, specialMark: '', + gradingCompany: '爱藏', gradingScore: '67+', threeStar: false, specialMark: '', serialFeature: '', numberCategory: '', issuer: '中国人民银行', issueYear: '2024', costPrice: '', targetPrice: '', goalPrice: '', repairFee: '', gradingFee: '', remark: '' }) @@ -78,17 +78,17 @@ export default function Add() { category: '', packaging: '标十', price: '', - platform: '淘宝', + platform: '抖音', seller: '', buyer: '', date: new Date().toISOString().split('T')[0], isGraded: false, - gradingCompany: '', - gradingScore: '' + gradingCompany: '爱藏', + gradingScore: '67+' }) const [batchDefaultPackaging, setBatchDefaultPackaging] = useState('') const [batchDefaultDate, setBatchDefaultDate] = useState('') - const [batchDefaultPlatform, setBatchDefaultPlatform] = useState('') + const [batchDefaultPlatform, setBatchDefaultPlatform] = useState('抖音') const [dealMode, setDealMode] = useState('single') // single-单条录入, batch-批量录入 const [batchText, setBatchText] = useState('') const [batchResult, setBatchResult] = useState([]) @@ -851,7 +851,7 @@ export default function Add() { }) if (response.ok) { alert('行情录入成功!') - setDealForm({ serial: '', category: '', packaging: '标十', price: '', platform: '淘宝', seller: '', buyer: '', date: new Date().toISOString().split('T')[0] }) + setDealForm({ serial: '', category: '', packaging: '标十', price: '', platform: '抖音', seller: '', buyer: '', date: new Date().toISOString().split('T')[0] }) } else { const data = await response.json() alert('录入失败: ' + (data.detail || '未知错误')) diff --git a/frontend/src/pages/List.jsx b/frontend/src/pages/List.jsx index 27b9a15..d8f0030 100644 --- a/frontend/src/pages/List.jsx +++ b/frontend/src/pages/List.jsx @@ -79,7 +79,7 @@ export default function List() { } try { const user = JSON.parse(userStr) - const res = await fetch(`${API_BASE}/api/information/list?info_type=deal&user_id=${user.f99_90_id}&page_size=500`, { + const res = await fetch(`${API_BASE}/api/information/list?info_type=deal&page_size=500`, { headers: { 'Authorization': 'Bearer ' + token } }) const data = await res.json() diff --git a/frontend/src/pages/News.jsx b/frontend/src/pages/News.jsx index 0c6d971..cf73ace 100644 --- a/frontend/src/pages/News.jsx +++ b/frontend/src/pages/News.jsx @@ -33,10 +33,7 @@ export default function News() { const [matchedStatus, setMatchedStatus] = useState({}) // 存储各寻号的匹配状态 const [showMatchList, setShowMatchList] = useState(false) const [dealVersion, setDealVersion] = useState('龙钞') - const [dealDate, setDealDate] = useState(() => { - const today = new Date() - return `${today.getFullYear()}-${String(today.getMonth() + 1).padStart(2, '0')}-${String(today.getDate()).padStart(2, '0')}` - }) + const [dealDate, setDealDate] = useState('') const [dealDetailItems, setDealDetailItems] = useState(null) // 弹窗显示的详情列表 const [matchCollections, setMatchCollections] = useState([]) const [networkMatchCollections, setNetworkMatchCollections] = useState([])