ProductCocoPi.vue 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. <script setup>
  2. import { ref } from "vue";
  3. const CocoPiIndex = ref(0);
  4. const CocoPiSwitch = (index) => {
  5. CocoPiIndex.value = index;
  6. }
  7. </script>
  8. <template>
  9. <div class="cocopi">
  10. <div class="cocopi-content">
  11. <div class="cocopi-content-left">
  12. <div @click="CocoPiSwitch(0)">
  13. <img v-if="CocoPiIndex === 0" src="../assets/img/icon4.png" alt="">
  14. <span>高集成度</span>
  15. </div>
  16. <div @click="CocoPiSwitch(1)">
  17. <img v-if="CocoPiIndex === 1" src="../assets/img/icon4.png" alt="">
  18. <span>易用性</span>
  19. </div>
  20. <div @click="CocoPiSwitch(2)">
  21. <img v-if="CocoPiIndex === 2" src="../assets/img/icon4.png" alt="">
  22. <span>开放性</span>
  23. </div>
  24. </div>
  25. <div class="cocopi-content-right">
  26. <div v-if="CocoPiIndex === 0" class="cocopi-content-right-div">
  27. <div>
  28. <h4>多合一</h4>
  29. <p>
  30. <b>硬件:</b>
  31. <span>传感器、屏幕、镜头、电机</span>
  32. </p>
  33. <p>
  34. <b>功能:</b>
  35. <span>人工智能功能</span>
  36. </p>
  37. </div>
  38. <div>
  39. <img src="../assets/img/high.png" alt="">
  40. </div>
  41. </div>
  42. <div v-else-if="CocoPiIndex === 1" class="cocopi-content-right-div">
  43. <div>
  44. <img src="../assets/img/usability1.png" alt="">
  45. <h6>多终端编程</h6>
  46. <span>电脑、平板、移动电话</span>
  47. </div>
  48. <div>
  49. <img src="../assets/img/usability2.png" alt="">
  50. <h6>多方式上传</h6>
  51. <span>传输线、WI-FI、蓝牙</span>
  52. </div>
  53. </div>
  54. <div v-else class="cocopi-content-right-div">
  55. <div>
  56. <h4>多合一</h4>
  57. <p>
  58. <b>硬件:</b>
  59. <span>传感器、屏幕、镜头、电机</span>
  60. </p>
  61. <p>
  62. <b>功能:</b>
  63. <span>人工智能功能</span>
  64. </p>
  65. </div>
  66. <div>
  67. <img style="width: 85%;" src="../assets/img/open.png" alt="">
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. </template>
  74. <style lang="scss">
  75. .cocopi {
  76. width: 100%;
  77. margin: 72px auto 0;
  78. font-size: 18px;
  79. text-align: center;
  80. h3 {
  81. font-size: 48px;
  82. font-weight: 700;
  83. }
  84. a {
  85. font-weight: 400;
  86. color: #3681fc;
  87. }
  88. .cocopi-content {
  89. display: flex;
  90. margin-top: 48px;
  91. .cocopi-content-left {
  92. position: relative;
  93. width: 30%;
  94. // height: 450px;
  95. text-align: center;
  96. padding: 84px 48px;
  97. border-top-left-radius: 48px;
  98. border-bottom-left-radius: 48px;
  99. background-color: rgba(15, 84, 196, 0.95);
  100. cursor: pointer;
  101. display: flex;
  102. flex-wrap: wrap;
  103. div {
  104. width: 100%;
  105. font-size: 24px;
  106. font-weight: 400;
  107. color: rgba(255, 255, 255, 1);
  108. line-height: 30px;
  109. padding: 0 50px;
  110. position: relative;
  111. img {
  112. position: absolute;
  113. left: 0px;
  114. top: 50%;
  115. transform: translate(0, -50%);
  116. }
  117. span {
  118. position: absolute;
  119. left: 50%;
  120. top: 50%;
  121. transform: translate(-50%, -50%);
  122. }
  123. }
  124. }
  125. .cocopi-content-left::before {
  126. position: absolute;
  127. top: 0;
  128. left: 0;
  129. content: "";
  130. display: block;
  131. width: 100%;
  132. height: 100%;
  133. border-top-left-radius: 48px;
  134. border-bottom-left-radius: 48px;
  135. background-image: url("../assets/img/productImg.png");
  136. opacity: 0.15;
  137. }
  138. .cocopi-content-right {
  139. border-top-right-radius: 48px;
  140. border-bottom-right-radius: 48px;
  141. background-color: #F3F7FD;
  142. width: 100%;
  143. // height: 450px;
  144. .cocopi-content-right-div {
  145. display: flex;
  146. div {
  147. width: 50%;
  148. text-align: center;
  149. padding: 48px;
  150. h4 {
  151. font-size: 64px;
  152. font-weight: 500;
  153. text-align: left;
  154. line-height: 100px;
  155. }
  156. p {
  157. text-align: left;
  158. font-size: 18px;
  159. font-weight: 400;
  160. line-height: 28px;
  161. color: #00000099;
  162. b {
  163. color: #000;
  164. }
  165. }
  166. img {
  167. display: inline-block;
  168. width: 100%;
  169. }
  170. h6 {
  171. font-size: 24px;
  172. font-weight: 540;
  173. line-height: 36px;
  174. }
  175. span {
  176. font-size: 18px;
  177. color: #00000099;
  178. }
  179. }
  180. }
  181. }
  182. }
  183. .Course-content {
  184. display: flex;
  185. justify-content: space-between;
  186. margin-top: 80px;
  187. div {
  188. width: 30%;
  189. // height: 280px;
  190. // background-repeat: no-repeat;
  191. // background-position: 100% 100%;
  192. padding: 60px 40px;
  193. border-radius: 32px;
  194. h4 {
  195. font-size: 32px;
  196. font-weight: 500;
  197. }
  198. span {
  199. font-size: 18px;
  200. font-weight: 400;
  201. }
  202. }
  203. div:nth-child(1) {
  204. background-image: url("../../assets/img/content1.png");
  205. }
  206. div:nth-child(2) {
  207. background-image: url("../../assets/img/content2.png");
  208. }
  209. div:nth-child(3) {
  210. background-image: url("../../assets/img/content3.png");
  211. }
  212. }
  213. }
  214. </style>