Software.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <template>
  2. <div id="Software">
  3. <div class="container text-center">
  4. <h3>无人机软件与服务</h3>
  5. <p style="color:#b2b2b2">深度洞察,更快捷的实现企业数字化转型</p>
  6. </div>
  7. <div class="container">
  8. <ul class="accordion-container col-md-12 hidden-xs hidden-sm">
  9. <li class="accordion-item" v-for="(item, index) in largeList" :key="index"
  10. :style="{backgroundImage: 'url(' + item.backgroundImage + ')'}" @click="AccordingClick(item.id)">
  11. <p class="accordion-title" v-for="(title, titleIndex) in item.titles" :key="titleIndex">{{ title }}</p>
  12. </li>
  13. </ul>
  14. <!--移动端-->
  15. <VerticalList :items="smallList" @item-click="AccordingClick"/>
  16. </div>
  17. </div>
  18. </template>
  19. <script>
  20. import {WOW} from 'wowjs'
  21. import VerticalList from '../../components/VerticalList.vue'
  22. export default {
  23. name: 'Software',
  24. components: {VerticalList},
  25. data() {
  26. return { // 移动端显示
  27. smallList: [
  28. {
  29. id: 'section-1',
  30. title: '大疆司空2',
  31. sm_title: '全面掌握现场动态,打破信息壁垒,团队高效协作',
  32. img: require('@/assets/img/software_icon1.png')
  33. }, {
  34. id: 'section-2',
  35. title: '大疆智图',
  36. // sm_title: '一款以摄影测量技术为核心的的三维重建软件,可支持各类可见光精准高效二三维重建、大疆激光雷达的数据处理。',
  37. img: require('@/assets/img/software_icon2.png')
  38. }, {
  39. id: 'section-3',
  40. title: '飞行咨询服务',
  41. img: require('@/assets/img/software3.png')
  42. }
  43. ],
  44. // web显示
  45. largeList: [
  46. {
  47. id: '大疆司空2',
  48. backgroundImage: require('@/assets/img/software1.png'),
  49. titles: "大疆司空2",
  50. sm_title: '一站式无人机任务管理云平台,带来全面、实时的态势感知,实现团队信息高效聚合、处理与同步。'
  51. }, {
  52. id: '大疆智图',
  53. backgroundImage: require('@/assets/img/software2.png'),
  54. titles: "大疆智图",
  55. // sm_title: '一款以摄影测量技术为核心的的三维重建软件,可支持各类可见光精准高效二三维重建、大疆激光雷达的数据处理。 大疆智图与大疆行业无人机和负载可形成完美搭配,形成面向测绘、电力、应急、建筑、交通、农业等垂直领域完整的应用解决方案。'
  56. }, {
  57. id: '飞行咨询服务',
  58. backgroundImage: require('@/assets/img/software3.png'),
  59. titles: "飞行咨询服务",
  60. }
  61. ]
  62. }
  63. },
  64. mounted() {
  65. var wow = new WOW();
  66. wow.init();
  67. },
  68. methods: {
  69. AccordingClick(id) {
  70. this.$router.push({
  71. name: 'servicedetail', //todo
  72. params: {
  73. id: id
  74. }
  75. })
  76. }
  77. }
  78. }
  79. </script>
  80. <style scoped>
  81. .accordion-container {
  82. overflow: hidden;
  83. display: flex;
  84. justify-content: flex-start;
  85. align-items: flex-start;
  86. background: black;
  87. .accordion-item {
  88. list-style: none;
  89. height: 500px;
  90. transition: width 0.5s;
  91. background-repeat: no-repeat;
  92. background-size: 100%;
  93. background-position: center center;
  94. position: relative;
  95. display: flex;
  96. justify-content: center;
  97. align-items: center;
  98. &:not(:hover) {
  99. width: 33%;
  100. }
  101. &:hover {
  102. width: 800px;
  103. &::after {
  104. opacity: 1;
  105. }
  106. }
  107. &::after {
  108. content: '';
  109. width: 100%;
  110. height: 100%;
  111. position: absolute;
  112. left: 0;
  113. top: 0;
  114. background-color: rgba(0, 0, 0, 0.1);
  115. z-index: 1;
  116. opacity: 0;
  117. transition: opacity 0.5s;
  118. }
  119. .accordion-title {
  120. font-family: var(--font-family-base);
  121. font-weight: var(--font-weight-light);
  122. color: #fff;
  123. font-size: 20px;
  124. margin-bottom: 220px;
  125. z-index: 2;
  126. }
  127. }
  128. }
  129. </style>