Commit aeb545dc by dhn

Merge branch 'developer' of http://47.99.244.21:9999/root/joshine into Branch_developer

parents 826687ba 91947fa2
...@@ -59,6 +59,11 @@ require(['jquery','banner'],function ($){ ...@@ -59,6 +59,11 @@ require(['jquery','banner'],function ($){
$('#left').css({'top':buttonTop,'line-height': 0}); $('#left').css({'top':buttonTop,'line-height': 0});
$('#right').css({'top':buttonTop,'line-height': 0}); $('#right').css({'top':buttonTop,'line-height': 0});
if (img_arr.length <= 1){
$('.banner1 .list').hide();
$('#left').hide();
$('#right').hide();
}
} }
}); });
</script> </script>
\ No newline at end of file
...@@ -150,16 +150,18 @@ define(['jquery'],function ($){ ...@@ -150,16 +150,18 @@ define(['jquery'],function ($){
} }
} }
if (this._obj.autoPlay){ if (this._obj.autoPlay){
this._obj.t=setInterval(()=>{ if (this._obj.img.length > 1){
this._obj.rightClick(); this._obj.t=setInterval(()=>{
},this._obj.delayTime); this._obj.rightClick();
this.hover(function () { },this._obj.delayTime);
clearInterval(that._obj.t) this.hover(function () {
},function () { clearInterval(that._obj.t)
that._obj.t=setInterval(()=>{ },function () {
that._obj.rightClick(); that._obj.t=setInterval(()=>{
},that._obj.delayTime); that._obj.rightClick();
}) },that._obj.delayTime);
})
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment