zz-shopify-components 0.22.1-beta.2 → 0.22.1-beta.3
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.
- package/blocks/zz-button-v2.liquid +9 -5
- package/blocks/zz-button.liquid +2 -2
- package/blocks/zz-flex-layout-bg-block.liquid +26 -2
- package/blocks/zz-flex-layout-block.liquid +26 -2
- package/blocks/zz-flex-layout-widget.liquid +22 -15
- package/blocks/zz-full-screen-swiper.liquid +23 -0
- package/blocks/zz-modal-block.liquid +22 -2
- package/blocks/zz-video-img-list.liquid +20 -0
- package/blocks/zz-video-swiper-perview.liquid +24 -1
- package/package.json +1 -1
- package/sections/zz-FAQ.liquid +23 -2
- package/sections/zz-flex-layout-section.liquid +21 -7
- package/sections/zz-modal.liquid +17 -2
- package/sections/zz-swiper-banner.liquid +24 -5
- package/sections/zz-swiper-gallery.liquid +27 -6
- package/sections/zz-video-collapse-swiper.liquid +21 -2
- package/sections/zz-video-tab-swiper.liquid +19 -0
- package/snippets/zz-button-v2.liquid +4 -3
|
@@ -164,7 +164,8 @@
|
|
|
164
164
|
{
|
|
165
165
|
"type": "text",
|
|
166
166
|
"id": "btn_id",
|
|
167
|
-
"label": "按钮id
|
|
167
|
+
"label": "按钮id",
|
|
168
|
+
"info": "按钮的唯一id,用于代码控制、埋点统计等"
|
|
168
169
|
},
|
|
169
170
|
{
|
|
170
171
|
"type": "text",
|
|
@@ -175,6 +176,7 @@
|
|
|
175
176
|
"type": "text",
|
|
176
177
|
"id": "click_event_class_name",
|
|
177
178
|
"label": "点击事件统计 classname",
|
|
179
|
+
"info": "弃用,请使用”按钮id"
|
|
178
180
|
},
|
|
179
181
|
],
|
|
180
182
|
"presets": [
|
|
@@ -226,11 +228,13 @@
|
|
|
226
228
|
document.addEventListener('DOMContentLoaded', (event) => {
|
|
227
229
|
const btn = document.getElementsByClassName('{{ btn_class }}')
|
|
228
230
|
if(btn && btn[0]) {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
231
|
+
{% if block.settings.click_event_class_name != blank %}
|
|
232
|
+
btn[0].addEventListener('click', (event) => {
|
|
233
|
+
window.zzAnalytics && window.zzAnalytics.trackEvent("{{ block.settings.click_event_class_name }}", {
|
|
234
|
+
timestamp: new Date().toISOString(),
|
|
235
|
+
});
|
|
232
236
|
});
|
|
233
|
-
}
|
|
237
|
+
{% endif %}
|
|
234
238
|
{% if block.settings.function_type == 'link_map' %}
|
|
235
239
|
if(window.bindSiteJump) {
|
|
236
240
|
bindSiteJump(btn[0], {{ block.settings.links | json }})
|
package/blocks/zz-button.liquid
CHANGED
|
@@ -352,7 +352,24 @@
|
|
|
352
352
|
"id": "overflow_x_hidden",
|
|
353
353
|
"label": "是否禁止横轴移动",
|
|
354
354
|
"default": true
|
|
355
|
-
}
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"type": "header",
|
|
358
|
+
"content": "统计相关"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"type": "text",
|
|
362
|
+
"id": "module_id",
|
|
363
|
+
"label": "唯一业务id",
|
|
364
|
+
"info": "需要唯一不要与其他模块重复,用户定位、埋点统计、代码隐藏控制等"
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"type": "checkbox",
|
|
368
|
+
"id": "is_exposure",
|
|
369
|
+
"label": "是否曝光统计",
|
|
370
|
+
"default": false,
|
|
371
|
+
"info": "勾选后会对Block模块进行曝光统计埋点, 必须填写唯一业务id"
|
|
372
|
+
},
|
|
356
373
|
|
|
357
374
|
],
|
|
358
375
|
"blocks": [
|
|
@@ -611,7 +628,14 @@
|
|
|
611
628
|
|
|
612
629
|
{% assign layout_class = 'bg-layout' | append: block.id %}
|
|
613
630
|
|
|
614
|
-
<div
|
|
631
|
+
<div
|
|
632
|
+
{% if block.settings.module_id != blank %}
|
|
633
|
+
data-track-zz-block="{{ block.settings.module_id }}"
|
|
634
|
+
{% endif %}
|
|
635
|
+
{% if block.settings.is_exposure != false %}
|
|
636
|
+
data-track-zz-exposure="true"
|
|
637
|
+
{% endif %}
|
|
638
|
+
class="bg-responsive-block-layout {{ layout_class }} {{ block.settings.self_animation }} {{ block.settings.child_animation }}">
|
|
615
639
|
|
|
616
640
|
{% content_for 'blocks' %}
|
|
617
641
|
</div>
|
|
@@ -228,7 +228,6 @@
|
|
|
228
228
|
"label": "是否禁止横轴移动",
|
|
229
229
|
"default": true
|
|
230
230
|
},
|
|
231
|
-
|
|
232
231
|
{
|
|
233
232
|
"type": "text",
|
|
234
233
|
"id": "custom_class",
|
|
@@ -247,6 +246,24 @@
|
|
|
247
246
|
"id": "offset_top_mobile",
|
|
248
247
|
"info": "单位:px, 针对一些覆盖到上面组件的情况"
|
|
249
248
|
},
|
|
249
|
+
{
|
|
250
|
+
"type": "header",
|
|
251
|
+
"content": "统计相关"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"type": "text",
|
|
255
|
+
"id": "module_id",
|
|
256
|
+
"label": "唯一业务id",
|
|
257
|
+
"info": "需要唯一不要与其他模块重复,用户定位、埋点统计、代码隐藏控制等"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"type": "checkbox",
|
|
261
|
+
"id": "is_exposure",
|
|
262
|
+
"label": "是否曝光统计",
|
|
263
|
+
"default": false,
|
|
264
|
+
"info": "勾选后会对Block模块进行曝光统计埋点, 必须填写唯一业务id"
|
|
265
|
+
},
|
|
266
|
+
|
|
250
267
|
|
|
251
268
|
|
|
252
269
|
],
|
|
@@ -611,6 +628,13 @@
|
|
|
611
628
|
}
|
|
612
629
|
</style>
|
|
613
630
|
|
|
614
|
-
<div
|
|
631
|
+
<div
|
|
632
|
+
{% if block.settings.module_id != blank %}
|
|
633
|
+
data-track-zz-block="{{ block.settings.module_id }}"
|
|
634
|
+
{% endif %}
|
|
635
|
+
{% if block.settings.is_exposure != false %}
|
|
636
|
+
data-track-zz-exposure="true"
|
|
637
|
+
{% endif %}
|
|
638
|
+
class="flex-layout-block-container {{ block.settings.self_animation }} {{ block.settings.child_animation }} {{ block.settings.custom_class }}">
|
|
615
639
|
{% content_for 'blocks' %}
|
|
616
640
|
</div>
|
|
@@ -211,25 +211,25 @@
|
|
|
211
211
|
],
|
|
212
212
|
"default": "none-animation"
|
|
213
213
|
},
|
|
214
|
-
{
|
|
215
|
-
"type": "select",
|
|
216
|
-
"id": "self_animation",
|
|
217
|
-
"label": "自身动画",
|
|
218
|
-
"options": [
|
|
219
|
-
{ "value": "none-animation", "label": "无动画" },
|
|
220
|
-
{ "value": "fade-in-content", "label": "从下往上显示" },
|
|
221
|
-
{ "value": "fade-in-from-left-content", "label": "从左往右显示" },
|
|
222
|
-
{ "value": "fade-in-from-right-content", "label": "从右往左显示" },
|
|
223
|
-
{ "value": "slow-reveal-content", "label": "跟随页面滚动缓慢显示" }
|
|
224
|
-
],
|
|
225
|
-
"default": "none-animation"
|
|
226
|
-
},
|
|
227
214
|
{
|
|
228
215
|
"type": "text",
|
|
229
216
|
"id": "custom_class",
|
|
230
217
|
"label": "自定义class",
|
|
231
218
|
"info": "自定义外层class,自定义样式"
|
|
232
|
-
}
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"type": "text",
|
|
222
|
+
"id": "module_id",
|
|
223
|
+
"label": "唯一业务id",
|
|
224
|
+
"info": "需要唯一不要与其他模块重复,用户定位、埋点统计、代码隐藏控制等"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"type": "checkbox",
|
|
228
|
+
"id": "is_exposure",
|
|
229
|
+
"label": "是否曝光统计",
|
|
230
|
+
"default": false,
|
|
231
|
+
"info": "勾选后会对section模块进行曝光统计埋点, 必须填写唯一业务id"
|
|
232
|
+
},
|
|
233
233
|
],
|
|
234
234
|
"blocks": [
|
|
235
235
|
{
|
|
@@ -340,7 +340,14 @@
|
|
|
340
340
|
</style>
|
|
341
341
|
|
|
342
342
|
|
|
343
|
-
<div
|
|
343
|
+
<div
|
|
344
|
+
{% if block.settings.module_id != blank %}
|
|
345
|
+
data-track-zz-block="{{ block.settings.module_id }}"
|
|
346
|
+
{% endif %}
|
|
347
|
+
{% if block.settings.is_exposure != false %}
|
|
348
|
+
data-track-zz-exposure="true"
|
|
349
|
+
{% endif %}
|
|
350
|
+
class="flex-layout-widget-container {{ block.settings.child_animation }} {{ block.settings.custom_class }}">
|
|
344
351
|
|
|
345
352
|
{% content_for 'blocks' %}
|
|
346
353
|
</div>
|
|
@@ -99,6 +99,12 @@
|
|
|
99
99
|
|
|
100
100
|
|
|
101
101
|
<div
|
|
102
|
+
{% if block.settings.module_id != blank %}
|
|
103
|
+
data-track-zz-block="{{ block.settings.module_id }}"
|
|
104
|
+
{% endif %}
|
|
105
|
+
{% if block.settings.is_exposure != false %}
|
|
106
|
+
data-track-zz-exposure="true"
|
|
107
|
+
{% endif %}
|
|
102
108
|
class='zz-full-screen-swiper zz-full-screen-swiper-{{ block.id }}'
|
|
103
109
|
>
|
|
104
110
|
<div class='zz-swiper-wrapper'>
|
|
@@ -283,6 +289,23 @@
|
|
|
283
289
|
{ "value": "light", "label": "白色" },
|
|
284
290
|
],
|
|
285
291
|
"default": "dark"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"type": "header",
|
|
295
|
+
"content": "统计相关"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"type": "text",
|
|
299
|
+
"id": "module_id",
|
|
300
|
+
"label": "唯一业务id",
|
|
301
|
+
"info": "需要唯一不要与其他模块重复,用户定位、埋点统计、代码隐藏控制等"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"type": "checkbox",
|
|
305
|
+
"id": "is_exposure",
|
|
306
|
+
"label": "是否曝光统计",
|
|
307
|
+
"default": false,
|
|
308
|
+
"info": "勾选后会对Block模块进行曝光统计埋点, 必须填写唯一业务id"
|
|
286
309
|
},
|
|
287
310
|
],
|
|
288
311
|
"blocks": [
|
|
@@ -20,7 +20,14 @@
|
|
|
20
20
|
}
|
|
21
21
|
</style>
|
|
22
22
|
|
|
23
|
-
<zz-modal
|
|
23
|
+
<zz-modal
|
|
24
|
+
{% if block.settings.module_id != blank %}
|
|
25
|
+
data-track-zz-block="{{ block.settings.module_id }}"
|
|
26
|
+
{% endif %}
|
|
27
|
+
{% if block.settings.is_exposure != false %}
|
|
28
|
+
data-track-zz-exposure="true"
|
|
29
|
+
{% endif %}
|
|
30
|
+
close-btn-color="close-btn-{{ block.settings.close_btn_color }}" {% if block.settings.sheet_on_mobile %} sheet-on-mobile {% endif %} {% if block.settings.no_backdrop_close %} no-backdrop-close {% endif %} id="{{ block.settings.modal_id }}"{% unless block.settings.show_header %} no-header{% endunless %}{% unless block.settings.show_footer %} no-footer{% endunless %}>
|
|
24
31
|
{% if block.settings.show_header %}
|
|
25
32
|
<div slot="header" class="tw-text-[24px] tw-font-semibold">{{ block.settings.header_text }}</div>
|
|
26
33
|
{% endif %}
|
|
@@ -157,7 +164,20 @@
|
|
|
157
164
|
"max": 64,
|
|
158
165
|
"step": 2,
|
|
159
166
|
"default": 20
|
|
160
|
-
}
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"type": "text",
|
|
170
|
+
"id": "module_id",
|
|
171
|
+
"label": "唯一业务id",
|
|
172
|
+
"info": "需要唯一不要与其他模块重复,用户定位、埋点统计、代码隐藏控制等"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"type": "checkbox",
|
|
176
|
+
"id": "is_exposure",
|
|
177
|
+
"label": "是否曝光统计",
|
|
178
|
+
"default": false,
|
|
179
|
+
"info": "勾选后会对section模块进行曝光统计埋点, 必须填写唯一业务id"
|
|
180
|
+
},
|
|
161
181
|
|
|
162
182
|
],
|
|
163
183
|
"blocks": [
|
|
@@ -63,6 +63,12 @@
|
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
<div
|
|
66
|
+
{% if block.settings.module_id != blank %}
|
|
67
|
+
data-track-zz-block="{{ block.settings.module_id }}"
|
|
68
|
+
{% endif %}
|
|
69
|
+
{% if block.settings.is_exposure != false %}
|
|
70
|
+
data-track-zz-exposure="true"
|
|
71
|
+
{% endif %}
|
|
66
72
|
class='zz-video-img-list-swiper zz-video-img-list-swiper-{{ block.id }}'
|
|
67
73
|
>
|
|
68
74
|
<div class='zz-swiper-wrapper swiper-wrapper'>
|
|
@@ -151,6 +157,20 @@
|
|
|
151
157
|
],
|
|
152
158
|
"default": "light"
|
|
153
159
|
},
|
|
160
|
+
{
|
|
161
|
+
"type": "text",
|
|
162
|
+
"id": "module_id",
|
|
163
|
+
"label": "唯一业务id",
|
|
164
|
+
"info": "需要唯一不要与其他模块重复,用户定位、埋点统计、代码隐藏控制等"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"type": "checkbox",
|
|
168
|
+
"id": "is_exposure",
|
|
169
|
+
"label": "是否曝光统计",
|
|
170
|
+
"default": false,
|
|
171
|
+
"info": "勾选后会对section模块进行曝光统计埋点, 必须填写唯一业务id"
|
|
172
|
+
},
|
|
173
|
+
|
|
154
174
|
],
|
|
155
175
|
"blocks": [
|
|
156
176
|
{
|
|
@@ -176,6 +176,12 @@
|
|
|
176
176
|
</style>
|
|
177
177
|
|
|
178
178
|
<div
|
|
179
|
+
{% if block.settings.module_id != blank %}
|
|
180
|
+
data-track-zz-block="{{ block.settings.module_id }}"
|
|
181
|
+
{% endif %}
|
|
182
|
+
{% if block.settings.is_exposure != false %}
|
|
183
|
+
data-track-zz-exposure="true"
|
|
184
|
+
{% endif %}
|
|
179
185
|
class='zz-video-swiper-preview zz-video-swiper-preview-{{ block.id }}'
|
|
180
186
|
>
|
|
181
187
|
<div class='swiper-wrapper'>
|
|
@@ -527,7 +533,24 @@
|
|
|
527
533
|
"id": "has_title_and_content",
|
|
528
534
|
"label": "是否有标题与内容",
|
|
529
535
|
"default": true
|
|
530
|
-
}
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"type": "header",
|
|
539
|
+
"content": "统计相关"
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"type": "text",
|
|
543
|
+
"id": "module_id",
|
|
544
|
+
"label": "唯一业务id",
|
|
545
|
+
"info": "需要唯一不要与其他模块重复,用户定位、埋点统计、代码隐藏控制等"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"type": "checkbox",
|
|
549
|
+
"id": "is_exposure",
|
|
550
|
+
"label": "是否曝光统计",
|
|
551
|
+
"default": false,
|
|
552
|
+
"info": "勾选后会对Block模块进行曝光统计埋点, 必须填写唯一业务id"
|
|
553
|
+
},
|
|
531
554
|
],
|
|
532
555
|
"blocks": [
|
|
533
556
|
{
|
package/package.json
CHANGED
package/sections/zz-FAQ.liquid
CHANGED
|
@@ -39,7 +39,14 @@
|
|
|
39
39
|
}
|
|
40
40
|
{%- endstyle -%}
|
|
41
41
|
|
|
42
|
-
<div
|
|
42
|
+
<div
|
|
43
|
+
{% if section.settings.module_id != blank %}
|
|
44
|
+
data-track-zz-section="{{ section.settings.module_id }}"
|
|
45
|
+
{% endif %}
|
|
46
|
+
{% if section.settings.is_exposure != false %}
|
|
47
|
+
data-track-zz-exposure="true"
|
|
48
|
+
{% endif %}
|
|
49
|
+
class="faq-custom max-lg:tw-px-[20px] lg:tw-mx-auto lg:tw-w-[95.3125vw] xl:tw-w-[1220px] fade-in-box">
|
|
43
50
|
{% render 'content-h2',
|
|
44
51
|
title_color: section.settings.title_color,
|
|
45
52
|
title: section.settings.title,
|
|
@@ -202,7 +209,21 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
|
202
209
|
"unit": "px",
|
|
203
210
|
"label": "底部填充(Mobile)",
|
|
204
211
|
"default": 48
|
|
205
|
-
}
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"type": "text",
|
|
215
|
+
"id": "module_id",
|
|
216
|
+
"label": "唯一业务id",
|
|
217
|
+
"info": "需要唯一不要与其他模块重复,用户定位、埋点统计、代码隐藏控制等"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"type": "checkbox",
|
|
221
|
+
"id": "is_exposure",
|
|
222
|
+
"label": "是否曝光统计",
|
|
223
|
+
"default": false,
|
|
224
|
+
"info": "勾选后会对section模块进行曝光统计埋点, 必须填写唯一业务id"
|
|
225
|
+
},
|
|
226
|
+
|
|
206
227
|
],
|
|
207
228
|
"blocks": [
|
|
208
229
|
{
|
|
@@ -177,17 +177,24 @@
|
|
|
177
177
|
"default": 0,
|
|
178
178
|
"info": "单位:px,正数,首屏时候会用到"
|
|
179
179
|
},
|
|
180
|
-
|
|
181
180
|
{
|
|
182
181
|
"type": "text",
|
|
183
|
-
"id": "
|
|
184
|
-
"label": "
|
|
185
|
-
"info": "
|
|
182
|
+
"id": "module_id",
|
|
183
|
+
"label": "唯一业务id",
|
|
184
|
+
"info": "需要唯一不要与其他模块重复,用户定位、埋点统计、代码隐藏控制等"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"type": "checkbox",
|
|
188
|
+
"id": "is_exposure",
|
|
189
|
+
"label": "是否曝光统计",
|
|
190
|
+
"default": false,
|
|
191
|
+
"info": "勾选后会对该模块进行曝光统计埋点, 必须填写唯一业务id"
|
|
186
192
|
},
|
|
187
193
|
{
|
|
188
194
|
"type": "text",
|
|
189
|
-
"id": "
|
|
190
|
-
"label": "
|
|
195
|
+
"id": "module_name",
|
|
196
|
+
"label": "模块名称",
|
|
197
|
+
"info": "用于定位到本模块,可多个section使用同一名称"
|
|
191
198
|
},
|
|
192
199
|
],
|
|
193
200
|
"blocks": [
|
|
@@ -267,7 +274,14 @@
|
|
|
267
274
|
}
|
|
268
275
|
</style>
|
|
269
276
|
|
|
270
|
-
<div
|
|
277
|
+
<div
|
|
278
|
+
{% if section.settings.module_id != blank %}
|
|
279
|
+
id="{{ section.settings.module_id }}"
|
|
280
|
+
data-track-zz-section="{{ section.settings.module_id }}"
|
|
281
|
+
{% endif %}
|
|
282
|
+
{% if section.settings.is_exposure != false%}
|
|
283
|
+
data-track-zz-exposure="true"
|
|
284
|
+
{% endif %}
|
|
271
285
|
class="responsive-section-layout {{ section.settings.animation }}"
|
|
272
286
|
{% if section.settings.module_name != blank %}data-zz-module-name="{{ section.settings.module_name }}"{% endif %}>
|
|
273
287
|
{% content_for 'blocks' %}
|
package/sections/zz-modal.liquid
CHANGED
|
@@ -15,7 +15,14 @@
|
|
|
15
15
|
}
|
|
16
16
|
</style>
|
|
17
17
|
|
|
18
|
-
<zz-modal
|
|
18
|
+
<zz-modal
|
|
19
|
+
{% if section.settings.modal_id != blank %}
|
|
20
|
+
data-track-zz-section="{{ section.settings.modal_id }}"
|
|
21
|
+
{% endif %}
|
|
22
|
+
{% if section.settings.is_exposure != false %}
|
|
23
|
+
data-track-zz-exposure="true"
|
|
24
|
+
{% endif %}
|
|
25
|
+
close-btn-color="close-btn-{{ section.settings.close_btn_color }}" {% if section.settings.sheet_on_mobile %} sheet-on-mobile {% endif %} {% if section.settings.no_backdrop_close %} no-backdrop-close {% endif %} id="{{ section.settings.modal_id }}"{% unless section.settings.show_header %} no-header{% endunless %}{% unless section.settings.show_footer %} no-footer{% endunless %}>
|
|
19
26
|
{% if section.settings.show_header %}
|
|
20
27
|
<div slot="header" class="tw-text-[24px] tw-font-semibold">{{ section.settings.header_text }}</div>
|
|
21
28
|
{% endif %}
|
|
@@ -47,9 +54,17 @@
|
|
|
47
54
|
{
|
|
48
55
|
"type": "text",
|
|
49
56
|
"id": "modal_id",
|
|
50
|
-
"label": "弹窗id
|
|
57
|
+
"label": "弹窗id (必填),业务id",
|
|
51
58
|
"default": "demo-modal"
|
|
52
59
|
},
|
|
60
|
+
{
|
|
61
|
+
"type": "checkbox",
|
|
62
|
+
"id": "is_exposure",
|
|
63
|
+
"label": "是否曝光统计",
|
|
64
|
+
"default": false,
|
|
65
|
+
"info": "勾选后会对section模块进行曝光统计埋点, 必须填写唯一业务id"
|
|
66
|
+
},
|
|
67
|
+
|
|
53
68
|
{
|
|
54
69
|
"type": "select",
|
|
55
70
|
"id": "close_btn_color",
|
|
@@ -174,7 +174,20 @@
|
|
|
174
174
|
"unit": "px",
|
|
175
175
|
"label": "t:sections.all.padding.padding_bottom",
|
|
176
176
|
"default": 0
|
|
177
|
-
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"type": "text",
|
|
180
|
+
"id": "module_id",
|
|
181
|
+
"label": "唯一业务id",
|
|
182
|
+
"info": "需要唯一不要与其他模块重复,用户定位、埋点统计、代码隐藏控制等"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"type": "checkbox",
|
|
186
|
+
"id": "is_exposure",
|
|
187
|
+
"label": "是否曝光统计",
|
|
188
|
+
"default": false,
|
|
189
|
+
"info": "勾选后会对section模块进行曝光统计埋点, 必须填写唯一业务id"
|
|
190
|
+
},
|
|
178
191
|
],
|
|
179
192
|
"blocks": [
|
|
180
193
|
{
|
|
@@ -571,7 +584,14 @@
|
|
|
571
584
|
{% endschema %}
|
|
572
585
|
|
|
573
586
|
|
|
574
|
-
<div
|
|
587
|
+
<div
|
|
588
|
+
{% if section.settings.module_id != blank %}
|
|
589
|
+
data-track-zz-section="{{ section.settings.module_id }}"
|
|
590
|
+
{% endif %}
|
|
591
|
+
{% if section.settings.is_exposure != false %}
|
|
592
|
+
data-track-zz-exposure="true"
|
|
593
|
+
{% endif %}
|
|
594
|
+
class='swiper swiper-banner-video-img'>
|
|
575
595
|
<div class='swiper-wrapper'>
|
|
576
596
|
{% for banner in section.blocks %}
|
|
577
597
|
<div
|
|
@@ -617,7 +637,7 @@
|
|
|
617
637
|
<div
|
|
618
638
|
class='tw-absolute lg:tw-left-[50%] lg:tw-top-[50%] lg:tw-translate-x-[-50%] lg:tw-translate-y-[-50%] lg:tw-w-[85vw] xl:tw-w-[1220px] tw-z-10 max-lg:tw-h-full max-lg:tw-top-0 max-lg:tw-left-0 max-lg:tw-w-full max-lg:tw-pt-[90px] tw-box-border max-lg:tw-flex max-lg:tw-flex-col max-lg:tw-items-center'
|
|
619
639
|
>
|
|
620
|
-
<div class='swiper-content-text lg:tw-w-[
|
|
640
|
+
<div class='swiper-content-text lg:tw-w-[560px]'>
|
|
621
641
|
{%- if banner.settings.desc_text_type == 'text' -%}
|
|
622
642
|
<div
|
|
623
643
|
class='lg:tw-hidden tw-p-0 tw-leading-[58px] tw-text-[48px] tw-font-bold tw-mb-[24px] max-lg:tw-my-[8px] max-lg:tw-text-[24px] max-lg:tw-leading-[1.2] max-lg:tw-text-center'
|
|
@@ -645,7 +665,7 @@
|
|
|
645
665
|
</div>
|
|
646
666
|
{%- elsif banner.settings.desc_text_type == 'image' and banner.settings.banner_desc != blank -%}
|
|
647
667
|
<div
|
|
648
|
-
class="max-lg:tw-hidden tw-w-[
|
|
668
|
+
class="max-lg:tw-hidden tw-w-[560px]">
|
|
649
669
|
{{
|
|
650
670
|
banner.settings.banner_desc
|
|
651
671
|
| image_url: width: 1280
|
|
@@ -714,7 +734,6 @@
|
|
|
714
734
|
bindSiteJump(bannerlink, {{ banner.settings.linksbanner | json }})
|
|
715
735
|
{% endif %}
|
|
716
736
|
}
|
|
717
|
-
console.log('eventList', eventList)
|
|
718
737
|
if(eventList) {
|
|
719
738
|
eventList.forEach(item => {
|
|
720
739
|
item.addEventListener('click', (event) => {
|
|
@@ -42,9 +42,16 @@
|
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"type": "text",
|
|
45
|
-
"id": "
|
|
46
|
-
"label": "
|
|
47
|
-
"info": "
|
|
45
|
+
"id": "module_id",
|
|
46
|
+
"label": "唯一业务id",
|
|
47
|
+
"info": "需要唯一不要与其他模块重复,用户定位、埋点统计、代码隐藏控制等"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"type": "checkbox",
|
|
51
|
+
"id": "is_exposure",
|
|
52
|
+
"label": "是否曝光统计",
|
|
53
|
+
"default": false,
|
|
54
|
+
"info": "勾选后会对section模块进行曝光统计埋点, 必须填写唯一业务id"
|
|
48
55
|
},
|
|
49
56
|
|
|
50
57
|
],
|
|
@@ -56,7 +63,7 @@
|
|
|
56
63
|
{
|
|
57
64
|
"type": "text",
|
|
58
65
|
"id": "slide_title",
|
|
59
|
-
"label": "
|
|
66
|
+
"label": "名称,作为埋点统计、图片alt",
|
|
60
67
|
},
|
|
61
68
|
{
|
|
62
69
|
"type": "text",
|
|
@@ -124,7 +131,14 @@
|
|
|
124
131
|
}
|
|
125
132
|
{% endschema %}
|
|
126
133
|
|
|
127
|
-
<div
|
|
134
|
+
<div
|
|
135
|
+
{% if section.settings.module_id != blank %}
|
|
136
|
+
data-track-zz-section="{{ section.settings.module_id }}"
|
|
137
|
+
{% endif %}
|
|
138
|
+
{% if section.settings.is_exposure != false %}
|
|
139
|
+
data-track-zz-exposure="true"
|
|
140
|
+
{% endif %}
|
|
141
|
+
class="zz-swiper-gallery tw-overflow-hidden zz-swiper-gallery-{{ section.id }}">
|
|
128
142
|
|
|
129
143
|
<div class="swiper-wrapper tw-w-full">
|
|
130
144
|
{% for banner in section.blocks %}
|
|
@@ -163,13 +177,20 @@
|
|
|
163
177
|
<div class='learn-more-button tw-absolute tw-font-medium tw-cursor-pointer max-lg:tw-bottom-[24px] lg:tw-bottom-[40px] tw-left-1/2 tw--translate-x-1/2 tw-text-white tw-rounded-[100px]
|
|
164
178
|
tw-text-[13px] lg:tw-text-[16px] tw-px-[20px] tw-py-[6px] lg:tw-px-[24px] lg:tw-py-[10px]'
|
|
165
179
|
data-zz-modal-target="#{{ banner.settings.modal_id }}"
|
|
180
|
+
{% if banner.settings.slide_title != blank %}
|
|
181
|
+
data-track-zz-element="{{ banner.settings.slide_title }}"
|
|
182
|
+
{% endif %}
|
|
166
183
|
>
|
|
167
184
|
<span>{{ banner.settings.btn_text }}</span>
|
|
168
185
|
</div>
|
|
169
186
|
{% elsif banner.settings.btn_type == 'link' and banner.settings.btn_link != blank %}
|
|
170
187
|
<a class='learn-more-button tw-absolute tw-font-medium tw-cursor-pointer max-lg:tw-bottom-[24px] lg:tw-bottom-[40px] tw-left-1/2 tw--translate-x-1/2 tw-text-white tw-rounded-[100px]
|
|
171
188
|
tw-text-[13px] lg:tw-text-[16px] tw-px-[20px] tw-py-[6px] lg:tw-px-[24px] lg:tw-py-[10px]'
|
|
172
|
-
href='{{ banner.settings.btn_link }}'
|
|
189
|
+
href='{{ banner.settings.btn_link }}'
|
|
190
|
+
{% if banner.settings.slide_title != blank %}
|
|
191
|
+
data-track-zz-element="{{ banner.settings.slide_title }}"
|
|
192
|
+
{% endif %}
|
|
193
|
+
>
|
|
173
194
|
<span>{{ banner.settings.btn_text }}</span>
|
|
174
195
|
</a>
|
|
175
196
|
{% endif %}
|
|
@@ -83,7 +83,19 @@
|
|
|
83
83
|
"default": "#ffffff",
|
|
84
84
|
"label": "移动端轮播导航圆圈颜色"
|
|
85
85
|
},
|
|
86
|
-
|
|
86
|
+
{
|
|
87
|
+
"type": "text",
|
|
88
|
+
"id": "module_id",
|
|
89
|
+
"label": "唯一业务id",
|
|
90
|
+
"info": "需要唯一不要与其他模块重复,用户定位、埋点统计、代码隐藏控制等"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"type": "checkbox",
|
|
94
|
+
"id": "is_exposure",
|
|
95
|
+
"label": "是否曝光统计",
|
|
96
|
+
"default": false,
|
|
97
|
+
"info": "勾选后会对section模块进行曝光统计埋点, 必须填写唯一业务id"
|
|
98
|
+
},
|
|
87
99
|
|
|
88
100
|
],
|
|
89
101
|
"blocks": [
|
|
@@ -211,7 +223,14 @@
|
|
|
211
223
|
}
|
|
212
224
|
{% endschema %}
|
|
213
225
|
|
|
214
|
-
<div
|
|
226
|
+
<div
|
|
227
|
+
{% if section.settings.module_id != blank %}
|
|
228
|
+
data-track-zz-section="{{ section.settings.module_id }}"
|
|
229
|
+
{% endif %}
|
|
230
|
+
{% if section.settings.is_exposure != false %}
|
|
231
|
+
data-track-zz-exposure="true"
|
|
232
|
+
{% endif %}
|
|
233
|
+
class='video-img-collapse-swiper tw-relative'>
|
|
215
234
|
{% assign non_collapsible_blocks = section.blocks | reject: 'type', 'collapsible_row' %}
|
|
216
235
|
<div class="collapse-title-desc fade-in-box tw-flex tw-flex-col tw-justify-center">
|
|
217
236
|
|
|
@@ -171,6 +171,12 @@
|
|
|
171
171
|
|
|
172
172
|
<div
|
|
173
173
|
class='zz-video-tab-swiper'
|
|
174
|
+
{% if section.settings.module_id != blank %}
|
|
175
|
+
data-track-zz-section="{{ section.settings.module_id }}"
|
|
176
|
+
{% endif %}
|
|
177
|
+
{% if section.settings.is_exposure != false %}
|
|
178
|
+
data-track-zz-exposure="true"
|
|
179
|
+
{% endif %}
|
|
174
180
|
{% if section.settings.module_name != blank %}data-zz-module-name="{{ section.settings.module_name }}"{% endif %}
|
|
175
181
|
>
|
|
176
182
|
<div class='fade-in-box tw-flex tw-flex-col tw-justify-center'>
|
|
@@ -534,6 +540,19 @@
|
|
|
534
540
|
"label": "移动下内边距 (Padding Bottom)",
|
|
535
541
|
"default": 40
|
|
536
542
|
},
|
|
543
|
+
{
|
|
544
|
+
"type": "text",
|
|
545
|
+
"id": "module_id",
|
|
546
|
+
"label": "唯一业务id",
|
|
547
|
+
"info": "需要唯一不要与其他模块重复,用户定位、埋点统计、代码隐藏控制等"
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"type": "checkbox",
|
|
551
|
+
"id": "is_exposure",
|
|
552
|
+
"label": "是否曝光统计",
|
|
553
|
+
"default": false,
|
|
554
|
+
"info": "勾选后会对section模块进行曝光统计埋点, 必须填写唯一业务id"
|
|
555
|
+
},
|
|
537
556
|
{
|
|
538
557
|
"type": "text",
|
|
539
558
|
"id": "module_name",
|
|
@@ -25,6 +25,7 @@ size:按钮尺寸
|
|
|
25
25
|
- icon:图标名称
|
|
26
26
|
- text:按钮文字
|
|
27
27
|
- class_name:自定义类名
|
|
28
|
+
- btn_id:按钮ID并作为点击埋点标识
|
|
28
29
|
{% endcomment %}
|
|
29
30
|
|
|
30
31
|
{% assign btn_type = type | default: 'primary' %}
|
|
@@ -41,7 +42,7 @@ size:按钮尺寸
|
|
|
41
42
|
|
|
42
43
|
{% if href %}
|
|
43
44
|
{% if btn_type == 'link' %}
|
|
44
|
-
<a href="{{ href | default: '#' }}" {% if btn_id != blank %} id="{{ btn_id }}" {% endif %} class="zz-btn-link tw-text-[#378DDD] tw-inline-flex tw-items-center tw-text-[12px] lg:tw-text-[14px] tw-no-underline zz-btn-link-{{ btn_size }} {% if width == 'full' %} tw-w-full {% endif %} {{ class_name }}">
|
|
45
|
+
<a href="{{ href | default: '#' }}" {% if btn_id != blank %} id="{{ btn_id }}" data-track-zz-element="{{ btn_id }}" {% endif %} class="zz-btn-link tw-text-[#378DDD] tw-inline-flex tw-items-center tw-text-[12px] lg:tw-text-[14px] tw-no-underline zz-btn-link-{{ btn_size }} {% if width == 'full' %} tw-w-full {% endif %} {{ class_name }}">
|
|
45
46
|
<span class="zz-btn-text">{{ text }}</span>
|
|
46
47
|
{% if postfix_icon %}<span class="zz-btn-icon" style="margin-left: {{ icon_left_margin }}px; margin-right: {{ icon_right_margin }}px;">
|
|
47
48
|
{% render 'zz-icon', icon_name: postfix_icon, icon_size: icon_size %}
|
|
@@ -50,7 +51,7 @@ size:按钮尺寸
|
|
|
50
51
|
{% else %}
|
|
51
52
|
<a
|
|
52
53
|
href="{{ href | default: '#' }}"
|
|
53
|
-
{% if btn_id != blank %} id="{{ btn_id }}" {% endif %}
|
|
54
|
+
{% if btn_id != blank %} id="{{ btn_id }}" data-track-zz-element="{{ btn_id }}" {% endif %}
|
|
54
55
|
class="zz-btn zz-btn-{{ btn_type }} zz-btn-{{ btn_color }} zz-btn-shape-{{ shape }} zz-btn-{{ btn_size }} {% if width == 'full' %} tw-w-full {% endif %} {{ class_name }}"
|
|
55
56
|
{% if backdrop_filter %}
|
|
56
57
|
style="backdrop-filter: blur(12px);background: #FFFFFF0F;"
|
|
@@ -66,7 +67,7 @@ size:按钮尺寸
|
|
|
66
67
|
<button
|
|
67
68
|
class="zz-btn zz-btn-{{ btn_type }} zz-btn-{{ btn_color }} zz-btn-shape-{{ shape }} zz-btn-{{ btn_size }} {% if width == 'full' %} tw-w-full {% endif %} {{ width }} {{ class_name }}"
|
|
68
69
|
{% if modal_id != blank %} data-zz-modal-target="#{{ modal_id }}" {% endif %}
|
|
69
|
-
{% if btn_id != blank %} id="{{ btn_id }}" {% endif %}
|
|
70
|
+
{% if btn_id != blank %} id="{{ btn_id }}" data-track-zz-element="{{ btn_id }}" {% endif %}
|
|
70
71
|
{% if backdrop_filter %}
|
|
71
72
|
style="backdrop-filter: blur(12px);background: #FFFFFF0F;"
|
|
72
73
|
{% endif %}
|