From 732db99e9a6629e305970b4e3528c8ff3805a1b6 Mon Sep 17 00:00:00 2001 From: shijing Date: Sat, 18 Sep 2021 13:34:03 +0800 Subject: [PATCH] banner --- pages/tabBar/home/home.vue | 15 +++++++++++---- static/img/1.jpg | Bin 2532 -> 0 bytes static/img/1.png | Bin 0 -> 123547 bytes static/img/2.jpg | Bin 2406 -> 0 bytes static/img/2.png | Bin 0 -> 126158 bytes static/img/3.jpg | Bin 4044 -> 0 bytes static/img/3.png | Bin 0 -> 85261 bytes 7 files changed, 11 insertions(+), 4 deletions(-) delete mode 100644 static/img/1.jpg create mode 100644 static/img/1.png delete mode 100644 static/img/2.jpg create mode 100644 static/img/2.png delete mode 100644 static/img/3.jpg create mode 100644 static/img/3.png diff --git a/pages/tabBar/home/home.vue b/pages/tabBar/home/home.vue index db6531e..eeb90c6 100644 --- a/pages/tabBar/home/home.vue +++ b/pages/tabBar/home/home.vue @@ -130,9 +130,9 @@ export default { currentSwiper: 0, // 轮播图片 swiperList: [ - { id: 1, src: 'url1', img: '/static/img/1.jpg' }, - { id: 2, src: 'url2', img: '/static/img/2.jpg' }, - { id: 3, src: 'url3', img: '/static/img/3.jpg' } + // { id: 0, src: 'url1', img: '/static/img/1.png' }, + // { id: 1, src: 'url2', img: '/static/img/2.png' }, + // { id: 2, src: 'url3', img: '/static/img/3.png' } ], // 分类菜单 categoryList: [ @@ -303,7 +303,11 @@ export default { getbanners(){ this.$u.api.getBanners().then(res=>{ for(var i=0;i