<section class="h_custom_data wyj_zdy_wrap" templetid="28150057" data-title="双12大牌页面-v20211128" edit-time="2021-11-28 15:00:57" code-author="wangyongjie"> <link rel="stylesheet" href="https://prom.m.gome.com.cn/html/prodhtml/channel/resource/4530/8890709744/swiper.min.css"> <script src="https://prom.m.gome.com.cn/html/prodhtml/channel/resource/4530/6288084257/wyj_custom_price.js"></script> <style> .wyj_dp_djdj { display: block; width: 7.5rem; height: 3.0467rem; } .wyj_dp_djdj .swiper-slide { width: 7.1rem; height: 3.0467rem; background-size: 100% 100%; } .swiper-container-horizontal-wzj>.swiper-pagination-bullets, .swiper-pagination-custom, .swiper-pagination-fraction { bottom: 0.2rem; left: -0.16rem; width: 100%; top: 2.35rem; } .wyj_dp_djdj .swiper-slide>div { width: 87%; height: 100%; background-size: 100% 100%; margin-left: 0.32rem; } .wyj_dp_djdj a { display: block; width: 100%; height: 100%; } .wyj_dp_djdj .swiper-pagination-bullet { background-color: transparent; border: .01rem solid #764EA2; opacity: 1 } .wyj_dp_djdj span.swiper-pagination-bullet.swiper-pagination-bullet-active { background-color: #764EA2 !important; } </style> <div class="swiper-container wyj_dp_djdj swiper-container-initialized swiper-container-horizontal-wzj"> <div class="swiper-wrapper"> <div class="swiper-slide"> <div style="background-image:url(https://gfs7.gomein.net.cn/wireless/T11RYkBsJT1RCvBVdK_950_471.png);"> <a href="https://item.m.gome.com.cn/p-pop8016768348.html"></a> </div> </div> <div class="swiper-slide"> <div style="background-image:url(https://gfs5.gomein.net.cn/wireless/T1VzdkBCAT1RCvBVdK_950_471.png);"> <a href="https://item.m.gome.com.cn/p-pop8016898401.html"></a> </div> </div> <div class="swiper-slide"> <div style="background-image:url(https://gfs8.gomein.net.cn/wireless/T1izdkB4WT1RCvBVdK_950_471.png);"> <a href="https://item.m.gome.com.cn/p-pop8016824571.html"></a> </div> </div> <div class="swiper-slide"> <div style="background-image:url(https://gfs7.gomein.net.cn/wireless/T1.FYkB4YT1RCvBVdK_950_471.png);"> <a href="https://item.m.gome.com.cn/p-pop8016926678.html"></a> </div> </div> </div> <div class="swiper-pagination swiper-pagination-bullets-wzj"><span class="swiper-pagination-bullet swiper-pagination-bullet-active"></span><span class="swiper-pagination-bullet"></span><span class="swiper-pagination-bullet"></span></div> <span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span> </div> <script> var swiperJs = document.createElement("script"); swiperJs.src = "https://prom.m.gome.com.cn/html/prodhtml/channel/resource/4530/8890709744/swiper.min.js"; document.body.appendChild(swiperJs); swiperJs.onload = function () { var wyj_dp_swiper = new Swiper('.wyj_dp_djdj', { watchSlidesProgress: true, resistanceRatio: 0, loop: true, centeredSlides: true, loopAdditionalSlides: 300, speed: 1000, pagination: { el: '.swiper-pagination', }, autoplay: { delay: 2200, disableOnInteraction: false, }, on: { init: function () { slides = this.slides for (i = 0; i < slides.length; i++) { slide = slides.eq(i) slide.css('zIndex', 100 - i); } }, resize: function (swiper) { swiper.update() }, setTranslate: function () { slides = this.slides offsetAfter = this.width * .96 for (i = 0; i < slides.length; i++) { slide = slides.eq(i) progress = slides[i].progress if (progress <= 0) { slide.transform('translate3d(' + (progress) * offsetAfter + 'px, 0, 0) scale(' + (1 - Math.abs(progress) / 20) + ')'); slide.css('opacity', (progress + 4)); } if (progress > 0) { slide.css('opacity', 1 - progress); } } }, setTransition: function (swiper, transition) { for (var i = 0; i < this.slides.length; i++) { var slide = this.slides.eq(i) slide.transition(transition); } }, }, }); } </script></section><script src="https://prom.m.gome.com.cn/html/prodhtml/channel/resource/4530/8890709744/swiper.min.js"></script>