productCenter.vue 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <template>
  2. <div class="content">
  3. <div class="conBox big-title">
  4. <span>
  5. {{lang===langType.cn?"产品中心":getAbbrText("产品中心")}}
  6. </span>
  7. <div class="hr"></div>
  8. </div>
  9. <div class="conBox productCenter">
  10. <a class="product"
  11. v-for="(product,i) in products"
  12. :key="'pro-'+product.key"
  13. >
  14. <span class="imgBox">
  15. <img :src="product.img" :alt="product.title" class="img">
  16. </span>
  17. <span class="more">
  18. {{lang===langType.cn?"了解更多":getAbbrText("了解更多")}}
  19. </span>
  20. <p class="product-info">
  21. <span class="title">
  22. {{lang===langType.cn?product.title:getAbbrText(product.title)}}
  23. </span>
  24. <span class="description" v-if="product.sellPointer">
  25. <span v-for="sell in product.sellPointer">
  26. {{sell}}
  27. </span>
  28. </span>
  29. </p>
  30. </a>
  31. </div>
  32. </div>
  33. </template>
  34. <script>
  35. import langMap from "~/map/langMap";
  36. export default {
  37. name: "productCenter",
  38. props: {
  39. lang:{
  40. default: langMap.lang.cn
  41. },
  42. },
  43. data(){
  44. return {
  45. langType: langMap.lang,
  46. products:[
  47. {
  48. title: '20倍自动变焦摄像头',
  49. img: 'image/product/20Cam.png',
  50. key: 'p1',
  51. sellPointer: [
  52. '20倍超级变焦',
  53. '高清影像',
  54. '多种可选倍率'
  55. ]
  56. },
  57. {
  58. title: '车牌识别摄像头',
  59. key: 'p2',
  60. img: 'image/product/car.jpg',
  61. sellPointer: [
  62. 'ai识别',
  63. '智能联动',
  64. ]
  65. },
  66. {
  67. title: '火情识别摄像头',
  68. key: 'p3',
  69. img: 'image/product/fire.png',
  70. sellPointer: [
  71. '烟火识别',
  72. '自动巡检',
  73. ]
  74. },
  75. {
  76. title: '4G低功耗智能摄像头',
  77. key: 'p4',
  78. img: 'image/showing/lowCam.jpg'
  79. },
  80. ]
  81. }
  82. },
  83. methods:{
  84. getLangText(str) {
  85. return langMap.getText(this.lang, str);
  86. },
  87. getAbbrText(str) {
  88. return langMap.getAbbrText(this.lang, str);
  89. },
  90. }
  91. }
  92. </script>
  93. <style scoped>
  94. @import "~/assets/productList.css";
  95. </style>