|
|
@ -1,25 +1,57 @@ |
|
|
|
<template> |
|
|
|
<div class="home_container"> |
|
|
|
<div class="img_wrap"> |
|
|
|
<img :src="HomeBackground" class="bg" alt="" /> |
|
|
|
<div class="btn1" @click="toPage('/mobile/design')"></div> |
|
|
|
<div class="btn2" @click="toPage('/mobile/hardware')"></div> |
|
|
|
<div class="btn3" @click="toPage('/mobile/design/#/case-show')"></div> |
|
|
|
<div class="btn4" @click="toPage('/mobile/metal')"></div> |
|
|
|
<div class="btn5" @click="toPage('/mobile/design/#/recruit')"></div> |
|
|
|
<div class="btn6" @click="toPage('/mobile/design/#/contact')"></div> |
|
|
|
<img :src="A1" class="img" alt="" /> |
|
|
|
<NewTrack :hard="true" /> |
|
|
|
<Card :caseList="getData()" :classify="trackStore.hardwareTab" /> |
|
|
|
<img :src="A2" class="img" alt="" /> |
|
|
|
<HeadLine title="专家" themeTitle="电机控制" /> |
|
|
|
<div class="img_wrap2"> |
|
|
|
<img :src="Dian" class="img" alt="" /> |
|
|
|
<div class="gif_wrap"> |
|
|
|
<img :src="Gif2" class="left_img" alt="" /> |
|
|
|
<img :src="SAccelerate" class="right_img" alt="" /> |
|
|
|
</div> |
|
|
|
<div class="gif_wrap"> |
|
|
|
<img :src="Gif1" class="left_img" alt="" /> |
|
|
|
<img :src="TAccelerate" class="right_img" alt="" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<img :src="A3" class="img" alt="" /> |
|
|
|
</div> |
|
|
|
<div class="top_wrap"><Top :newpage="true" /></div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script setup> |
|
|
|
import HomeBackground from '@/static/img/newpage/home.png' |
|
|
|
import A1 from '@/static/onestep/1.png' |
|
|
|
import A2 from '@/static/onestep/2.png' |
|
|
|
import Dian from '@/static/img/hardware/dianji.png' |
|
|
|
import Gif1 from '@/static/img/hardware/1.gif' |
|
|
|
import Gif2 from '@/static/img/hardware/2.gif' |
|
|
|
import SAccelerate from '@/static/img/hardware/s-accelerate.png' |
|
|
|
import TAccelerate from '@/static/img/hardware/t-accelerate.png' |
|
|
|
import HeadLine from 'cpns/HeadLine' |
|
|
|
import A3 from '@/static/onestep/3.png' |
|
|
|
import { useRouter } from 'vue-router' |
|
|
|
import Top from 'cpns/Top' |
|
|
|
import NewTrack from 'cpns/NewTrack' |
|
|
|
import Card from 'cpns/Card' |
|
|
|
import { hardCaseList as homeList } from '@/mock' |
|
|
|
import { useTrackStore } from '@/store' |
|
|
|
import { caseList } from '@/mock/case_detail' |
|
|
|
|
|
|
|
const trackStore = useTrackStore() |
|
|
|
const router = useRouter() |
|
|
|
|
|
|
|
const getData = () => { |
|
|
|
// 根据激活tab展示产品 |
|
|
|
if (trackStore.hardwareTab == 0) { |
|
|
|
return homeList |
|
|
|
} |
|
|
|
return caseList[parseInt(trackStore.hardwareTab)] |
|
|
|
} |
|
|
|
|
|
|
|
const toPage = path => { |
|
|
|
window.location.href = `https://iflytop.com/${path}` |
|
|
|
} |
|
|
@ -41,54 +73,27 @@ const toPage = path => { |
|
|
|
z-index: 200; |
|
|
|
} |
|
|
|
.img_wrap { |
|
|
|
position: relative; |
|
|
|
.bg { |
|
|
|
.img { |
|
|
|
width: 100vw; |
|
|
|
height: auto; |
|
|
|
} |
|
|
|
.btn1 { |
|
|
|
position: absolute; |
|
|
|
left: 2vw; |
|
|
|
bottom: 60vw; |
|
|
|
width: 47vw; |
|
|
|
height: 27vw; |
|
|
|
} |
|
|
|
.btn2 { |
|
|
|
position: absolute; |
|
|
|
right: 2vw; |
|
|
|
bottom: 60vw; |
|
|
|
width: 47vw; |
|
|
|
height: 27vw; |
|
|
|
} |
|
|
|
.btn3 { |
|
|
|
position: absolute; |
|
|
|
left: 2vw; |
|
|
|
bottom: 31vw; |
|
|
|
width: 47vw; |
|
|
|
height: 27vw; |
|
|
|
} |
|
|
|
.btn4 { |
|
|
|
position: absolute; |
|
|
|
right: 2vw; |
|
|
|
bottom: 31vw; |
|
|
|
width: 47vw; |
|
|
|
height: 27vw; |
|
|
|
} |
|
|
|
|
|
|
|
.btn5 { |
|
|
|
position: absolute; |
|
|
|
left: 2vw; |
|
|
|
bottom: 2vw; |
|
|
|
width: 47vw; |
|
|
|
height: 27vw; |
|
|
|
} |
|
|
|
|
|
|
|
.btn6 { |
|
|
|
position: absolute; |
|
|
|
right: 2vw; |
|
|
|
bottom: 2vw; |
|
|
|
width: 47vw; |
|
|
|
height: 27vw; |
|
|
|
.img_wrap2 { |
|
|
|
padding: 0 7px; |
|
|
|
.gif_wrap { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
margin-bottom: 5px; |
|
|
|
border-radius: 3px; |
|
|
|
overflow: hidden; |
|
|
|
.left_img { |
|
|
|
width: 133px; |
|
|
|
height: 67px; |
|
|
|
} |
|
|
|
.right_img { |
|
|
|
width: 63%; |
|
|
|
height: 67px; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|