diff --git a/pages/home/home-page.vue b/pages/home/home-page.vue index 8d27a1f..27fa1be 100644 --- a/pages/home/home-page.vue +++ b/pages/home/home-page.vue @@ -4,8 +4,7 @@ - + @@ -16,7 +15,7 @@ - + @@ -149,4 +148,11 @@ .swiper { height: 1000px; } + + .main-bg { + display: flex; + justify-content: center; + width: 100%; + background-image: url('@@:static/bg.png'); + } \ No newline at end of file diff --git a/uni.scss b/uni.scss index 26017a6..82d71d7 100644 --- a/uni.scss +++ b/uni.scss @@ -72,6 +72,7 @@ $baseurl: "https://guyu-1308826010.cos.ap-shanghai.myqcloud.com/static/"; background-size: cover; background-repeat: no-repeat; background-position: center; + background-attachment: fixed; } .column {