|
@@ -15,14 +15,26 @@
|
|
|
<el-col :span="24" class="newsMain">
|
|
|
<el-col :span="14" class="block">
|
|
|
<el-carousel ref="shubiao">
|
|
|
- <el-carousel-item v-for="(item, index) in news.infoList" :key="index" :name="`${index}`">
|
|
|
+ <el-carousel-item
|
|
|
+ v-for="(item, index) in news.infoList"
|
|
|
+ :key="index"
|
|
|
+ :name="`${index}`"
|
|
|
+ @click="$router.push({ path: `/info/detail?id=${item.id}` })"
|
|
|
+ >
|
|
|
<el-link :underline="false"><img :src="item.pic" class="newsList"/></el-link>
|
|
|
</el-carousel-item>
|
|
|
</el-carousel>
|
|
|
</el-col>
|
|
|
<el-col :span="10" class="newsLi">
|
|
|
<ul>
|
|
|
- <li v-for="(tag, index) in news.infoList" :key="index" :type="tag.type" @mouseover="shuYi(index)" :class="newListActive(tag)">
|
|
|
+ <li
|
|
|
+ v-for="(tag, index) in news.infoList"
|
|
|
+ :key="index"
|
|
|
+ :type="tag.type"
|
|
|
+ @mouseover="shuYi(index)"
|
|
|
+ :class="newListActive(tag)"
|
|
|
+ @click="$router.push({ path: `/info/detail?id=${tag.id}` })"
|
|
|
+ >
|
|
|
<el-link :underline="false" class="newsListTit">{{ tag.title }}</el-link>
|
|
|
</li>
|
|
|
</ul>
|