productCenter.vue 2.3 KB

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