pb-sxp-ui 1.0.85 → 1.0.86
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 +16 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +16 -11
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +2 -2
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +16 -11
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +2 -2
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/Consent/index.js +1 -1
- package/es/core/components/SxpPageRender/WaterFall/WaterfallList.js +1 -1
- package/es/core/components/SxpPageRender/index.js +11 -6
- package/lib/core/components/Consent/index.js +1 -1
- package/lib/core/components/SxpPageRender/WaterFall/WaterfallList.js +1 -1
- package/lib/core/components/SxpPageRender/index.js +11 -6
- package/package.json +1 -1
package/dist/pb-ui.js
CHANGED
@@ -434,7 +434,7 @@
|
|
434
434
|
* @Author: binruan@chatlabs.com
|
435
435
|
* @Date: 2024-06-13 15:16:53
|
436
436
|
* @LastEditors: binruan@chatlabs.com
|
437
|
-
* @LastEditTime: 2024-06-
|
437
|
+
* @LastEditTime: 2024-06-18 16:06:16
|
438
438
|
* @FilePath: \pb-sxp-ui\src\core\components\Consent\index.tsx
|
439
439
|
*
|
440
440
|
*/
|
@@ -474,7 +474,7 @@
|
|
474
474
|
eventSubject: 'userConsent',
|
475
475
|
eventDescription: '用户授权【操作结果】',
|
476
476
|
consentResult: '0',
|
477
|
-
consentTags: '[]',
|
477
|
+
consentTags: '["系统运营"]',
|
478
478
|
rtc: null,
|
479
479
|
requestId: null,
|
480
480
|
sessionID: null
|
@@ -12078,8 +12078,8 @@ Made in Italy` })));
|
|
12078
12078
|
// 通过宽度比例获取图片高度
|
12079
12079
|
const height = imgInfo.height * (unitWidth / imgInfo.width);
|
12080
12080
|
if (isLoading) {
|
12081
|
-
// 加
|
12082
|
-
sizeChange(height +
|
12081
|
+
// 加56是因为下方文字部分高度为56,可以自己设置
|
12082
|
+
sizeChange(height + 56 + space, index);
|
12083
12083
|
}
|
12084
12084
|
}, [imgInfo, index, unitWidth, isLoading, space]); /* 增加sizeChange依赖项会导致在admin预览编辑时无限刷新 */
|
12085
12085
|
const calculateHeightForWidth = (videoWidth, videoHeight, targetWidth) => {
|
@@ -13601,7 +13601,7 @@ Made in Italy` })));
|
|
13601
13601
|
* @Author: binruan@chatlabs.com
|
13602
13602
|
* @Date: 2024-01-15 19:03:09
|
13603
13603
|
* @LastEditors: binruan@chatlabs.com
|
13604
|
-
* @LastEditTime: 2024-06-
|
13604
|
+
* @LastEditTime: 2024-06-18 11:50:31
|
13605
13605
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
13606
13606
|
*
|
13607
13607
|
*/
|
@@ -13692,9 +13692,11 @@ Made in Italy` })));
|
|
13692
13692
|
if (document.visibilityState === 'hidden') {
|
13693
13693
|
// 当用户导航到新页面、切换标签页、关闭标签页、最小化或关闭浏览器、刷新原页面(即离开原页面时),或者在移动设备上从浏览器切换到不同的应用程序时
|
13694
13694
|
// 移动端h5直接杀掉浏览器或宿主app时不会触发,pc端直接杀掉标签页时能触发
|
13695
|
-
|
13696
|
-
|
13697
|
-
|
13695
|
+
if (!openHashtag) {
|
13696
|
+
SXP_EVENT_BUS.emit(SXP_EVENT_TYPE.PAGE_DID_HIDE, item);
|
13697
|
+
handleReportViewImageEnd(item);
|
13698
|
+
handleReportProductView(item);
|
13699
|
+
}
|
13698
13700
|
let fromKName = '';
|
13699
13701
|
if (popupDetailData && (((_b = (_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.bindProducts) === null || _b === void 0 ? void 0 : _b.length) || ((_c = item === null || item === void 0 ? void 0 : item.video) === null || _c === void 0 ? void 0 : _c.bindProduct))) {
|
13700
13702
|
fromKName = 'pdpPage';
|
@@ -13731,8 +13733,10 @@ Made in Italy` })));
|
|
13731
13733
|
else if (document.visibilityState === 'visible') {
|
13732
13734
|
// 页面可见时触发,注意页面初始化时不会触发
|
13733
13735
|
handleH5EnterLink();
|
13734
|
-
|
13735
|
-
|
13736
|
+
if (!openHashtag) {
|
13737
|
+
handleViewImageStartEvent(activeIndex);
|
13738
|
+
SXP_EVENT_BUS.emit(SXP_EVENT_TYPE.PAGE_DID_SHOW, item);
|
13739
|
+
}
|
13736
13740
|
backMainFeed('external');
|
13737
13741
|
}
|
13738
13742
|
};
|
@@ -13749,7 +13753,8 @@ Made in Italy` })));
|
|
13749
13753
|
isFromHashtag,
|
13750
13754
|
tempMap,
|
13751
13755
|
curTime,
|
13752
|
-
backMainFeed
|
13756
|
+
backMainFeed,
|
13757
|
+
openHashtag
|
13753
13758
|
]);
|
13754
13759
|
React.useEffect(() => {
|
13755
13760
|
const initTime = () => {
|