You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

vehiclePlateColor.js 563B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. export const vehiclePlateColor = [{
  2. id: 0,
  3. color: '蓝色'
  4. },
  5. {
  6. id: 1,
  7. color: '黄色'
  8. },
  9. {
  10. id: 2,
  11. color: '黑色'
  12. },
  13. {
  14. id: 3,
  15. color: '白色'
  16. },
  17. {
  18. id: 4,
  19. color: '渐变绿色'
  20. },
  21. {
  22. id: 5,
  23. color: '黄绿双拼色'
  24. },
  25. {
  26. id: 6,
  27. color: '蓝白渐变色'
  28. },
  29. {
  30. id: 9,
  31. color: '未确定'
  32. },
  33. {
  34. id: 11,
  35. color: '绿色'
  36. },
  37. {
  38. id: 12,
  39. color: '红色'
  40. }
  41. ]
  42. //获取车牌颜色
  43. export const getVehiclePlateColor = (id=0) => {
  44. let colors = vehiclePlateColor.filter(item => item.id == id);
  45. return colors[0].color
  46. }