Merge pull request '邓洁 : header区修改bug' (#3) from dj into master
Reviewed-on: #3
This commit is contained in:
commit
f5924a204a
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 |
|
|
@ -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>
|
||||||
|
|
@ -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>
|
||||||
|
|
@ -21,7 +21,7 @@ const routes = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/news',
|
path: '/news',
|
||||||
name: 'index',
|
name: 'news',
|
||||||
component: () => import('../views/news/index')
|
component: () => import('../views/news/index')
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="down_right">
|
<div class="down_right">
|
||||||
<ul>
|
<ul >
|
||||||
<li v-for="(item,index) in navList" :key="index" class="nav">
|
<li v-for="(item,index) in navList" :key="index" class="nav">
|
||||||
<a :href="item.href" class="nav_item">
|
<a :href="item.href" class="nav_item">
|
||||||
{{ item.title }}
|
{{ item.title }}
|
||||||
|
|
@ -50,7 +50,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
navList: [
|
navList: [
|
||||||
{
|
{
|
||||||
href: '',
|
href: '/',
|
||||||
title: '网站首页',
|
title: '网站首页',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -107,11 +107,11 @@ export default {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}, {
|
}, {
|
||||||
href: '',
|
href: '/news',
|
||||||
title: '新闻资讯',
|
title: '新闻资讯',
|
||||||
children:[
|
children:[
|
||||||
{
|
{
|
||||||
href: '',
|
href: '/news',
|
||||||
title:'公司新闻'
|
title:'公司新闻'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -159,7 +159,6 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
||||||
.header_bg {
|
.header_bg {
|
||||||
height: 130px;
|
height: 130px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
@ -233,6 +232,10 @@ export default {
|
||||||
|
|
||||||
.subNav{
|
.subNav{
|
||||||
display: none;
|
display: none;
|
||||||
|
clear: both;
|
||||||
|
position: absolute;
|
||||||
|
top: 85px;
|
||||||
|
left: 0;
|
||||||
width: 100px;
|
width: 100px;
|
||||||
background-color: #000;
|
background-color: #000;
|
||||||
padding: 12px 0;
|
padding: 12px 0;
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,17 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
|
<Carousel/>
|
||||||
|
<FastFindProducts/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import Carousel from "@/components/Carousel";
|
||||||
|
import FastFindProducts from "@/components/FastFindProducts";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "index"
|
name: "index",
|
||||||
|
components: {FastFindProducts, Carousel}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue