123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246 |
- <script setup>
- import { ref } from "vue";
- const CocoPiIndex = ref(0);
- const CocoPiSwitch = (index) => {
- CocoPiIndex.value = index;
- }
- </script>
- <template>
- <div class="cocopi">
- <div class="cocopi-content">
- <div class="cocopi-content-left">
- <div @click="CocoPiSwitch(0)">
- <img v-if="CocoPiIndex === 0" src="../assets/img/icon4.png" alt="">
- <span>高集成度</span>
- </div>
- <div @click="CocoPiSwitch(1)">
- <img v-if="CocoPiIndex === 1" src="../assets/img/icon4.png" alt="">
- <span>易用性</span>
- </div>
- <div @click="CocoPiSwitch(2)">
- <img v-if="CocoPiIndex === 2" src="../assets/img/icon4.png" alt="">
- <span>开放性</span>
- </div>
- </div>
- <div class="cocopi-content-right">
- <div v-if="CocoPiIndex === 0" class="cocopi-content-right-div">
- <div>
- <h4>多合一</h4>
- <p>
- <b>硬件:</b>
- <span>传感器、屏幕、镜头、电机</span>
- </p>
- <p>
- <b>功能:</b>
- <span>人工智能功能</span>
- </p>
- </div>
- <div>
- <img src="../assets/img/high.png" alt="">
- </div>
- </div>
- <div v-else-if="CocoPiIndex === 1" class="cocopi-content-right-div">
- <div>
- <img src="../assets/img/usability1.png" alt="">
- <h6>多终端编程</h6>
- <span>电脑、平板、移动电话</span>
- </div>
- <div>
- <img src="../assets/img/usability2.png" alt="">
- <h6>多方式上传</h6>
- <span>传输线、WI-FI、蓝牙</span>
- </div>
- </div>
- <div v-else class="cocopi-content-right-div">
- <div>
- <h4>多合一</h4>
- <p>
- <b>硬件:</b>
- <span>传感器、屏幕、镜头、电机</span>
- </p>
- <p>
- <b>功能:</b>
- <span>人工智能功能</span>
- </p>
- </div>
- <div>
- <img style="width: 85%;" src="../assets/img/open.png" alt="">
- </div>
- </div>
- </div>
- </div>
- </div>
- </template>
- <style lang="scss">
- .cocopi {
- width: 100%;
- margin: 72px auto 0;
- font-size: 18px;
- text-align: center;
- h3 {
- font-size: 48px;
- font-weight: 700;
- }
- a {
- font-weight: 400;
- color: #3681fc;
- }
- .cocopi-content {
- display: flex;
- margin-top: 48px;
- .cocopi-content-left {
- position: relative;
- width: 30%;
- // height: 450px;
- text-align: center;
- padding: 84px 48px;
- border-top-left-radius: 48px;
- border-bottom-left-radius: 48px;
- background-color: rgba(15, 84, 196, 0.95);
- cursor: pointer;
- display: flex;
- flex-wrap: wrap;
- div {
- width: 100%;
- font-size: 24px;
- font-weight: 400;
- color: rgba(255, 255, 255, 1);
- line-height: 30px;
- padding: 0 50px;
- position: relative;
- img {
- position: absolute;
- left: 0px;
- top: 50%;
- transform: translate(0, -50%);
- }
- span {
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translate(-50%, -50%);
- }
- }
- }
- .cocopi-content-left::before {
- position: absolute;
- top: 0;
- left: 0;
- content: "";
- display: block;
- width: 100%;
- height: 100%;
- border-top-left-radius: 48px;
- border-bottom-left-radius: 48px;
- background-image: url("../assets/img/productImg.png");
- opacity: 0.15;
- }
- .cocopi-content-right {
- border-top-right-radius: 48px;
- border-bottom-right-radius: 48px;
- background-color: #F3F7FD;
- width: 100%;
- // height: 450px;
- .cocopi-content-right-div {
- display: flex;
- div {
- width: 50%;
- text-align: center;
- padding: 48px;
- h4 {
- font-size: 64px;
- font-weight: 500;
- text-align: left;
- line-height: 100px;
- }
- p {
- text-align: left;
- font-size: 18px;
- font-weight: 400;
- line-height: 28px;
- color: #00000099;
- b {
- color: #000;
- }
- }
- img {
- display: inline-block;
- width: 100%;
- }
- h6 {
- font-size: 24px;
- font-weight: 540;
- line-height: 36px;
- }
- span {
- font-size: 18px;
- color: #00000099;
- }
- }
- }
- }
- }
- .Course-content {
- display: flex;
- justify-content: space-between;
- margin-top: 80px;
- div {
- width: 30%;
- // height: 280px;
- // background-repeat: no-repeat;
- // background-position: 100% 100%;
- padding: 60px 40px;
- border-radius: 32px;
- h4 {
- font-size: 32px;
- font-weight: 500;
- }
- span {
- font-size: 18px;
- font-weight: 400;
- }
- }
- div:nth-child(1) {
- background-image: url("../../assets/img/content1.png");
- }
- div:nth-child(2) {
- background-image: url("../../assets/img/content2.png");
- }
- div:nth-child(3) {
- background-image: url("../../assets/img/content3.png");
- }
- }
- }
- </style>
|