@fonixtree/magic-design 1.0.76 → 1.0.78
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/ProductItem/index.js +17 -17
- package/es/composite-comp/dito/components/SignBoard/mobile/index.js +4 -3
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +3 -1
- package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +6 -6
- package/lib/composite-comp/common/components/ProductItem/index.js +17 -17
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +4 -3
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +3 -1
- package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +6 -6
- package/package.json +1 -1
- package/es/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/.DS_Store +0 -0
|
@@ -95,21 +95,21 @@ function (_super) {
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
ProductItem.prototype.render = function () {
|
|
98
|
-
var _a, _b, _c;
|
|
99
|
-
|
|
100
|
-
var
|
|
101
|
-
data =
|
|
102
|
-
type =
|
|
103
|
-
panelProps =
|
|
104
|
-
onItemClick =
|
|
105
|
-
showProName =
|
|
106
|
-
showProgress =
|
|
107
|
-
fixHeight =
|
|
108
|
-
layout =
|
|
109
|
-
imgHeight =
|
|
110
|
-
imgWidth =
|
|
111
|
-
unknownPrice =
|
|
112
|
-
rest = __rest(
|
|
98
|
+
var _a, _b, _c, _d, _e;
|
|
99
|
+
|
|
100
|
+
var _f = this.props,
|
|
101
|
+
data = _f.data,
|
|
102
|
+
type = _f.type,
|
|
103
|
+
panelProps = _f.panelProps,
|
|
104
|
+
onItemClick = _f.onItemClick,
|
|
105
|
+
showProName = _f.showProName,
|
|
106
|
+
showProgress = _f.showProgress,
|
|
107
|
+
fixHeight = _f.fixHeight,
|
|
108
|
+
layout = _f.layout,
|
|
109
|
+
imgHeight = _f.imgHeight,
|
|
110
|
+
imgWidth = _f.imgWidth,
|
|
111
|
+
unknownPrice = _f.unknownPrice,
|
|
112
|
+
rest = __rest(_f, ["data", "type", "panelProps", "onItemClick", "showProName", "showProgress", "fixHeight", "layout", "imgHeight", "imgWidth", "unknownPrice"]);
|
|
113
113
|
|
|
114
114
|
var promotions = (0, _businessUtil.getPromotionList)(data);
|
|
115
115
|
var price = (0, _currencyUtil.formatCurrency)(data.salesPrice);
|
|
@@ -240,7 +240,7 @@ function (_super) {
|
|
|
240
240
|
}
|
|
241
241
|
})), !showProgress && data.salesCnt > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
242
242
|
className: "sold-count"
|
|
243
|
-
}, (0, _commonUtil.convertCount)(data.salesCnt), " sold")), showProgress && panelProps.salesProgress.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
243
|
+
}, (0, _commonUtil.convertCount)(data.salesCnt), " sold")), showProgress && ((_d = panelProps.salesProgress) === null || _d === void 0 ? void 0 : _d.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
244
244
|
className: "progress-wrap"
|
|
245
245
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
246
246
|
className: "text"
|
|
@@ -250,7 +250,7 @@ function (_super) {
|
|
|
250
250
|
className: "progress",
|
|
251
251
|
style: {
|
|
252
252
|
width: salePercent + "%",
|
|
253
|
-
backgroundColor: panelProps.salesProgress.color
|
|
253
|
+
backgroundColor: (_e = panelProps.salesProgress) === null || _e === void 0 ? void 0 : _e.color
|
|
254
254
|
}
|
|
255
255
|
})))));
|
|
256
256
|
};
|
|
@@ -13,8 +13,6 @@ var _antd = require("antd");
|
|
|
13
13
|
|
|
14
14
|
var _common = require("../../../../../common");
|
|
15
15
|
|
|
16
|
-
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
17
|
-
|
|
18
16
|
var _star = _interopRequireDefault(require("../imgs/star.svg"));
|
|
19
17
|
|
|
20
18
|
var _commonUtil = require("../../../../../utils/commonUtil");
|
|
@@ -241,7 +239,10 @@ function (_super) {
|
|
|
241
239
|
|
|
242
240
|
_this.searchProduct = function () {
|
|
243
241
|
var storeId = window.magicDesign.storeId;
|
|
244
|
-
(0,
|
|
242
|
+
(0, _commonUtil.navigateTo)('/product/list', {
|
|
243
|
+
q: _this.state.inputVal,
|
|
244
|
+
storeId: storeId
|
|
245
|
+
}); // clickUrl(`/product/list?q=${this.state.inputVal}&storeId=${storeId}`);
|
|
245
246
|
};
|
|
246
247
|
|
|
247
248
|
_this.clickCollect = function () {
|
package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js
CHANGED
|
@@ -71,6 +71,8 @@ function (_super) {
|
|
|
71
71
|
AComponent.prototype.render = function () {
|
|
72
72
|
var _this = this;
|
|
73
73
|
|
|
74
|
+
var _a;
|
|
75
|
+
|
|
74
76
|
var panelProps = this.props.panelProps;
|
|
75
77
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
76
78
|
className: "flash_sale_content"
|
|
@@ -125,7 +127,7 @@ function (_super) {
|
|
|
125
127
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
126
128
|
className: "label"
|
|
127
129
|
}, (0, _locale.i18n)('SALES_PROGRESS')), /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
|
|
128
|
-
checked: panelProps.salesProgress.open,
|
|
130
|
+
checked: (_a = panelProps.salesProgress) === null || _a === void 0 ? void 0 : _a.open,
|
|
129
131
|
onChange: function onChange(v) {
|
|
130
132
|
panelProps.salesProgress = {
|
|
131
133
|
open: v
|
|
@@ -71,6 +71,8 @@ function (_super) {
|
|
|
71
71
|
AComponent.prototype.render = function () {
|
|
72
72
|
var _this = this;
|
|
73
73
|
|
|
74
|
+
var _a, _b, _c;
|
|
75
|
+
|
|
74
76
|
var panelProps = this.props.panelProps;
|
|
75
77
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
76
78
|
className: "group_buy_content"
|
|
@@ -127,15 +129,13 @@ function (_super) {
|
|
|
127
129
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
128
130
|
className: "label"
|
|
129
131
|
}, (0, _locale.i18n)('SALES_PROGRESS')), /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
|
|
130
|
-
checked: panelProps.salesProgress.open,
|
|
132
|
+
checked: (_a = panelProps.salesProgress) === null || _a === void 0 ? void 0 : _a.open,
|
|
131
133
|
onChange: function onChange(v) {
|
|
132
|
-
panelProps.salesProgress =
|
|
133
|
-
open: v
|
|
134
|
-
};
|
|
134
|
+
panelProps.salesProgress.open = v;
|
|
135
135
|
|
|
136
136
|
_this.reRender();
|
|
137
137
|
}
|
|
138
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
138
|
+
})), ((_b = panelProps.salesProgress) === null || _b === void 0 ? void 0 : _b.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
139
139
|
className: "content"
|
|
140
140
|
}, /*#__PURE__*/_react["default"].createElement("p", {
|
|
141
141
|
className: "name"
|
|
@@ -146,7 +146,7 @@ function (_super) {
|
|
|
146
146
|
|
|
147
147
|
_this.reRender();
|
|
148
148
|
},
|
|
149
|
-
value: panelProps.salesProgress.color
|
|
149
|
+
value: (_c = panelProps.salesProgress) === null || _c === void 0 ? void 0 : _c.color
|
|
150
150
|
}))));
|
|
151
151
|
};
|
|
152
152
|
|
|
@@ -95,21 +95,21 @@ function (_super) {
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
ProductItem.prototype.render = function () {
|
|
98
|
-
var _a, _b, _c;
|
|
99
|
-
|
|
100
|
-
var
|
|
101
|
-
data =
|
|
102
|
-
type =
|
|
103
|
-
panelProps =
|
|
104
|
-
onItemClick =
|
|
105
|
-
showProName =
|
|
106
|
-
showProgress =
|
|
107
|
-
fixHeight =
|
|
108
|
-
layout =
|
|
109
|
-
imgHeight =
|
|
110
|
-
imgWidth =
|
|
111
|
-
unknownPrice =
|
|
112
|
-
rest = __rest(
|
|
98
|
+
var _a, _b, _c, _d, _e;
|
|
99
|
+
|
|
100
|
+
var _f = this.props,
|
|
101
|
+
data = _f.data,
|
|
102
|
+
type = _f.type,
|
|
103
|
+
panelProps = _f.panelProps,
|
|
104
|
+
onItemClick = _f.onItemClick,
|
|
105
|
+
showProName = _f.showProName,
|
|
106
|
+
showProgress = _f.showProgress,
|
|
107
|
+
fixHeight = _f.fixHeight,
|
|
108
|
+
layout = _f.layout,
|
|
109
|
+
imgHeight = _f.imgHeight,
|
|
110
|
+
imgWidth = _f.imgWidth,
|
|
111
|
+
unknownPrice = _f.unknownPrice,
|
|
112
|
+
rest = __rest(_f, ["data", "type", "panelProps", "onItemClick", "showProName", "showProgress", "fixHeight", "layout", "imgHeight", "imgWidth", "unknownPrice"]);
|
|
113
113
|
|
|
114
114
|
var promotions = (0, _businessUtil.getPromotionList)(data);
|
|
115
115
|
var price = (0, _currencyUtil.formatCurrency)(data.salesPrice);
|
|
@@ -240,7 +240,7 @@ function (_super) {
|
|
|
240
240
|
}
|
|
241
241
|
})), !showProgress && data.salesCnt > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
242
242
|
className: "sold-count"
|
|
243
|
-
}, (0, _commonUtil.convertCount)(data.salesCnt), " sold")), showProgress && panelProps.salesProgress.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
243
|
+
}, (0, _commonUtil.convertCount)(data.salesCnt), " sold")), showProgress && ((_d = panelProps.salesProgress) === null || _d === void 0 ? void 0 : _d.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
244
244
|
className: "progress-wrap"
|
|
245
245
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
246
246
|
className: "text"
|
|
@@ -250,7 +250,7 @@ function (_super) {
|
|
|
250
250
|
className: "progress",
|
|
251
251
|
style: {
|
|
252
252
|
width: salePercent + "%",
|
|
253
|
-
backgroundColor: panelProps.salesProgress.color
|
|
253
|
+
backgroundColor: (_e = panelProps.salesProgress) === null || _e === void 0 ? void 0 : _e.color
|
|
254
254
|
}
|
|
255
255
|
})))));
|
|
256
256
|
};
|
|
@@ -13,8 +13,6 @@ var _antd = require("antd");
|
|
|
13
13
|
|
|
14
14
|
var _common = require("../../../../../common");
|
|
15
15
|
|
|
16
|
-
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
17
|
-
|
|
18
16
|
var _star = _interopRequireDefault(require("../imgs/star.svg"));
|
|
19
17
|
|
|
20
18
|
var _commonUtil = require("../../../../../utils/commonUtil");
|
|
@@ -241,7 +239,10 @@ function (_super) {
|
|
|
241
239
|
|
|
242
240
|
_this.searchProduct = function () {
|
|
243
241
|
var storeId = window.magicDesign.storeId;
|
|
244
|
-
(0,
|
|
242
|
+
(0, _commonUtil.navigateTo)('/product/list', {
|
|
243
|
+
q: _this.state.inputVal,
|
|
244
|
+
storeId: storeId
|
|
245
|
+
}); // clickUrl(`/product/list?q=${this.state.inputVal}&storeId=${storeId}`);
|
|
245
246
|
};
|
|
246
247
|
|
|
247
248
|
_this.clickCollect = function () {
|
package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js
CHANGED
|
@@ -71,6 +71,8 @@ function (_super) {
|
|
|
71
71
|
AComponent.prototype.render = function () {
|
|
72
72
|
var _this = this;
|
|
73
73
|
|
|
74
|
+
var _a;
|
|
75
|
+
|
|
74
76
|
var panelProps = this.props.panelProps;
|
|
75
77
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
76
78
|
className: "flash_sale_content"
|
|
@@ -125,7 +127,7 @@ function (_super) {
|
|
|
125
127
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
126
128
|
className: "label"
|
|
127
129
|
}, (0, _locale.i18n)('SALES_PROGRESS')), /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
|
|
128
|
-
checked: panelProps.salesProgress.open,
|
|
130
|
+
checked: (_a = panelProps.salesProgress) === null || _a === void 0 ? void 0 : _a.open,
|
|
129
131
|
onChange: function onChange(v) {
|
|
130
132
|
panelProps.salesProgress = {
|
|
131
133
|
open: v
|
|
@@ -71,6 +71,8 @@ function (_super) {
|
|
|
71
71
|
AComponent.prototype.render = function () {
|
|
72
72
|
var _this = this;
|
|
73
73
|
|
|
74
|
+
var _a, _b, _c;
|
|
75
|
+
|
|
74
76
|
var panelProps = this.props.panelProps;
|
|
75
77
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
76
78
|
className: "group_buy_content"
|
|
@@ -127,15 +129,13 @@ function (_super) {
|
|
|
127
129
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
128
130
|
className: "label"
|
|
129
131
|
}, (0, _locale.i18n)('SALES_PROGRESS')), /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
|
|
130
|
-
checked: panelProps.salesProgress.open,
|
|
132
|
+
checked: (_a = panelProps.salesProgress) === null || _a === void 0 ? void 0 : _a.open,
|
|
131
133
|
onChange: function onChange(v) {
|
|
132
|
-
panelProps.salesProgress =
|
|
133
|
-
open: v
|
|
134
|
-
};
|
|
134
|
+
panelProps.salesProgress.open = v;
|
|
135
135
|
|
|
136
136
|
_this.reRender();
|
|
137
137
|
}
|
|
138
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
138
|
+
})), ((_b = panelProps.salesProgress) === null || _b === void 0 ? void 0 : _b.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
139
139
|
className: "content"
|
|
140
140
|
}, /*#__PURE__*/_react["default"].createElement("p", {
|
|
141
141
|
className: "name"
|
|
@@ -146,7 +146,7 @@ function (_super) {
|
|
|
146
146
|
|
|
147
147
|
_this.reRender();
|
|
148
148
|
},
|
|
149
|
-
value: panelProps.salesProgress.color
|
|
149
|
+
value: (_c = panelProps.salesProgress) === null || _c === void 0 ? void 0 : _c.color
|
|
150
150
|
}))));
|
|
151
151
|
};
|
|
152
152
|
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|