pb-sxp-ui 1.0.7 → 1.0.8
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/dist/index.cjs +5 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +5 -4
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/materials/sxp/template/MultiCommodity/index.js +1 -1
- package/es/materials/sxp/template/MultiCommodityDiro/index.js +1 -1
- package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +1 -1
- package/es/materials/sxp/template/components/EventProvider.js +2 -1
- package/lib/materials/sxp/template/MultiCommodity/index.js +1 -1
- package/lib/materials/sxp/template/MultiCommodityDiro/index.js +1 -1
- package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +1 -1
- package/lib/materials/sxp/template/components/EventProvider.js +2 -1
- package/package.json +1 -1
@@ -25,7 +25,7 @@ const MultiCommodity = (_a) => {
|
|
25
25
|
if (isExternalLink) {
|
26
26
|
if (item === null || item === void 0 ? void 0 : item.link) {
|
27
27
|
jumpToWeb(recData, item, item.bindCta);
|
28
|
-
window.location.href = item.link;
|
28
|
+
window.location.href = window.getJointUtmLink(item.link);
|
29
29
|
}
|
30
30
|
}
|
31
31
|
else {
|
@@ -24,7 +24,7 @@ const MultiCommodityDiro = (_a) => {
|
|
24
24
|
if (isExternalLink) {
|
25
25
|
if (item === null || item === void 0 ? void 0 : item.link) {
|
26
26
|
jumpToWeb(recData, item, item.bindCta);
|
27
|
-
window.location.href = item.link;
|
27
|
+
window.location.href = window.getJointUtmLink(item.link);
|
28
28
|
}
|
29
29
|
}
|
30
30
|
else {
|
@@ -24,7 +24,7 @@ const MultiCommodityDiroNew = (_a) => {
|
|
24
24
|
if (isExternalLink) {
|
25
25
|
if (item === null || item === void 0 ? void 0 : item.link) {
|
26
26
|
jumpToWeb(recData, item, item.bindCta);
|
27
|
-
window.location.href = item.link;
|
27
|
+
window.location.href = window.getJointUtmLink(item.link);
|
28
28
|
}
|
29
29
|
}
|
30
30
|
else {
|
@@ -22,7 +22,7 @@ const EventProvider = (_a) => {
|
|
22
22
|
}
|
23
23
|
}, [isOnScreen, ref, rec, ctaEvent]);
|
24
24
|
const handleClick = throttle(() => {
|
25
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
25
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
26
26
|
const item = (_b = (_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.bindProduct) !== null && _b !== void 0 ? _b : rec === null || rec === void 0 ? void 0 : rec.video;
|
27
27
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
28
28
|
eventSubject: 'clickCta',
|
@@ -35,6 +35,7 @@ const EventProvider = (_a) => {
|
|
35
35
|
const product = (_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.bindProduct;
|
36
36
|
jumpToWeb(rec, product, cta);
|
37
37
|
window.location.href = (_h = (_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.bindProduct) === null || _h === void 0 ? void 0 : _h.link;
|
38
|
+
window.location.href = window.getJointUtmLink((_k = (_j = rec === null || rec === void 0 ? void 0 : rec.video) === null || _j === void 0 ? void 0 : _j.bindProduct) === null || _k === void 0 ? void 0 : _k.link);
|
38
39
|
}
|
39
40
|
}
|
40
41
|
else {
|
@@ -27,7 +27,7 @@ const MultiCommodity = (_a) => {
|
|
27
27
|
if (isExternalLink) {
|
28
28
|
if (item === null || item === void 0 ? void 0 : item.link) {
|
29
29
|
jumpToWeb(recData, item, item.bindCta);
|
30
|
-
window.location.href = item.link;
|
30
|
+
window.location.href = window.getJointUtmLink(item.link);
|
31
31
|
}
|
32
32
|
}
|
33
33
|
else {
|
@@ -26,7 +26,7 @@ const MultiCommodityDiro = (_a) => {
|
|
26
26
|
if (isExternalLink) {
|
27
27
|
if (item === null || item === void 0 ? void 0 : item.link) {
|
28
28
|
jumpToWeb(recData, item, item.bindCta);
|
29
|
-
window.location.href = item.link;
|
29
|
+
window.location.href = window.getJointUtmLink(item.link);
|
30
30
|
}
|
31
31
|
}
|
32
32
|
else {
|
@@ -26,7 +26,7 @@ const MultiCommodityDiroNew = (_a) => {
|
|
26
26
|
if (isExternalLink) {
|
27
27
|
if (item === null || item === void 0 ? void 0 : item.link) {
|
28
28
|
jumpToWeb(recData, item, item.bindCta);
|
29
|
-
window.location.href = item.link;
|
29
|
+
window.location.href = window.getJointUtmLink(item.link);
|
30
30
|
}
|
31
31
|
}
|
32
32
|
else {
|
@@ -24,7 +24,7 @@ const EventProvider = (_a) => {
|
|
24
24
|
}
|
25
25
|
}, [isOnScreen, ref, rec, ctaEvent]);
|
26
26
|
const handleClick = (0, lodash_1.throttle)(() => {
|
27
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
27
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
28
28
|
const item = (_b = (_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.bindProduct) !== null && _b !== void 0 ? _b : rec === null || rec === void 0 ? void 0 : rec.video;
|
29
29
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
30
30
|
eventSubject: 'clickCta',
|
@@ -37,6 +37,7 @@ const EventProvider = (_a) => {
|
|
37
37
|
const product = (_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.bindProduct;
|
38
38
|
jumpToWeb(rec, product, cta);
|
39
39
|
window.location.href = (_h = (_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.bindProduct) === null || _h === void 0 ? void 0 : _h.link;
|
40
|
+
window.location.href = window.getJointUtmLink((_k = (_j = rec === null || rec === void 0 ? void 0 : rec.video) === null || _j === void 0 ? void 0 : _j.bindProduct) === null || _k === void 0 ? void 0 : _k.link);
|
40
41
|
}
|
41
42
|
}
|
42
43
|
else {
|