productCenter.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. export default {
  32. name: "productCenter",
  33. props: {
  34. lang:{
  35. default: langMap.lang.cn
  36. },
  37. },
  38. data(){
  39. return {
  40. langType: langMap.lang,
  41. products:[
  42. {
  43. title: '20倍自动变焦摄像头',
  44. img: 'image/product/20Cam.png',
  45. key: 'p1',
  46. sellPointer: [
  47. '20倍超级变焦',
  48. '高清影像',
  49. '多种可选倍率'
  50. ]
  51. },
  52. {
  53. title: '车牌识别摄像头',
  54. key: 'p2',
  55. img: 'image/product/car.jpg',
  56. sellPointer: [
  57. 'ai识别',
  58. '智能联动',
  59. ]
  60. },
  61. {
  62. title: '火情识别摄像头',
  63. key: 'p3',
  64. img: 'image/product/fire.png',
  65. sellPointer: [
  66. '烟火识别',
  67. '自动巡检',
  68. ]
  69. },
  70. {
  71. title: '4G低功耗智能摄像头',
  72. key: 'p4',
  73. img: 'image/showing/lowCam.jpg'
  74. },
  75. ]
  76. }
  77. },
  78. methods:{
  79. getLangText(str) {
  80. return langMap.getText(this.lang, str);
  81. },
  82. getAbbrText(str) {
  83. return langMap.getAbbrText(this.lang, str);
  84. },
  85. }
  86. }
  87. </script>
  88. <style scoped>
  89. @import "~/assets/productList.css";
  90. </style>