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.
- package/dist/index.cjs +49 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +0 -4
- package/dist/index.js +49 -34
- 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 +49 -34
- 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/core/components/SxpPageRender/Modal/index.js +10 -4
- package/es/core/components/SxpPageRender/PictureGroup/index.js +3 -7
- package/es/core/components/SxpPageRender/index.d.ts +1 -0
- package/es/core/components/SxpPageRender/index.js +7 -7
- package/es/materials/sxp/popup/CommodityDetail/index.js +1 -5
- package/es/materials/sxp/popup/CommodityDetail/settingRender.js +10 -0
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +4 -7
- package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +10 -0
- package/lib/core/components/SxpPageRender/Modal/index.js +10 -4
- package/lib/core/components/SxpPageRender/PictureGroup/index.js +3 -7
- package/lib/core/components/SxpPageRender/index.d.ts +1 -0
- package/lib/core/components/SxpPageRender/index.js +7 -7
- package/lib/materials/sxp/popup/CommodityDetail/index.js +1 -5
- package/lib/materials/sxp/popup/CommodityDetail/settingRender.js +10 -0
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +4 -7
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +10 -0
- package/package.json +1 -1
package/dist/index.css
CHANGED
@@ -576,10 +576,6 @@
|
|
576
576
|
padding: 0;
|
577
577
|
border: none;
|
578
578
|
}
|
579
|
-
.commondityDiroNew-swipe-item-active-bullet {
|
580
|
-
background: #000 !important;
|
581
|
-
opacity: 1 !important;
|
582
|
-
}
|
583
579
|
.commondityDiroNew-swiper-clickable-left {
|
584
580
|
padding-left: 17px !important ;
|
585
581
|
bottom: 14px !important;
|
package/dist/index.js
CHANGED
@@ -2031,6 +2031,16 @@ var settingRender$9 = [
|
|
2031
2031
|
addonAfter: 'px'
|
2032
2032
|
}
|
2033
2033
|
]
|
2034
|
+
},
|
2035
|
+
{
|
2036
|
+
title: '关闭按钮',
|
2037
|
+
child: [
|
2038
|
+
{
|
2039
|
+
label: '跟随弹窗滚动',
|
2040
|
+
type: 'Switch',
|
2041
|
+
name: ['props', 'enableFixedCloseButton']
|
2042
|
+
}
|
2043
|
+
]
|
2034
2044
|
}
|
2035
2045
|
];
|
2036
2046
|
|
@@ -8860,13 +8870,13 @@ SwiperSlide.displayName = 'SwiperSlide';
|
|
8860
8870
|
* @Author: binruan@chatlabs.com
|
8861
8871
|
* @Date: 2023-11-02 18:34:34
|
8862
8872
|
* @LastEditors: binruan@chatlabs.com
|
8863
|
-
* @LastEditTime: 2024-08-
|
8873
|
+
* @LastEditTime: 2024-08-29 16:40:25
|
8864
8874
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Modal\index.tsx
|
8865
8875
|
*
|
8866
8876
|
*/
|
8867
8877
|
const closeIcon$1 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=';
|
8868
8878
|
const Modal = ({ visible, onClose, children, modalStyle, padding, popup, schema, fullHeight = window.innerHeight, isFullScreen = false }) => {
|
8869
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
8879
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
8870
8880
|
const touchRef = useRef(null);
|
8871
8881
|
const fTouchRef = useRef(null);
|
8872
8882
|
const touchMoveRef = useRef(null);
|
@@ -8878,6 +8888,7 @@ const Modal = ({ visible, onClose, children, modalStyle, padding, popup, schema,
|
|
8878
8888
|
const modalEleRef = useRef(null);
|
8879
8889
|
const { globalConfig, popupDetailData } = useSxpDataSource();
|
8880
8890
|
const { schema: _schema } = useEditor();
|
8891
|
+
const [scrollTop, setScrollTop] = useState(15);
|
8881
8892
|
useEffect(() => {
|
8882
8893
|
const parentNode = document.getElementById('sxp-render');
|
8883
8894
|
const node = document.getElementById('pb-modal');
|
@@ -8988,12 +8999,17 @@ const Modal = ({ visible, onClose, children, modalStyle, padding, popup, schema,
|
|
8988
8999
|
onTouchStart: handleTouchStart,
|
8989
9000
|
onTouchEnd: handleTouchEnd
|
8990
9001
|
})),
|
8991
|
-
React.createElement("div", {
|
9002
|
+
React.createElement("div", { className: 'modal-icon-wrapper', onClick: onClose, style: { top: scrollTop } },
|
8992
9003
|
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' })),
|
8993
|
-
React.createElement("div", { ref: ref, style: {
|
9004
|
+
React.createElement("div", Object.assign({ ref: ref, style: {
|
8994
9005
|
height: isScrollFullScreen ? fullHeight : MODAL_DEF_CON_H,
|
8995
9006
|
overflow: (isScrollFullScreen && modalTrans <= 0) || !isScrollFullScreen ? 'auto' : 'hidden'
|
8996
|
-
} },
|
9007
|
+
} }, (((_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) && {
|
9008
|
+
onScroll: (e) => {
|
9009
|
+
var _a;
|
9010
|
+
setScrollTop(15 - ((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.scrollTop));
|
9011
|
+
}
|
9012
|
+
})), children)))))), modalEleRef.current);
|
8997
9013
|
};
|
8998
9014
|
var Modal$1 = memo(Modal);
|
8999
9015
|
|
@@ -9290,11 +9306,7 @@ const CommodityDetail$1 = (_a) => {
|
|
9290
9306
|
clickableClass: getDotsAlign
|
9291
9307
|
}, loop: true, autoplay: {
|
9292
9308
|
delay: (swiper === null || swiper === void 0 ? void 0 : swiper.delay) * 1000
|
9293
|
-
}, ref: ref, className: css(Object.assign(Object.assign(Object.assign({}, ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsMarginBottom) && {
|
9294
|
-
'.swiper-pagination': {
|
9295
|
-
bottom: swiper === null || swiper === void 0 ? void 0 : swiper.dotsMarginBottom
|
9296
|
-
}
|
9297
|
-
})), ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor) && {
|
9309
|
+
}, ref: ref, className: 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) && {
|
9298
9310
|
'.swiper-pagination-bullet': {
|
9299
9311
|
backgroundColor: swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor,
|
9300
9312
|
opacity: 1
|
@@ -9693,7 +9705,7 @@ const Prompt = createMaterial(PromptComponent, {
|
|
9693
9705
|
* @Author: binruan@chatlabs.com
|
9694
9706
|
* @Date: 2024-03-26 16:50:25
|
9695
9707
|
* @LastEditors: binruan@chatlabs.com
|
9696
|
-
* @LastEditTime: 2024-08-
|
9708
|
+
* @LastEditTime: 2024-08-29 16:45:54
|
9697
9709
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetailDiroNew\settingRender.tsx
|
9698
9710
|
*
|
9699
9711
|
*/
|
@@ -10029,6 +10041,16 @@ var settingRender$7 = [
|
|
10029
10041
|
addonAfter: 'px'
|
10030
10042
|
}
|
10031
10043
|
]
|
10044
|
+
},
|
10045
|
+
{
|
10046
|
+
title: '关闭按钮',
|
10047
|
+
child: [
|
10048
|
+
{
|
10049
|
+
label: '跟随弹窗滚动',
|
10050
|
+
type: 'Switch',
|
10051
|
+
name: ['props', 'enableFixedCloseButton']
|
10052
|
+
}
|
10053
|
+
]
|
10032
10054
|
}
|
10033
10055
|
];
|
10034
10056
|
|
@@ -10191,15 +10213,11 @@ Made in Italy` })));
|
|
10191
10213
|
React.createElement("div", { style: { position: 'relative' } },
|
10192
10214
|
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: {
|
10193
10215
|
clickable: true,
|
10194
|
-
bulletActiveClass: '
|
10216
|
+
bulletActiveClass: 'swipe-item-active-bullet',
|
10195
10217
|
clickableClass: getDotsAlign
|
10196
10218
|
}, loop: true, autoplay: {
|
10197
10219
|
delay: (swiper === null || swiper === void 0 ? void 0 : swiper.delay) * 1000
|
10198
|
-
}, ref: ref, className: css(Object.assign(Object.assign(Object.assign({}, ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsMarginBottom) && {
|
10199
|
-
'.swiper-pagination': {
|
10200
|
-
bottom: swiper === null || swiper === void 0 ? void 0 : swiper.dotsMarginBottom
|
10201
|
-
}
|
10202
|
-
})), ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor) && {
|
10220
|
+
}, ref: ref, className: 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) && {
|
10203
10221
|
'.swiper-pagination-bullet': {
|
10204
10222
|
backgroundColor: swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor,
|
10205
10223
|
opacity: 1
|
@@ -10267,7 +10285,8 @@ Made in Italy` })));
|
|
10267
10285
|
__html: setFontForText((_3 = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _3 !== void 0 ? _3 : 'Shop now', buttonStyle)
|
10268
10286
|
} }))),
|
10269
10287
|
productInfoText({ isPost }))),
|
10270
|
-
React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) },
|
10288
|
+
React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) },
|
10289
|
+
React.createElement("div", { style: { paddingTop: '20px' } }, productInfoText({ isPost: false }))),
|
10271
10290
|
React.createElement(Modal$1, { visible: show3DModal, padding: 0, isFullScreen: true, onClose: () => setShow3DModal(false) },
|
10272
10291
|
React.createElement("div", { style: { backgroundColor: iframeBgColor, height: '100%' } },
|
10273
10292
|
React.createElement("iframe", { src: iframeUrl, style: {
|
@@ -15817,11 +15836,11 @@ const Picture = (props) => {
|
|
15817
15836
|
* @Author: lewinlu@chatlabs.com
|
15818
15837
|
* @Date: 2024-01-03 14:39:09
|
15819
15838
|
* @LastEditors: binruan@chatlabs.com
|
15820
|
-
* @LastEditTime: 2024-08-29
|
15839
|
+
* @LastEditTime: 2024-08-29 18:03:12
|
15821
15840
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\index.tsx
|
15822
15841
|
*/
|
15823
15842
|
const PictureGroup$2 = ({ imgUrls, width, height, rec, index, onReportViewImageEnd, onViewImageStartEvent, imgUrlsPostConfig }) => {
|
15824
|
-
var _a
|
15843
|
+
var _a;
|
15825
15844
|
const ref = useRef();
|
15826
15845
|
const { isActive } = useSwiperSlide();
|
15827
15846
|
const { sxpParameter, openHashtag } = useSxpDataSource();
|
@@ -15851,11 +15870,7 @@ const PictureGroup$2 = ({ imgUrls, width, height, rec, index, onReportViewImageE
|
|
15851
15870
|
return (React.createElement(Swiper, { ref: ref, defaultValue: 0, direction: 'horizontal', modules: [Pagination, Autoplay], pagination: {
|
15852
15871
|
clickable: true,
|
15853
15872
|
bulletActiveClass: 'swipe-item-active-bullet'
|
15854
|
-
}, className: css(Object.assign(Object.assign(Object.assign({}, ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) && {
|
15855
|
-
'.swiper-pagination': {
|
15856
|
-
bottom: (_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) !== null && _a !== void 0 ? _a : 0
|
15857
|
-
}
|
15858
|
-
})), ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsBgColor) && {
|
15873
|
+
}, className: 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) && {
|
15859
15874
|
'.swiper-pagination-bullet': {
|
15860
15875
|
backgroundColor: imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsBgColor,
|
15861
15876
|
opacity: 1
|
@@ -15865,7 +15880,7 @@ const PictureGroup$2 = ({ imgUrls, width, height, rec, index, onReportViewImageE
|
|
15865
15880
|
backgroundColor: `${imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsActiveColor}!important`,
|
15866
15881
|
opacity: 1
|
15867
15882
|
}
|
15868
|
-
}))), height: height, loop: true, autoplay: { delay: ((
|
15883
|
+
}))), 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) => {
|
15869
15884
|
return (React.createElement(SwiperSlide, { key: index },
|
15870
15885
|
React.createElement(Picture, { src: !isLoad && index > 0 ? '' : url, height: height, imgUrlsPostConfig: imgUrlsPostConfig, onShowFirstImage: showFirstImageFn })));
|
15871
15886
|
})));
|
@@ -16119,12 +16134,12 @@ var Tagbar$1 = memo(Tagbar);
|
|
16119
16134
|
* @Author: binruan@chatlabs.com
|
16120
16135
|
* @Date: 2024-01-15 19:03:09
|
16121
16136
|
* @LastEditors: binruan@chatlabs.com
|
16122
|
-
* @LastEditTime: 2024-08-
|
16137
|
+
* @LastEditTime: 2024-08-29 11:23:41
|
16123
16138
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
16124
16139
|
*
|
16125
16140
|
*/
|
16126
16141
|
const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.innerHeight, containerWidth = window.innerWidth, tempMap, resolver, data = [], ctaType, tipText, nudge, _schema, hashTagStyle, tagList = [], licenseUrl }) => {
|
16127
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
16142
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
16128
16143
|
const mutedIcon = useIconLink('/pb_static/5beaaa5ce7f3477b99db3838619cc471.png');
|
16129
16144
|
const unmutedIcon = useIconLink('/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png');
|
16130
16145
|
const { schema } = useEditor();
|
@@ -16136,6 +16151,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
16136
16151
|
const [isShowMore, setIsShowMore] = useState(false);
|
16137
16152
|
const [isReload, setIsReload] = useState(new Date().getTime());
|
16138
16153
|
const skipLinkRef = useRef(false);
|
16154
|
+
const [pageNum, setPageNum] = useState(2);
|
16139
16155
|
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();
|
16140
16156
|
const { backMainFeed, productView, jumpToWeb } = useEventReport();
|
16141
16157
|
const isShowFingerTip = useMemo(() => {
|
@@ -16585,8 +16601,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
16585
16601
|
isReload,
|
16586
16602
|
renderToggleButton
|
16587
16603
|
]);
|
16588
|
-
return (React.createElement("div", { id: 'sxp-render', className: 'clc-sxp-container' },
|
16589
|
-
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 =
|
16604
|
+
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` } },
|
16605
|
+
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: () => {
|
16590
16606
|
const isEq = isEqual(rtcList, cacheRtcList);
|
16591
16607
|
if (!isEq && cacheRtcList && (cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.length)) {
|
16592
16608
|
setRtcList === null || setRtcList === void 0 ? void 0 : setRtcList(cacheRtcList);
|
@@ -16597,7 +16613,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
16597
16613
|
React.createElement(Tagbar$1, { tagList: tagList, setActiveIndex: setActiveIndex, style: {
|
16598
16614
|
top: minusHeight
|
16599
16615
|
} }),
|
16600
|
-
isShowFingerTip ? (React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon, style: { top: `${50 - ((
|
16616
|
+
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,
|
16601
16617
|
React.createElement(Swiper, { style: {
|
16602
16618
|
marginTop: tagHeight
|
16603
16619
|
}, ref: swiperRef, onSlideChange: () => {
|
@@ -16615,13 +16631,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
16615
16631
|
return;
|
16616
16632
|
if ((swiper === null || swiper === void 0 ? void 0 : swiper.activeIndex) + 1 >= (data === null || data === void 0 ? void 0 : data.length)) {
|
16617
16633
|
if (!isLoadMore) {
|
16618
|
-
let pageNum = 2;
|
16619
16634
|
setIsLoadMore(true);
|
16620
16635
|
loadVideos === null || loadVideos === void 0 ? void 0 : loadVideos(pageNum).then((res) => {
|
16621
16636
|
var _a;
|
16622
16637
|
setIsLoadMore(false);
|
16623
16638
|
if (res && ((_a = res === null || res === void 0 ? void 0 : res.recList) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
16624
|
-
pageNum
|
16639
|
+
setPageNum((pageNum + 1));
|
16625
16640
|
}
|
16626
16641
|
});
|
16627
16642
|
}
|
@@ -16630,7 +16645,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
16630
16645
|
renderLikeButton(visList[activeIndex], activeIndex, !!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIconFixed)),
|
16631
16646
|
renderToggleButton(!!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconFixed)),
|
16632
16647
|
renderView),
|
16633
|
-
React.createElement(WaterFall$1, Object.assign({}, (
|
16648
|
+
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))));
|
16634
16649
|
};
|
16635
16650
|
|
16636
16651
|
const PictureGroup = ({ imgUrls, width, height, imgUrlsPostConfig, rec, index }) => {
|