| @@ -1,6 +1,6 @@ | |||
| <!-- 导航 --> | |||
| <template> | |||
| <div class="header" :class="{'isIndex':isIndex}"> | |||
| <div class="header" :class="{'isIndex':isIndex && photo.length > 0}"> | |||
| <div class="wrap"> | |||
| <section class="wrap_left"> | |||
| <!-- <img src="@assets/image/index/logo.png" alt="logo" /> | |||
| @@ -37,6 +37,11 @@ export default { | |||
| require: true, | |||
| default: "", | |||
| }, | |||
| photo: { | |||
| type: Array, | |||
| require: true, | |||
| default: ()=>[], | |||
| }, | |||
| }, | |||
| //import引入的组件需要注入到对象中才能使用 | |||
| components: {}, | |||
| @@ -2,7 +2,7 @@ | |||
| <template> | |||
| <div class="banner"> | |||
| <section class="nav"> | |||
| <Nav :areaName="areaName"></Nav> | |||
| <Nav :areaName="areaName" :photo="photo"></Nav> | |||
| </section> | |||
| <el-carousel height="600px"> | |||
| <el-carousel-item v-for="item in photo" :key="item"> | |||