diff --git a/src/main/java/com/budwk/app/sys/controller/SysConfController.java b/src/main/java/com/budwk/app/sys/controller/SysConfController.java index 53847c45..64113147 100644 --- a/src/main/java/com/budwk/app/sys/controller/SysConfController.java +++ b/src/main/java/com/budwk/app/sys/controller/SysConfController.java @@ -103,6 +103,7 @@ public class SysConfController { private void ensureConfigValueColumn(Sys_config conf) { if (conf == null || (!"AppHomeImg".equals(conf.getConfigKey()) + && !"PCHomeImg".equals(conf.getConfigKey()) && !"AppFeaturedActivityImg".equals(conf.getConfigKey()) && !"AppFestivalBenefitImg".equals(conf.getConfigKey()))) { return; diff --git a/src/main/resources/views/layouts/v4/home/index.html b/src/main/resources/views/layouts/v4/home/index.html index 7ab4b8c3..ab8e41cc 100644 --- a/src/main/resources/views/layouts/v4/home/index.html +++ b/src/main/resources/views/layouts/v4/home/index.html @@ -10,20 +10,37 @@ layout("/layouts/v4/baseLayout.html"){ } .section-banner .banner-img { + position: relative; width: 100%; - height: auto; + height: 470px; + } + + .section-banner .banner-carousel, + .section-banner .banner-carousel .el-carousel__container { + height: 470px; } .section-banner .banner-img img { width: 100%; - /*height: 100%;*/ height: 470px; object-fit: cover; } - /* 临时屏蔽首页背景图,保留原图片节点便于恢复 */ - .section-banner .banner-img > img { - display: none; + .section-banner .banner-carousel .el-carousel__item { + overflow: hidden; + } + + .section-banner .banner-stats { + position: absolute; + left: 0; + right: 0; + bottom: 20px; + z-index: 2; + pointer-events: none; + } + + .section-banner .banner-stats .stats-section { + pointer-events: auto; } .section-wrapper { @@ -73,8 +90,19 @@ layout("/layouts/v4/baseLayout.html"){
@@ -108,7 +136,7 @@ layout("/layouts/v4/baseLayout.html"){ data(){ return{ websiteNews: [], - homeBannerList: "${config.AppHomeImg!}".split(",").map(item => item.trim()).filter(item => item) + homeBannerList: "${config.PCHomeImg!}".split(",").map(item => item.trim()).filter(item => item) } }, components: { diff --git a/src/main/resources/views/layouts/v4/home/stats.js b/src/main/resources/views/layouts/v4/home/stats.js index 2f877a69..959e36aa 100644 --- a/src/main/resources/views/layouts/v4/home/stats.js +++ b/src/main/resources/views/layouts/v4/home/stats.js @@ -9,64 +9,56 @@ const stats = {