@fonixtree/magic-design 2.0.184 → 2.0.186

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.
@@ -164,7 +164,7 @@ function (_super) {
164
164
  }
165
165
  }
166
166
 
167
- var _discountPercent = isRecommend ? data.sppDiscountPercent : data.discountPercent;
167
+ var _discountPercent = isRecommend ? data.sppDiscountPercent || data.discountPercent : data.discountPercent;
168
168
 
169
169
  return /*#__PURE__*/_react["default"].createElement("div", _extends({
170
170
  className: (0, _classnames["default"])('monpay-product-item-wrap', {
@@ -822,6 +822,7 @@ function (_super) {
822
822
  imgHeight: imgHeight,
823
823
  imgWidth: imgWidth,
824
824
  intelligentType: (_a = groupSource[tabIndex]) === null || _a === void 0 ? void 0 : _a.intelligentType,
825
+ isRecommend: true,
825
826
  layout: layout === 'layout2' ? 'horizontal' : 'vertical',
826
827
  onItemClick: function onItemClick() {
827
828
  /** PTO 定制GA */
@@ -164,7 +164,7 @@ function (_super) {
164
164
  }
165
165
  }
166
166
 
167
- var _discountPercent = isRecommend ? data.sppDiscountPercent : data.discountPercent;
167
+ var _discountPercent = isRecommend ? data.sppDiscountPercent || data.discountPercent : data.discountPercent;
168
168
 
169
169
  return /*#__PURE__*/_react["default"].createElement("div", _extends({
170
170
  className: (0, _classnames["default"])('monpay-product-item-wrap', {
@@ -822,6 +822,7 @@ function (_super) {
822
822
  imgHeight: imgHeight,
823
823
  imgWidth: imgWidth,
824
824
  intelligentType: (_a = groupSource[tabIndex]) === null || _a === void 0 ? void 0 : _a.intelligentType,
825
+ isRecommend: true,
825
826
  layout: layout === 'layout2' ? 'horizontal' : 'vertical',
826
827
  onItemClick: function onItemClick() {
827
828
  /** PTO 定制GA */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "2.0.184",
4
+ "version": "2.0.186",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",