@fonixtree/magic-design 2.0.126 → 2.0.128
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 +8 -3
- package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +2 -2
- package/es/composite-comp/monpay/components/Bundle/mobile/BundleProdItem/index.less +6 -0
- package/es/composite-comp/monpay/components/InterestProducts/mobile/ProductItem/index.js +8 -2
- package/es/composite-comp/monpay/components/InterestProducts/mobile/index.js +4 -8
- package/lib/composite-comp/common/components/MonpayProductItem/index.js +8 -3
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +2 -2
- package/lib/composite-comp/monpay/components/Bundle/mobile/BundleProdItem/index.less +6 -0
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/ProductItem/index.js +8 -2
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/index.js +4 -8
- package/package.json +1 -1
|
@@ -134,9 +134,14 @@ 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
|
-
|
|
139
|
-
|
|
137
|
+
var price = (0, _currencyUtil.formatCurrencyWithSymbol)(data.salesPrice);
|
|
138
|
+
var oldPrice = null;
|
|
139
|
+
|
|
140
|
+
if (data.specialPrice !== null) {
|
|
141
|
+
price = (0, _currencyUtil.formatCurrencyWithSymbol)(data.specialPrice);
|
|
142
|
+
oldPrice = (0, _currencyUtil.formatCurrencyWithSymbol)(data.salesPrice);
|
|
143
|
+
} // const discount = Number(data.discountPercent) || 0;
|
|
144
|
+
|
|
140
145
|
|
|
141
146
|
var salePercent = Number(data.salePercent) / 100 || 0;
|
|
142
147
|
var imgStyle = {};
|
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
|
}, {
|
|
@@ -82,8 +82,14 @@ function (_super) {
|
|
|
82
82
|
onItemClick = _d.onItemClick,
|
|
83
83
|
rest = __rest(_d, ["data", "onItemClick"]);
|
|
84
84
|
|
|
85
|
-
var price =
|
|
86
|
-
var oldPrice =
|
|
85
|
+
var price = (0, _currencyUtil.formatCurrencyWithSymbol)(data.salesPrice);
|
|
86
|
+
var oldPrice = null;
|
|
87
|
+
|
|
88
|
+
if (data.specialPrice !== null) {
|
|
89
|
+
price = (0, _currencyUtil.formatCurrencyWithSymbol)(data.specialPrice);
|
|
90
|
+
oldPrice = (0, _currencyUtil.formatCurrencyWithSymbol)(data.salesPrice);
|
|
91
|
+
}
|
|
92
|
+
|
|
87
93
|
var imgLabels = ((_a = data.labels) === null || _a === void 0 ? void 0 : _a.filter(function (f) {
|
|
88
94
|
return f.position !== '6' && f.position !== '7';
|
|
89
95
|
})) || [];
|
|
@@ -213,9 +213,8 @@ var defaultData = [{
|
|
|
213
213
|
url: _card["default"]
|
|
214
214
|
},
|
|
215
215
|
offerName: 'Product Name',
|
|
216
|
-
salesPrice:
|
|
217
|
-
specialPrice:
|
|
218
|
-
marketPrice: 19000000,
|
|
216
|
+
salesPrice: 10000,
|
|
217
|
+
specialPrice: 800,
|
|
219
218
|
discountPercent: 10,
|
|
220
219
|
salePercent: 500,
|
|
221
220
|
salesCnt: 501,
|
|
@@ -225,9 +224,8 @@ var defaultData = [{
|
|
|
225
224
|
url: _card["default"]
|
|
226
225
|
},
|
|
227
226
|
offerName: 'Product Name',
|
|
228
|
-
salesPrice:
|
|
229
|
-
specialPrice:
|
|
230
|
-
marketPrice: 19000000,
|
|
227
|
+
salesPrice: 20000,
|
|
228
|
+
specialPrice: null,
|
|
231
229
|
discountPercent: null,
|
|
232
230
|
salePercent: 500,
|
|
233
231
|
salesCnt: 501,
|
|
@@ -239,7 +237,6 @@ var defaultData = [{
|
|
|
239
237
|
offerName: 'Product Name',
|
|
240
238
|
salesPrice: 20000000,
|
|
241
239
|
specialPrice: 18000000,
|
|
242
|
-
marketPrice: 19000000,
|
|
243
240
|
discountPercent: 10,
|
|
244
241
|
salePercent: 500,
|
|
245
242
|
salesCnt: 501,
|
|
@@ -251,7 +248,6 @@ var defaultData = [{
|
|
|
251
248
|
offerName: 'Product Name',
|
|
252
249
|
salesPrice: 20000000,
|
|
253
250
|
specialPrice: 18000000,
|
|
254
|
-
marketPrice: 19000000,
|
|
255
251
|
discountPercent: 10,
|
|
256
252
|
salePercent: 500,
|
|
257
253
|
salesCnt: 200,
|
|
@@ -134,9 +134,14 @@ 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
|
-
|
|
139
|
-
|
|
137
|
+
var price = (0, _currencyUtil.formatCurrencyWithSymbol)(data.salesPrice);
|
|
138
|
+
var oldPrice = null;
|
|
139
|
+
|
|
140
|
+
if (data.specialPrice !== null) {
|
|
141
|
+
price = (0, _currencyUtil.formatCurrencyWithSymbol)(data.specialPrice);
|
|
142
|
+
oldPrice = (0, _currencyUtil.formatCurrencyWithSymbol)(data.salesPrice);
|
|
143
|
+
} // const discount = Number(data.discountPercent) || 0;
|
|
144
|
+
|
|
140
145
|
|
|
141
146
|
var salePercent = Number(data.salePercent) / 100 || 0;
|
|
142
147
|
var imgStyle = {};
|
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
|
}, {
|
|
@@ -82,8 +82,14 @@ function (_super) {
|
|
|
82
82
|
onItemClick = _d.onItemClick,
|
|
83
83
|
rest = __rest(_d, ["data", "onItemClick"]);
|
|
84
84
|
|
|
85
|
-
var price =
|
|
86
|
-
var oldPrice =
|
|
85
|
+
var price = (0, _currencyUtil.formatCurrencyWithSymbol)(data.salesPrice);
|
|
86
|
+
var oldPrice = null;
|
|
87
|
+
|
|
88
|
+
if (data.specialPrice !== null) {
|
|
89
|
+
price = (0, _currencyUtil.formatCurrencyWithSymbol)(data.specialPrice);
|
|
90
|
+
oldPrice = (0, _currencyUtil.formatCurrencyWithSymbol)(data.salesPrice);
|
|
91
|
+
}
|
|
92
|
+
|
|
87
93
|
var imgLabels = ((_a = data.labels) === null || _a === void 0 ? void 0 : _a.filter(function (f) {
|
|
88
94
|
return f.position !== '6' && f.position !== '7';
|
|
89
95
|
})) || [];
|
|
@@ -213,9 +213,8 @@ var defaultData = [{
|
|
|
213
213
|
url: _card["default"]
|
|
214
214
|
},
|
|
215
215
|
offerName: 'Product Name',
|
|
216
|
-
salesPrice:
|
|
217
|
-
specialPrice:
|
|
218
|
-
marketPrice: 19000000,
|
|
216
|
+
salesPrice: 10000,
|
|
217
|
+
specialPrice: 800,
|
|
219
218
|
discountPercent: 10,
|
|
220
219
|
salePercent: 500,
|
|
221
220
|
salesCnt: 501,
|
|
@@ -225,9 +224,8 @@ var defaultData = [{
|
|
|
225
224
|
url: _card["default"]
|
|
226
225
|
},
|
|
227
226
|
offerName: 'Product Name',
|
|
228
|
-
salesPrice:
|
|
229
|
-
specialPrice:
|
|
230
|
-
marketPrice: 19000000,
|
|
227
|
+
salesPrice: 20000,
|
|
228
|
+
specialPrice: null,
|
|
231
229
|
discountPercent: null,
|
|
232
230
|
salePercent: 500,
|
|
233
231
|
salesCnt: 501,
|
|
@@ -239,7 +237,6 @@ var defaultData = [{
|
|
|
239
237
|
offerName: 'Product Name',
|
|
240
238
|
salesPrice: 20000000,
|
|
241
239
|
specialPrice: 18000000,
|
|
242
|
-
marketPrice: 19000000,
|
|
243
240
|
discountPercent: 10,
|
|
244
241
|
salePercent: 500,
|
|
245
242
|
salesCnt: 501,
|
|
@@ -251,7 +248,6 @@ var defaultData = [{
|
|
|
251
248
|
offerName: 'Product Name',
|
|
252
249
|
salesPrice: 20000000,
|
|
253
250
|
specialPrice: 18000000,
|
|
254
|
-
marketPrice: 19000000,
|
|
255
251
|
discountPercent: 10,
|
|
256
252
|
salePercent: 500,
|
|
257
253
|
salesCnt: 200,
|