<template> <div class="home"> <div class="top"> <mt-swipe :auto="3000"> <mt-swipe-item> <img src="../assets/images/s1.jpg" alt /> </mt-swipe-item> <mt-swipe-item> <img src="../assets/images/s2.jpg" alt /> </mt-swipe-item> <mt-swipe-item> <img src="../assets/images/s3.jpg" alt /> </mt-swipe-item> </mt-swipe> </div> <div class="mui"> <div class="ll"> <el-row type="flex" class="row-bg" justify="space-between"> <el-col :span="6"> <router-link :to="{ name: 'news_list' }" class="title"> <img src="../assets/images/menu1.png" alt=""> <div class="grid-content bg-purple">新闻资讯</div> </router-link> </el-col> <el-col :span="6"> <router-link :to="{ name: 'photo_list' }" class="title"> <img src="../assets/images/menu2.png" alt=""> <div class="grid-content bg-purple-light">图片分享</div> </router-link> </el-col> <el-col :span="6"> <img src="../assets/images/menu3.png" alt=""> <div class="grid-content bg-purple">商品购买</div> </el-col> </el-row> </div> <div class="kk"> <el-row type="flex" class="row-bg" justify="space-between"> <el-col :span="6"> <img src="../assets/images/menu4.png" alt=""> <div class="grid-content bg-purple">留言反馈</div> </el-col> <el-col :span="6"> <img src="../assets/images/menu5.png" alt=""> <div class="grid-content bg-purple-light">视频专区</div> </el-col> <el-col :span="6"> <img src="../assets/images/menu6.png" alt=""> <div class="grid-content bg-purple">联系我们</div> </el-col> </el-row> </div> </div> </div> </template> <script>
时间: 2023-10-07 19:10:25 浏览: 82
vue-swipe-actions:iOS风格的滑动动作
这是一个Vue.js的组件,包含一个顶部的图片轮播和一个菜单区域。图片轮播使用了第三方组件mt-swipe,菜单区域使用了Element UI的el-row和el-col组件。其中新闻资讯和图片分享使用了Vue Router的router-link组件进行路由跳转。留言反馈、视频专区、联系我们暂未添加路由跳转。
阅读全文