| | |
| | | <el-carousel height="450px" arrow="always" :interval="3000"> |
| | | <el-carousel-item v-for="(item,index) in imgList" :key="index"> |
| | | <div @click="gonew(item.id)" class="cursor" style="width:590px; height:450px"> |
| | | <img :src="'http://localhost:7070/'+item.picturePath" alt="" style="width:100%; height:90%"> |
| | | <img :src="'http://localhost:7070/' + item.picturePath" alt="" style="width:100%; height:90%" /> |
| | | </div> |
| | | </el-carousel-item> |
| | | </el-carousel> |
| | |
| | | |
| | | <!-- 定位fixed --> |
| | | <div class="fixed1"> |
| | | <a href="#"><img src="../../assets/gzh.jpg" alt=""></a> |
| | | <a href="#"><img src="../../assets/gzh.jpg" alt=""/></a> |
| | | </div> |
| | | <div class="fixed2"> |
| | | <a href="#"><img src="../../assets/wb.jpg" alt=""></a> |
| | | <a href="#"><img src="../../assets/wb.jpg" alt=""/></a> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | // { path:require('../../assets/2.jpg'),index: 2}, |
| | | // { path:require('../../assets/3.jpg'),index: 3}, |
| | | // ], |
| | | imgList:[], |
| | | imgList: [] |
| | | } |
| | | }, |
| | | created(){ |
| | |
| | | newsCategoryId:45, |
| | | size:3 |
| | | } |
| | | getNewsList(data).then(res => { |
| | | console.log(res); |
| | | getNewsList(data) |
| | | .then(res => { |
| | | console.log(res) |
| | | if(res.code == 200){ |
| | | this.imgList = res.data.records |
| | | } |
| | | }).catch(err => { |
| | | console.log(err); |
| | | }) |
| | | .catch(err => { |
| | | console.log(err) |
| | | }) |
| | | }, |
| | | gonew(id){ |