@fonixtree/magic-design 1.0.203 → 1.0.205
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/es/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +1 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +3 -2
- package/lib/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +1 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +3 -2
- package/package.json +1 -1
|
@@ -415,6 +415,7 @@ function (_super) {
|
|
|
415
415
|
data: __assign(__assign({}, item), {
|
|
416
416
|
salePercent: isWill ? 0 : item.salePercent
|
|
417
417
|
}),
|
|
418
|
+
hideLabels: isWill,
|
|
418
419
|
onItemClick: function onItemClick() {
|
|
419
420
|
(0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || ''));
|
|
420
421
|
}
|
|
@@ -76,7 +76,8 @@ function (_super) {
|
|
|
76
76
|
var _b = this.props,
|
|
77
77
|
data = _b.data,
|
|
78
78
|
onItemClick = _b.onItemClick,
|
|
79
|
-
|
|
79
|
+
hideLabels = _b.hideLabels,
|
|
80
|
+
rest = __rest(_b, ["data", "onItemClick", "hideLabels"]); // data.labels = [
|
|
80
81
|
// {
|
|
81
82
|
// position: '2',
|
|
82
83
|
// imgUrl: '/get/resource/platform/20250425/picture/Frame42731928621915591174458650624.png',
|
|
@@ -98,7 +99,7 @@ function (_super) {
|
|
|
98
99
|
className: "product-img",
|
|
99
100
|
lazy: true,
|
|
100
101
|
src: (0, _commonUtil.convertImageUrl)(data.productImg || data.imgUrlContent || data.productImageUrlContent)
|
|
101
|
-
}), /*#__PURE__*/_react["default"].createElement(_ImageLabel["default"], {
|
|
102
|
+
}), !hideLabels && /*#__PURE__*/_react["default"].createElement(_ImageLabel["default"], {
|
|
102
103
|
labels: imgLabels,
|
|
103
104
|
small: true
|
|
104
105
|
})));
|
|
@@ -415,6 +415,7 @@ function (_super) {
|
|
|
415
415
|
data: __assign(__assign({}, item), {
|
|
416
416
|
salePercent: isWill ? 0 : item.salePercent
|
|
417
417
|
}),
|
|
418
|
+
hideLabels: isWill,
|
|
418
419
|
onItemClick: function onItemClick() {
|
|
419
420
|
(0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || ''));
|
|
420
421
|
}
|
|
@@ -76,7 +76,8 @@ function (_super) {
|
|
|
76
76
|
var _b = this.props,
|
|
77
77
|
data = _b.data,
|
|
78
78
|
onItemClick = _b.onItemClick,
|
|
79
|
-
|
|
79
|
+
hideLabels = _b.hideLabels,
|
|
80
|
+
rest = __rest(_b, ["data", "onItemClick", "hideLabels"]); // data.labels = [
|
|
80
81
|
// {
|
|
81
82
|
// position: '2',
|
|
82
83
|
// imgUrl: '/get/resource/platform/20250425/picture/Frame42731928621915591174458650624.png',
|
|
@@ -98,7 +99,7 @@ function (_super) {
|
|
|
98
99
|
className: "product-img",
|
|
99
100
|
lazy: true,
|
|
100
101
|
src: (0, _commonUtil.convertImageUrl)(data.productImg || data.imgUrlContent || data.productImageUrlContent)
|
|
101
|
-
}), /*#__PURE__*/_react["default"].createElement(_ImageLabel["default"], {
|
|
102
|
+
}), !hideLabels && /*#__PURE__*/_react["default"].createElement(_ImageLabel["default"], {
|
|
102
103
|
labels: imgLabels,
|
|
103
104
|
small: true
|
|
104
105
|
})));
|