Merge pull request '优化落地页不循环点击视频不弹出下载' (#613) from feature/ladingpage_chenge_1206 into master

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/613
master
廖金灵 3 years ago
commit b333cf2dee

@ -1007,7 +1007,7 @@ function getCurUserId() {
function swiperGet2(){ function swiperGet2(){
var mySwiper = new Swiper('.mounting-box .swiper-container', { var mySwiper = new Swiper('.mounting-box .swiper-container', {
loop: true, loop: false,
observer: true,//修改swiper自己或子元素时自动初始化swiper observer: true,//修改swiper自己或子元素时自动初始化swiper
observeParents: true,//修改swiper的父元素时自动初始化swiper observeParents: true,//修改swiper的父元素时自动初始化swiper
lazyLoading:true,//图片延迟加载 lazyLoading:true,//图片延迟加载
@ -1031,7 +1031,7 @@ function getCurUserId() {
// }, // },
autoplay: { autoplay: {
delay: 2000, delay: 2000,
stopOnLastSlide: false, stopOnLastSlide: true,
disableOnInteraction: false, disableOnInteraction: false,
}, },
onSlideChangeEnd: function(swiper){ onSlideChangeEnd: function(swiper){
@ -1402,7 +1402,7 @@ function getCurUserId() {
function swiperGet(){ function swiperGet(){
var swiper1 = new Swiper('.second-box .swiper-container', { var swiper1 = new Swiper('.second-box .swiper-container', {
loop: true, loop: false,
observer: true,//修改swiper自己或子元素时自动初始化swiper observer: true,//修改swiper自己或子元素时自动初始化swiper
observeParents: true,//修改swiper的父元素时自动初始化swiper observeParents: true,//修改swiper的父元素时自动初始化swiper
// autoplayDisableOnInteraction:false,// // autoplayDisableOnInteraction:false,//
@ -1414,12 +1414,8 @@ function getCurUserId() {
}, },
autoplay: { autoplay: {
delay: 2000, delay: 2000,
stopOnLastSlide: false, stopOnLastSlide: true,
disableOnInteraction: false, disableOnInteraction: false,
},
onSlideChangeEnd: function(swiper){
// swiper.update();
swiper1.startAutoplay();
} }
}); });
}; };

@ -161,6 +161,9 @@
$('.down-link').on('click', function () { $('.down-link').on('click', function () {
$('#downTips').show(); $('#downTips').show();
}) })
$(".home-video").on("click",function() {
return false;
})
$('#downTips').on('click', function () { $('#downTips').on('click', function () {

Loading…
Cancel
Save