pb-sxp-ui 1.19.0-alpha.4 → 1.19.0-alpha.6
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 +3 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -32
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +4 -4
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +3 -32
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +4 -4
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/index.js +3 -4
- package/lib/core/components/SxpPageRender/index.js +2 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -285,33 +285,6 @@ function deleteCookie(name, path = '/', domain = '') {
|
|
|
285
285
|
document.cookie = `${name}=; ${expiration}${pathPart}${domainPart}`;
|
|
286
286
|
console.log(`已尝试删除Cookie: ${name}`);
|
|
287
287
|
}
|
|
288
|
-
function setCookie(name, value, days = 0, path = '/', domain = '', secure = false, sameSite = 'Lax') {
|
|
289
|
-
let cookieString = `${encodeURIComponent(name)}=${encodeURIComponent(value)}`;
|
|
290
|
-
// 设置过期时间
|
|
291
|
-
if (days) {
|
|
292
|
-
const date = new Date();
|
|
293
|
-
date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);
|
|
294
|
-
cookieString += `; expires=${date.toUTCString()}`;
|
|
295
|
-
}
|
|
296
|
-
// 设置路径
|
|
297
|
-
if (path) {
|
|
298
|
-
cookieString += `; path=${path}`;
|
|
299
|
-
}
|
|
300
|
-
// 设置域名
|
|
301
|
-
if (domain) {
|
|
302
|
-
cookieString += `; domain=${domain}`;
|
|
303
|
-
}
|
|
304
|
-
// 设置Secure标志
|
|
305
|
-
if (secure) {
|
|
306
|
-
cookieString += '; secure';
|
|
307
|
-
}
|
|
308
|
-
// 设置SameSite属性
|
|
309
|
-
if (sameSite) {
|
|
310
|
-
cookieString += `; samesite=${sameSite}`;
|
|
311
|
-
}
|
|
312
|
-
// 设置Cookie
|
|
313
|
-
document.cookie = cookieString;
|
|
314
|
-
}
|
|
315
288
|
|
|
316
289
|
function unzip(b64Data) {
|
|
317
290
|
const strData = atob(b64Data);
|
|
@@ -19488,13 +19461,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19488
19461
|
if (!activeGroups)
|
|
19489
19462
|
return;
|
|
19490
19463
|
if (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.includes('4')) {
|
|
19491
|
-
if (fbcRef.current && !(beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4')))
|
|
19492
|
-
setCookie('_fbp', fbcRef.current, 90);
|
|
19493
|
-
}
|
|
19464
|
+
if (fbcRef.current && !(beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4'))) ;
|
|
19494
19465
|
}
|
|
19495
19466
|
else if (beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4')) {
|
|
19496
|
-
fbcRef.current = getCookie('
|
|
19497
|
-
deleteCookie('
|
|
19467
|
+
fbcRef.current = getCookie('_fbp');
|
|
19468
|
+
deleteCookie('_fbp');
|
|
19498
19469
|
const item = data[activeIndex];
|
|
19499
19470
|
const traceInfo = ((_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.traceInfo) || ((_b = item === null || item === void 0 ? void 0 : item.product) === null || _b === void 0 ? void 0 : _b.traceInfo) || '';
|
|
19500
19471
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|