|
@@ -29,7 +29,18 @@
|
|
|
:class="[active == item.type ? 'active' : '']"
|
|
|
>
|
|
|
<el-col :span="6" class="image">
|
|
|
- <el-image class="image" :src="item.url" fit="fill" />
|
|
|
+ <el-image
|
|
|
+ v-show="active == item.type"
|
|
|
+ class="image"
|
|
|
+ :src="item.icon"
|
|
|
+ fit="fill"
|
|
|
+ />
|
|
|
+ <el-image
|
|
|
+ v-show="active != item.type"
|
|
|
+ class="image"
|
|
|
+ :src="item.url"
|
|
|
+ fit="fill"
|
|
|
+ />
|
|
|
</el-col>
|
|
|
<el-col :span="18" class="title textOver">{{ item.title }}</el-col>
|
|
|
</el-col>
|
|
@@ -234,20 +245,29 @@ import science_6 from '@/assets/science_6.png'
|
|
|
import science_7 from '@/assets/science_7.png'
|
|
|
import science_8 from '@/assets/science_8.png'
|
|
|
import science_9 from '@/assets/science_9.png'
|
|
|
+import science1 from '@/assets/science1.png'
|
|
|
+import science2 from '@/assets/science2.png'
|
|
|
+import science3 from '@/assets/science3.png'
|
|
|
+import science4 from '@/assets/science4.png'
|
|
|
+import science5 from '@/assets/science5.png'
|
|
|
+import science6 from '@/assets/science6.png'
|
|
|
+import science7 from '@/assets/science7.png'
|
|
|
+import science8 from '@/assets/science8.png'
|
|
|
+import science9 from '@/assets/science9.png'
|
|
|
import news from '@/assets/news.jpg'
|
|
|
// 加载中
|
|
|
const loading = ref(false)
|
|
|
const active = ref('0')
|
|
|
const typeList = ref([
|
|
|
- { url: science_1, title: '生物技术', type: '0' },
|
|
|
- { url: science_2, title: '信息技术', type: '1' },
|
|
|
- { url: science_3, title: '新材料', type: '2' },
|
|
|
- { url: science_4, title: '新能源', type: '3' },
|
|
|
- { url: science_5, title: '智能制造', type: '4' },
|
|
|
- { url: science_6, title: '光电芯片', type: '5' },
|
|
|
- { url: science_7, title: '人工智能', type: '6' },
|
|
|
- { url: science_8, title: '航空航天', type: '7' },
|
|
|
- { url: science_9, title: '其他', type: '8' }
|
|
|
+ { url: science_1, icon: science1, title: '生物技术', type: '0' },
|
|
|
+ { url: science_2, icon: science2, title: '信息技术', type: '1' },
|
|
|
+ { url: science_3, icon: science3, title: '新材料', type: '2' },
|
|
|
+ { url: science_4, icon: science4, title: '新能源', type: '3' },
|
|
|
+ { url: science_5, icon: science5, title: '智能制造', type: '4' },
|
|
|
+ { url: science_6, icon: science6, title: '光电芯片', type: '5' },
|
|
|
+ { url: science_7, icon: science7, title: '人工智能', type: '6' },
|
|
|
+ { url: science_8, icon: science8, title: '航空航天', type: '7' },
|
|
|
+ { url: science_9, icon: science9, title: '其他', type: '8' }
|
|
|
])
|
|
|
const list = ref([])
|
|
|
// 字典表
|