index.vue 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <script setup lang="ts">
  2. import { ref } from 'vue'
  3. import Section from '@/components/Section/index.vue'
  4. import ProductCard from '@/components/ProductCard/index.vue'
  5. const supportedProducts = ref([
  6. { name: 'DJI Dock 3', image: '//devcn.djicdn.com/img/74c76dc.png' },
  7. { name: 'Matrice 4D/4TD', image: '//devcn.djicdn.com/img/df96c61.png' },
  8. { name: 'DJI Dock 2', image: '//devcn.djicdn.com/img/85b4ea2.png' },
  9. { name: 'Matrice 3D/3TD', image: '//devcn.djicdn.com/img/e5bc389.png' },
  10. { name: 'DJI Dock', image: '//devcn.djicdn.com/img/ae989b7.png' },
  11. { name: 'Matrice 4E/4T', image: '//devcn.djicdn.com/img/6d906ff.png' },
  12. { name: 'Matrice 300 RTK', image: '//devcn.djicdn.com/img/fb310a2.png' },
  13. { name: 'Matrice 30 Series', image: '//devcn.djicdn.com/img/d1a58e8.png' },
  14. { name: 'DJI Mavic 3 Enterprise Series', image: '//devcn.djicdn.com/img/0d698cc.png' },
  15. { name: 'Matrice 350 RTK', image: '//devcn.djicdn.com/img/e75bd33.jpg' },
  16. ])
  17. </script>
  18. <template>
  19. <main>
  20. <div class="api-overview-page">
  21. <!-- 头部区域 -->
  22. <Section
  23. heroSection
  24. dark
  25. centered
  26. bgImage="//devcn.djicdn.com/img/6997ab1.png"
  27. title="低门槛接入三方云平台"
  28. subtitle="无需重复开发APP,即可让无人机通过DJI Pilot2或大疆机场快速接入三方云平台"
  29. />
  30. <!-- 核心理念 -->
  31. <Section
  32. title="核心理念"
  33. subtitle="上云API基于业界标准的MQTT、HTTPS、Websocket协议,对无人机业务功能集充分抽象,隔离了复杂的无人机底层业务逻辑,让开发者聚焦在场景业务实现上。同时,上云API可以连接到任意网络,只要DJI Pilot2或大疆机场可以访问三方云平台即可工作"
  34. >
  35. <img src="//devcn.djicdn.com/img/046ccbe.png" class="section-img" alt="Core Concept">
  36. </Section>
  37. <!-- 方案架构 -->
  38. <Section title="方案架构">
  39. <img src="//devcn.djicdn.com/img/baca5bf.jpg" class="section-img" alt="Solution Architecture">
  40. </Section>
  41. <!-- 支持的产品 -->
  42. <Section title="支持的DJI产品">
  43. <div class="supported-products">
  44. <ProductCard
  45. v-for="product in supportedProducts"
  46. :key="product.name"
  47. :title="product.name"
  48. :image="product.image"
  49. class="product-item"
  50. />
  51. </div>
  52. </Section>
  53. </div>
  54. </main>
  55. </template>
  56. <style lang="scss" scoped>
  57. .api-overview-page {
  58. .section-img {
  59. max-width: 100%;
  60. height: auto;
  61. }
  62. .supported-products {
  63. display: grid;
  64. grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  65. gap: 20px;
  66. .product-item {
  67. :deep(.product-card) {
  68. flex-direction: column;
  69. text-align: center;
  70. img {
  71. width: 100%;
  72. height: auto;
  73. margin-bottom: 10px;
  74. }
  75. .product-info {
  76. h4 {
  77. font-size: 0.9rem;
  78. }
  79. }
  80. }
  81. }
  82. }
  83. }
  84. </style>