1var ecblib = ecblib || {}; 2ecblib.customize = ecblib.customize || {}; 3ecblib.customize.goods = ecblib.customize.goods || {}; 4 5(function () { 6 'use strict'; 7 8 var _goods = ecblib.customize.goods; 9 10 window.LightningRecommendEventV2 = window.LightningRecommendEventV2 || []; 11 window.LightningRecommendEventV2.push({ 12 mount: function(evt){ 13 if(evt.tagsCode == "modal-recommend-items" && this.nodeType == Node.ELEMENT_NODE){ 14 if(window.matchMedia && window.matchMedia('(max-width: 1199px)').matches){ 15 if(evt.goodsList.length > "2"){ 16 const mySwiper = new Swiper('.carousel_cart .swiper', { 17 slidesPerView: 2.5, 18 spaceBetween: 5, 19 loop: true, 20 loopAdditionalSlides: 2, 21 grabCursor: true, 22 navigation: { 23 nextEl: '.carousel_cart .swiper-button-next', 24 prevEl: '.carousel_cart .swiper-button-prev', 25 }, 26 breakpoints: { 27 600: { 28 slidesPerView: 3, 29 }, 30 1025: { 31 slidesPerView: 6, 32 spaceBetween: 5, 33 } 34 }, 35 }); 36 }else{ 37 const mySwiper = new Swiper('.carousel_cart .swiper', { 38 slidesPerView: 2.5, 39 spaceBetween: 5, 40 loop: false, 41 loopAdditionalSlides: 2, 42 grabCursor: true, 43 navigation: { 44 nextEl: '.carousel_cart .swiper-button-next', 45 prevEl: '.carousel_cart .swiper-button-prev', 46 }, 47 breakpoints: { 48 600: { 49 slidesPerView: 3, 50 }, 51 1025: { 52 slidesPerView: 6, 53 spaceBetween: 5, 54 } 55 }, 56 }); 57 } 58 }else{ 59 if(evt.goodsList.length > "6"){ 60 const mySwiper = new Swiper('.carousel_cart .swiper', { 61 slidesPerView: 2.5, 62 spaceBetween: 5, 63 loop: true, 64 loopAdditionalSlides: 2, 65 grabCursor: true, 66 navigation: { 67 nextEl: '.carousel_cart .swiper-button-next', 68 prevEl: '.carousel_cart .swiper-button-prev', 69 }, 70 breakpoints: { 71 600: { 72 slidesPerView: 3, 73 }, 74 1025: { 75 slidesPerView: 6, 76 spaceBetween: 5, 77 } 78 }, 79 }); 80 }else{ 81 const mySwiper = new Swiper('.carousel_cart .swiper', { 82 slidesPerView: 2.5, 83 spaceBetween: 5, 84 loop: false, 85 loopAdditionalSlides: 2, 86 grabCursor: true, 87 navigation: { 88 nextEl: '.carousel_cart .swiper-button-next', 89 prevEl: '.carousel_cart .swiper-button-prev', 90 }, 91 breakpoints: { 92 600: { 93 slidesPerView: 3, 94 }, 95 1025: { 96 slidesPerView: 6, 97 spaceBetween: 5, 98 } 99 }, 100 }); 101 } 102 } 103 } 104 if(window.matchMedia && window.matchMedia('(max-width: 1199px)').matches 105 && (evt.tagsCode == "page-recommend-items" || evt.tagsCode == "my-page-recommend-items" || evt.tagsCode == "ice-ranking-Aireco-template") && this.nodeType == Node.ELEMENT_NODE){ 106 const mySwiper = new Swiper('.carousel_1 .swiper', { 107 slidesPerView: 2.5, 108 spaceBetween: 5, 109 loop: true, 110 loopAdditionalSlides: 2, 111 grabCursor: true, 112 navigation: { 113 nextEl: '.carousel_1 .swiper-button-next', 114 prevEl: '.carousel_1 .swiper-button-prev', 115 }, 116 breakpoints: { 117 600: { 118 slidesPerView: 3, 119 }, 120 1025: { 121 slidesPerView: 6, 122 spaceBetween: 5, 123 } 124 }, 125 }); 126 } 127 } 128 });
129}());
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.