pb-sxp-ui 1.4.0 → 1.4.2
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 +63 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +0 -4
- package/dist/index.js +63 -42
- 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 +63 -42
- 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 +12 -6
- package/es/core/components/SxpPageRender/PictureGroup/index.js +4 -5
- package/es/core/components/SxpPageRender/index.d.ts +1 -0
- package/es/core/components/SxpPageRender/index.js +3 -3
- package/es/materials/sxp/popup/CommodityDetail/index.js +5 -9
- package/es/materials/sxp/popup/CommodityDetail/settingRender.js +10 -0
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +15 -15
- package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +10 -0
- package/lib/core/components/SxpPageRender/Modal/index.js +12 -6
- package/lib/core/components/SxpPageRender/PictureGroup/index.js +4 -5
- package/lib/core/components/SxpPageRender/index.d.ts +1 -0
- package/lib/core/components/SxpPageRender/index.js +3 -3
- package/lib/materials/sxp/popup/CommodityDetail/index.js +5 -9
- package/lib/materials/sxp/popup/CommodityDetail/settingRender.js +10 -0
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +15 -15
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +10 -0
- package/package.json +1 -1
package/dist/pb-ui.js
CHANGED
@@ -2046,6 +2046,16 @@
|
|
2046
2046
|
addonAfter: 'px'
|
2047
2047
|
}
|
2048
2048
|
]
|
2049
|
+
},
|
2050
|
+
{
|
2051
|
+
title: '关闭按钮',
|
2052
|
+
child: [
|
2053
|
+
{
|
2054
|
+
label: '跟随弹窗滚动',
|
2055
|
+
type: 'Switch',
|
2056
|
+
name: ['props', 'enableFixedCloseButton']
|
2057
|
+
}
|
2058
|
+
]
|
2049
2059
|
}
|
2050
2060
|
];
|
2051
2061
|
|
@@ -8875,13 +8885,13 @@
|
|
8875
8885
|
* @Author: binruan@chatlabs.com
|
8876
8886
|
* @Date: 2023-11-02 18:34:34
|
8877
8887
|
* @LastEditors: binruan@chatlabs.com
|
8878
|
-
* @LastEditTime: 2024-08-
|
8888
|
+
* @LastEditTime: 2024-08-30 11:45:21
|
8879
8889
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Modal\index.tsx
|
8880
8890
|
*
|
8881
8891
|
*/
|
8882
8892
|
const closeIcon$1 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=';
|
8883
8893
|
const Modal = ({ visible, onClose, children, modalStyle, padding, popup, schema, fullHeight = window.innerHeight, isFullScreen = false }) => {
|
8884
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
8894
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
8885
8895
|
const touchRef = React.useRef(null);
|
8886
8896
|
const fTouchRef = React.useRef(null);
|
8887
8897
|
const touchMoveRef = React.useRef(null);
|
@@ -8893,6 +8903,7 @@
|
|
8893
8903
|
const modalEleRef = React.useRef(null);
|
8894
8904
|
const { globalConfig, popupDetailData } = useSxpDataSource();
|
8895
8905
|
const { schema: _schema } = useEditor();
|
8906
|
+
const [scrollTop, setScrollTop] = React.useState(15);
|
8896
8907
|
React.useEffect(() => {
|
8897
8908
|
const parentNode = document.getElementById('sxp-render');
|
8898
8909
|
const node = document.getElementById('pb-modal');
|
@@ -8993,9 +9004,9 @@
|
|
8993
9004
|
width: `calc(100% - ${((_r = (_q = (_p = (_o = getPopupById === null || getPopupById === void 0 ? void 0 : getPopupById.item) === null || _o === void 0 ? void 0 : _o.props) === null || _p === void 0 ? void 0 : _p.popupBg) === null || _q === void 0 ? void 0 : _q.horizontalMargin) !== null && _r !== void 0 ? _r : 0) * 2}px)`,
|
8994
9005
|
height: '100%'
|
8995
9006
|
} },
|
8996
|
-
React.createElement("div", Object.assign({ className: `modal-container ${isOpen ? 'modal-popIn' : 'modal-popOut'}`, style: Object.assign({ padding, animationDuration: ((_s = popup === null || popup === void 0 ? void 0 : popup.duration) !== null && _s !== void 0 ? _s : 0) / 1000 + 's' }, (isScrollFullScreen && {
|
9007
|
+
React.createElement("div", Object.assign({ className: `modal-container ${isOpen ? 'modal-popIn' : 'modal-popOut'}`, style: Object.assign(Object.assign({ padding, animationDuration: ((_s = popup === null || popup === void 0 ? void 0 : popup.duration) !== null && _s !== void 0 ? _s : 0) / 1000 + 's' }, (isScrollFullScreen && {
|
8997
9008
|
transform: `translateY(${modalTrans}px)`
|
8998
|
-
})), onClick: (e) => {
|
9009
|
+
})), { overflow: 'hidden' }), onClick: (e) => {
|
8999
9010
|
e.stopPropagation();
|
9000
9011
|
e.preventDefault();
|
9001
9012
|
} }, (isScrollFullScreen && {
|
@@ -9003,12 +9014,17 @@
|
|
9003
9014
|
onTouchStart: handleTouchStart,
|
9004
9015
|
onTouchEnd: handleTouchEnd
|
9005
9016
|
})),
|
9006
|
-
React.createElement("div", {
|
9017
|
+
React.createElement("div", { className: 'modal-icon-wrapper', onClick: onClose, style: { top: scrollTop } },
|
9007
9018
|
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' })),
|
9008
|
-
React.createElement("div", { ref: ref, style: {
|
9019
|
+
React.createElement("div", Object.assign({ ref: ref, style: {
|
9009
9020
|
height: isScrollFullScreen ? fullHeight : MODAL_DEF_CON_H,
|
9010
9021
|
overflow: (isScrollFullScreen && modalTrans <= 0) || !isScrollFullScreen ? 'auto' : 'hidden'
|
9011
|
-
} },
|
9022
|
+
} }, (((_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) && {
|
9023
|
+
onScroll: (e) => {
|
9024
|
+
var _a;
|
9025
|
+
setScrollTop(15 - ((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.scrollTop));
|
9026
|
+
}
|
9027
|
+
})), children)))))), modalEleRef.current);
|
9012
9028
|
};
|
9013
9029
|
var Modal$1 = React.memo(Modal);
|
9014
9030
|
|
@@ -9174,7 +9190,7 @@
|
|
9174
9190
|
var CommodityGroup$1 = React.memo(CommodityGroup);
|
9175
9191
|
|
9176
9192
|
const CommodityDetail$1 = (_a) => {
|
9177
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
9193
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
|
9178
9194
|
var { content, style, bgImg, onClick, schema, isDefault, bottom_image, tipText, isPost, viewTime, rec, swiper, commodityStyles, buttonStyle, index, commodityGroup, popupBg, iframeIcon, commodityImgRatio, isTel, iframeBgColor } = _a, props = __rest(_a, ["content", "style", "bgImg", "onClick", "schema", "isDefault", "bottom_image", "tipText", "isPost", "viewTime", "rec", "swiper", "commodityStyles", "buttonStyle", "index", "commodityGroup", "popupBg", "iframeIcon", "commodityImgRatio", "isTel", "iframeBgColor"]);
|
9179
9195
|
const { sxpParameter, popupDetailData, isPreview, bffFbReport, popupCurTimeRef, checkCommodityIndexRef } = useSxpDataSource();
|
9180
9196
|
const { jumpToWeb, productView } = useEventReport();
|
@@ -9305,11 +9321,7 @@
|
|
9305
9321
|
clickableClass: getDotsAlign
|
9306
9322
|
}, loop: true, autoplay: {
|
9307
9323
|
delay: (swiper === null || swiper === void 0 ? void 0 : swiper.delay) * 1000
|
9308
|
-
}, ref: ref, className: css.css(Object.assign(Object.assign(
|
9309
|
-
'.swiper-pagination': {
|
9310
|
-
bottom: swiper === null || swiper === void 0 ? void 0 : swiper.dotsMarginBottom
|
9311
|
-
}
|
9312
|
-
})), ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor) && {
|
9324
|
+
}, ref: ref, className: css.css(Object.assign(Object.assign({ '.swiper-pagination': { bottom: (_x = swiper === null || swiper === void 0 ? void 0 : swiper.dotsMarginBottom) !== null && _x !== void 0 ? _x : 0, fontSize: '14px' } }, ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor) && {
|
9313
9325
|
'.swiper-pagination-bullet': {
|
9314
9326
|
backgroundColor: swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor,
|
9315
9327
|
opacity: 1
|
@@ -9320,7 +9332,7 @@
|
|
9320
9332
|
opacity: 1
|
9321
9333
|
}
|
9322
9334
|
}))) },
|
9323
|
-
React.createElement(React.Fragment, null, (
|
9335
|
+
React.createElement(React.Fragment, null, (_y = product === null || product === void 0 ? void 0 : product.homePage) === null || _y === void 0 ? void 0 : _y.map((src) => {
|
9324
9336
|
var _a;
|
9325
9337
|
return (React.createElement(SwiperSlide, { key: src },
|
9326
9338
|
React.createElement("div", { style: {
|
@@ -9336,7 +9348,7 @@
|
|
9336
9348
|
objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
|
9337
9349
|
}, src: (_a = src !== null && src !== void 0 ? src : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _a !== void 0 ? _a : bottom_image }))));
|
9338
9350
|
})))),
|
9339
|
-
!((
|
9351
|
+
!((_z = product === null || product === void 0 ? void 0 : product.homePage) === null || _z === void 0 ? void 0 : _z.length) && (React.createElement("div", { className: css.css({
|
9340
9352
|
height,
|
9341
9353
|
width
|
9342
9354
|
}) },
|
@@ -9344,7 +9356,7 @@
|
|
9344
9356
|
objectFit: 'cover',
|
9345
9357
|
width: '100%',
|
9346
9358
|
height: '100%'
|
9347
|
-
}), src: (
|
9359
|
+
}), src: (_0 = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _0 !== void 0 ? _0 : bottom_image, alt: 'pdp image' }))),
|
9348
9360
|
(iframeUrl || !product) && iframeIcon && (React.createElement("div", { style: {
|
9349
9361
|
display: 'flex',
|
9350
9362
|
alignItems: 'center',
|
@@ -9708,7 +9720,7 @@
|
|
9708
9720
|
* @Author: binruan@chatlabs.com
|
9709
9721
|
* @Date: 2024-03-26 16:50:25
|
9710
9722
|
* @LastEditors: binruan@chatlabs.com
|
9711
|
-
* @LastEditTime: 2024-08-
|
9723
|
+
* @LastEditTime: 2024-08-29 16:45:54
|
9712
9724
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetailDiroNew\settingRender.tsx
|
9713
9725
|
*
|
9714
9726
|
*/
|
@@ -10044,11 +10056,21 @@
|
|
10044
10056
|
addonAfter: 'px'
|
10045
10057
|
}
|
10046
10058
|
]
|
10059
|
+
},
|
10060
|
+
{
|
10061
|
+
title: '关闭按钮',
|
10062
|
+
child: [
|
10063
|
+
{
|
10064
|
+
label: '跟随弹窗滚动',
|
10065
|
+
type: 'Switch',
|
10066
|
+
name: ['props', 'enableFixedCloseButton']
|
10067
|
+
}
|
10068
|
+
]
|
10047
10069
|
}
|
10048
10070
|
];
|
10049
10071
|
|
10050
10072
|
const CommodityDetailDiroNew$1 = (_a) => {
|
10051
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
|
10073
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4;
|
10052
10074
|
var { style, isDefault, rec, viewTime, isPost, bottom_image, tipText, swiper, commodityStyles, buttonStyle, index, commodityGroup, popupBg, iframeIcon, commodityImgRatio, isTel, iframeBgColor } = _a, props = __rest(_a, ["style", "isDefault", "rec", "viewTime", "isPost", "bottom_image", "tipText", "swiper", "commodityStyles", "buttonStyle", "index", "commodityGroup", "popupBg", "iframeIcon", "commodityImgRatio", "isTel", "iframeBgColor"]);
|
10053
10075
|
React.useState(true);
|
10054
10076
|
const { sxpParameter, popupCurTimeRef, popupDetailData, isPreview, bffFbReport, checkCommodityIndexRef } = useSxpDataSource();
|
@@ -10206,15 +10228,14 @@ Made in Italy` })));
|
|
10206
10228
|
React.createElement("div", { style: { position: 'relative' } },
|
10207
10229
|
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: {
|
10208
10230
|
clickable: true,
|
10209
|
-
bulletActiveClass: '
|
10231
|
+
bulletActiveClass: 'swipe-item-active-bullet',
|
10210
10232
|
clickableClass: getDotsAlign
|
10211
10233
|
}, loop: true, autoplay: {
|
10212
10234
|
delay: (swiper === null || swiper === void 0 ? void 0 : swiper.delay) * 1000
|
10213
|
-
}, ref: ref, className: css.css(Object.assign(Object.assign(
|
10214
|
-
|
10215
|
-
|
10216
|
-
}
|
10217
|
-
})), ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor) && {
|
10235
|
+
}, ref: ref, className: css.css(Object.assign(Object.assign({ '.swiper-pagination': {
|
10236
|
+
bottom: (_x = swiper === null || swiper === void 0 ? void 0 : swiper.dotsMarginBottom) !== null && _x !== void 0 ? _x : 0,
|
10237
|
+
fontSize: '14px'
|
10238
|
+
} }, ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor) && {
|
10218
10239
|
'.swiper-pagination-bullet': {
|
10219
10240
|
backgroundColor: swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor,
|
10220
10241
|
opacity: 1
|
@@ -10224,7 +10245,7 @@ Made in Italy` })));
|
|
10224
10245
|
backgroundColor: `${swiper === null || swiper === void 0 ? void 0 : swiper.dotsActiveColor}!important`,
|
10225
10246
|
opacity: 1
|
10226
10247
|
}
|
10227
|
-
}))) }, (
|
10248
|
+
}))) }, (_y = product === null || product === void 0 ? void 0 : product.homePage) === null || _y === void 0 ? void 0 : _y.map((src) => {
|
10228
10249
|
var _a;
|
10229
10250
|
return (React.createElement(SwiperSlide, { key: src },
|
10230
10251
|
React.createElement("div", { style: {
|
@@ -10240,7 +10261,7 @@ Made in Italy` })));
|
|
10240
10261
|
objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
|
10241
10262
|
}, src: (_a = src !== null && src !== void 0 ? src : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _a !== void 0 ? _a : bottom_image }))));
|
10242
10263
|
}))),
|
10243
|
-
!((
|
10264
|
+
!((_z = product === null || product === void 0 ? void 0 : product.homePage) === null || _z === void 0 ? void 0 : _z.length) && (React.createElement("div", { className: css.css({
|
10244
10265
|
height,
|
10245
10266
|
width
|
10246
10267
|
}) },
|
@@ -10248,7 +10269,7 @@ Made in Italy` })));
|
|
10248
10269
|
objectFit: 'cover',
|
10249
10270
|
width: '100%',
|
10250
10271
|
height: '100%'
|
10251
|
-
}), src: (
|
10272
|
+
}), src: (_0 = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _0 !== void 0 ? _0 : bottom_image, alt: 'pdp image' }))),
|
10252
10273
|
(iframeUrl || !product) && iframeIcon && (React.createElement("div", { style: {
|
10253
10274
|
display: 'flex',
|
10254
10275
|
alignItems: 'center',
|
@@ -10265,7 +10286,7 @@ Made in Italy` })));
|
|
10265
10286
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-top' },
|
10266
10287
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-left' },
|
10267
10288
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-left-title', style: getStyle(commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title), dangerouslySetInnerHTML: {
|
10268
|
-
__html: setFontForText((
|
10289
|
+
__html: setFontForText((_1 = product === null || product === void 0 ? void 0 : product.title) !== null && _1 !== void 0 ? _1 : 'Large Dior Toujours BagLarge', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title)
|
10269
10290
|
} }),
|
10270
10291
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-collection', hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.collection) || (product === null || product === void 0 ? void 0 : product.collection) === ''), style: getStyle(commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection), dangerouslySetInnerHTML: {
|
10271
10292
|
__html: setFontForText((product === null || product === void 0 ? void 0 : product.collection) || 'Black Macrocannage CalfskinLarge', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection)
|
@@ -10275,14 +10296,15 @@ Made in Italy` })));
|
|
10275
10296
|
__html: setFontForText(priceText, commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price)
|
10276
10297
|
} }),
|
10277
10298
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-right-price', hidden: !!product && !(product === null || product === void 0 ? void 0 : product.taxInfo), style: getStyle(commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.taxInfo), dangerouslySetInnerHTML: {
|
10278
|
-
__html: setFontForText((
|
10299
|
+
__html: setFontForText((_2 = product === null || product === void 0 ? void 0 : product.taxInfo) !== null && _2 !== void 0 ? _2 : '税费', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.taxInfo)
|
10279
10300
|
} }))),
|
10280
|
-
(!product || (product === null || product === void 0 ? void 0 : product.link)) && (React.createElement("button", { "aria-label": (
|
10301
|
+
(!product || (product === null || product === void 0 ? void 0 : product.link)) && (React.createElement("button", { "aria-label": (_3 = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _3 !== void 0 ? _3 : 'Shop now', onClick: handleLink, className: 'pb-commondityDiroNew-btn', style: buttonStyle },
|
10281
10302
|
React.createElement("span", { dangerouslySetInnerHTML: {
|
10282
|
-
__html: setFontForText((
|
10303
|
+
__html: setFontForText((_4 = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _4 !== void 0 ? _4 : 'Shop now', buttonStyle)
|
10283
10304
|
} }))),
|
10284
10305
|
productInfoText({ isPost }))),
|
10285
|
-
React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) },
|
10306
|
+
React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) },
|
10307
|
+
React.createElement("div", { style: { paddingTop: '20px' } }, productInfoText({ isPost: false }))),
|
10286
10308
|
React.createElement(Modal$1, { visible: show3DModal, padding: 0, isFullScreen: true, onClose: () => setShow3DModal(false) },
|
10287
10309
|
React.createElement("div", { style: { backgroundColor: iframeBgColor, height: '100%' } },
|
10288
10310
|
React.createElement("iframe", { src: iframeUrl, style: {
|
@@ -15832,7 +15854,7 @@ Made in Italy` })));
|
|
15832
15854
|
* @Author: lewinlu@chatlabs.com
|
15833
15855
|
* @Date: 2024-01-03 14:39:09
|
15834
15856
|
* @LastEditors: binruan@chatlabs.com
|
15835
|
-
* @LastEditTime: 2024-08-
|
15857
|
+
* @LastEditTime: 2024-08-30 13:58:51
|
15836
15858
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\index.tsx
|
15837
15859
|
*/
|
15838
15860
|
const PictureGroup$2 = ({ imgUrls, width, height, rec, index, onReportViewImageEnd, onViewImageStartEvent, imgUrlsPostConfig }) => {
|
@@ -15866,11 +15888,10 @@ Made in Italy` })));
|
|
15866
15888
|
return (React.createElement(Swiper, { ref: ref, defaultValue: 0, direction: 'horizontal', modules: [Pagination, Autoplay], pagination: {
|
15867
15889
|
clickable: true,
|
15868
15890
|
bulletActiveClass: 'swipe-item-active-bullet'
|
15869
|
-
}, className: css.css(Object.assign(Object.assign(
|
15870
|
-
|
15871
|
-
|
15872
|
-
}
|
15873
|
-
})), ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsBgColor) && {
|
15891
|
+
}, className: css.css(Object.assign(Object.assign({ '.swiper-pagination': {
|
15892
|
+
bottom: (_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) !== null && _a !== void 0 ? _a : 0,
|
15893
|
+
fontSize: '14px'
|
15894
|
+
} }, ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsBgColor) && {
|
15874
15895
|
'.swiper-pagination-bullet': {
|
15875
15896
|
backgroundColor: imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsBgColor,
|
15876
15897
|
opacity: 1
|
@@ -16134,7 +16155,7 @@ Made in Italy` })));
|
|
16134
16155
|
* @Author: binruan@chatlabs.com
|
16135
16156
|
* @Date: 2024-01-15 19:03:09
|
16136
16157
|
* @LastEditors: binruan@chatlabs.com
|
16137
|
-
* @LastEditTime: 2024-08-
|
16158
|
+
* @LastEditTime: 2024-08-30 11:42:11
|
16138
16159
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
16139
16160
|
*
|
16140
16161
|
*/
|
@@ -16151,6 +16172,7 @@ Made in Italy` })));
|
|
16151
16172
|
const [isShowMore, setIsShowMore] = React.useState(false);
|
16152
16173
|
const [isReload, setIsReload] = React.useState(new Date().getTime());
|
16153
16174
|
const skipLinkRef = React.useRef(false);
|
16175
|
+
const [pageNum, setPageNum] = React.useState(2);
|
16154
16176
|
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();
|
16155
16177
|
const { backMainFeed, productView, jumpToWeb } = useEventReport();
|
16156
16178
|
const isShowFingerTip = React.useMemo(() => {
|
@@ -16600,7 +16622,7 @@ Made in Italy` })));
|
|
16600
16622
|
isReload,
|
16601
16623
|
renderToggleButton
|
16602
16624
|
]);
|
16603
|
-
return (React.createElement("div", { id: 'sxp-render', className: 'clc-sxp-container' },
|
16625
|
+
return (React.createElement("div", { id: 'sxp-render', className: 'clc-sxp-container', style: Object.assign({}, ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.textUnderlineOffset) && { textUnderlineOffset: `${globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.textUnderlineOffset}px` })) },
|
16604
16626
|
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: () => {
|
16605
16627
|
const isEq = lodash.isEqual(rtcList, cacheRtcList);
|
16606
16628
|
if (!isEq && cacheRtcList && (cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.length)) {
|
@@ -16630,13 +16652,12 @@ Made in Italy` })));
|
|
16630
16652
|
return;
|
16631
16653
|
if ((swiper === null || swiper === void 0 ? void 0 : swiper.activeIndex) + 1 >= (data === null || data === void 0 ? void 0 : data.length)) {
|
16632
16654
|
if (!isLoadMore) {
|
16633
|
-
let pageNum = 2;
|
16634
16655
|
setIsLoadMore(true);
|
16635
16656
|
loadVideos === null || loadVideos === void 0 ? void 0 : loadVideos(pageNum).then((res) => {
|
16636
16657
|
var _a;
|
16637
16658
|
setIsLoadMore(false);
|
16638
16659
|
if (res && ((_a = res === null || res === void 0 ? void 0 : res.recList) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
16639
|
-
pageNum
|
16660
|
+
setPageNum(pageNum + 1);
|
16640
16661
|
}
|
16641
16662
|
});
|
16642
16663
|
}
|