From 3872647350f081ad1e3a5991327c4f64101589f5 Mon Sep 17 00:00:00 2001 From: liudan <18634735655@163.com> Date: Tue, 20 Dec 2022 23:44:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/service13.html | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/service/service13.html b/service/service13.html index 6841645..18977cf 100644 --- a/service/service13.html +++ b/service/service13.html @@ -96,8 +96,8 @@
- - + +
@@ -184,6 +184,7 @@ // } // }) //全屏滚动 + let timer; $('#about_main').fullpage({ 'navigation': true, scrollBar: false, @@ -196,11 +197,17 @@ loopHorizontal: true, afterLoad: function(anchorLink, index){ console.log(index) + if(index == 2){ - $('.gifimg').attr('src',`../images/业务版图优化-2动图.gif?time=${new Date().getTime()}`) - setTimeout(()=>{ - $('.gifimg').attr('src',`../images/static.png`) - },8000) + + timer = setTimeout(()=>{ + $('.gifimg').attr('src',`../images/static.png`); + clearTimeout(timer) + },9000) + }else{ + clearTimeout(timer) + $('.gifimg').attr('src',`../images/static.png`); + } }, afterSlideLoad:function(){ @@ -208,6 +215,10 @@ afterRender: function(){ }, onLeave: function(index, direction){ + console.log("iii",index,direction) + if(direction==2){ + $('.gifimg').attr('src',`../images/业务版图优化-2动图.gif?time=${new Date().getTime()}`) + } } })