|
@ -16,13 +16,14 @@ const RightTop = (props) => { |
|
|
const style = { height: "31%", marginTop: "3%" } |
|
|
const style = { height: "31%", marginTop: "3%" } |
|
|
const textStyle = { fontSize: 14, color: '#E9F7FF' } |
|
|
const textStyle = { fontSize: 14, color: '#E9F7FF' } |
|
|
const numStyle = { color: '#fff', fontSize: 21, fontFamily: 'YouSheBiaoTiHei', textShadow: '0px 0px 8px #1C60FE', marginTop: 8 } |
|
|
const numStyle = { color: '#fff', fontSize: 21, fontFamily: 'YouSheBiaoTiHei', textShadow: '0px 0px 8px #1C60FE', marginTop: 8 } |
|
|
const list = highwaysData?.slice(0, 4).map((h,index)=>{ |
|
|
let list = highwaysData?.sort((a, b) => a.id - b.id) |
|
|
|
|
|
list = highwaysData?.slice(0, 4).map((h, index) => { |
|
|
return { |
|
|
return { |
|
|
id:h.id, |
|
|
id: h.id, |
|
|
name:h.name, |
|
|
name: h.name, |
|
|
count:h.count, |
|
|
count: h.count, |
|
|
unit:unit[index], |
|
|
unit: unit[index], |
|
|
icon:iconSrc[index] |
|
|
icon: iconSrc[index] |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|