diff --git a/public/static/web/css/style.css b/public/static/web/css/style.css index 96b717b..d829601 100644 --- a/public/static/web/css/style.css +++ b/public/static/web/css/style.css @@ -1366,7 +1366,7 @@ } .activities-detail-txt .rich-txt-added { - width: calc(100% - 556px); + width: 100%; } .activities-detail-txt .rich-img { @@ -2663,7 +2663,7 @@ } /* 手机端样式 */ -@media screen and (max-width:980px) { +@media screen and (max-width:1024px) { body { padding-top: .9rem; } @@ -3177,6 +3177,7 @@ .news-service .new-list>.swiper .title { font-size: .28rem; + max-height: 1.22rem; } .news-service .new-list>.swiper .info { diff --git a/public/static/web/js/script.js b/public/static/web/js/script.js index 8a06b3c..cce070e 100644 --- a/public/static/web/js/script.js +++ b/public/static/web/js/script.js @@ -1,11 +1,23 @@ $(function(){ + // 执行加载动画 + if (!(/msie [6|7|8|9]/i.test(navigator.userAgent))){ + var wow = new WOW({ + boxClass: 'wow', /* 执行动画的元素 class */ + animateClass: 'animated', /* animate.css 动画的 class */ + offset: 10, /* 距离可视区域多少开始执行动画 */ + mobile: true, /* 是否在移动设备执行动画 */ + live: true /* 异步加载的内容是否有效 */ + }); + wow.init(); + }; + // 滑动页面更改头部效果 - if(window.innerWidth <= 980){ + if(window.innerWidth <= 1024){ $('.header').addClass('header-white'); }else{ $(window).scroll(function(){ var scrollTop = document.documentElement.scrollTop || document.body.scrollTop; - if(scrollTop > 10){ + if(scrollTop > 30){ $('.header').addClass('header-white'); } else { $('.header').removeClass('header-white'); @@ -57,7 +69,7 @@ $(function(){ window.location.href = $(this).data('url'); } }) - if(window.innerWidth <= 980){ + if(window.innerWidth <= 1024){ // 公司新闻切换 var newsSwiper = new Swiper('.new-list>.swiper',{ loop:true,//开启循环播放 @@ -110,7 +122,7 @@ $(function(){ } // 尾部导航 - if(window.innerWidth <= 980){ + if(window.innerWidth <= 1024){ $(document).on('click','.foot-left>.item>a',function() { if(!$(this).parent().hasClass('active')){ $('.foot-left>.item').removeClass('active'); @@ -204,7 +216,7 @@ $(function(){ // 友邻市集活动切换 if($('.market-swiper').length){ - if(window.innerWidth > 980){ + if(window.innerWidth > 1024){ var marketSwiper = new Swiper('.market-swiper',{ loop:true,//开启循环播放 autoplay: {//开启自动播放 @@ -230,22 +242,8 @@ $(function(){ } } - - - // 执行加载动画 - if (!(/msie [6|7|8|9]/i.test(navigator.userAgent))){ - var wow = new WOW({ - boxClass: 'wow', /* 执行动画的元素 class */ - animateClass: 'animated', /* animate.css 动画的 class */ - offset: 10, /* 距离可视区域多少开始执行动画 */ - mobile: true, /* 是否在移动设备执行动画 */ - live: true /* 异步加载的内容是否有效 */ - }); - wow.init(); - }; - // 手机导航按钮 - if(window.innerWidth <= 980){ + if(window.innerWidth <= 1024){ $(document).on('click','.head .head-btn',function() { if ($('.head .head-btn').attr('class') == 'head-btn cur') { $('.head .head-btn').removeClass('cur'); @@ -266,7 +264,7 @@ $(function(){ } // 手机端二级导航 - if(window.innerWidth <= 980){ + if(window.innerWidth <= 1024){ if($('.sub-nav-bg').length){ let parentWidth = $('.sub-nav-bg').width(); let offsetLeft = $('.sub-nav>.active').offset().left; diff --git a/view/article/service_detail.html b/view/article/service_detail.html index c680823..aa95f90 100755 --- a/view/article/service_detail.html +++ b/view/article/service_detail.html @@ -30,7 +30,7 @@ $childrenMenu = Category::getChildrenByParentId($topCategoryId);
-
+

{$item.title}

{$item.sub_title}
返回列表 diff --git a/view/page/market.html b/view/page/market.html index cc1fb0f..cb4a7ce 100755 --- a/view/page/market.html +++ b/view/page/market.html @@ -44,8 +44,8 @@ $items = Article::getList(Category::CATEGORY_MARKET_SERVICE, $category['number'] {foreach $serviceImages as $k => $service} {$service.alt ?? ''} -

{$service.title ?? ''}

-

{$service.desc ?? ''}

+

{$service.title ?? ''}

+

{$service.desc ?? ''}

{/foreach} {/if}