productMap.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. export const pTypes = [
  2. {
  3. key: 'all',
  4. icon: 'all',
  5. text: '所有产品'
  6. },
  7. {
  8. key: 'cam',
  9. icon: 'camera2',
  10. text: '多目协同摄像头',
  11. subText: '和方圆专业技术,多摄像头,画中画联合工作'
  12. },
  13. {
  14. key: 'aiCam',
  15. icon: 'camera',
  16. text: 'AI摄像头',
  17. subText: '前端识别,节省服务器带宽,深度学习,多种应用场景'
  18. },
  19. {
  20. key: 'low',
  21. icon: 'lowPower',
  22. text: '低功耗产品',
  23. subText: '超低功耗,超长工作时长,成套低功耗解决方案'
  24. },
  25. {
  26. key: 'm2m',
  27. icon: 'm2m',
  28. text: 'm2m产品',
  29. subText: '定制化模块,稳定,可靠,灵活'
  30. },
  31. {
  32. key: 'sm',
  33. icon: 'smartDev',
  34. text: '智能终端',
  35. subText: '面向专业领域定制化专业产品'
  36. },
  37. ]
  38. export const productMenus = [
  39. {
  40. text: "M2M产品",
  41. typeKey: "m2m",
  42. href: '/m2m'
  43. },
  44. {
  45. text: "AI摄像头",
  46. typeKey: "aiCam",
  47. href: '/aiCam'
  48. },
  49. {
  50. text: "智能终端",
  51. typeKey: "sm",
  52. href: '/sm'
  53. },
  54. {
  55. text: "4G低功耗摄像头",
  56. typeKey: "low",
  57. href: '/low'
  58. },
  59. {
  60. text: "自动变焦双目协同摄像头",
  61. typeKey: "cam",
  62. href: '/cam'
  63. }
  64. ];
  65. export function getTypeText (key){
  66. let item = pTypes.find(val=>val.key === key);
  67. if(item&&item.text){
  68. return item.text;
  69. }else{
  70. return "loading...";
  71. }
  72. }
  73. export function getTypeSubText (key){
  74. let item = pTypes.find(val=>val.key === key);
  75. if(item&&item.subText){
  76. return item.subText;
  77. }else{
  78. return "loading...";
  79. }
  80. }