|
|
@ -16,13 +16,14 @@ const RightTop = (props) => { |
|
|
|
const style = { height: "31%", marginTop: "3%" } |
|
|
|
const textStyle = { fontSize: 14, color: '#E9F7FF' } |
|
|
|
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 { |
|
|
|
id:h.id, |
|
|
|
name:h.name, |
|
|
|
count:h.count, |
|
|
|
unit:unit[index], |
|
|
|
icon:iconSrc[index] |
|
|
|
id: h.id, |
|
|
|
name: h.name, |
|
|
|
count: h.count, |
|
|
|
unit: unit[index], |
|
|
|
icon: iconSrc[index] |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|