zz-shopify-components 0.34.0 → 0.34.1-beta.0
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/package.json
CHANGED
|
@@ -61,6 +61,12 @@
|
|
|
61
61
|
"id": "buy_now_click_event_class_name",
|
|
62
62
|
"label": "buy now 点击事件统计 classname",
|
|
63
63
|
},
|
|
64
|
+
{
|
|
65
|
+
"type": "text",
|
|
66
|
+
"id": "tab_tracking_category",
|
|
67
|
+
"label": "tab统计分类",
|
|
68
|
+
"default": "141"
|
|
69
|
+
},
|
|
64
70
|
|
|
65
71
|
|
|
66
72
|
],
|
|
@@ -138,13 +144,14 @@
|
|
|
138
144
|
<div class="cover-box tw-absolute tw-top-0 tw-left-[-50px] tw-w-[50px] tw-h-full"> </div>
|
|
139
145
|
|
|
140
146
|
{%- endif -%}
|
|
141
|
-
{% render 'zz-button',
|
|
147
|
+
{% render 'zz-button-v2',
|
|
142
148
|
href: section.settings.url,
|
|
143
149
|
type: 'primary',
|
|
144
150
|
color: 'white',
|
|
145
151
|
text: section.settings.btn_text,
|
|
146
152
|
size: 'medium',
|
|
147
|
-
class_name: btn_class
|
|
153
|
+
class_name: btn_class,
|
|
154
|
+
btn_id: section.settings.buy_now_click_event_class_name,
|
|
148
155
|
|
|
149
156
|
%}
|
|
150
157
|
</div>
|
|
@@ -178,13 +185,14 @@
|
|
|
178
185
|
{%- if section.blocks.size > 0 -%}
|
|
179
186
|
<div class="cover-box tw-absolute tw-top-0 tw-left-[-40px] tw-w-[40px] tw-h-full"> </div>
|
|
180
187
|
{%- endif -%}
|
|
181
|
-
{% render 'zz-button',
|
|
188
|
+
{% render 'zz-button-v2',
|
|
182
189
|
href: section.settings.url,
|
|
183
190
|
type: 'primary',
|
|
184
191
|
color: 'white',
|
|
185
192
|
text: section.settings.btn_text,
|
|
186
193
|
size: 'small',
|
|
187
|
-
class_name: btn_class
|
|
194
|
+
class_name: btn_class,
|
|
195
|
+
btn_id: section.settings.buy_now_click_event_class_name,
|
|
188
196
|
%}
|
|
189
197
|
</div>
|
|
190
198
|
</div>
|
|
@@ -253,10 +261,7 @@
|
|
|
253
261
|
const offsetTop = rect.top + window.scrollY - headerHeight;
|
|
254
262
|
scrollPaginationToCenter();
|
|
255
263
|
window.scrollTo(0, offsetTop);
|
|
256
|
-
|
|
257
|
-
timestamp: new Date().toISOString(),
|
|
258
|
-
header_module_name: id,
|
|
259
|
-
});
|
|
264
|
+
|
|
260
265
|
});
|
|
261
266
|
});
|
|
262
267
|
|
|
@@ -273,8 +278,13 @@
|
|
|
273
278
|
const id = entry.target.dataset.zzModuleName;
|
|
274
279
|
tabs.forEach(tab => {
|
|
275
280
|
tab.classList.toggle('zz-navigation-active-text', tab.dataset.target === id);
|
|
276
|
-
|
|
277
|
-
|
|
281
|
+
if(tab.dataset.target === id) {
|
|
282
|
+
window.zzAnalytics && window.zzAnalytics.trackEvent("{{ section.settings.tab_tracking_category }}", {
|
|
283
|
+
tab_name: id,
|
|
284
|
+
timestamp: new Date().toISOString(),
|
|
285
|
+
});
|
|
286
|
+
scrollPaginationToCenter();
|
|
287
|
+
}
|
|
278
288
|
});
|
|
279
289
|
}
|
|
280
290
|
|
|
@@ -891,7 +891,7 @@
|
|
|
891
891
|
{% if banner.settings.banner_name != blank %}
|
|
892
892
|
data-track-zz-element="{{ banner.settings.banner_name }}"
|
|
893
893
|
{% endif %}
|
|
894
|
-
class='{{ banner.id }}-site-event zz-banner-btn tw-w-fit tw-block tw-no-underline tw-h-[44px] max-lg:tw-px-[2rem] lg:tw-px-[24px] max-lg:tw-h-[3.6rem] tw-leading-[44px] max-lg:tw-leading-[3.6rem] tw-text-center tw-rounded-
|
|
894
|
+
class='{{ banner.id }}-site-event zz-banner-btn tw-w-fit tw-block tw-no-underline tw-h-[44px] max-lg:tw-px-[2rem] lg:tw-px-[24px] max-lg:tw-h-[3.6rem] tw-leading-[44px] max-lg:tw-leading-[3.6rem] tw-text-center tw-rounded-[4px] tw-text-[16px] max-lg:tw-text-[1.3rem] max-lg:tw-mx-auto tw-cursor-pointer'
|
|
895
895
|
style='color: {{ banner.settings.btn_color | default: 'black' }}; border: 1px solid {{ banner.settings.btn_border_color | default: 'white' }}; background: {{ banner.settings.btn_background_color | default: 'white' }}'
|
|
896
896
|
>
|
|
897
897
|
{{- banner.settings.btn_text -}}
|
|
@@ -903,7 +903,7 @@
|
|
|
903
903
|
{% if banner.settings.banner_name != blank %}
|
|
904
904
|
data-track-zz-element="{{ banner.settings.banner_name }}"
|
|
905
905
|
{% endif %}
|
|
906
|
-
class='{{ banner.id }}-site-event zz-banner-btn tw-w-fit tw-h-[44px] max-lg:tw-px-[2rem] lg:tw-px-[24px] max-lg:tw-h-[3.6rem] tw-leading-[44px] max-lg:tw-leading-[3.6rem] tw-text-center tw-rounded-
|
|
906
|
+
class='{{ banner.id }}-site-event zz-banner-btn tw-w-fit tw-h-[44px] max-lg:tw-px-[2rem] lg:tw-px-[24px] max-lg:tw-h-[3.6rem] tw-leading-[44px] max-lg:tw-leading-[3.6rem] tw-text-center tw-rounded-[4px] tw-text-[16px] max-lg:tw-text-[1.3rem] max-lg:tw-mx-auto tw-cursor-pointer'
|
|
907
907
|
style='color: {{ banner.settings.btn_color | default: 'black' }}; border: 1px solid {{ banner.settings.btn_border_color | default: 'white' }}; background: {{ banner.settings.btn_background_color | default: 'white' }}'
|
|
908
908
|
>
|
|
909
909
|
{{- banner.settings.btn_text -}}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
{% assign btn_text = btn_out_of_stock | default: 'OUT OF STOCK' %}
|
|
25
25
|
{% endif %}
|
|
26
26
|
|
|
27
|
-
<button {% unless is_available %}disabled{% endunless %} class='tw-flex tw-items-center tw-justify-center tw-text-white tw-border-none tw-h-
|
|
27
|
+
<button {% unless is_available %}disabled{% endunless %} class='tw-flex tw-items-center tw-justify-center tw-text-white tw-border-none tw-h-[44px] lg:tw-h-[36px] lg:tw-px-[36px] tw-bg-[#FC6C0F] tw-rounded-[4px] tw-font-semibold tw-text-[1.4rem] lg:tw-text-[16px] {{ button_class }}'>
|
|
28
28
|
<span
|
|
29
29
|
class='buy-loading tw-hidden tw-daisy-loading tw-daisy-loading-spinner '
|
|
30
30
|
></span>
|
|
@@ -21,12 +21,13 @@ size:按钮尺寸
|
|
|
21
21
|
<zz-video-button>
|
|
22
22
|
|
|
23
23
|
{% assign btn_class_name = class_name | append: ' togglePopup' %}
|
|
24
|
-
{% render 'zz-button',
|
|
24
|
+
{% render 'zz-button-v2',
|
|
25
25
|
type: 'default',
|
|
26
26
|
color: color,
|
|
27
27
|
text: text,
|
|
28
28
|
size: size,
|
|
29
29
|
backdrop_filter: true,
|
|
30
|
+
btn_id: 'video-btn',
|
|
30
31
|
class_name: btn_class_name,
|
|
31
32
|
icon: '<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
32
33
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.635 6.42979C14.5112 6.91507 14.5112 8.08492 13.635 8.57021L6.84517 12.331C5.94149 12.8315 4.79058 12.232 4.79058 11.2608L4.79058 3.73925C4.79058 2.768 5.94148 2.16851 6.84517 2.66904L13.635 6.42979Z" fill="white"/>
|