pb-sxp-ui 1.3.2 → 1.3.4

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.css CHANGED
@@ -1872,7 +1872,7 @@ button.swiper-pagination-bullet {
1872
1872
  }
1873
1873
  .clc-sxp-like-button {
1874
1874
  position: absolute;
1875
- z-index: 10;
1875
+ z-index: 11;
1876
1876
  background-color: transparent;
1877
1877
  width: 50px;
1878
1878
  height: 50px;
package/dist/index.js CHANGED
@@ -711,9 +711,10 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
711
711
  }
712
712
  if (isEditor) {
713
713
  let pageNum = 1;
714
- query = Object.assign(Object.assign({}, query), (!utmVal && channelQueryList && (channelQueryList === null || channelQueryList === void 0 ? void 0 : channelQueryList.length) > 0 && { channel: channelQueryList === null || channelQueryList === void 0 ? void 0 : channelQueryList[0] }));
715
- if (!(query === null || query === void 0 ? void 0 : query.channel) || isInit.current)
716
- return;
714
+ query = Object.assign(Object.assign(Object.assign({}, query), { directPage: true, level: 1 }), (!utmVal && channelQueryList && (channelQueryList === null || channelQueryList === void 0 ? void 0 : channelQueryList.length) > 0 && { channel: channelQueryList === null || channelQueryList === void 0 ? void 0 : channelQueryList[0] }));
715
+ if (!(query === null || query === void 0 ? void 0 : query.channel) || isInit.current) {
716
+ return undefined;
717
+ }
717
718
  isInit.current = true;
718
719
  let list = [];
719
720
  let result = null;
@@ -724,6 +725,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
724
725
  if (!(result === null || result === void 0 ? void 0 : result.success)) {
725
726
  return undefined;
726
727
  }
728
+ setLoading(false);
727
729
  const isNotNullList = (_s = (_r = result === null || result === void 0 ? void 0 : result.data) === null || _r === void 0 ? void 0 : _r.recList) === null || _s === void 0 ? void 0 : _s.every((item) => (item === null || item === void 0 ? void 0 : item.product) || (item === null || item === void 0 ? void 0 : item.video));
728
730
  list = list.concat((_w = (_v = (_u = (_t = result === null || result === void 0 ? void 0 : result.data) === null || _t === void 0 ? void 0 : _t.recList) === null || _u === void 0 ? void 0 : _u.filter) === null || _v === void 0 ? void 0 : _v.call(_u, (item) => (item === null || item === void 0 ? void 0 : item.product) || (item === null || item === void 0 ? void 0 : item.video))) !== null && _w !== void 0 ? _w : []);
729
731
  if (isNotNullList) {
@@ -893,8 +895,10 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
893
895
  bffGetTagList();
894
896
  getRecommendVideos()
895
897
  .then((data) => {
896
- setRtcList(getFilterRecList(data));
897
- setCacheRtcList(getFilterRecList(data));
898
+ if (data) {
899
+ setRtcList(getFilterRecList(data));
900
+ setCacheRtcList(getFilterRecList(data));
901
+ }
898
902
  })
899
903
  .finally(() => {
900
904
  bffEventReport({
@@ -913,8 +917,10 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
913
917
  bffGetTagList();
914
918
  getRecommendVideos()
915
919
  .then((data) => {
916
- setRtcList(getFilterRecList(data));
917
- setCacheRtcList(getFilterRecList(data));
920
+ if (data) {
921
+ setRtcList(getFilterRecList(data));
922
+ setCacheRtcList(getFilterRecList(data));
923
+ }
918
924
  })
919
925
  .finally(() => {
920
926
  bffEventReport({
@@ -1417,7 +1423,7 @@ var settingRender$a = [
1417
1423
  * @Author: binruan@chatlabs.com
1418
1424
  * @Date: 2024-03-12 10:59:06
1419
1425
  * @LastEditors: binruan@chatlabs.com
1420
- * @LastEditTime: 2024-08-14 17:02:53
1426
+ * @LastEditTime: 2024-08-22 17:43:04
1421
1427
  * @FilePath: \pb-sxp-ui\src\core\hooks\useEventReport.ts
1422
1428
  *
1423
1429
  */
@@ -8803,13 +8809,13 @@ SwiperSlide.displayName = 'SwiperSlide';
8803
8809
  * @Author: binruan@chatlabs.com
8804
8810
  * @Date: 2023-11-02 18:34:34
8805
8811
  * @LastEditors: binruan@chatlabs.com
8806
- * @LastEditTime: 2024-08-20 18:29:11
8812
+ * @LastEditTime: 2024-08-22 18:48:44
8807
8813
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Modal\index.tsx
8808
8814
  *
8809
8815
  */
8810
8816
  const closeIcon$1 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=';
8811
8817
  const Modal = ({ visible, onClose, children, modalStyle, padding, popup, schema, fullHeight = window.innerHeight, isFullScreen = false }) => {
8812
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
8818
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
8813
8819
  const touchRef = useRef(null);
8814
8820
  const fTouchRef = useRef(null);
8815
8821
  const touchMoveRef = useRef(null);
@@ -8934,8 +8940,7 @@ const Modal = ({ visible, onClose, children, modalStyle, padding, popup, schema,
8934
8940
  React.createElement("div", { onClick: onClose, className: 'modal-icon-wrapper' },
8935
8941
  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' })),
8936
8942
  React.createElement("div", { ref: ref, style: {
8937
- height: (_x = (isScrollFullScreen ? fullHeight : MODAL_DEF_CON_H) -
8938
- ((_w = (_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.popupBg) === null || _w === void 0 ? void 0 : _w.bottomMargin)) !== null && _x !== void 0 ? _x : 0,
8943
+ height: isScrollFullScreen ? fullHeight : MODAL_DEF_CON_H,
8939
8944
  overflow: (isScrollFullScreen && modalTrans <= 0) || !isScrollFullScreen ? 'auto' : 'hidden'
8940
8945
  } }, children)))))), modalEleRef.current);
8941
8946
  };
@@ -9103,8 +9108,8 @@ const CommodityGroup = ({ products, data, defImg, style, onCLick, popupDetailDat
9103
9108
  var CommodityGroup$1 = memo(CommodityGroup);
9104
9109
 
9105
9110
  const CommodityDetail$1 = (_a) => {
9106
- 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, _5;
9107
- var { content, style, bgImg, onClick, schema, isDefault, bottom_image, tipText, isPost, viewTime, rec, swiper, commodityStyles, buttonStyle, index, commodityGroup, popupBg, iframeIcon, commodityImgRatio } = _a, props = __rest(_a, ["content", "style", "bgImg", "onClick", "schema", "isDefault", "bottom_image", "tipText", "isPost", "viewTime", "rec", "swiper", "commodityStyles", "buttonStyle", "index", "commodityGroup", "popupBg", "iframeIcon", "commodityImgRatio"]);
9111
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
9112
+ var { content, style, bgImg, onClick, schema, isDefault, bottom_image, tipText, isPost, viewTime, rec, swiper, commodityStyles, buttonStyle, index, commodityGroup, popupBg, iframeIcon, commodityImgRatio, isTel } = _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"]);
9108
9113
  const { sxpParameter, popupDetailData, isPreview, bffFbReport, popupCurTimeRef, checkCommodityIndexRef } = useSxpDataSource();
9109
9114
  const { jumpToWeb, productView } = useEventReport();
9110
9115
  const curTimeRef = useRef(null);
@@ -9224,18 +9229,18 @@ const CommodityDetail$1 = (_a) => {
9224
9229
  };
9225
9230
  return dotsAlignClass === null || dotsAlignClass === void 0 ? void 0 : dotsAlignClass[swiper === null || swiper === void 0 ? void 0 : swiper.dotsAlign];
9226
9231
  }, [swiper === null || swiper === void 0 ? void 0 : swiper.dotsAlign]);
9227
- const iframeUrl = ((_x = (_w = data === null || data === void 0 ? void 0 : data.video) === null || _w === void 0 ? void 0 : _w.bindProduct) === null || _x === void 0 ? void 0 : _x.remark) || ((_0 = (_z = (_y = data === null || data === void 0 ? void 0 : data.video) === null || _y === void 0 ? void 0 : _y.bindProducts) === null || _z === void 0 ? void 0 : _z[0]) === null || _0 === void 0 ? void 0 : _0.remark) || ((_1 = data === null || data === void 0 ? void 0 : data.product) === null || _1 === void 0 ? void 0 : _1.remark);
9232
+ const iframeUrl = product === null || product === void 0 ? void 0 : product.remark;
9228
9233
  return (React.createElement(React.Fragment, null,
9229
9234
  React.createElement("div", Object.assign({ className: css(Object.assign({}, style)) }, props),
9230
9235
  React.createElement("div", { style: { position: 'relative' } },
9231
- product && ((_2 = product === null || product === void 0 ? void 0 : product.homePage) === null || _2 === void 0 ? void 0 : _2.length) > 0 && (React.createElement(Swiper, { height: height, modules: [Pagination, Autoplay], pagination: {
9236
+ 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: {
9232
9237
  clickable: true,
9233
9238
  bulletActiveClass: 'swipe-item-active-bullet',
9234
9239
  clickableClass: getDotsAlign
9235
9240
  }, loop: true, autoplay: {
9236
9241
  delay: (swiper === null || swiper === void 0 ? void 0 : swiper.delay) * 1000
9237
9242
  }, ref: ref },
9238
- React.createElement(React.Fragment, null, (_3 = product === null || product === void 0 ? void 0 : product.homePage) === null || _3 === void 0 ? void 0 : _3.map((src) => {
9243
+ React.createElement(React.Fragment, null, (_x = product === null || product === void 0 ? void 0 : product.homePage) === null || _x === void 0 ? void 0 : _x.map((src) => {
9239
9244
  var _a;
9240
9245
  return (React.createElement(SwiperSlide, { key: src },
9241
9246
  React.createElement("div", { style: {
@@ -9251,7 +9256,7 @@ const CommodityDetail$1 = (_a) => {
9251
9256
  objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
9252
9257
  }, 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 }))));
9253
9258
  })))),
9254
- !((_4 = product === null || product === void 0 ? void 0 : product.homePage) === null || _4 === void 0 ? void 0 : _4.length) && (React.createElement("div", { className: css({
9259
+ !((_y = product === null || product === void 0 ? void 0 : product.homePage) === null || _y === void 0 ? void 0 : _y.length) && (React.createElement("div", { className: css({
9255
9260
  height,
9256
9261
  width
9257
9262
  }) },
@@ -9259,7 +9264,7 @@ const CommodityDetail$1 = (_a) => {
9259
9264
  objectFit: 'cover',
9260
9265
  width: '100%',
9261
9266
  height: '100%'
9262
- }), src: (_5 = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _5 !== void 0 ? _5 : bottom_image, alt: 'pdp image' }))),
9267
+ }), src: (_z = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _z !== void 0 ? _z : bottom_image, alt: 'pdp image' }))),
9263
9268
  (iframeUrl || !product) && iframeIcon && (React.createElement("div", { style: {
9264
9269
  padding: '5px 10px',
9265
9270
  display: 'flex',
@@ -9271,8 +9276,7 @@ const CommodityDetail$1 = (_a) => {
9271
9276
  background: '#fff',
9272
9277
  borderRadius: '3px'
9273
9278
  }, onClick: () => setShow3DModal(true) },
9274
- React.createElement("img", { src: iframeIcon, alt: '3d', width: '20px', height: '20px', style: { marginRight: '5px' } }),
9275
- React.createElement("span", { style: { fontSize: '12px' } }, "Try in 3D")))),
9279
+ React.createElement("img", { src: iframeIcon, alt: '3d', width: '20px', height: '20px' })))),
9276
9280
  renderCommodityGroup(),
9277
9281
  React.createElement("div", { className: 'pb-commondity-content' }, renderContent({ isPost }))),
9278
9282
  renderBtn(),
@@ -9280,12 +9284,13 @@ const CommodityDetail$1 = (_a) => {
9280
9284
  React.createElement("div", { style: { paddingBottom: '80px' } }, renderContent({ isPost: false })),
9281
9285
  renderBtn()),
9282
9286
  React.createElement(Modal$1, { visible: show3DModal, padding: 0, isFullScreen: true, onClose: () => setShow3DModal(false) },
9283
- React.createElement("iframe", { src: iframeUrl, style: {
9284
- width: '100%',
9285
- height: 'calc(100% - 50px)',
9286
- marginTop: '40px',
9287
- border: 'none'
9288
- } }))));
9287
+ React.createElement("div", { style: { height: window.innerHeight } },
9288
+ React.createElement("iframe", { src: iframeUrl, style: {
9289
+ width: '100%',
9290
+ height: isTel ? `${664 - 50}px` : `${window.innerHeight - 50}px`,
9291
+ marginTop: '50px',
9292
+ border: 'none'
9293
+ } })))));
9289
9294
  };
9290
9295
  var CommodityDetailComponent = memo(CommodityDetail$1);
9291
9296
 
@@ -9938,8 +9943,8 @@ var settingRender$7 = [
9938
9943
  ];
9939
9944
 
9940
9945
  const CommodityDetailDiroNew$1 = (_a) => {
9941
- 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, _5, _6, _7, _8, _9;
9942
- var { style, isDefault, rec, viewTime, isPost, bottom_image, tipText, swiper, commodityStyles, buttonStyle, index, commodityGroup, popupBg, iframeIcon, commodityImgRatio } = _a, props = __rest(_a, ["style", "isDefault", "rec", "viewTime", "isPost", "bottom_image", "tipText", "swiper", "commodityStyles", "buttonStyle", "index", "commodityGroup", "popupBg", "iframeIcon", "commodityImgRatio"]);
9946
+ 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;
9947
+ var { style, isDefault, rec, viewTime, isPost, bottom_image, tipText, swiper, commodityStyles, buttonStyle, index, commodityGroup, popupBg, iframeIcon, commodityImgRatio, isTel } = _a, props = __rest(_a, ["style", "isDefault", "rec", "viewTime", "isPost", "bottom_image", "tipText", "swiper", "commodityStyles", "buttonStyle", "index", "commodityGroup", "popupBg", "iframeIcon", "commodityImgRatio", "isTel"]);
9943
9948
  useState(true);
9944
9949
  const { sxpParameter, popupCurTimeRef, popupDetailData, isPreview, bffFbReport, checkCommodityIndexRef } = useSxpDataSource();
9945
9950
  const { jumpToWeb, productView } = useEventReport();
@@ -10090,17 +10095,17 @@ Made in Italy` })));
10090
10095
  };
10091
10096
  return dotsAlignClass === null || dotsAlignClass === void 0 ? void 0 : dotsAlignClass[swiper === null || swiper === void 0 ? void 0 : swiper.dotsAlign];
10092
10097
  }, [swiper === null || swiper === void 0 ? void 0 : swiper.dotsAlign]);
10093
- const iframeUrl = ((_x = (_w = data === null || data === void 0 ? void 0 : data.video) === null || _w === void 0 ? void 0 : _w.bindProduct) === null || _x === void 0 ? void 0 : _x.remark) || ((_0 = (_z = (_y = data === null || data === void 0 ? void 0 : data.video) === null || _y === void 0 ? void 0 : _y.bindProducts) === null || _z === void 0 ? void 0 : _z[0]) === null || _0 === void 0 ? void 0 : _0.remark) || ((_1 = data === null || data === void 0 ? void 0 : data.product) === null || _1 === void 0 ? void 0 : _1.remark);
10098
+ const iframeUrl = product === null || product === void 0 ? void 0 : product.remark;
10094
10099
  return (React.createElement("div", { className: 'pb-commondityDiroNew' },
10095
10100
  React.createElement("div", Object.assign({ className: css(Object.assign(Object.assign({}, style), { transform: 'translate3d(0px, 0px, 0px)' })) }, props),
10096
10101
  React.createElement("div", { style: { position: 'relative' } },
10097
- product && ((_2 = product === null || product === void 0 ? void 0 : product.homePage) === null || _2 === void 0 ? void 0 : _2.length) > 0 && (React.createElement(Swiper, { height: height, modules: [Pagination, Autoplay], pagination: {
10102
+ 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: {
10098
10103
  clickable: true,
10099
10104
  bulletActiveClass: 'commondityDiroNew-swipe-item-active-bullet',
10100
10105
  clickableClass: getDotsAlign
10101
10106
  }, loop: true, autoplay: {
10102
10107
  delay: (swiper === null || swiper === void 0 ? void 0 : swiper.delay) * 1000
10103
- }, ref: ref }, (_3 = product === null || product === void 0 ? void 0 : product.homePage) === null || _3 === void 0 ? void 0 : _3.map((src) => {
10108
+ }, ref: ref }, (_x = product === null || product === void 0 ? void 0 : product.homePage) === null || _x === void 0 ? void 0 : _x.map((src) => {
10104
10109
  var _a;
10105
10110
  return (React.createElement(SwiperSlide, { key: src },
10106
10111
  React.createElement("div", { style: {
@@ -10116,7 +10121,7 @@ Made in Italy` })));
10116
10121
  objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
10117
10122
  }, 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 }))));
10118
10123
  }))),
10119
- !((_4 = product === null || product === void 0 ? void 0 : product.homePage) === null || _4 === void 0 ? void 0 : _4.length) && (React.createElement("div", { className: css({
10124
+ !((_y = product === null || product === void 0 ? void 0 : product.homePage) === null || _y === void 0 ? void 0 : _y.length) && (React.createElement("div", { className: css({
10120
10125
  height,
10121
10126
  width
10122
10127
  }) },
@@ -10124,7 +10129,7 @@ Made in Italy` })));
10124
10129
  objectFit: 'cover',
10125
10130
  width: '100%',
10126
10131
  height: '100%'
10127
- }), src: (_5 = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _5 !== void 0 ? _5 : bottom_image, alt: 'pdp image' }))),
10132
+ }), src: (_z = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _z !== void 0 ? _z : bottom_image, alt: 'pdp image' }))),
10128
10133
  (iframeUrl || !product) && iframeIcon && (React.createElement("div", { style: {
10129
10134
  padding: '5px 10px',
10130
10135
  display: 'flex',
@@ -10136,14 +10141,13 @@ Made in Italy` })));
10136
10141
  background: '#fff',
10137
10142
  borderRadius: '3px'
10138
10143
  }, onClick: () => setShow3DModal(true) },
10139
- React.createElement("img", { src: iframeIcon, alt: '3d', width: '20px', height: '20px', style: { marginRight: '5px' } }),
10140
- React.createElement("span", { style: { fontSize: '12px' } }, "Try in 3D")))),
10144
+ React.createElement("img", { src: iframeIcon, alt: '3d', width: '20px', height: '20px' })))),
10141
10145
  renderCommodityGroup(),
10142
10146
  React.createElement("div", { className: 'pb-commondityDiroNew-content' },
10143
10147
  React.createElement("div", { className: 'pb-commondityDiroNew-content-top' },
10144
10148
  React.createElement("div", { className: 'pb-commondityDiroNew-content-top-left' },
10145
10149
  React.createElement("div", { className: 'pb-commondityDiroNew-content-top-left-title', style: getStyle(commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title), dangerouslySetInnerHTML: {
10146
- __html: setFontForText((_6 = product === null || product === void 0 ? void 0 : product.title) !== null && _6 !== void 0 ? _6 : 'Large Dior Toujours BagLarge', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title)
10150
+ __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)
10147
10151
  } }),
10148
10152
  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: {
10149
10153
  __html: setFontForText((product === null || product === void 0 ? void 0 : product.collection) || 'Black Macrocannage CalfskinLarge', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection)
@@ -10153,21 +10157,22 @@ Made in Italy` })));
10153
10157
  __html: setFontForText(priceText, commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price)
10154
10158
  } }),
10155
10159
  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: {
10156
- __html: setFontForText((_7 = product === null || product === void 0 ? void 0 : product.taxInfo) !== null && _7 !== void 0 ? _7 : '税费', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.taxInfo)
10160
+ __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)
10157
10161
  } }))),
10158
- (!product || (product === null || product === void 0 ? void 0 : product.link)) && (React.createElement("button", { "aria-label": (_8 = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _8 !== void 0 ? _8 : 'Shop now', onClick: handleLink, className: 'pb-commondityDiroNew-btn', style: buttonStyle },
10162
+ (!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 },
10159
10163
  React.createElement("span", { dangerouslySetInnerHTML: {
10160
- __html: setFontForText((_9 = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _9 !== void 0 ? _9 : 'Shop now', buttonStyle)
10164
+ __html: setFontForText((_3 = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _3 !== void 0 ? _3 : 'Shop now', buttonStyle)
10161
10165
  } }))),
10162
10166
  productInfoText({ isPost }))),
10163
10167
  React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) }, productInfoText({ isPost: false })),
10164
10168
  React.createElement(Modal$1, { visible: show3DModal, padding: 0, isFullScreen: true, onClose: () => setShow3DModal(false) },
10165
- React.createElement("iframe", { src: iframeUrl, style: {
10166
- width: '100%',
10167
- height: 'calc(100% - 50px)',
10168
- marginTop: '40px',
10169
- border: 'none'
10170
- } }))));
10169
+ React.createElement("div", { style: { height: window.innerHeight } },
10170
+ React.createElement("iframe", { src: iframeUrl, style: {
10171
+ width: '100%',
10172
+ height: isTel ? `${664 - 50}px` : `${window.innerHeight - 50}px`,
10173
+ marginTop: '50px',
10174
+ border: 'none'
10175
+ } })))));
10171
10176
  };
10172
10177
  var CommodityDetailDiroNewComponent = memo(CommodityDetailDiroNew$1);
10173
10178
 
@@ -10760,7 +10765,7 @@ const Iframe$1 = (_a) => {
10760
10765
  var { content, btnText, style, icon, isPopup, isExternalLink, onClose, onClick, submitButtonStyle, contentStyle, isTel } = _a, props = __rest(_a, ["content", "btnText", "style", "icon", "isPopup", "isExternalLink", "onClose", "onClick", "submitButtonStyle", "contentStyle", "isTel"]);
10761
10766
  const { popupDetailData } = useSxpDataSource();
10762
10767
  const iframeUrl = (_c = (_b = popupDetailData === null || popupDetailData === void 0 ? void 0 : popupDetailData.video) === null || _b === void 0 ? void 0 : _b.bindCta) === null || _c === void 0 ? void 0 : _c.remark;
10763
- return (React.createElement("div", Object.assign({ className: `${css(Object.assign(Object.assign({}, style), { height: isTel ? 664 : '100%' }))}` }, props),
10768
+ return (React.createElement("div", Object.assign({ className: `${css(Object.assign(Object.assign({}, style), { height: isTel ? 664 : window === null || window === void 0 ? void 0 : window.innerHeight }))}` }, props),
10764
10769
  React.createElement("iframe", { src: iframeUrl, style: {
10765
10770
  width: '100%',
10766
10771
  height: 'calc(100% - 50px)',
@@ -16001,7 +16006,7 @@ var Tagbar$1 = memo(Tagbar);
16001
16006
  * @Author: binruan@chatlabs.com
16002
16007
  * @Date: 2024-01-15 19:03:09
16003
16008
  * @LastEditors: binruan@chatlabs.com
16004
- * @LastEditTime: 2024-08-22 09:56:51
16009
+ * @LastEditTime: 2024-08-22 18:34:01
16005
16010
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
16006
16011
  *
16007
16012
  */
@@ -16341,7 +16346,6 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
16341
16346
  };
16342
16347
  const handleScrollEvent = (swiper) => {
16343
16348
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
16344
- viewTime.current = new Date();
16345
16349
  const item = data[swiper.previousIndex];
16346
16350
  if (!item)
16347
16351
  return;
@@ -16382,6 +16386,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
16382
16386
  eventName: 'ProductView'
16383
16387
  });
16384
16388
  }
16389
+ viewTime.current = new Date();
16385
16390
  };
16386
16391
  const handleReportProductView = (item) => {
16387
16392
  var _a, _b, _c;
@@ -16391,8 +16396,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
16391
16396
  };
16392
16397
  useEffect(() => {
16393
16398
  const item = data[activeIndex];
16394
- if (openHashtag)
16399
+ if (openHashtag) {
16395
16400
  handleReportProductView(item);
16401
+ }
16402
+ else {
16403
+ viewTime.current = new Date();
16404
+ }
16396
16405
  }, [openHashtag, data, activeIndex]);
16397
16406
  const handleViewImageStartEvent = (activeIndex) => {
16398
16407
  var _a, _b, _c, _d, _e, _f;