-
-
- {['龙钞','马钞','蛇钞'].map(item => {
- const isSelected = seekForm.edition ? seekForm.edition.split(',').includes(item) : false
- return (
-
- )
- })}
-
-
-
-
- {['标百','标十','单张'].map(e => (
-
- ))}
-
-
-
-
- {['求购','出售','寻号'].map(e => (
-
- ))}
-
-
-
- setSeekForm({...seekForm, price: e.target.value})} placeholder="请输入价格"
- style={{ width: '100%', padding: '8px', marginTop: '6px', background: '#0f172a', border: '1px solid #334155', borderRadius: '6px', color: '#fff', fontSize: '13px', boxSizing: 'border-box' }} />
-
-
-
- {['精准','模糊'].map(e => (
-
- ))}
-
-
-
-
- {[0,1,2,3,4,5,6,7,8,9].map(i => {
- const isFixed = i < 2
- const char = i === 0 ? 'J' : (i === 1 ? '0' : (seekForm.features[i - 2] || ''))
- const isDigit = /[0-9]/.test(char)
- const letterColor = isFixed ? '#10b981' : (isDigit ? '#fff' : ({ X: '#94a3b8', A: '#f472b6', B: '#60a5fa', C: '#34d399', D: '#fbbf24', E: '#a78bfa', F: '#fb923c', G: '#22d3ee' }[char] || '#fff'))
- return { if (el) el.dataset.index = i }} type="text" maxLength={1}
- value={char}
- readOnly={isFixed}
- onChange={(e) => {
- if (i < 2) return
- const val = e.target.value.toUpperCase().replace(/[^0-9XABCFG]/g, '')
- const newFeatures = (seekForm.features || '').split('')
- while (newFeatures.length < 8) newFeatures.push('')
- newFeatures[i - 2] = val
- setSeekForm({...seekForm, features: newFeatures.join('')})
- // 自动跳转下一个
- if (val && i < 9) {
- setTimeout(() => {
- const nextInput = document.querySelector(`input[data-index="${i+1}"]`)
- if (nextInput) nextInput.focus()
- }, 50)
- }
- }}
- onKeyDown={(e) => {
- // 按Delete或Backspace且当前为空时,跳回前一个
- if ((e.key === 'Backspace' || e.key === 'Delete') && !char && i > 2) {
- setTimeout(() => {
- const prevInput = document.querySelector(`input[data-index="${i-1}"]`)
- if (prevInput) prevInput.focus()
- }, 50)
- }
- }}
- style={{ width: '32px', height: '36px', textAlign: 'center', padding: '6px', background: '#0f172a', border: '1px solid #334155', borderRadius: '4px', color: letterColor, fontSize: '14px', boxSizing: 'border-box' }} />
- })}
-
-
- 备注说明:X=任意数字 A=非4 B=非47 C=非347 D=非247 E=非2347 F=非23457 G=非123457
-
-
-
-
-
- setSeekForm({...seekForm, contact: e.target.value})} placeholder="请输入手机号或微信"
- style={{ width: '100%', padding: '8px', marginTop: '6px', background: '#0f172a', border: '1px solid #334155', borderRadius: '6px', color: '#fff', fontSize: '13px', boxSizing: 'border-box' }} />
-
-
- setSeekForm({...seekForm, title: e.target.value})} />
-
-
-
-
-
-
加载中...