diff --git a/src/assets/images/commonBanner.png b/src/assets/images/commonBanner.png new file mode 100644 index 0000000..7380250 --- /dev/null +++ b/src/assets/images/commonBanner.png diff --git a/src/components/commonBanner.vue b/src/components/commonBanner.vue new file mode 100644 index 0000000..9a35877 --- /dev/null +++ b/src/components/commonBanner.vue @@ -0,0 +1,41 @@ + + + + + diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 69785ac..9f65152 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -4,6 +4,7 @@
+
2
@@ -245,14 +246,14 @@ export default { mounted(){ new Swiper ('.swiper-container', { - // //自动轮播 - // autoplay: { - // delay: 5000, - // //当用户滑动图片后继续自动轮播 - // disableOnInteraction: false, - // }, - // //开启循环模式 - // loop: true + //自动轮播 + autoplay: { + delay: 5000, + //当用户滑动图片后继续自动轮播 + disableOnInteraction: false, + }, + //开启循环模式 + loop: true }) } diff --git a/src/views/product/index.vue b/src/views/product/index.vue index 5ff5ab8..1df8b03 100644 --- a/src/views/product/index.vue +++ b/src/views/product/index.vue @@ -1,13 +1,49 @@