pb-sxp-ui 1.20.22 → 1.20.24
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 +15 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -3
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +6 -6
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +6 -6
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +15 -3
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +6 -6
- package/dist/pb-ui.min.js.map +1 -1
- package/es/materials/sxp/popup/CommodityDetail/index.js +15 -3
- package/lib/materials/sxp/popup/CommodityDetail/index.js +15 -3
- package/package.json +1 -1
package/dist/pb-ui.js
CHANGED
|
@@ -11675,6 +11675,7 @@
|
|
|
11675
11675
|
const CommodityDetail$1 = (_a) => {
|
|
11676
11676
|
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;
|
|
11677
11677
|
var { content, style, bgImg, onClick, schema, isDefault, bottom_image, tipText, isPost, viewTime, rec, swiper, commodityStyles, buttonStyle, index, commodityGroup, popupBg, iframeIcon, commodityImgRatio, isTel, iframeBgColor, isActive = true, enableAddToCart = false, addToCartPopupId = '' } = _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", "isActive", "enableAddToCart", "addToCartPopupId"]);
|
|
11678
|
+
console.log('[CommodityDetail] 组件已加载 - 版本 v1.20.23', { enableAddToCart, addToCartPopupId, isPost });
|
|
11678
11679
|
const { sxpParameter, popupDetailData, isPreview, bffFbReport, popupCurTimeRef, checkCommodityIndexRef, globalConfig, ctaEvent, setPopupDetailData } = useSxpDataSource();
|
|
11679
11680
|
const { jumpToWeb, productView } = useEventReport();
|
|
11680
11681
|
const curTimeRef = React.useRef(null);
|
|
@@ -11855,7 +11856,7 @@
|
|
|
11855
11856
|
const renderBtn = () => {
|
|
11856
11857
|
var _a, _b;
|
|
11857
11858
|
const handleBtnClick = (e) => {
|
|
11858
|
-
console.log('[CommodityDetail] Shop Now
|
|
11859
|
+
console.log('[CommodityDetail] Shop Now 按钮被点击!!!!', {
|
|
11859
11860
|
product,
|
|
11860
11861
|
cta,
|
|
11861
11862
|
enableAddToCart,
|
|
@@ -11864,9 +11865,20 @@
|
|
|
11864
11865
|
});
|
|
11865
11866
|
handleLink(e);
|
|
11866
11867
|
};
|
|
11868
|
+
console.log('[CommodityDetail] renderBtn 被调用', {
|
|
11869
|
+
ctaTitle: cta === null || cta === void 0 ? void 0 : cta.enTitle,
|
|
11870
|
+
buttonStyle
|
|
11871
|
+
});
|
|
11867
11872
|
return (React.createElement(React.Fragment, null,
|
|
11868
|
-
React.createElement("a", { "aria-label": (_a = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _a !== void 0 ? _a : 'Purchase on Website', role: 'button', tabIndex: 0, onClick: handleBtnClick, onMouseDown: (e) =>
|
|
11869
|
-
|
|
11873
|
+
React.createElement("a", { "aria-label": (_a = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _a !== void 0 ? _a : 'Purchase on Website', role: 'button', tabIndex: 0, onClick: handleBtnClick, onMouseDown: (e) => {
|
|
11874
|
+
console.log('[CommodityDetail] mousedown 事件触发!!!', e);
|
|
11875
|
+
e.stopPropagation();
|
|
11876
|
+
}, onPointerDown: (e) => {
|
|
11877
|
+
console.log('[CommodityDetail] pointerdown 事件触发!!!', e);
|
|
11878
|
+
}, onTouchStart: (e) => {
|
|
11879
|
+
console.log('[CommodityDetail] touchstart 事件触发!!!', e);
|
|
11880
|
+
}, className: 'pb-commondity-btn', style: Object.assign(Object.assign({}, buttonStyle), { pointerEvents: 'auto', touchAction: 'manipulation' }) },
|
|
11881
|
+
React.createElement("span", { style: { pointerEvents: 'none' }, dangerouslySetInnerHTML: {
|
|
11870
11882
|
__html: setFontForText((_b = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _b !== void 0 ? _b : 'Purchase on Website', buttonStyle)
|
|
11871
11883
|
} }))));
|
|
11872
11884
|
};
|