pb-sxp-ui 1.4.0 → 1.4.1

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.
Files changed (30) hide show
  1. package/dist/index.cjs +49 -34
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.css +0 -4
  4. package/dist/index.js +49 -34
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.cjs +3 -3
  7. package/dist/index.min.cjs.map +1 -1
  8. package/dist/index.min.js +3 -3
  9. package/dist/index.min.js.map +1 -1
  10. package/dist/pb-ui.js +49 -34
  11. package/dist/pb-ui.js.map +1 -1
  12. package/dist/pb-ui.min.js +3 -3
  13. package/dist/pb-ui.min.js.map +1 -1
  14. package/es/core/components/SxpPageRender/Modal/index.js +10 -4
  15. package/es/core/components/SxpPageRender/PictureGroup/index.js +3 -7
  16. package/es/core/components/SxpPageRender/index.d.ts +1 -0
  17. package/es/core/components/SxpPageRender/index.js +7 -7
  18. package/es/materials/sxp/popup/CommodityDetail/index.js +1 -5
  19. package/es/materials/sxp/popup/CommodityDetail/settingRender.js +10 -0
  20. package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +4 -7
  21. package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +10 -0
  22. package/lib/core/components/SxpPageRender/Modal/index.js +10 -4
  23. package/lib/core/components/SxpPageRender/PictureGroup/index.js +3 -7
  24. package/lib/core/components/SxpPageRender/index.d.ts +1 -0
  25. package/lib/core/components/SxpPageRender/index.js +7 -7
  26. package/lib/materials/sxp/popup/CommodityDetail/index.js +1 -5
  27. package/lib/materials/sxp/popup/CommodityDetail/settingRender.js +10 -0
  28. package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +4 -7
  29. package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +10 -0
  30. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -2053,6 +2053,16 @@ var settingRender$9 = [
2053
2053
  addonAfter: 'px'
2054
2054
  }
2055
2055
  ]
2056
+ },
2057
+ {
2058
+ title: '关闭按钮',
2059
+ child: [
2060
+ {
2061
+ label: '跟随弹窗滚动',
2062
+ type: 'Switch',
2063
+ name: ['props', 'enableFixedCloseButton']
2064
+ }
2065
+ ]
2056
2066
  }
2057
2067
  ];
2058
2068
 
@@ -8882,13 +8892,13 @@ SwiperSlide.displayName = 'SwiperSlide';
8882
8892
  * @Author: binruan@chatlabs.com
8883
8893
  * @Date: 2023-11-02 18:34:34
8884
8894
  * @LastEditors: binruan@chatlabs.com
8885
- * @LastEditTime: 2024-08-22 18:48:44
8895
+ * @LastEditTime: 2024-08-29 16:40:25
8886
8896
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Modal\index.tsx
8887
8897
  *
8888
8898
  */
8889
8899
  const closeIcon$1 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=';
8890
8900
  const Modal = ({ visible, onClose, children, modalStyle, padding, popup, schema, fullHeight = window.innerHeight, isFullScreen = false }) => {
8891
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
8901
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
8892
8902
  const touchRef = React.useRef(null);
8893
8903
  const fTouchRef = React.useRef(null);
8894
8904
  const touchMoveRef = React.useRef(null);
@@ -8900,6 +8910,7 @@ const Modal = ({ visible, onClose, children, modalStyle, padding, popup, schema,
8900
8910
  const modalEleRef = React.useRef(null);
8901
8911
  const { globalConfig, popupDetailData } = useSxpDataSource();
8902
8912
  const { schema: _schema } = useEditor();
8913
+ const [scrollTop, setScrollTop] = React.useState(15);
8903
8914
  React.useEffect(() => {
8904
8915
  const parentNode = document.getElementById('sxp-render');
8905
8916
  const node = document.getElementById('pb-modal');
@@ -9010,12 +9021,17 @@ const Modal = ({ visible, onClose, children, modalStyle, padding, popup, schema,
9010
9021
  onTouchStart: handleTouchStart,
9011
9022
  onTouchEnd: handleTouchEnd
9012
9023
  })),
9013
- React.createElement("div", { onClick: onClose, className: 'modal-icon-wrapper' },
9024
+ React.createElement("div", { className: 'modal-icon-wrapper', onClick: onClose, style: { top: scrollTop } },
9014
9025
  React.createElement("img", { src: (_t = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.popupCloseIcon) !== null && _t !== void 0 ? _t : closeIcon$1, alt: 'close', className: 'modal-icon' })),
9015
- React.createElement("div", { ref: ref, style: {
9026
+ React.createElement("div", Object.assign({ ref: ref, style: {
9016
9027
  height: isScrollFullScreen ? fullHeight : MODAL_DEF_CON_H,
9017
9028
  overflow: (isScrollFullScreen && modalTrans <= 0) || !isScrollFullScreen ? 'auto' : 'hidden'
9018
- } }, children)))))), modalEleRef.current);
9029
+ } }, (((_v = (_u = getPopupById === null || getPopupById === void 0 ? void 0 : getPopupById.item) === null || _u === void 0 ? void 0 : _u.props) === null || _v === void 0 ? void 0 : _v.enableFixedCloseButton) && {
9030
+ onScroll: (e) => {
9031
+ var _a;
9032
+ setScrollTop(15 - ((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.scrollTop));
9033
+ }
9034
+ })), children)))))), modalEleRef.current);
9019
9035
  };
9020
9036
  var Modal$1 = React.memo(Modal);
9021
9037
 
@@ -9312,11 +9328,7 @@ const CommodityDetail$1 = (_a) => {
9312
9328
  clickableClass: getDotsAlign
9313
9329
  }, loop: true, autoplay: {
9314
9330
  delay: (swiper === null || swiper === void 0 ? void 0 : swiper.delay) * 1000
9315
- }, ref: ref, className: css.css(Object.assign(Object.assign(Object.assign({}, ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsMarginBottom) && {
9316
- '.swiper-pagination': {
9317
- bottom: swiper === null || swiper === void 0 ? void 0 : swiper.dotsMarginBottom
9318
- }
9319
- })), ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor) && {
9331
+ }, ref: ref, className: css.css(Object.assign(Object.assign({ '.swiper-pagination': Object.assign(Object.assign({}, ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsMarginBottom) && { bottom: swiper === null || swiper === void 0 ? void 0 : swiper.dotsMarginBottom })), { fontSize: '14px' }) }, ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor) && {
9320
9332
  '.swiper-pagination-bullet': {
9321
9333
  backgroundColor: swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor,
9322
9334
  opacity: 1
@@ -9715,7 +9727,7 @@ const Prompt = createMaterial(PromptComponent, {
9715
9727
  * @Author: binruan@chatlabs.com
9716
9728
  * @Date: 2024-03-26 16:50:25
9717
9729
  * @LastEditors: binruan@chatlabs.com
9718
- * @LastEditTime: 2024-08-28 19:08:24
9730
+ * @LastEditTime: 2024-08-29 16:45:54
9719
9731
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetailDiroNew\settingRender.tsx
9720
9732
  *
9721
9733
  */
@@ -10051,6 +10063,16 @@ var settingRender$7 = [
10051
10063
  addonAfter: 'px'
10052
10064
  }
10053
10065
  ]
10066
+ },
10067
+ {
10068
+ title: '关闭按钮',
10069
+ child: [
10070
+ {
10071
+ label: '跟随弹窗滚动',
10072
+ type: 'Switch',
10073
+ name: ['props', 'enableFixedCloseButton']
10074
+ }
10075
+ ]
10054
10076
  }
10055
10077
  ];
10056
10078
 
@@ -10213,15 +10235,11 @@ Made in Italy` })));
10213
10235
  React.createElement("div", { style: { position: 'relative' } },
10214
10236
  product && ((_w = product === null || product === void 0 ? void 0 : product.homePage) === null || _w === void 0 ? void 0 : _w.length) > 0 && (React.createElement(Swiper, { height: height, modules: [Pagination, Autoplay], pagination: {
10215
10237
  clickable: true,
10216
- bulletActiveClass: 'commondityDiroNew-swipe-item-active-bullet',
10238
+ bulletActiveClass: 'swipe-item-active-bullet',
10217
10239
  clickableClass: getDotsAlign
10218
10240
  }, loop: true, autoplay: {
10219
10241
  delay: (swiper === null || swiper === void 0 ? void 0 : swiper.delay) * 1000
10220
- }, ref: ref, className: css.css(Object.assign(Object.assign(Object.assign({}, ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsMarginBottom) && {
10221
- '.swiper-pagination': {
10222
- bottom: swiper === null || swiper === void 0 ? void 0 : swiper.dotsMarginBottom
10223
- }
10224
- })), ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor) && {
10242
+ }, ref: ref, className: css.css(Object.assign(Object.assign({ '.swiper-pagination': Object.assign(Object.assign({}, ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsMarginBottom) && { bottom: swiper === null || swiper === void 0 ? void 0 : swiper.dotsMarginBottom })), { fontSize: '14px' }) }, ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor) && {
10225
10243
  '.swiper-pagination-bullet': {
10226
10244
  backgroundColor: swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor,
10227
10245
  opacity: 1
@@ -10289,7 +10307,8 @@ Made in Italy` })));
10289
10307
  __html: setFontForText((_3 = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _3 !== void 0 ? _3 : 'Shop now', buttonStyle)
10290
10308
  } }))),
10291
10309
  productInfoText({ isPost }))),
10292
- React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) }, productInfoText({ isPost: false })),
10310
+ React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) },
10311
+ React.createElement("div", { style: { paddingTop: '20px' } }, productInfoText({ isPost: false }))),
10293
10312
  React.createElement(Modal$1, { visible: show3DModal, padding: 0, isFullScreen: true, onClose: () => setShow3DModal(false) },
10294
10313
  React.createElement("div", { style: { backgroundColor: iframeBgColor, height: '100%' } },
10295
10314
  React.createElement("iframe", { src: iframeUrl, style: {
@@ -15839,11 +15858,11 @@ const Picture = (props) => {
15839
15858
  * @Author: lewinlu@chatlabs.com
15840
15859
  * @Date: 2024-01-03 14:39:09
15841
15860
  * @LastEditors: binruan@chatlabs.com
15842
- * @LastEditTime: 2024-08-29 09:34:13
15861
+ * @LastEditTime: 2024-08-29 18:03:12
15843
15862
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\index.tsx
15844
15863
  */
15845
15864
  const PictureGroup$2 = ({ imgUrls, width, height, rec, index, onReportViewImageEnd, onViewImageStartEvent, imgUrlsPostConfig }) => {
15846
- var _a, _b;
15865
+ var _a;
15847
15866
  const ref = React.useRef();
15848
15867
  const { isActive } = useSwiperSlide();
15849
15868
  const { sxpParameter, openHashtag } = useSxpDataSource();
@@ -15873,11 +15892,7 @@ const PictureGroup$2 = ({ imgUrls, width, height, rec, index, onReportViewImageE
15873
15892
  return (React.createElement(Swiper, { ref: ref, defaultValue: 0, direction: 'horizontal', modules: [Pagination, Autoplay], pagination: {
15874
15893
  clickable: true,
15875
15894
  bulletActiveClass: 'swipe-item-active-bullet'
15876
- }, className: css.css(Object.assign(Object.assign(Object.assign({}, ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) && {
15877
- '.swiper-pagination': {
15878
- bottom: (_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) !== null && _a !== void 0 ? _a : 0
15879
- }
15880
- })), ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsBgColor) && {
15895
+ }, className: css.css(Object.assign(Object.assign({ '.swiper-pagination': Object.assign(Object.assign({}, ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) && { bottom: imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom })), { fontSize: '14px' }) }, ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsBgColor) && {
15881
15896
  '.swiper-pagination-bullet': {
15882
15897
  backgroundColor: imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsBgColor,
15883
15898
  opacity: 1
@@ -15887,7 +15902,7 @@ const PictureGroup$2 = ({ imgUrls, width, height, rec, index, onReportViewImageE
15887
15902
  backgroundColor: `${imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsActiveColor}!important`,
15888
15903
  opacity: 1
15889
15904
  }
15890
- }))), height: height, loop: true, autoplay: { delay: ((_b = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.delay) !== null && _b !== void 0 ? _b : 3) * 1000 } }, imgUrls === null || imgUrls === void 0 ? void 0 : imgUrls.map((url, index) => {
15905
+ }))), height: height, loop: true, autoplay: { delay: ((_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.delay) !== null && _a !== void 0 ? _a : 3) * 1000 } }, imgUrls === null || imgUrls === void 0 ? void 0 : imgUrls.map((url, index) => {
15891
15906
  return (React.createElement(SwiperSlide, { key: index },
15892
15907
  React.createElement(Picture, { src: !isLoad && index > 0 ? '' : url, height: height, imgUrlsPostConfig: imgUrlsPostConfig, onShowFirstImage: showFirstImageFn })));
15893
15908
  })));
@@ -16141,12 +16156,12 @@ var Tagbar$1 = React.memo(Tagbar);
16141
16156
  * @Author: binruan@chatlabs.com
16142
16157
  * @Date: 2024-01-15 19:03:09
16143
16158
  * @LastEditors: binruan@chatlabs.com
16144
- * @LastEditTime: 2024-08-28 19:13:38
16159
+ * @LastEditTime: 2024-08-29 11:23:41
16145
16160
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
16146
16161
  *
16147
16162
  */
16148
16163
  const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.innerHeight, containerWidth = window.innerWidth, tempMap, resolver, data = [], ctaType, tipText, nudge, _schema, hashTagStyle, tagList = [], licenseUrl }) => {
16149
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
16164
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
16150
16165
  const mutedIcon = useIconLink('/pb_static/5beaaa5ce7f3477b99db3838619cc471.png');
16151
16166
  const unmutedIcon = useIconLink('/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png');
16152
16167
  const { schema } = useEditor();
@@ -16158,6 +16173,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
16158
16173
  const [isShowMore, setIsShowMore] = React.useState(false);
16159
16174
  const [isReload, setIsReload] = React.useState(new Date().getTime());
16160
16175
  const skipLinkRef = React.useRef(false);
16176
+ const [pageNum, setPageNum] = React.useState(2);
16161
16177
  const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview, isEditor, cacheRtcList, setRtcList, cacheActiveIndex, rtcList, isNoMoreData } = useSxpDataSource();
16162
16178
  const { backMainFeed, productView, jumpToWeb } = useEventReport();
16163
16179
  const isShowFingerTip = React.useMemo(() => {
@@ -16607,8 +16623,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
16607
16623
  isReload,
16608
16624
  renderToggleButton
16609
16625
  ]);
16610
- return (React.createElement("div", { id: 'sxp-render', className: 'clc-sxp-container' },
16611
- waterFallData && (React.createElement(Navbar$1, { icon: img, styles: { background: 'rgba(0,0,0,.3)', color: '#fff' }, textStyle: Object.assign(Object.assign({}, (_e = (_d = (_c = (_b = (_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.item) === null || _c === void 0 ? void 0 : _c.props) === null || _d === void 0 ? void 0 : _d.textStyles) === null || _e === void 0 ? void 0 : _e.hashTagTitle), { color: '#fff' }), onClose: () => {
16626
+ return (React.createElement("div", { id: 'sxp-render', className: 'clc-sxp-container', style: { textUnderlineOffset: `${(_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.textUnderlineOffset) !== null && _a !== void 0 ? _a : 0}px` } },
16627
+ waterFallData && (React.createElement(Navbar$1, { icon: img, styles: { background: 'rgba(0,0,0,.3)', color: '#fff' }, textStyle: Object.assign(Object.assign({}, (_f = (_e = (_d = (_c = (_b = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.item) === null || _d === void 0 ? void 0 : _d.props) === null || _e === void 0 ? void 0 : _e.textStyles) === null || _f === void 0 ? void 0 : _f.hashTagTitle), { color: '#fff' }), onClose: () => {
16612
16628
  const isEq = lodash.isEqual(rtcList, cacheRtcList);
16613
16629
  if (!isEq && cacheRtcList && (cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.length)) {
16614
16630
  setRtcList === null || setRtcList === void 0 ? void 0 : setRtcList(cacheRtcList);
@@ -16619,7 +16635,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
16619
16635
  React.createElement(Tagbar$1, { tagList: tagList, setActiveIndex: setActiveIndex, style: {
16620
16636
  top: minusHeight
16621
16637
  } }),
16622
- isShowFingerTip ? (React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon, style: { top: `${50 - ((_f = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipOffset) !== null && _f !== void 0 ? _f : 0)}%` }, duration: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swiperTipAniDur })) : null,
16638
+ isShowFingerTip ? (React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon, style: { top: `${50 - ((_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipOffset) !== null && _g !== void 0 ? _g : 0)}%` }, duration: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swiperTipAniDur })) : null,
16623
16639
  React.createElement(Swiper, { style: {
16624
16640
  marginTop: tagHeight
16625
16641
  }, ref: swiperRef, onSlideChange: () => {
@@ -16637,13 +16653,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
16637
16653
  return;
16638
16654
  if ((swiper === null || swiper === void 0 ? void 0 : swiper.activeIndex) + 1 >= (data === null || data === void 0 ? void 0 : data.length)) {
16639
16655
  if (!isLoadMore) {
16640
- let pageNum = 2;
16641
16656
  setIsLoadMore(true);
16642
16657
  loadVideos === null || loadVideos === void 0 ? void 0 : loadVideos(pageNum).then((res) => {
16643
16658
  var _a;
16644
16659
  setIsLoadMore(false);
16645
16660
  if (res && ((_a = res === null || res === void 0 ? void 0 : res.recList) === null || _a === void 0 ? void 0 : _a.length) > 0) {
16646
- pageNum++;
16661
+ setPageNum((pageNum + 1));
16647
16662
  }
16648
16663
  });
16649
16664
  }
@@ -16652,7 +16667,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
16652
16667
  renderLikeButton(visList[activeIndex], activeIndex, !!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIconFixed)),
16653
16668
  renderToggleButton(!!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconFixed)),
16654
16669
  renderView),
16655
- React.createElement(WaterFall$1, Object.assign({}, (_j = (_h = (_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.item) === null || _j === void 0 ? void 0 : _j.props))));
16670
+ React.createElement(WaterFall$1, Object.assign({}, (_k = (_j = (_h = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.item) === null || _k === void 0 ? void 0 : _k.props))));
16656
16671
  };
16657
16672
 
16658
16673
  const PictureGroup = ({ imgUrls, width, height, imgUrlsPostConfig, rec, index }) => {