pb-sxp-ui 1.15.16-alpha.2 → 1.15.16
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 +6604 -6596
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +46 -46
- package/dist/index.js +6604 -6596
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +4 -4
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +6604 -6596
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +4 -4
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/index.d.ts +1 -0
- package/es/core/context/SxpDataSourceProvider.d.ts +1 -1
- package/es/core/context/SxpDataSourceProvider.js +55 -47
- package/es/materials/sxp/popup/CommodityDetail/index.js +2 -2
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
- package/lib/core/components/SxpPageRender/index.d.ts +1 -0
- package/lib/core/context/SxpDataSourceProvider.d.ts +1 -1
- package/lib/core/context/SxpDataSourceProvider.js +55 -47
- package/lib/materials/sxp/popup/CommodityDetail/index.js +2 -2
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
- package/package.json +1 -1
@@ -72,7 +72,7 @@ export interface ISxpDataSourceContext {
|
|
72
72
|
bffFbReport?: (body: {
|
73
73
|
eventName: 'PageView' | 'ProductView' | 'ViewContent';
|
74
74
|
product?: any;
|
75
|
-
}) =>
|
75
|
+
}) => void;
|
76
76
|
curTime?: any;
|
77
77
|
h5EnterLink?: () => void;
|
78
78
|
themeTag?: any;
|
@@ -288,34 +288,15 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
288
288
|
playbookType,
|
289
289
|
bffDataSource
|
290
290
|
]);
|
291
|
-
const
|
292
|
-
var _a, _b, _c
|
293
|
-
|
294
|
-
window === null || window === void 0 ? void 0 : window.gtag('event', 'page_view', {
|
295
|
-
page_location: (_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.href,
|
296
|
-
page_title: document === null || document === void 0 ? void 0 : document.title
|
297
|
-
});
|
298
|
-
}
|
299
|
-
if (eventName && typeof (window === null || window === void 0 ? void 0 : window.fbq) === 'function') {
|
300
|
-
window === null || window === void 0 ? void 0 : window.fbq('track', eventName, {
|
301
|
-
page_path: (_b = window === null || window === void 0 ? void 0 : window.location) === null || _b === void 0 ? void 0 : _b.pathname,
|
302
|
-
page_location: (_c = window === null || window === void 0 ? void 0 : window.location) === null || _c === void 0 ? void 0 : _c.href,
|
303
|
-
page_title: document === null || document === void 0 ? void 0 : document.title
|
304
|
-
});
|
305
|
-
}
|
306
|
-
if (!enableReportEvent ||
|
307
|
-
!enabledMetaConversionApi ||
|
308
|
-
(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview) ||
|
309
|
-
!((_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.converApi) === null || _d === void 0 ? void 0 : _d[eventName])) {
|
310
|
-
return;
|
311
|
-
}
|
312
|
-
const jsonParams = cloneDeep((_e = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.converApi) === null || _e === void 0 ? void 0 : _e[eventName]);
|
291
|
+
const getEventParamsByJson = useCallback((json, product) => {
|
292
|
+
var _a, _b, _c;
|
293
|
+
const jsonParams = cloneDeep(json);
|
313
294
|
const urlParams = new URLSearchParams(window.location.search);
|
314
295
|
const fbclid = urlParams === null || urlParams === void 0 ? void 0 : urlParams.get('fbclid');
|
315
296
|
const fix_par = {
|
316
|
-
event_source_url: (
|
297
|
+
event_source_url: (_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.href,
|
317
298
|
external_id: fakeUserId,
|
318
|
-
client_user_agent: (
|
299
|
+
client_user_agent: (_c = (_b = window === null || window === void 0 ? void 0 : window.navigator) === null || _b === void 0 ? void 0 : _b.userAgent) !== null && _c !== void 0 ? _c : '',
|
319
300
|
fbc: fbclid ? `fb.2.${new Date().getTime()}.${fbclid}` : '',
|
320
301
|
fbp: getCookie('_fbp') ? `fb.2.${new Date().getTime()}.${getCookie('_fbp')}` : '',
|
321
302
|
time: Math.floor(Date.now() / 1000)
|
@@ -329,7 +310,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
329
310
|
}
|
330
311
|
else {
|
331
312
|
for (const key in obj) {
|
332
|
-
if (
|
313
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
333
314
|
const value = obj === null || obj === void 0 ? void 0 : obj[key];
|
334
315
|
if (typeof value === 'object') {
|
335
316
|
getEventParams(value);
|
@@ -366,28 +347,55 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
366
347
|
}
|
367
348
|
};
|
368
349
|
getEventParams(jsonParams);
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
}
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
}
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
350
|
+
return jsonParams;
|
351
|
+
}, [fakeUserId]);
|
352
|
+
const bffFbReport = useCallback(({ eventName, product }) => {
|
353
|
+
var _a, _b, _c, _d, _e;
|
354
|
+
if (!enableReportEvent || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview)) {
|
355
|
+
return;
|
356
|
+
}
|
357
|
+
if (eventName === 'PageView' && typeof (window === null || window === void 0 ? void 0 : window.gtag) === 'function') {
|
358
|
+
window === null || window === void 0 ? void 0 : window.gtag('event', 'page_view', {
|
359
|
+
page_location: (_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.href,
|
360
|
+
page_title: document === null || document === void 0 ? void 0 : document.title
|
361
|
+
});
|
362
|
+
}
|
363
|
+
const pixelEventParamsJson = (_b = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.pixel) === null || _b === void 0 ? void 0 : _b[eventName];
|
364
|
+
if (pixelEventParamsJson && typeof (window === null || window === void 0 ? void 0 : window.fbq) === 'function') {
|
365
|
+
function updateQueryStringParameter(uri, key, value) {
|
366
|
+
const re = new RegExp('([?&])' + key + '=.*?(&|$)', 'i');
|
367
|
+
const separator = uri.indexOf('?') !== -1 ? '&' : '?';
|
368
|
+
if (uri.match(re)) {
|
369
|
+
return uri.replace(re, '$1' + key + '=' + value + '$2');
|
370
|
+
}
|
371
|
+
else {
|
372
|
+
return uri + separator + key + '=' + value;
|
373
|
+
}
|
374
|
+
}
|
375
|
+
const currentUrl = window.location.href;
|
376
|
+
const newUrl = updateQueryStringParameter(currentUrl, 'timestamp', Date.now());
|
377
|
+
history.pushState({ path: newUrl }, '', newUrl);
|
378
|
+
const body = getEventParamsByJson(pixelEventParamsJson);
|
379
|
+
window === null || window === void 0 ? void 0 : window.fbq('track', eventName, body);
|
380
|
+
}
|
381
|
+
const converApiEventParamsJson = (_c = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.converApi) === null || _c === void 0 ? void 0 : _c[eventName];
|
382
|
+
if (enabledMetaConversionApi && converApiEventParamsJson) {
|
383
|
+
const body = getEventParamsByJson(converApiEventParamsJson, product);
|
384
|
+
const params = {};
|
385
|
+
const queryString = location.search.slice(1);
|
386
|
+
(_d = splitUrlParams(queryString)) === null || _d === void 0 ? void 0 : _d.forEach((val) => {
|
387
|
+
const key = val.split('=')[0];
|
388
|
+
const value = val.split('=')[1];
|
389
|
+
params[key] = value;
|
390
|
+
});
|
391
|
+
const cl_source = params === null || params === void 0 ? void 0 : params.cl_source;
|
392
|
+
bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch(`v2/fb/${(_e = bffDataSource === null || bffDataSource === void 0 ? void 0 : bffDataSource.headers) === null || _e === void 0 ? void 0 : _e['x-app-id']}/${eventName}${cl_source ? `/${decodeURIComponent(cl_source)}` : ''}`, {
|
393
|
+
method: 'POST',
|
394
|
+
body,
|
395
|
+
type: 'beacon'
|
396
|
+
});
|
397
|
+
}
|
398
|
+
}, [bffFetch, enableReportEvent, enabledMetaConversionApi, globalConfig, bffDataSource, getEventParamsByJson]);
|
391
399
|
const bffMutateLike = useCallback((body) => __awaiter(void 0, void 0, void 0, function* () {
|
392
400
|
const res = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v1/recommend/like', { method: 'POST', body }));
|
393
401
|
return res === null || res === void 0 ? void 0 : res.success;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import { css } from '@emotion/css';
|
3
3
|
import React, { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
4
|
+
import CommodityGroup from '../../template/components/CommodityGroup';
|
4
5
|
import { useSxpDataSource } from '../../../../core/hooks';
|
5
6
|
import './index.less';
|
6
7
|
import { A11y, Autoplay, Keyboard, Mousewheel, Navigation, Pagination } from 'swiper/modules';
|
@@ -10,7 +11,6 @@ import Modal from '../../../../core/components/SxpPageRender/Modal';
|
|
10
11
|
import ExpandableText from '../../../../core/components/SxpPageRender/ExpandableText';
|
11
12
|
import FormatImage from '../../../../core/components/SxpPageRender/FormatImage';
|
12
13
|
import { getScreenReader, setFontForText } from '../../../../core/utils/tool';
|
13
|
-
import CommodityGroup from '../../template/components/CommodityGroup';
|
14
14
|
import { getPriceText } from '../../../../core/utils/materials';
|
15
15
|
const CommodityDetail = (_a) => {
|
16
16
|
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;
|
@@ -67,7 +67,7 @@ const CommodityDetail = (_a) => {
|
|
67
67
|
};
|
68
68
|
}, []);
|
69
69
|
const priceText = getPriceText({
|
70
|
-
product
|
70
|
+
product,
|
71
71
|
enableFormattedPrice: (_t = commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price) === null || _t === void 0 ? void 0 : _t.enableFormattedPrice,
|
72
72
|
globalConfig,
|
73
73
|
style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import { css } from '@emotion/css';
|
3
3
|
import React, { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
4
|
+
import CommodityGroup from '../../template/components/CommodityGroup';
|
4
5
|
import { useSxpDataSource } from '../../../../core/hooks';
|
5
6
|
import './index.less';
|
6
7
|
import { Autoplay, Pagination, Navigation, A11y, Mousewheel, Keyboard } from 'swiper/modules';
|
@@ -10,7 +11,6 @@ import ExpandableText from '../../../../core/components/SxpPageRender/Expandable
|
|
10
11
|
import { useEventReport } from '../../../../core/hooks/useEventReport';
|
11
12
|
import FormatImage from '../../../../core/components/SxpPageRender/FormatImage';
|
12
13
|
import { getScreenReader, setFontForText } from '../../../../core/utils/tool';
|
13
|
-
import CommodityGroup from '../../template/components/CommodityGroup';
|
14
14
|
import { getPriceText } from '../../../../core/utils/materials';
|
15
15
|
const CommodityDetailDiroNew = (_a) => {
|
16
16
|
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;
|
@@ -72,7 +72,7 @@ export interface ISxpDataSourceContext {
|
|
72
72
|
bffFbReport?: (body: {
|
73
73
|
eventName: 'PageView' | 'ProductView' | 'ViewContent';
|
74
74
|
product?: any;
|
75
|
-
}) =>
|
75
|
+
}) => void;
|
76
76
|
curTime?: any;
|
77
77
|
h5EnterLink?: () => void;
|
78
78
|
themeTag?: any;
|
@@ -291,34 +291,15 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
291
291
|
playbookType,
|
292
292
|
bffDataSource
|
293
293
|
]);
|
294
|
-
const
|
295
|
-
var _a, _b, _c
|
296
|
-
|
297
|
-
window === null || window === void 0 ? void 0 : window.gtag('event', 'page_view', {
|
298
|
-
page_location: (_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.href,
|
299
|
-
page_title: document === null || document === void 0 ? void 0 : document.title
|
300
|
-
});
|
301
|
-
}
|
302
|
-
if (eventName && typeof (window === null || window === void 0 ? void 0 : window.fbq) === 'function') {
|
303
|
-
window === null || window === void 0 ? void 0 : window.fbq('track', eventName, {
|
304
|
-
page_path: (_b = window === null || window === void 0 ? void 0 : window.location) === null || _b === void 0 ? void 0 : _b.pathname,
|
305
|
-
page_location: (_c = window === null || window === void 0 ? void 0 : window.location) === null || _c === void 0 ? void 0 : _c.href,
|
306
|
-
page_title: document === null || document === void 0 ? void 0 : document.title
|
307
|
-
});
|
308
|
-
}
|
309
|
-
if (!enableReportEvent ||
|
310
|
-
!enabledMetaConversionApi ||
|
311
|
-
(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview) ||
|
312
|
-
!((_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.converApi) === null || _d === void 0 ? void 0 : _d[eventName])) {
|
313
|
-
return;
|
314
|
-
}
|
315
|
-
const jsonParams = (0, lodash_1.cloneDeep)((_e = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.converApi) === null || _e === void 0 ? void 0 : _e[eventName]);
|
294
|
+
const getEventParamsByJson = (0, react_1.useCallback)((json, product) => {
|
295
|
+
var _a, _b, _c;
|
296
|
+
const jsonParams = (0, lodash_1.cloneDeep)(json);
|
316
297
|
const urlParams = new URLSearchParams(window.location.search);
|
317
298
|
const fbclid = urlParams === null || urlParams === void 0 ? void 0 : urlParams.get('fbclid');
|
318
299
|
const fix_par = {
|
319
|
-
event_source_url: (
|
300
|
+
event_source_url: (_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.href,
|
320
301
|
external_id: fakeUserId,
|
321
|
-
client_user_agent: (
|
302
|
+
client_user_agent: (_c = (_b = window === null || window === void 0 ? void 0 : window.navigator) === null || _b === void 0 ? void 0 : _b.userAgent) !== null && _c !== void 0 ? _c : '',
|
322
303
|
fbc: fbclid ? `fb.2.${new Date().getTime()}.${fbclid}` : '',
|
323
304
|
fbp: (0, tool_1.getCookie)('_fbp') ? `fb.2.${new Date().getTime()}.${(0, tool_1.getCookie)('_fbp')}` : '',
|
324
305
|
time: Math.floor(Date.now() / 1000)
|
@@ -332,7 +313,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
332
313
|
}
|
333
314
|
else {
|
334
315
|
for (const key in obj) {
|
335
|
-
if (
|
316
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
336
317
|
const value = obj === null || obj === void 0 ? void 0 : obj[key];
|
337
318
|
if (typeof value === 'object') {
|
338
319
|
getEventParams(value);
|
@@ -369,28 +350,55 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
369
350
|
}
|
370
351
|
};
|
371
352
|
getEventParams(jsonParams);
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
}
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
}
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
353
|
+
return jsonParams;
|
354
|
+
}, [fakeUserId]);
|
355
|
+
const bffFbReport = (0, react_1.useCallback)(({ eventName, product }) => {
|
356
|
+
var _a, _b, _c, _d, _e;
|
357
|
+
if (!enableReportEvent || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview)) {
|
358
|
+
return;
|
359
|
+
}
|
360
|
+
if (eventName === 'PageView' && typeof (window === null || window === void 0 ? void 0 : window.gtag) === 'function') {
|
361
|
+
window === null || window === void 0 ? void 0 : window.gtag('event', 'page_view', {
|
362
|
+
page_location: (_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.href,
|
363
|
+
page_title: document === null || document === void 0 ? void 0 : document.title
|
364
|
+
});
|
365
|
+
}
|
366
|
+
const pixelEventParamsJson = (_b = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.pixel) === null || _b === void 0 ? void 0 : _b[eventName];
|
367
|
+
if (pixelEventParamsJson && typeof (window === null || window === void 0 ? void 0 : window.fbq) === 'function') {
|
368
|
+
function updateQueryStringParameter(uri, key, value) {
|
369
|
+
const re = new RegExp('([?&])' + key + '=.*?(&|$)', 'i');
|
370
|
+
const separator = uri.indexOf('?') !== -1 ? '&' : '?';
|
371
|
+
if (uri.match(re)) {
|
372
|
+
return uri.replace(re, '$1' + key + '=' + value + '$2');
|
373
|
+
}
|
374
|
+
else {
|
375
|
+
return uri + separator + key + '=' + value;
|
376
|
+
}
|
377
|
+
}
|
378
|
+
const currentUrl = window.location.href;
|
379
|
+
const newUrl = updateQueryStringParameter(currentUrl, 'timestamp', Date.now());
|
380
|
+
history.pushState({ path: newUrl }, '', newUrl);
|
381
|
+
const body = getEventParamsByJson(pixelEventParamsJson);
|
382
|
+
window === null || window === void 0 ? void 0 : window.fbq('track', eventName, body);
|
383
|
+
}
|
384
|
+
const converApiEventParamsJson = (_c = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.converApi) === null || _c === void 0 ? void 0 : _c[eventName];
|
385
|
+
if (enabledMetaConversionApi && converApiEventParamsJson) {
|
386
|
+
const body = getEventParamsByJson(converApiEventParamsJson, product);
|
387
|
+
const params = {};
|
388
|
+
const queryString = location.search.slice(1);
|
389
|
+
(_d = (0, tool_1.splitUrlParams)(queryString)) === null || _d === void 0 ? void 0 : _d.forEach((val) => {
|
390
|
+
const key = val.split('=')[0];
|
391
|
+
const value = val.split('=')[1];
|
392
|
+
params[key] = value;
|
393
|
+
});
|
394
|
+
const cl_source = params === null || params === void 0 ? void 0 : params.cl_source;
|
395
|
+
bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch(`v2/fb/${(_e = bffDataSource === null || bffDataSource === void 0 ? void 0 : bffDataSource.headers) === null || _e === void 0 ? void 0 : _e['x-app-id']}/${eventName}${cl_source ? `/${decodeURIComponent(cl_source)}` : ''}`, {
|
396
|
+
method: 'POST',
|
397
|
+
body,
|
398
|
+
type: 'beacon'
|
399
|
+
});
|
400
|
+
}
|
401
|
+
}, [bffFetch, enableReportEvent, enabledMetaConversionApi, globalConfig, bffDataSource, getEventParamsByJson]);
|
394
402
|
const bffMutateLike = (0, react_1.useCallback)((body) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
395
403
|
const res = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v1/recommend/like', { method: 'POST', body }));
|
396
404
|
return res === null || res === void 0 ? void 0 : res.success;
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
4
4
|
const css_1 = require("@emotion/css");
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
6
|
+
const CommodityGroup_1 = tslib_1.__importDefault(require("../../template/components/CommodityGroup"));
|
6
7
|
const hooks_1 = require("../../../../core/hooks");
|
7
8
|
require("./index.less");
|
8
9
|
const modules_1 = require("swiper/modules");
|
@@ -12,7 +13,6 @@ const Modal_1 = tslib_1.__importDefault(require("../../../../core/components/Sxp
|
|
12
13
|
const ExpandableText_1 = tslib_1.__importDefault(require("../../../../core/components/SxpPageRender/ExpandableText"));
|
13
14
|
const FormatImage_1 = tslib_1.__importDefault(require("../../../../core/components/SxpPageRender/FormatImage"));
|
14
15
|
const tool_1 = require("../../../../core/utils/tool");
|
15
|
-
const CommodityGroup_1 = tslib_1.__importDefault(require("../../template/components/CommodityGroup"));
|
16
16
|
const materials_1 = require("../../../../core/utils/materials");
|
17
17
|
const CommodityDetail = (_a) => {
|
18
18
|
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;
|
@@ -69,7 +69,7 @@ const CommodityDetail = (_a) => {
|
|
69
69
|
};
|
70
70
|
}, []);
|
71
71
|
const priceText = (0, materials_1.getPriceText)({
|
72
|
-
product
|
72
|
+
product,
|
73
73
|
enableFormattedPrice: (_t = commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price) === null || _t === void 0 ? void 0 : _t.enableFormattedPrice,
|
74
74
|
globalConfig,
|
75
75
|
style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
4
4
|
const css_1 = require("@emotion/css");
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
6
|
+
const CommodityGroup_1 = tslib_1.__importDefault(require("../../template/components/CommodityGroup"));
|
6
7
|
const hooks_1 = require("../../../../core/hooks");
|
7
8
|
require("./index.less");
|
8
9
|
const modules_1 = require("swiper/modules");
|
@@ -12,7 +13,6 @@ const ExpandableText_1 = tslib_1.__importDefault(require("../../../../core/compo
|
|
12
13
|
const useEventReport_1 = require("../../../../core/hooks/useEventReport");
|
13
14
|
const FormatImage_1 = tslib_1.__importDefault(require("../../../../core/components/SxpPageRender/FormatImage"));
|
14
15
|
const tool_1 = require("../../../../core/utils/tool");
|
15
|
-
const CommodityGroup_1 = tslib_1.__importDefault(require("../../template/components/CommodityGroup"));
|
16
16
|
const materials_1 = require("../../../../core/utils/materials");
|
17
17
|
const CommodityDetailDiroNew = (_a) => {
|
18
18
|
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;
|