productMap.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 function getTypeText (key){
  39. let item = pTypes.find(val=>val.key === key);
  40. if(item&&item.text){
  41. return item.text;
  42. }else{
  43. return "loading...";
  44. }
  45. }
  46. export function getTypeSubText (key){
  47. let item = pTypes.find(val=>val.key === key);
  48. if(item&&item.subText){
  49. return item.subText;
  50. }else{
  51. return "loading...";
  52. }
  53. }