zz-shopify-components 0.16.3-beta.2 → 0.16.3-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -86,9 +86,11 @@
|
|
|
86
86
|
}
|
|
87
87
|
{% endschema %}
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
{% assign autoplay = true %}
|
|
90
|
+
{% assign muted = true %}
|
|
90
91
|
{% if block.settings.if_click_play %}
|
|
91
92
|
{% assign autoplay = false %}
|
|
93
|
+
{% assign muted = false %}
|
|
92
94
|
{% endif %}
|
|
93
95
|
|
|
94
96
|
|
|
@@ -101,7 +103,7 @@
|
|
|
101
103
|
class: 'ratio-video tw-w-full tw-h-auto',
|
|
102
104
|
autoplay: autoplay,
|
|
103
105
|
loop: true,
|
|
104
|
-
muted:
|
|
106
|
+
muted: muted
|
|
105
107
|
%}
|
|
106
108
|
{% if block.settings.if_click_play %}
|
|
107
109
|
<div class="video-play-btn tw-absolute tw-top-[50%] tw-left-[50%] tw-translate-x-[-50%] tw-translate-y-[-50%]">
|
|
@@ -80,6 +80,8 @@
|
|
|
80
80
|
@media screen and (max-width: 1023px) {
|
|
81
81
|
#shopify-block-{{block.id}} .zz-video-swiper-preview {
|
|
82
82
|
padding-bottom: 68px;
|
|
83
|
+
padding-left: 20px;
|
|
84
|
+
padding-right: 20px;
|
|
83
85
|
}
|
|
84
86
|
|
|
85
87
|
#shopify-block-{{block.id}} .zz-video-swiper-preview .swiper-slide .banner-item::after {
|
|
@@ -217,12 +219,9 @@
|
|
|
217
219
|
let progressTimer = null;
|
|
218
220
|
|
|
219
221
|
const prevSwiper = new Swiper(swiperClassName, {
|
|
220
|
-
{% if block.settings.if_loop == true %}
|
|
221
|
-
loop: true,
|
|
222
|
-
{% endif %}
|
|
223
222
|
slidesPerView: 'auto',
|
|
224
223
|
initialSlide: isDesktop ? 1 : 0,
|
|
225
|
-
centeredSlides: true,
|
|
224
|
+
centeredSlides: isDesktop ? true : false,
|
|
226
225
|
spaceBetween: isDesktop ? 24 : 12,
|
|
227
226
|
navigation: {
|
|
228
227
|
nextEl: '.swiper-button-next',
|
|
@@ -442,12 +441,6 @@
|
|
|
442
441
|
"default": "#000000",
|
|
443
442
|
"label": "移动端轮播导航圆圈颜色"
|
|
444
443
|
},
|
|
445
|
-
{
|
|
446
|
-
"type": "checkbox",
|
|
447
|
-
"id": "if_loop",
|
|
448
|
-
"label": "是否循环播放",
|
|
449
|
-
"default": false
|
|
450
|
-
},
|
|
451
444
|
{
|
|
452
445
|
"type": "checkbox",
|
|
453
446
|
"id": "if_autoplay",
|