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.cjs +59 -50
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +59 -50
- 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 +59 -50
- 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 +2 -3
- package/es/core/components/SxpPageRender/index.js +6 -2
- package/es/core/context/SxpDataSourceProvider.js +13 -7
- package/es/materials/sxp/popup/CommodityDetail/index.d.ts +1 -0
- package/es/materials/sxp/popup/CommodityDetail/index.js +15 -15
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.d.ts +1 -0
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +19 -19
- package/es/materials/sxp/popup/Iframe/index.js +1 -1
- package/lib/core/components/SxpPageRender/Modal/index.js +2 -3
- package/lib/core/components/SxpPageRender/index.js +6 -2
- package/lib/core/context/SxpDataSourceProvider.js +13 -7
- package/lib/materials/sxp/popup/CommodityDetail/index.d.ts +1 -0
- package/lib/materials/sxp/popup/CommodityDetail/index.js +15 -15
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.d.ts +1 -0
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +19 -19
- package/lib/materials/sxp/popup/Iframe/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -733,9 +733,10 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
733
733
|
}
|
734
734
|
if (isEditor) {
|
735
735
|
let pageNum = 1;
|
736
|
-
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] }));
|
737
|
-
if (!(query === null || query === void 0 ? void 0 : query.channel) || isInit.current)
|
738
|
-
return;
|
736
|
+
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] }));
|
737
|
+
if (!(query === null || query === void 0 ? void 0 : query.channel) || isInit.current) {
|
738
|
+
return undefined;
|
739
|
+
}
|
739
740
|
isInit.current = true;
|
740
741
|
let list = [];
|
741
742
|
let result = null;
|
@@ -746,6 +747,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
746
747
|
if (!(result === null || result === void 0 ? void 0 : result.success)) {
|
747
748
|
return undefined;
|
748
749
|
}
|
750
|
+
setLoading(false);
|
749
751
|
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));
|
750
752
|
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 : []);
|
751
753
|
if (isNotNullList) {
|
@@ -915,8 +917,10 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
915
917
|
bffGetTagList();
|
916
918
|
getRecommendVideos()
|
917
919
|
.then((data) => {
|
918
|
-
|
919
|
-
|
920
|
+
if (data) {
|
921
|
+
setRtcList(getFilterRecList(data));
|
922
|
+
setCacheRtcList(getFilterRecList(data));
|
923
|
+
}
|
920
924
|
})
|
921
925
|
.finally(() => {
|
922
926
|
bffEventReport({
|
@@ -935,8 +939,10 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
935
939
|
bffGetTagList();
|
936
940
|
getRecommendVideos()
|
937
941
|
.then((data) => {
|
938
|
-
|
939
|
-
|
942
|
+
if (data) {
|
943
|
+
setRtcList(getFilterRecList(data));
|
944
|
+
setCacheRtcList(getFilterRecList(data));
|
945
|
+
}
|
940
946
|
})
|
941
947
|
.finally(() => {
|
942
948
|
bffEventReport({
|
@@ -1439,7 +1445,7 @@ var settingRender$a = [
|
|
1439
1445
|
* @Author: binruan@chatlabs.com
|
1440
1446
|
* @Date: 2024-03-12 10:59:06
|
1441
1447
|
* @LastEditors: binruan@chatlabs.com
|
1442
|
-
* @LastEditTime: 2024-08-
|
1448
|
+
* @LastEditTime: 2024-08-22 17:43:04
|
1443
1449
|
* @FilePath: \pb-sxp-ui\src\core\hooks\useEventReport.ts
|
1444
1450
|
*
|
1445
1451
|
*/
|
@@ -8825,13 +8831,13 @@ SwiperSlide.displayName = 'SwiperSlide';
|
|
8825
8831
|
* @Author: binruan@chatlabs.com
|
8826
8832
|
* @Date: 2023-11-02 18:34:34
|
8827
8833
|
* @LastEditors: binruan@chatlabs.com
|
8828
|
-
* @LastEditTime: 2024-08-
|
8834
|
+
* @LastEditTime: 2024-08-22 18:48:44
|
8829
8835
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Modal\index.tsx
|
8830
8836
|
*
|
8831
8837
|
*/
|
8832
8838
|
const closeIcon$1 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=';
|
8833
8839
|
const Modal = ({ visible, onClose, children, modalStyle, padding, popup, schema, fullHeight = window.innerHeight, isFullScreen = false }) => {
|
8834
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t
|
8840
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
8835
8841
|
const touchRef = React.useRef(null);
|
8836
8842
|
const fTouchRef = React.useRef(null);
|
8837
8843
|
const touchMoveRef = React.useRef(null);
|
@@ -8956,8 +8962,7 @@ const Modal = ({ visible, onClose, children, modalStyle, padding, popup, schema,
|
|
8956
8962
|
React.createElement("div", { onClick: onClose, className: 'modal-icon-wrapper' },
|
8957
8963
|
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' })),
|
8958
8964
|
React.createElement("div", { ref: ref, style: {
|
8959
|
-
height:
|
8960
|
-
((_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,
|
8965
|
+
height: isScrollFullScreen ? fullHeight : MODAL_DEF_CON_H,
|
8961
8966
|
overflow: (isScrollFullScreen && modalTrans <= 0) || !isScrollFullScreen ? 'auto' : 'hidden'
|
8962
8967
|
} }, children)))))), modalEleRef.current);
|
8963
8968
|
};
|
@@ -9125,8 +9130,8 @@ const CommodityGroup = ({ products, data, defImg, style, onCLick, popupDetailDat
|
|
9125
9130
|
var CommodityGroup$1 = React.memo(CommodityGroup);
|
9126
9131
|
|
9127
9132
|
const CommodityDetail$1 = (_a) => {
|
9128
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z
|
9129
|
-
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"]);
|
9133
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
9134
|
+
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"]);
|
9130
9135
|
const { sxpParameter, popupDetailData, isPreview, bffFbReport, popupCurTimeRef, checkCommodityIndexRef } = useSxpDataSource();
|
9131
9136
|
const { jumpToWeb, productView } = useEventReport();
|
9132
9137
|
const curTimeRef = React.useRef(null);
|
@@ -9246,18 +9251,18 @@ const CommodityDetail$1 = (_a) => {
|
|
9246
9251
|
};
|
9247
9252
|
return dotsAlignClass === null || dotsAlignClass === void 0 ? void 0 : dotsAlignClass[swiper === null || swiper === void 0 ? void 0 : swiper.dotsAlign];
|
9248
9253
|
}, [swiper === null || swiper === void 0 ? void 0 : swiper.dotsAlign]);
|
9249
|
-
const iframeUrl =
|
9254
|
+
const iframeUrl = product === null || product === void 0 ? void 0 : product.remark;
|
9250
9255
|
return (React.createElement(React.Fragment, null,
|
9251
9256
|
React.createElement("div", Object.assign({ className: css.css(Object.assign({}, style)) }, props),
|
9252
9257
|
React.createElement("div", { style: { position: 'relative' } },
|
9253
|
-
product && ((
|
9258
|
+
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: {
|
9254
9259
|
clickable: true,
|
9255
9260
|
bulletActiveClass: 'swipe-item-active-bullet',
|
9256
9261
|
clickableClass: getDotsAlign
|
9257
9262
|
}, loop: true, autoplay: {
|
9258
9263
|
delay: (swiper === null || swiper === void 0 ? void 0 : swiper.delay) * 1000
|
9259
9264
|
}, ref: ref },
|
9260
|
-
React.createElement(React.Fragment, null, (
|
9265
|
+
React.createElement(React.Fragment, null, (_x = product === null || product === void 0 ? void 0 : product.homePage) === null || _x === void 0 ? void 0 : _x.map((src) => {
|
9261
9266
|
var _a;
|
9262
9267
|
return (React.createElement(SwiperSlide, { key: src },
|
9263
9268
|
React.createElement("div", { style: {
|
@@ -9273,7 +9278,7 @@ const CommodityDetail$1 = (_a) => {
|
|
9273
9278
|
objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
|
9274
9279
|
}, 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 }))));
|
9275
9280
|
})))),
|
9276
|
-
!((
|
9281
|
+
!((_y = product === null || product === void 0 ? void 0 : product.homePage) === null || _y === void 0 ? void 0 : _y.length) && (React.createElement("div", { className: css.css({
|
9277
9282
|
height,
|
9278
9283
|
width
|
9279
9284
|
}) },
|
@@ -9281,7 +9286,7 @@ const CommodityDetail$1 = (_a) => {
|
|
9281
9286
|
objectFit: 'cover',
|
9282
9287
|
width: '100%',
|
9283
9288
|
height: '100%'
|
9284
|
-
}), src: (
|
9289
|
+
}), src: (_z = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _z !== void 0 ? _z : bottom_image, alt: 'pdp image' }))),
|
9285
9290
|
(iframeUrl || !product) && iframeIcon && (React.createElement("div", { style: {
|
9286
9291
|
padding: '5px 10px',
|
9287
9292
|
display: 'flex',
|
@@ -9293,8 +9298,7 @@ const CommodityDetail$1 = (_a) => {
|
|
9293
9298
|
background: '#fff',
|
9294
9299
|
borderRadius: '3px'
|
9295
9300
|
}, onClick: () => setShow3DModal(true) },
|
9296
|
-
React.createElement("img", { src: iframeIcon, alt: '3d', width: '20px', height: '20px'
|
9297
|
-
React.createElement("span", { style: { fontSize: '12px' } }, "Try in 3D")))),
|
9301
|
+
React.createElement("img", { src: iframeIcon, alt: '3d', width: '20px', height: '20px' })))),
|
9298
9302
|
renderCommodityGroup(),
|
9299
9303
|
React.createElement("div", { className: 'pb-commondity-content' }, renderContent({ isPost }))),
|
9300
9304
|
renderBtn(),
|
@@ -9302,12 +9306,13 @@ const CommodityDetail$1 = (_a) => {
|
|
9302
9306
|
React.createElement("div", { style: { paddingBottom: '80px' } }, renderContent({ isPost: false })),
|
9303
9307
|
renderBtn()),
|
9304
9308
|
React.createElement(Modal$1, { visible: show3DModal, padding: 0, isFullScreen: true, onClose: () => setShow3DModal(false) },
|
9305
|
-
React.createElement("
|
9306
|
-
|
9307
|
-
|
9308
|
-
|
9309
|
-
|
9310
|
-
|
9309
|
+
React.createElement("div", { style: { height: window.innerHeight } },
|
9310
|
+
React.createElement("iframe", { src: iframeUrl, style: {
|
9311
|
+
width: '100%',
|
9312
|
+
height: isTel ? `${664 - 50}px` : `${window.innerHeight - 50}px`,
|
9313
|
+
marginTop: '50px',
|
9314
|
+
border: 'none'
|
9315
|
+
} })))));
|
9311
9316
|
};
|
9312
9317
|
var CommodityDetailComponent = React.memo(CommodityDetail$1);
|
9313
9318
|
|
@@ -9960,8 +9965,8 @@ var settingRender$7 = [
|
|
9960
9965
|
];
|
9961
9966
|
|
9962
9967
|
const CommodityDetailDiroNew$1 = (_a) => {
|
9963
|
-
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
|
9964
|
-
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"]);
|
9968
|
+
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;
|
9969
|
+
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"]);
|
9965
9970
|
React.useState(true);
|
9966
9971
|
const { sxpParameter, popupCurTimeRef, popupDetailData, isPreview, bffFbReport, checkCommodityIndexRef } = useSxpDataSource();
|
9967
9972
|
const { jumpToWeb, productView } = useEventReport();
|
@@ -10112,17 +10117,17 @@ Made in Italy` })));
|
|
10112
10117
|
};
|
10113
10118
|
return dotsAlignClass === null || dotsAlignClass === void 0 ? void 0 : dotsAlignClass[swiper === null || swiper === void 0 ? void 0 : swiper.dotsAlign];
|
10114
10119
|
}, [swiper === null || swiper === void 0 ? void 0 : swiper.dotsAlign]);
|
10115
|
-
const iframeUrl =
|
10120
|
+
const iframeUrl = product === null || product === void 0 ? void 0 : product.remark;
|
10116
10121
|
return (React.createElement("div", { className: 'pb-commondityDiroNew' },
|
10117
10122
|
React.createElement("div", Object.assign({ className: css.css(Object.assign(Object.assign({}, style), { transform: 'translate3d(0px, 0px, 0px)' })) }, props),
|
10118
10123
|
React.createElement("div", { style: { position: 'relative' } },
|
10119
|
-
product && ((
|
10124
|
+
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: {
|
10120
10125
|
clickable: true,
|
10121
10126
|
bulletActiveClass: 'commondityDiroNew-swipe-item-active-bullet',
|
10122
10127
|
clickableClass: getDotsAlign
|
10123
10128
|
}, loop: true, autoplay: {
|
10124
10129
|
delay: (swiper === null || swiper === void 0 ? void 0 : swiper.delay) * 1000
|
10125
|
-
}, ref: ref }, (
|
10130
|
+
}, ref: ref }, (_x = product === null || product === void 0 ? void 0 : product.homePage) === null || _x === void 0 ? void 0 : _x.map((src) => {
|
10126
10131
|
var _a;
|
10127
10132
|
return (React.createElement(SwiperSlide, { key: src },
|
10128
10133
|
React.createElement("div", { style: {
|
@@ -10138,7 +10143,7 @@ Made in Italy` })));
|
|
10138
10143
|
objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
|
10139
10144
|
}, 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 }))));
|
10140
10145
|
}))),
|
10141
|
-
!((
|
10146
|
+
!((_y = product === null || product === void 0 ? void 0 : product.homePage) === null || _y === void 0 ? void 0 : _y.length) && (React.createElement("div", { className: css.css({
|
10142
10147
|
height,
|
10143
10148
|
width
|
10144
10149
|
}) },
|
@@ -10146,7 +10151,7 @@ Made in Italy` })));
|
|
10146
10151
|
objectFit: 'cover',
|
10147
10152
|
width: '100%',
|
10148
10153
|
height: '100%'
|
10149
|
-
}), src: (
|
10154
|
+
}), src: (_z = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _z !== void 0 ? _z : bottom_image, alt: 'pdp image' }))),
|
10150
10155
|
(iframeUrl || !product) && iframeIcon && (React.createElement("div", { style: {
|
10151
10156
|
padding: '5px 10px',
|
10152
10157
|
display: 'flex',
|
@@ -10158,14 +10163,13 @@ Made in Italy` })));
|
|
10158
10163
|
background: '#fff',
|
10159
10164
|
borderRadius: '3px'
|
10160
10165
|
}, onClick: () => setShow3DModal(true) },
|
10161
|
-
React.createElement("img", { src: iframeIcon, alt: '3d', width: '20px', height: '20px'
|
10162
|
-
React.createElement("span", { style: { fontSize: '12px' } }, "Try in 3D")))),
|
10166
|
+
React.createElement("img", { src: iframeIcon, alt: '3d', width: '20px', height: '20px' })))),
|
10163
10167
|
renderCommodityGroup(),
|
10164
10168
|
React.createElement("div", { className: 'pb-commondityDiroNew-content' },
|
10165
10169
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-top' },
|
10166
10170
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-left' },
|
10167
10171
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-left-title', style: getStyle(commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title), dangerouslySetInnerHTML: {
|
10168
|
-
__html: setFontForText((
|
10172
|
+
__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)
|
10169
10173
|
} }),
|
10170
10174
|
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: {
|
10171
10175
|
__html: setFontForText((product === null || product === void 0 ? void 0 : product.collection) || 'Black Macrocannage CalfskinLarge', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection)
|
@@ -10175,21 +10179,22 @@ Made in Italy` })));
|
|
10175
10179
|
__html: setFontForText(priceText, commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price)
|
10176
10180
|
} }),
|
10177
10181
|
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: {
|
10178
|
-
__html: setFontForText((
|
10182
|
+
__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)
|
10179
10183
|
} }))),
|
10180
|
-
(!product || (product === null || product === void 0 ? void 0 : product.link)) && (React.createElement("button", { "aria-label": (
|
10184
|
+
(!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 },
|
10181
10185
|
React.createElement("span", { dangerouslySetInnerHTML: {
|
10182
|
-
__html: setFontForText((
|
10186
|
+
__html: setFontForText((_3 = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _3 !== void 0 ? _3 : 'Shop now', buttonStyle)
|
10183
10187
|
} }))),
|
10184
10188
|
productInfoText({ isPost }))),
|
10185
10189
|
React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) }, productInfoText({ isPost: false })),
|
10186
10190
|
React.createElement(Modal$1, { visible: show3DModal, padding: 0, isFullScreen: true, onClose: () => setShow3DModal(false) },
|
10187
|
-
React.createElement("
|
10188
|
-
|
10189
|
-
|
10190
|
-
|
10191
|
-
|
10192
|
-
|
10191
|
+
React.createElement("div", { style: { height: window.innerHeight } },
|
10192
|
+
React.createElement("iframe", { src: iframeUrl, style: {
|
10193
|
+
width: '100%',
|
10194
|
+
height: isTel ? `${664 - 50}px` : `${window.innerHeight - 50}px`,
|
10195
|
+
marginTop: '50px',
|
10196
|
+
border: 'none'
|
10197
|
+
} })))));
|
10193
10198
|
};
|
10194
10199
|
var CommodityDetailDiroNewComponent = React.memo(CommodityDetailDiroNew$1);
|
10195
10200
|
|
@@ -10782,7 +10787,7 @@ const Iframe$1 = (_a) => {
|
|
10782
10787
|
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"]);
|
10783
10788
|
const { popupDetailData } = useSxpDataSource();
|
10784
10789
|
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;
|
10785
|
-
return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign(Object.assign({}, style), { height: isTel ? 664 :
|
10790
|
+
return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign(Object.assign({}, style), { height: isTel ? 664 : window === null || window === void 0 ? void 0 : window.innerHeight }))}` }, props),
|
10786
10791
|
React.createElement("iframe", { src: iframeUrl, style: {
|
10787
10792
|
width: '100%',
|
10788
10793
|
height: 'calc(100% - 50px)',
|
@@ -16023,7 +16028,7 @@ var Tagbar$1 = React.memo(Tagbar);
|
|
16023
16028
|
* @Author: binruan@chatlabs.com
|
16024
16029
|
* @Date: 2024-01-15 19:03:09
|
16025
16030
|
* @LastEditors: binruan@chatlabs.com
|
16026
|
-
* @LastEditTime: 2024-08-22
|
16031
|
+
* @LastEditTime: 2024-08-22 18:34:01
|
16027
16032
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
16028
16033
|
*
|
16029
16034
|
*/
|
@@ -16363,7 +16368,6 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
16363
16368
|
};
|
16364
16369
|
const handleScrollEvent = (swiper) => {
|
16365
16370
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
16366
|
-
viewTime.current = new Date();
|
16367
16371
|
const item = data[swiper.previousIndex];
|
16368
16372
|
if (!item)
|
16369
16373
|
return;
|
@@ -16404,6 +16408,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
16404
16408
|
eventName: 'ProductView'
|
16405
16409
|
});
|
16406
16410
|
}
|
16411
|
+
viewTime.current = new Date();
|
16407
16412
|
};
|
16408
16413
|
const handleReportProductView = (item) => {
|
16409
16414
|
var _a, _b, _c;
|
@@ -16413,8 +16418,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
16413
16418
|
};
|
16414
16419
|
React.useEffect(() => {
|
16415
16420
|
const item = data[activeIndex];
|
16416
|
-
if (openHashtag)
|
16421
|
+
if (openHashtag) {
|
16417
16422
|
handleReportProductView(item);
|
16423
|
+
}
|
16424
|
+
else {
|
16425
|
+
viewTime.current = new Date();
|
16426
|
+
}
|
16418
16427
|
}, [openHashtag, data, activeIndex]);
|
16419
16428
|
const handleViewImageStartEvent = (activeIndex) => {
|
16420
16429
|
var _a, _b, _c, _d, _e, _f;
|