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.
Files changed (30) hide show
  1. package/dist/index.cjs +63 -42
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.css +0 -4
  4. package/dist/index.js +63 -42
  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 +63 -42
  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 +12 -6
  15. package/es/core/components/SxpPageRender/PictureGroup/index.js +4 -5
  16. package/es/core/components/SxpPageRender/index.d.ts +1 -0
  17. package/es/core/components/SxpPageRender/index.js +3 -3
  18. package/es/materials/sxp/popup/CommodityDetail/index.js +5 -9
  19. package/es/materials/sxp/popup/CommodityDetail/settingRender.js +10 -0
  20. package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +15 -15
  21. package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +10 -0
  22. package/lib/core/components/SxpPageRender/Modal/index.js +12 -6
  23. package/lib/core/components/SxpPageRender/PictureGroup/index.js +4 -5
  24. package/lib/core/components/SxpPageRender/index.d.ts +1 -0
  25. package/lib/core/components/SxpPageRender/index.js +3 -3
  26. package/lib/materials/sxp/popup/CommodityDetail/index.js +5 -9
  27. package/lib/materials/sxp/popup/CommodityDetail/settingRender.js +10 -0
  28. package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +15 -15
  29. package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +10 -0
  30. 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-22 18:48:44
8873
+ * @LastEditTime: 2024-08-30 11:45:21
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');
@@ -8978,9 +8989,9 @@ const Modal = ({ visible, onClose, children, modalStyle, padding, popup, schema,
8978
8989
  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)`,
8979
8990
  height: '100%'
8980
8991
  } },
8981
- 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 && {
8992
+ 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 && {
8982
8993
  transform: `translateY(${modalTrans}px)`
8983
- })), onClick: (e) => {
8994
+ })), { overflow: 'hidden' }), onClick: (e) => {
8984
8995
  e.stopPropagation();
8985
8996
  e.preventDefault();
8986
8997
  } }, (isScrollFullScreen && {
@@ -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", { onClick: onClose, className: 'modal-icon-wrapper' },
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
- } }, children)))))), modalEleRef.current);
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
 
@@ -9159,7 +9175,7 @@ const CommodityGroup = ({ products, data, defImg, style, onCLick, popupDetailDat
9159
9175
  var CommodityGroup$1 = memo(CommodityGroup);
9160
9176
 
9161
9177
  const CommodityDetail$1 = (_a) => {
9162
- var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
9178
+ 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;
9163
9179
  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"]);
9164
9180
  const { sxpParameter, popupDetailData, isPreview, bffFbReport, popupCurTimeRef, checkCommodityIndexRef } = useSxpDataSource();
9165
9181
  const { jumpToWeb, productView } = useEventReport();
@@ -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': { 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) && {
9298
9310
  '.swiper-pagination-bullet': {
9299
9311
  backgroundColor: swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor,
9300
9312
  opacity: 1
@@ -9305,7 +9317,7 @@ const CommodityDetail$1 = (_a) => {
9305
9317
  opacity: 1
9306
9318
  }
9307
9319
  }))) },
9308
- React.createElement(React.Fragment, null, (_x = product === null || product === void 0 ? void 0 : product.homePage) === null || _x === void 0 ? void 0 : _x.map((src) => {
9320
+ React.createElement(React.Fragment, null, (_y = product === null || product === void 0 ? void 0 : product.homePage) === null || _y === void 0 ? void 0 : _y.map((src) => {
9309
9321
  var _a;
9310
9322
  return (React.createElement(SwiperSlide, { key: src },
9311
9323
  React.createElement("div", { style: {
@@ -9321,7 +9333,7 @@ const CommodityDetail$1 = (_a) => {
9321
9333
  objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
9322
9334
  }, 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 }))));
9323
9335
  })))),
9324
- !((_y = product === null || product === void 0 ? void 0 : product.homePage) === null || _y === void 0 ? void 0 : _y.length) && (React.createElement("div", { className: css({
9336
+ !((_z = product === null || product === void 0 ? void 0 : product.homePage) === null || _z === void 0 ? void 0 : _z.length) && (React.createElement("div", { className: css({
9325
9337
  height,
9326
9338
  width
9327
9339
  }) },
@@ -9329,7 +9341,7 @@ const CommodityDetail$1 = (_a) => {
9329
9341
  objectFit: 'cover',
9330
9342
  width: '100%',
9331
9343
  height: '100%'
9332
- }), src: (_z = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _z !== void 0 ? _z : bottom_image, alt: 'pdp image' }))),
9344
+ }), src: (_0 = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _0 !== void 0 ? _0 : bottom_image, alt: 'pdp image' }))),
9333
9345
  (iframeUrl || !product) && iframeIcon && (React.createElement("div", { style: {
9334
9346
  display: 'flex',
9335
9347
  alignItems: 'center',
@@ -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-28 19:08:24
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,11 +10041,21 @@ 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
 
10035
10057
  const CommodityDetailDiroNew$1 = (_a) => {
10036
- 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;
10058
+ 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;
10037
10059
  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"]);
10038
10060
  useState(true);
10039
10061
  const { sxpParameter, popupCurTimeRef, popupDetailData, isPreview, bffFbReport, checkCommodityIndexRef } = useSxpDataSource();
@@ -10191,15 +10213,14 @@ 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: 'commondityDiroNew-swipe-item-active-bullet',
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': {
10221
+ bottom: (_x = swiper === null || swiper === void 0 ? void 0 : swiper.dotsMarginBottom) !== null && _x !== void 0 ? _x : 0,
10222
+ fontSize: '14px'
10223
+ } }, ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor) && {
10203
10224
  '.swiper-pagination-bullet': {
10204
10225
  backgroundColor: swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor,
10205
10226
  opacity: 1
@@ -10209,7 +10230,7 @@ Made in Italy` })));
10209
10230
  backgroundColor: `${swiper === null || swiper === void 0 ? void 0 : swiper.dotsActiveColor}!important`,
10210
10231
  opacity: 1
10211
10232
  }
10212
- }))) }, (_x = product === null || product === void 0 ? void 0 : product.homePage) === null || _x === void 0 ? void 0 : _x.map((src) => {
10233
+ }))) }, (_y = product === null || product === void 0 ? void 0 : product.homePage) === null || _y === void 0 ? void 0 : _y.map((src) => {
10213
10234
  var _a;
10214
10235
  return (React.createElement(SwiperSlide, { key: src },
10215
10236
  React.createElement("div", { style: {
@@ -10225,7 +10246,7 @@ Made in Italy` })));
10225
10246
  objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
10226
10247
  }, 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 }))));
10227
10248
  }))),
10228
- !((_y = product === null || product === void 0 ? void 0 : product.homePage) === null || _y === void 0 ? void 0 : _y.length) && (React.createElement("div", { className: css({
10249
+ !((_z = product === null || product === void 0 ? void 0 : product.homePage) === null || _z === void 0 ? void 0 : _z.length) && (React.createElement("div", { className: css({
10229
10250
  height,
10230
10251
  width
10231
10252
  }) },
@@ -10233,7 +10254,7 @@ Made in Italy` })));
10233
10254
  objectFit: 'cover',
10234
10255
  width: '100%',
10235
10256
  height: '100%'
10236
- }), src: (_z = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _z !== void 0 ? _z : bottom_image, alt: 'pdp image' }))),
10257
+ }), src: (_0 = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _0 !== void 0 ? _0 : bottom_image, alt: 'pdp image' }))),
10237
10258
  (iframeUrl || !product) && iframeIcon && (React.createElement("div", { style: {
10238
10259
  display: 'flex',
10239
10260
  alignItems: 'center',
@@ -10250,7 +10271,7 @@ Made in Italy` })));
10250
10271
  React.createElement("div", { className: 'pb-commondityDiroNew-content-top' },
10251
10272
  React.createElement("div", { className: 'pb-commondityDiroNew-content-top-left' },
10252
10273
  React.createElement("div", { className: 'pb-commondityDiroNew-content-top-left-title', style: getStyle(commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title), dangerouslySetInnerHTML: {
10253
- __html: setFontForText((_0 = product === null || product === void 0 ? void 0 : product.title) !== null && _0 !== void 0 ? _0 : 'Large Dior Toujours BagLarge', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title)
10274
+ __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)
10254
10275
  } }),
10255
10276
  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: {
10256
10277
  __html: setFontForText((product === null || product === void 0 ? void 0 : product.collection) || 'Black Macrocannage CalfskinLarge', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection)
@@ -10260,14 +10281,15 @@ Made in Italy` })));
10260
10281
  __html: setFontForText(priceText, commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price)
10261
10282
  } }),
10262
10283
  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: {
10263
- __html: setFontForText((_1 = product === null || product === void 0 ? void 0 : product.taxInfo) !== null && _1 !== void 0 ? _1 : '税费', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.taxInfo)
10284
+ __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)
10264
10285
  } }))),
10265
- (!product || (product === null || product === void 0 ? void 0 : product.link)) && (React.createElement("button", { "aria-label": (_2 = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _2 !== void 0 ? _2 : 'Shop now', onClick: handleLink, className: 'pb-commondityDiroNew-btn', style: buttonStyle },
10286
+ (!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 },
10266
10287
  React.createElement("span", { dangerouslySetInnerHTML: {
10267
- __html: setFontForText((_3 = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _3 !== void 0 ? _3 : 'Shop now', buttonStyle)
10288
+ __html: setFontForText((_4 = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _4 !== void 0 ? _4 : 'Shop now', buttonStyle)
10268
10289
  } }))),
10269
10290
  productInfoText({ isPost }))),
10270
- React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) }, productInfoText({ isPost: false })),
10291
+ React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) },
10292
+ React.createElement("div", { style: { paddingTop: '20px' } }, productInfoText({ isPost: false }))),
10271
10293
  React.createElement(Modal$1, { visible: show3DModal, padding: 0, isFullScreen: true, onClose: () => setShow3DModal(false) },
10272
10294
  React.createElement("div", { style: { backgroundColor: iframeBgColor, height: '100%' } },
10273
10295
  React.createElement("iframe", { src: iframeUrl, style: {
@@ -15817,7 +15839,7 @@ const Picture = (props) => {
15817
15839
  * @Author: lewinlu@chatlabs.com
15818
15840
  * @Date: 2024-01-03 14:39:09
15819
15841
  * @LastEditors: binruan@chatlabs.com
15820
- * @LastEditTime: 2024-08-29 09:34:13
15842
+ * @LastEditTime: 2024-08-30 13:58:51
15821
15843
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\index.tsx
15822
15844
  */
15823
15845
  const PictureGroup$2 = ({ imgUrls, width, height, rec, index, onReportViewImageEnd, onViewImageStartEvent, imgUrlsPostConfig }) => {
@@ -15851,11 +15873,10 @@ const PictureGroup$2 = ({ imgUrls, width, height, rec, index, onReportViewImageE
15851
15873
  return (React.createElement(Swiper, { ref: ref, defaultValue: 0, direction: 'horizontal', modules: [Pagination, Autoplay], pagination: {
15852
15874
  clickable: true,
15853
15875
  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) && {
15876
+ }, className: css(Object.assign(Object.assign({ '.swiper-pagination': {
15877
+ bottom: (_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) !== null && _a !== void 0 ? _a : 0,
15878
+ fontSize: '14px'
15879
+ } }, ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsBgColor) && {
15859
15880
  '.swiper-pagination-bullet': {
15860
15881
  backgroundColor: imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsBgColor,
15861
15882
  opacity: 1
@@ -16119,7 +16140,7 @@ var Tagbar$1 = memo(Tagbar);
16119
16140
  * @Author: binruan@chatlabs.com
16120
16141
  * @Date: 2024-01-15 19:03:09
16121
16142
  * @LastEditors: binruan@chatlabs.com
16122
- * @LastEditTime: 2024-08-28 19:13:38
16143
+ * @LastEditTime: 2024-08-30 11:42:11
16123
16144
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
16124
16145
  *
16125
16146
  */
@@ -16136,6 +16157,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
16136
16157
  const [isShowMore, setIsShowMore] = useState(false);
16137
16158
  const [isReload, setIsReload] = useState(new Date().getTime());
16138
16159
  const skipLinkRef = useRef(false);
16160
+ const [pageNum, setPageNum] = useState(2);
16139
16161
  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
16162
  const { backMainFeed, productView, jumpToWeb } = useEventReport();
16141
16163
  const isShowFingerTip = useMemo(() => {
@@ -16585,7 +16607,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
16585
16607
  isReload,
16586
16608
  renderToggleButton
16587
16609
  ]);
16588
- return (React.createElement("div", { id: 'sxp-render', className: 'clc-sxp-container' },
16610
+ 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` })) },
16589
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: () => {
16590
16612
  const isEq = isEqual(rtcList, cacheRtcList);
16591
16613
  if (!isEq && cacheRtcList && (cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.length)) {
@@ -16615,13 +16637,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
16615
16637
  return;
16616
16638
  if ((swiper === null || swiper === void 0 ? void 0 : swiper.activeIndex) + 1 >= (data === null || data === void 0 ? void 0 : data.length)) {
16617
16639
  if (!isLoadMore) {
16618
- let pageNum = 2;
16619
16640
  setIsLoadMore(true);
16620
16641
  loadVideos === null || loadVideos === void 0 ? void 0 : loadVideos(pageNum).then((res) => {
16621
16642
  var _a;
16622
16643
  setIsLoadMore(false);
16623
16644
  if (res && ((_a = res === null || res === void 0 ? void 0 : res.recList) === null || _a === void 0 ? void 0 : _a.length) > 0) {
16624
- pageNum++;
16645
+ setPageNum(pageNum + 1);
16625
16646
  }
16626
16647
  });
16627
16648
  }