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.js CHANGED
@@ -419,7 +419,7 @@ var SXP_EVENT_TYPE;
419
419
  * @Author: binruan@chatlabs.com
420
420
  * @Date: 2024-06-13 15:16:53
421
421
  * @LastEditors: binruan@chatlabs.com
422
- * @LastEditTime: 2024-06-17 14:25:01
422
+ * @LastEditTime: 2024-06-18 16:06:16
423
423
  * @FilePath: \pb-sxp-ui\src\core\components\Consent\index.tsx
424
424
  *
425
425
  */
@@ -459,7 +459,7 @@ const Consent$2 = ({ width = window.innerWidth, height = window.innerHeight, pri
459
459
  eventSubject: 'userConsent',
460
460
  eventDescription: '用户授权【操作结果】',
461
461
  consentResult: '0',
462
- consentTags: '[]',
462
+ consentTags: '["系统运营"]',
463
463
  rtc: null,
464
464
  requestId: null,
465
465
  sessionID: null
@@ -12063,8 +12063,8 @@ const WaterfallFlowItem$1 = (props) => {
12063
12063
  // 通过宽度比例获取图片高度
12064
12064
  const height = imgInfo.height * (unitWidth / imgInfo.width);
12065
12065
  if (isLoading) {
12066
- // 加40是因为下方文字部分高度为40,可以自己设置
12067
- sizeChange(height + 76 + space, index);
12066
+ // 加56是因为下方文字部分高度为56,可以自己设置
12067
+ sizeChange(height + 56 + space, index);
12068
12068
  }
12069
12069
  }, [imgInfo, index, unitWidth, isLoading, space]); /* 增加sizeChange依赖项会导致在admin预览编辑时无限刷新 */
12070
12070
  const calculateHeightForWidth = (videoWidth, videoHeight, targetWidth) => {
@@ -13586,7 +13586,7 @@ var Tagbar$1 = memo(Tagbar);
13586
13586
  * @Author: binruan@chatlabs.com
13587
13587
  * @Date: 2024-01-15 19:03:09
13588
13588
  * @LastEditors: binruan@chatlabs.com
13589
- * @LastEditTime: 2024-06-13 18:09:16
13589
+ * @LastEditTime: 2024-06-18 11:50:31
13590
13590
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
13591
13591
  *
13592
13592
  */
@@ -13677,9 +13677,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
13677
13677
  if (document.visibilityState === 'hidden') {
13678
13678
  // 当用户导航到新页面、切换标签页、关闭标签页、最小化或关闭浏览器、刷新原页面(即离开原页面时),或者在移动设备上从浏览器切换到不同的应用程序时
13679
13679
  // 移动端h5直接杀掉浏览器或宿主app时不会触发,pc端直接杀掉标签页时能触发
13680
- SXP_EVENT_BUS.emit(SXP_EVENT_TYPE.PAGE_DID_HIDE, item);
13681
- handleReportViewImageEnd(item);
13682
- handleReportProductView(item);
13680
+ if (!openHashtag) {
13681
+ SXP_EVENT_BUS.emit(SXP_EVENT_TYPE.PAGE_DID_HIDE, item);
13682
+ handleReportViewImageEnd(item);
13683
+ handleReportProductView(item);
13684
+ }
13683
13685
  let fromKName = '';
13684
13686
  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))) {
13685
13687
  fromKName = 'pdpPage';
@@ -13716,8 +13718,10 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
13716
13718
  else if (document.visibilityState === 'visible') {
13717
13719
  // 页面可见时触发,注意页面初始化时不会触发
13718
13720
  handleH5EnterLink();
13719
- handleViewImageStartEvent(activeIndex);
13720
- SXP_EVENT_BUS.emit(SXP_EVENT_TYPE.PAGE_DID_SHOW, item);
13721
+ if (!openHashtag) {
13722
+ handleViewImageStartEvent(activeIndex);
13723
+ SXP_EVENT_BUS.emit(SXP_EVENT_TYPE.PAGE_DID_SHOW, item);
13724
+ }
13721
13725
  backMainFeed('external');
13722
13726
  }
13723
13727
  };
@@ -13734,7 +13738,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
13734
13738
  isFromHashtag,
13735
13739
  tempMap,
13736
13740
  curTime,
13737
- backMainFeed
13741
+ backMainFeed,
13742
+ openHashtag
13738
13743
  ]);
13739
13744
  useEffect(() => {
13740
13745
  const initTime = () => {