邓洁 : header区修改bug

This commit is contained in:
邓洁 2023-05-03 23:31:16 +08:00
parent ffdec4455e
commit d433675cff
8 changed files with 103 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 532 KiB

View File

@ -0,0 +1,46 @@
<template>
<el-row>
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
<div class="slideshow">
<el-carousel trigger="click" height="745px">
<el-carousel-item v-for="(item,index) in bannerDate" :key="index">
<div>
<img :src="item.imgurl" alt="">
</div>
</el-carousel-item>
</el-carousel>
</div>
</el-col>
</el-row>
</template>
<script>
export default {
name: "Carousel",
data() {
return {
bannerDate: [
{
imgurl: require('@/assets/banner/banner1.jpg')
}, {
imgurl: require('@/assets/banner/banner2.jpg')
},
{
imgurl: require('@/assets/banner/banner3.jpg')
}
]
}
}
}
</script>
<style scoped>
.slideshow {
width: 100%;
}
img {
width: 100%;
}
</style>

View File

@ -0,0 +1,41 @@
<template>
<div>
<el-row type="flex" style="height: 122px">
<el-col :span="4">
</el-col>
<el-col :span="16">
<div class="fast_left">
<p>
快速查找产品
</p>
<p>
可以快速地找到合适你的产品
</p>
</div>
</el-col>
</el-row>
</div>
</template>
<script>
export default {
name: "FastFindProducts"
}
</script>
<style scoped lang="scss">
.fast_left{
margin-top: 24px;
float: left;
p:first-child{
color: #333;
font-size: 24px;
line-height: 43px;
}
p:last-child{
color: #666;
font-size: 14px;
line-height: 25px;
}
}
</style>

View File

@ -21,7 +21,7 @@ const routes = [
},
{
path: '/news',
name: 'index',
name: 'news',
component: () => import('../views/news/index')
},
]

View File

@ -23,7 +23,7 @@
</a>
</div>
<div class="down_right">
<ul>
<ul >
<li v-for="(item,index) in navList" :key="index" class="nav">
<a :href="item.href" class="nav_item">
{{ item.title }}
@ -50,7 +50,7 @@ export default {
return {
navList: [
{
href: '',
href: '/',
title: '网站首页',
},
{
@ -107,11 +107,11 @@ export default {
}
]
}, {
href: '',
href: '/news',
title: '新闻资讯',
children:[
{
href: '',
href: '/news',
title:'公司新闻'
},
{
@ -159,7 +159,6 @@ export default {
</script>
<style scoped lang="scss">
.header_bg {
height: 130px;
width: 100%;
@ -233,6 +232,10 @@ export default {
.subNav{
display: none;
clear: both;
position: absolute;
top: 85px;
left: 0;
width: 100px;
background-color: #000;
padding: 12px 0;

View File

@ -1,12 +1,17 @@
<template>
<div>
<Carousel/>
<FastFindProducts/>
</div>
</template>
<script>
import Carousel from "@/components/Carousel";
import FastFindProducts from "@/components/FastFindProducts";
export default {
name: "index"
name: "index",
components: {FastFindProducts, Carousel}
}
</script>