From 2306e35dec042fb679538224735292f083ddb6f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B2=E8=BE=B0=E7=94=9F=E4=BA=A7?= Date: Mon, 13 Apr 2026 09:08:19 +0800 Subject: [PATCH] =?UTF-8?q?v1.2.90=20-=20=E4=BF=AE=E5=A4=8D=E8=A1=8C?= =?UTF-8?q?=E6=83=85=E7=BC=96=E8=BE=91=E4=BF=9D=E5=AD=98=E3=80=81=E7=BC=96?= =?UTF-8?q?=E5=8F=B7=E6=A0=BC=E5=BC=8F=E3=80=81=E9=BB=98=E8=AE=A4=E5=80=BC?= =?UTF-8?q?=E7=AD=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VERSION | 2 +- frontend/package-lock.json | 4 ++-- frontend/src/pages/Add.jsx | 12 ++++++------ frontend/src/pages/List.jsx | 2 +- frontend/src/pages/News.jsx | 5 +---- 5 files changed, 11 insertions(+), 14 deletions(-) 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([])