|
@@ -1,26 +1,7 @@
|
|
|
<template>
|
|
|
<div id="index">
|
|
|
<el-row>
|
|
|
- <el-row>
|
|
|
- <div class="w_0100 top">
|
|
|
- <div class="topTit">
|
|
|
- <div class="w_1200">
|
|
|
- <el-col :span="12" class="logo">
|
|
|
- <el-image style="width: 600px; height: 100px" :src="site.banner || ''"></el-image>
|
|
|
- <span class="logo_txt" :style="`background:${backColor}`">{{ site.name }}</span>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12" class="search">
|
|
|
- <el-col :span="3" style="float: right;"
|
|
|
- ><el-button type="danger" icon="el-icon-search" :style="`background:${backColor}; border-color:${borderCol}`"></el-button
|
|
|
- ></el-col>
|
|
|
- <el-col :span="10" style="float: right;" class="searchInput" :style="`border-color:${borderCol}`"
|
|
|
- ><el-input v-model="input" placeholder="请输入内容"></el-input
|
|
|
- ></el-col>
|
|
|
- </el-col>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </el-row>
|
|
|
+ <top></top>
|
|
|
<top-menu></top-menu>
|
|
|
<div class="w_0100">
|
|
|
<div class="w_1200">
|
|
@@ -37,7 +18,9 @@
|
|
|
<div class="block" style="width: 460px;float: left;">
|
|
|
<el-carousel style="width:460px;height:250px;overflow-y: hidden;" ref="shubiao">
|
|
|
<el-carousel-item v-for="(item, index) in newList" :key="index" :name="`${index}`">
|
|
|
- <img :src="item.picurl" class="newList" />
|
|
|
+ <el-link :underline="false" @click="$router.push({ path: '/info/detail', query: { id: item.id } })"
|
|
|
+ ><img :src="item.picurl" class="newList"
|
|
|
+ /></el-link>
|
|
|
</el-carousel-item>
|
|
|
</el-carousel>
|
|
|
</div>
|
|
@@ -614,6 +597,7 @@
|
|
|
|
|
|
<script>
|
|
|
import foot from '@/layout/layout-part/foot.vue';
|
|
|
+import top from '@/layout/layout-part/top.vue';
|
|
|
import topMenu from '@/layout/layout-part/top-menu.vue';
|
|
|
import { mapActions, mapState } from 'vuex';
|
|
|
export default {
|
|
@@ -640,6 +624,7 @@ export default {
|
|
|
components: {
|
|
|
foot,
|
|
|
topMenu,
|
|
|
+ top,
|
|
|
},
|
|
|
data: () => ({
|
|
|
color: '#850000',
|
|
@@ -1593,7 +1578,6 @@ img {
|
|
|
float: left;
|
|
|
position: relative;
|
|
|
width: 100%;
|
|
|
- height: 94px;
|
|
|
background: #333333;
|
|
|
}
|
|
|
.el-carousel__item h3 {
|