新版梦工厂手机端官网
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.5 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div class="detail_container">
  3. <SubNavigation title="国网照明巡检摄像头 - 详情页" />
  4. <Paragraph :text="getList()?.topText" />
  5. <div v-for="(item, index) in getList()?.card" :key="index">
  6. <CardTitle
  7. :title="item?.cardTitle"
  8. :blue_title="item?.cardBlueTitle"
  9. :en="item?.en"
  10. />
  11. <Img :double="item?.isDouble" :pic1="item?.pic1" :pic2="item?.pic2" />
  12. <Intro v-if="item?.cardIntro" :cardIntro="item?.cardIntro" />
  13. <Paragraph v-if="item?.cardText" :text="item?.cardText" />
  14. <video
  15. v-if="item?.video"
  16. controls
  17. style="width: 100%; height: auto; object-fit: fill"
  18. controlslist="nodownload"
  19. >
  20. <source :src="item?.video" />
  21. </video>
  22. </div>
  23. </div>
  24. </template>
  25. <script setup>
  26. import SubNavigation from 'cpns/SubNavigation'
  27. import Paragraph from 'cpns/detail/Paragraph'
  28. import CardTitle from 'cpns/detail/CardTitle'
  29. import Img from 'cpns/detail/Img'
  30. import Intro from 'cpns/detail/Intro'
  31. import { detailList } from '@/mock/case_detail'
  32. import { useRoute } from 'vue-router'
  33. import { ref, onMounted } from 'vue'
  34. const route = useRoute()
  35. const getList = () => {
  36. return detailList[classify.value][pId.value]
  37. }
  38. const classify = ref('1')
  39. const pId = ref('1')
  40. onMounted(() => {
  41. if (route.query.t && route.query.p) {
  42. classify.value = route.query.t || '1'
  43. pId.value = route.query.p || '1'
  44. }
  45. })
  46. </script>
  47. <style lang="scss" scoped>
  48. .detail_container {
  49. padding-top: $sub-header-height;
  50. }
  51. </style>