|
|
@ -3,7 +3,7 @@ |
|
|
|
<div class="top_wrap"><Top :hardLogo="true" /></div> |
|
|
|
<img :src="Home1" class="bg" alt="" /> |
|
|
|
<NewTrack :hard="true" /> |
|
|
|
<Card :caseList="getData()" /> |
|
|
|
<Card :caseList="getData()" :classify="trackStore.hardwareTab" /> |
|
|
|
<HeadLine title="专家" themeTitle="电机控制" /> |
|
|
|
<div class="img_wrap"> |
|
|
|
<img :src="Dian" class="img" alt="" /> |
|
|
@ -33,13 +33,20 @@ 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 { caseList, hardCaseList } from '@/mock' |
|
|
|
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 = () => { |
|
|
|
return hardCaseList |
|
|
|
// 根据激活tab展示产品 |
|
|
|
if (trackStore.hardwareTab == 0) { |
|
|
|
return homeList |
|
|
|
} |
|
|
|
return caseList[parseInt(trackStore.hardwareTab)] |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|