@fonixtree/magic-design 2.0.126 → 2.0.127
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/common/components/MonpayProductItem/index.js +2 -2
- package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +2 -2
- package/es/composite-comp/monpay/components/Bundle/mobile/BundleItem/index.less +1 -0
- package/lib/composite-comp/common/components/MonpayProductItem/index.js +2 -2
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +2 -2
- package/lib/composite-comp/monpay/components/Bundle/mobile/BundleItem/index.less +1 -0
- package/package.json +1 -1
|
@@ -134,8 +134,8 @@ function (_super) {
|
|
|
134
134
|
rest = __rest(_m, ["data", "panelProps", "onItemClick", "showProName", "showProgress", "intelligentType", "fixHeight", "layout", "imgHeight", "imgWidth", "unknownPrice"]);
|
|
135
135
|
|
|
136
136
|
var promotions = (0, _businessUtil.getPromotionList)(data);
|
|
137
|
-
var price = (0, _currencyUtil.
|
|
138
|
-
price = data.specialPrice !== null ? (0, _currencyUtil.
|
|
137
|
+
var price = (0, _currencyUtil.formatCurrencyWithSymbol)(data.salesPrice);
|
|
138
|
+
price = data.specialPrice !== null ? (0, _currencyUtil.formatCurrencyWithSymbol)(data.specialPrice) : (0, _currencyUtil.formatCurrencyWithSymbol)(data.salesPrice);
|
|
139
139
|
var oldPrice = data.specialPrice !== null && data.marketPrice !== null ? (0, _currencyUtil.formatCurrencyWithSymbol)(data.marketPrice) : null; // const discount = Number(data.discountPercent) || 0;
|
|
140
140
|
|
|
141
141
|
var salePercent = Number(data.salePercent) / 100 || 0;
|
package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js
CHANGED
|
@@ -75,7 +75,7 @@ function (_super) {
|
|
|
75
75
|
SearchBarConfigContent.prototype.render = function () {
|
|
76
76
|
var _this = this;
|
|
77
77
|
|
|
78
|
-
var _a, _b, _c, _d;
|
|
78
|
+
var _a, _b, _c, _d, _e;
|
|
79
79
|
|
|
80
80
|
var panelProps = this.props.panelProps;
|
|
81
81
|
var source = [{
|
|
@@ -155,7 +155,7 @@ function (_super) {
|
|
|
155
155
|
|
|
156
156
|
_this.selfRender();
|
|
157
157
|
},
|
|
158
|
-
value: panelProps.placeholder.text
|
|
158
|
+
value: (_e = panelProps.placeholder) === null || _e === void 0 ? void 0 : _e.text
|
|
159
159
|
}))),
|
|
160
160
|
metaOption: panelProps.placeholder
|
|
161
161
|
}, {
|
|
@@ -134,8 +134,8 @@ function (_super) {
|
|
|
134
134
|
rest = __rest(_m, ["data", "panelProps", "onItemClick", "showProName", "showProgress", "intelligentType", "fixHeight", "layout", "imgHeight", "imgWidth", "unknownPrice"]);
|
|
135
135
|
|
|
136
136
|
var promotions = (0, _businessUtil.getPromotionList)(data);
|
|
137
|
-
var price = (0, _currencyUtil.
|
|
138
|
-
price = data.specialPrice !== null ? (0, _currencyUtil.
|
|
137
|
+
var price = (0, _currencyUtil.formatCurrencyWithSymbol)(data.salesPrice);
|
|
138
|
+
price = data.specialPrice !== null ? (0, _currencyUtil.formatCurrencyWithSymbol)(data.specialPrice) : (0, _currencyUtil.formatCurrencyWithSymbol)(data.salesPrice);
|
|
139
139
|
var oldPrice = data.specialPrice !== null && data.marketPrice !== null ? (0, _currencyUtil.formatCurrencyWithSymbol)(data.marketPrice) : null; // const discount = Number(data.discountPercent) || 0;
|
|
140
140
|
|
|
141
141
|
var salePercent = Number(data.salePercent) / 100 || 0;
|
package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js
CHANGED
|
@@ -75,7 +75,7 @@ function (_super) {
|
|
|
75
75
|
SearchBarConfigContent.prototype.render = function () {
|
|
76
76
|
var _this = this;
|
|
77
77
|
|
|
78
|
-
var _a, _b, _c, _d;
|
|
78
|
+
var _a, _b, _c, _d, _e;
|
|
79
79
|
|
|
80
80
|
var panelProps = this.props.panelProps;
|
|
81
81
|
var source = [{
|
|
@@ -155,7 +155,7 @@ function (_super) {
|
|
|
155
155
|
|
|
156
156
|
_this.selfRender();
|
|
157
157
|
},
|
|
158
|
-
value: panelProps.placeholder.text
|
|
158
|
+
value: (_e = panelProps.placeholder) === null || _e === void 0 ? void 0 : _e.text
|
|
159
159
|
}))),
|
|
160
160
|
metaOption: panelProps.placeholder
|
|
161
161
|
}, {
|