generated from maochaoying/dreamworks-mobile
11 changed files with 23 additions and 353 deletions
-
2index.html
-
8src/components/Bottom.vue
-
9src/components/SubNavigation.vue
-
16src/components/Top.vue
-
84src/pages/Hardware.bak.vue
-
95src/pages/Hardware.vue
-
10src/pages/HardwareCase.vue
-
47src/pages/index.bak.vue
-
95src/pages/index.vue
-
8src/router/index.js
-
2vite.config.js
@ -1,84 +0,0 @@ |
|||||
<template> |
|
||||
<div class="hardware_home_container"> |
|
||||
<Swiper page="hardware" /> |
|
||||
<CaseShow /> |
|
||||
<div class="img_wrap"> |
|
||||
<img :src="Hard" class="img" alt="" /> |
|
||||
</div> |
|
||||
<HeadLine |
|
||||
title="合作过的" |
|
||||
themeTitle="芯片原厂" |
|
||||
:flip="true" |
|
||||
line1="医疗企业 互联网公司 智能硬件公司 科研院所 工业自动化企业" |
|
||||
/> |
|
||||
<img :src="Chip" class="img" alt="" /> |
|
||||
<img :src="Wu" class="img" alt="" /> |
|
||||
<!-- <Track /> --> |
|
||||
<HeadLine |
|
||||
title="专家" |
|
||||
themeTitle="电机控制" |
|
||||
line1="自主研发电机驱动器,让控制更加精准" |
|
||||
/> |
|
||||
<div class="img_wrap"> |
|
||||
<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> |
|
||||
<AboutUs /> |
|
||||
<Cooperation /> |
|
||||
</div> |
|
||||
</template> |
|
||||
|
|
||||
<script setup> |
|
||||
import Swiper from 'cpns/Swiper' |
|
||||
import CaseShow from 'cpns/CaseShow' |
|
||||
import Hard from '@/static/img/hardware/hardware.png' |
|
||||
import Chip from '@/static/img/hardware/chip.png' |
|
||||
import HeadLine from 'cpns/HeadLine' |
|
||||
import Track from 'cpns/Track' |
|
||||
import Wu from '@/static/img/hardware/wulianwang.png' |
|
||||
import Dian from '@/static/img/hardware/dianji.png' |
|
||||
import AboutUs from 'cpns/AboutUs.vue' |
|
||||
import Cooperation from 'cpns/Cooperation' |
|
||||
import Bottom from 'cpns/Bottom' |
|
||||
import SAccelerate from '@/static/img/hardware/s-accelerate.png' |
|
||||
import TAccelerate from '@/static/img/hardware/t-accelerate.png' |
|
||||
import Gif1 from '@/static/img/hardware/1.gif' |
|
||||
import Gif2 from '@/static/img/hardware/2.gif' |
|
||||
</script> |
|
||||
|
|
||||
<style lang="scss" scoped> |
|
||||
.hardware_home_container { |
|
||||
background: #f5f5f5; |
|
||||
max-width: 100vw; |
|
||||
overflow: hidden; |
|
||||
.img_wrap { |
|
||||
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; |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
.img { |
|
||||
width: 100%; |
|
||||
height: auto; |
|
||||
} |
|
||||
} |
|
||||
</style> |
|
@ -1,95 +0,0 @@ |
|||||
<template> |
|
||||
<div class="hardware_container"> |
|
||||
<div class="top_wrap"><Top :hardLogo="true" /></div> |
|
||||
<img :src="Home1" class="bg" alt="" /> |
|
||||
<NewTrack :hard="true" /> |
|
||||
<Card :caseList="getData()" :classify="trackStore.hardwareTab" /> |
|
||||
<HeadLine title="专家" themeTitle="电机控制" /> |
|
||||
<div class="img_wrap"> |
|
||||
<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="Home2" class="bg" alt="" /> |
|
||||
<img :src="Home5" class="bg" alt="" /> |
|
||||
</div> |
|
||||
</template> |
|
||||
|
|
||||
<script setup> |
|
||||
import Top from 'cpns/Top' |
|
||||
import HeadLine from 'cpns/HeadLine' |
|
||||
import Dian from '@/static/img/hardware/dianji.png' |
|
||||
import Home1 from '@/static/img/newpage/def.png' |
|
||||
import SAccelerate from '@/static/img/hardware/s-accelerate.png' |
|
||||
import TAccelerate from '@/static/img/hardware/t-accelerate.png' |
|
||||
import Home2 from '@/static/img/newpage/home4.png' |
|
||||
import Home5 from '@/static/img/newpage/home5.png' |
|
||||
import Card from 'cpns/Card' |
|
||||
import Gif1 from '@/static/img/hardware/1.gif' |
|
||||
import Gif2 from '@/static/img/hardware/2.gif' |
|
||||
import { hardCaseList as homeList } from '@/mock' |
|
||||
import { useTrackStore } from '@/store' |
|
||||
import NewTrack from 'cpns/NewTrack' |
|
||||
import { useRoute } from 'vue-router' |
|
||||
import { caseList } from '@/mock/case_detail' |
|
||||
const route = useRoute() |
|
||||
const trackStore = useTrackStore() |
|
||||
|
|
||||
const getData = () => { |
|
||||
// 根据激活tab展示产品 |
|
||||
if (trackStore.hardwareTab == 0) { |
|
||||
return homeList |
|
||||
} |
|
||||
return caseList[parseInt(trackStore.hardwareTab)] |
|
||||
} |
|
||||
</script> |
|
||||
|
|
||||
<style lang="scss" scoped> |
|
||||
.hardware_container { |
|
||||
max-width: 100vw; |
|
||||
overflow: hidden; |
|
||||
padding-bottom: 12px; |
|
||||
background: #f6f6f6; |
|
||||
.img_wrap { |
|
||||
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; |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
.top_wrap { |
|
||||
position: absolute; |
|
||||
left: 0; |
|
||||
top: 0; |
|
||||
right: 0; |
|
||||
width: 100%; |
|
||||
height: 47px; |
|
||||
z-index: 200; |
|
||||
} |
|
||||
.bg { |
|
||||
width: 100vw; |
|
||||
height: auto; |
|
||||
} |
|
||||
.img { |
|
||||
width: 100%; |
|
||||
height: auto; |
|
||||
} |
|
||||
} |
|
||||
</style> |
|
@ -1,10 +0,0 @@ |
|||||
<template> |
|
||||
<div class="hardware_case_container">hardware case</div> |
|
||||
</template> |
|
||||
|
|
||||
<script setup></script> |
|
||||
|
|
||||
<style lang="scss" scoped> |
|
||||
.hardware_case_container { |
|
||||
} |
|
||||
</style> |
|
@ -1,47 +0,0 @@ |
|||||
<template> |
|
||||
<div class="home_container"> |
|
||||
<Swiper /> |
|
||||
<CaseShow /> |
|
||||
<Hardware /> |
|
||||
<MechanicalDrive /> |
|
||||
<!-- <Track /> --> |
|
||||
<OneStop /> |
|
||||
<AboutUs /> |
|
||||
<!-- <News /> --> |
|
||||
<Cooperation /> |
|
||||
<Awards /> |
|
||||
</div> |
|
||||
</template> |
|
||||
|
|
||||
<script setup> |
|
||||
import Swiper from 'cpns/Swiper' |
|
||||
import CaseShow from 'cpns/CaseShow' |
|
||||
import Hardware from 'cpns/Hardware' |
|
||||
import MechanicalDrive from 'cpns/MechanicalDrive' |
|
||||
import AboutUs from 'cpns/AboutUs' |
|
||||
import Track from 'cpns/Track' |
|
||||
import OneStop from 'cpns/OneStop' |
|
||||
import News from 'cpns/News' |
|
||||
import Cooperation from 'cpns/Cooperation' |
|
||||
import Awards from 'cpns/Awards' |
|
||||
import { ref } from 'vue' |
|
||||
|
|
||||
// const isDrag = ref(false) |
|
||||
|
|
||||
// const handlePress = e => { |
|
||||
// // 背景虚化 |
|
||||
// isDrag.value = true |
|
||||
// } |
|
||||
// const handleRelease = e => { |
|
||||
// // 背景实体化 |
|
||||
// isDrag.value = false |
|
||||
// } |
|
||||
</script> |
|
||||
|
|
||||
<style lang="scss" scoped> |
|
||||
.home_container { |
|
||||
background: #f5f5f5; |
|
||||
max-width: 100vw; |
|
||||
overflow: hidden; |
|
||||
} |
|
||||
</style> |
|
@ -1,95 +0,0 @@ |
|||||
<template> |
|
||||
<div class="home_container"> |
|
||||
<div class="img_wrap"> |
|
||||
<img :src="HomeBackground" class="bg" alt="" /> |
|
||||
<div class="btn1" @click="toPage('/industry')"></div> |
|
||||
<div class="btn2" @click="toPage('/hardware')"></div> |
|
||||
<div class="btn3" @click="toPage('/case-show')"></div> |
|
||||
<div class="btn4" @click="toPage('/factory')"></div> |
|
||||
<div class="btn5" @click="toPage('/recruit')"></div> |
|
||||
<div class="btn6" @click="toPage('/contact')"></div> |
|
||||
</div> |
|
||||
<div class="top_wrap"><Top :newpage="true" /></div> |
|
||||
</div> |
|
||||
</template> |
|
||||
|
|
||||
<script setup> |
|
||||
import HomeBackground from '@/static/img/newpage/home.png' |
|
||||
import { useRouter } from 'vue-router' |
|
||||
import Top from 'cpns/Top' |
|
||||
|
|
||||
const router = useRouter() |
|
||||
|
|
||||
const toPage = path => { |
|
||||
router.push(path) |
|
||||
} |
|
||||
</script> |
|
||||
|
|
||||
<style lang="scss" scoped> |
|
||||
.home_container { |
|
||||
max-width: 100vw; |
|
||||
overflow: hidden; |
|
||||
background: #f6f6f6; |
|
||||
padding-bottom: 12px; |
|
||||
.top_wrap { |
|
||||
position: absolute; |
|
||||
left: 0; |
|
||||
top: 0; |
|
||||
right: 0; |
|
||||
width: 100%; |
|
||||
height: 47px; |
|
||||
z-index: 200; |
|
||||
} |
|
||||
.img_wrap { |
|
||||
position: relative; |
|
||||
.bg { |
|
||||
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; |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
</style> |
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue