@fonixtree/magic-design 1.0.82 → 1.0.84

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.
Files changed (51) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +47 -3
  2. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  3. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  4. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  5. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  6. package/es/assets/images/base64/index.js +3 -1
  7. package/es/composite-comp/common/components/ProductItem/index.js +1 -1
  8. package/es/composite-comp/dito/components/Bargain/defaultJSON.js +244 -0
  9. package/es/composite-comp/dito/components/Bargain/index.js +86 -0
  10. package/es/composite-comp/dito/components/Bargain/mobile/imgs/defImg.png +0 -0
  11. package/es/composite-comp/dito/components/Bargain/mobile/imgs/defImg1.png +0 -0
  12. package/es/composite-comp/dito/components/Bargain/mobile/imgs/defImg2.png +0 -0
  13. package/es/composite-comp/dito/components/Bargain/mobile/imgs/defImg3.png +0 -0
  14. package/es/composite-comp/dito/components/Bargain/mobile/index.js +370 -0
  15. package/es/composite-comp/dito/components/Bargain/mobile/index.less +85 -0
  16. package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +157 -0
  17. package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.less +20 -0
  18. package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigTitle/index.js +126 -0
  19. package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigTitle/index.less +0 -0
  20. package/es/composite-comp/dito/config-panels/BargainConfig/imgs/layout1.png +0 -0
  21. package/es/composite-comp/dito/config-panels/BargainConfig/index.js +73 -0
  22. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/SearchCondition/index.js +144 -0
  23. package/es/constants/component-types.js +6 -2
  24. package/es/constants/index.js +4 -0
  25. package/es/utils/businessUtil.js +1 -0
  26. package/lib/assets/fonts/magic-box-iconfont.css +47 -3
  27. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  28. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  29. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  30. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  31. package/lib/assets/images/base64/index.js +3 -1
  32. package/lib/composite-comp/common/components/ProductItem/index.js +1 -1
  33. package/lib/composite-comp/dito/components/Bargain/defaultJSON.js +244 -0
  34. package/lib/composite-comp/dito/components/Bargain/index.js +86 -0
  35. package/lib/composite-comp/dito/components/Bargain/mobile/imgs/defImg.png +0 -0
  36. package/lib/composite-comp/dito/components/Bargain/mobile/imgs/defImg1.png +0 -0
  37. package/lib/composite-comp/dito/components/Bargain/mobile/imgs/defImg2.png +0 -0
  38. package/lib/composite-comp/dito/components/Bargain/mobile/imgs/defImg3.png +0 -0
  39. package/lib/composite-comp/dito/components/Bargain/mobile/index.js +370 -0
  40. package/lib/composite-comp/dito/components/Bargain/mobile/index.less +85 -0
  41. package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +157 -0
  42. package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.less +20 -0
  43. package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigTitle/index.js +126 -0
  44. package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigTitle/index.less +0 -0
  45. package/lib/composite-comp/dito/config-panels/BargainConfig/imgs/layout1.png +0 -0
  46. package/lib/composite-comp/dito/config-panels/BargainConfig/index.js +73 -0
  47. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/SearchCondition/index.js +144 -0
  48. package/lib/constants/component-types.js +6 -2
  49. package/lib/constants/index.js +4 -0
  50. package/lib/utils/businessUtil.js +1 -0
  51. package/package.json +1 -1
@@ -0,0 +1,370 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ require("./index.less");
11
+
12
+ var _defImg = _interopRequireDefault(require("./imgs/defImg.png"));
13
+
14
+ var _ProductItem = _interopRequireDefault(require("../../../../common/components/ProductItem"));
15
+
16
+ var _coreUtil = require("../../../../../utils/coreUtil");
17
+
18
+ var _components = require("../../../../../meta-comp/components");
19
+
20
+ var _commonUtil = require("../../../../../utils/commonUtil");
21
+
22
+ var _storeUtil = require("../../../../../utils/storeUtil");
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
+
26
+ var __extends = void 0 && (void 0).__extends || function () {
27
+ var _extendStatics = function extendStatics(d, b) {
28
+ _extendStatics = Object.setPrototypeOf || {
29
+ __proto__: []
30
+ } instanceof Array && function (d, b) {
31
+ d.__proto__ = b;
32
+ } || function (d, b) {
33
+ for (var p in b) {
34
+ if (b.hasOwnProperty(p)) d[p] = b[p];
35
+ }
36
+ };
37
+
38
+ return _extendStatics(d, b);
39
+ };
40
+
41
+ return function (d, b) {
42
+ _extendStatics(d, b);
43
+
44
+ function __() {
45
+ this.constructor = d;
46
+ }
47
+
48
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
49
+ };
50
+ }();
51
+
52
+ var __assign = void 0 && (void 0).__assign || function () {
53
+ __assign = Object.assign || function (t) {
54
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
55
+ s = arguments[i];
56
+
57
+ for (var p in s) {
58
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
59
+ }
60
+ }
61
+
62
+ return t;
63
+ };
64
+
65
+ return __assign.apply(this, arguments);
66
+ };
67
+
68
+ var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
69
+ function adopt(value) {
70
+ return value instanceof P ? value : new P(function (resolve) {
71
+ resolve(value);
72
+ });
73
+ }
74
+
75
+ return new (P || (P = Promise))(function (resolve, reject) {
76
+ function fulfilled(value) {
77
+ try {
78
+ step(generator.next(value));
79
+ } catch (e) {
80
+ reject(e);
81
+ }
82
+ }
83
+
84
+ function rejected(value) {
85
+ try {
86
+ step(generator["throw"](value));
87
+ } catch (e) {
88
+ reject(e);
89
+ }
90
+ }
91
+
92
+ function step(result) {
93
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
94
+ }
95
+
96
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
97
+ });
98
+ };
99
+
100
+ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
101
+ var _ = {
102
+ label: 0,
103
+ sent: function sent() {
104
+ if (t[0] & 1) throw t[1];
105
+ return t[1];
106
+ },
107
+ trys: [],
108
+ ops: []
109
+ },
110
+ f,
111
+ y,
112
+ t,
113
+ g;
114
+ return g = {
115
+ next: verb(0),
116
+ "throw": verb(1),
117
+ "return": verb(2)
118
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
119
+ return this;
120
+ }), g;
121
+
122
+ function verb(n) {
123
+ return function (v) {
124
+ return step([n, v]);
125
+ };
126
+ }
127
+
128
+ function step(op) {
129
+ if (f) throw new TypeError("Generator is already executing.");
130
+
131
+ while (_) {
132
+ try {
133
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
134
+ if (y = 0, t) op = [op[0] & 2, t.value];
135
+
136
+ switch (op[0]) {
137
+ case 0:
138
+ case 1:
139
+ t = op;
140
+ break;
141
+
142
+ case 4:
143
+ _.label++;
144
+ return {
145
+ value: op[1],
146
+ done: false
147
+ };
148
+
149
+ case 5:
150
+ _.label++;
151
+ y = op[1];
152
+ op = [0];
153
+ continue;
154
+
155
+ case 7:
156
+ op = _.ops.pop();
157
+
158
+ _.trys.pop();
159
+
160
+ continue;
161
+
162
+ default:
163
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
164
+ _ = 0;
165
+ continue;
166
+ }
167
+
168
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
169
+ _.label = op[1];
170
+ break;
171
+ }
172
+
173
+ if (op[0] === 6 && _.label < t[1]) {
174
+ _.label = t[1];
175
+ t = op;
176
+ break;
177
+ }
178
+
179
+ if (t && _.label < t[2]) {
180
+ _.label = t[2];
181
+
182
+ _.ops.push(op);
183
+
184
+ break;
185
+ }
186
+
187
+ if (t[2]) _.ops.pop();
188
+
189
+ _.trys.pop();
190
+
191
+ continue;
192
+ }
193
+
194
+ op = body.call(thisArg, _);
195
+ } catch (e) {
196
+ op = [6, e];
197
+ y = 0;
198
+ } finally {
199
+ f = t = 0;
200
+ }
201
+ }
202
+
203
+ if (op[0] & 5) throw op[1];
204
+ return {
205
+ value: op[0] ? op[1] : void 0,
206
+ done: true
207
+ };
208
+ }
209
+ };
210
+
211
+ var defaultData = [{
212
+ imgUrlContent: {
213
+ url: _defImg["default"]
214
+ },
215
+ offerName: 'Product Name',
216
+ salesPrice: 18000000,
217
+ specialPrice: 18000000,
218
+ marketPrice: 19000000,
219
+ discountPercent: 10,
220
+ salePercent: 500,
221
+ sppType: '12'
222
+ }, {
223
+ imgUrlContent: {
224
+ url: _defImg["default"]
225
+ },
226
+ offerName: 'Product Name',
227
+ salesPrice: 18000000,
228
+ specialPrice: 18000000,
229
+ marketPrice: 19000000,
230
+ discountPercent: 10,
231
+ salePercent: 500,
232
+ sppType: '12'
233
+ }, {
234
+ imgUrlContent: {
235
+ url: _defImg["default"]
236
+ },
237
+ offerName: 'Product Name',
238
+ salesPrice: 18000000,
239
+ specialPrice: 18000000,
240
+ marketPrice: 19000000,
241
+ discountPercent: 10,
242
+ salePercent: 500,
243
+ sppType: '12'
244
+ }];
245
+
246
+ var FlashDealMobile =
247
+ /** @class */
248
+ function (_super) {
249
+ __extends(FlashDealMobile, _super);
250
+
251
+ function FlashDealMobile() {
252
+ var _this = _super !== null && _super.apply(this, arguments) || this; // 商品列表排序方式
253
+
254
+
255
+ _this.sortType = '';
256
+ _this.state = {
257
+ list: (0, _coreUtil.isDesignMode)() ? [] : (0, _commonUtil.ensure)(function () {
258
+ return (0, _storeUtil.getMagicStore)("bargain_" + (window.magicDesign.pageId || '') + "_" + _this.props.panelProps.id);
259
+ }, [])
260
+ };
261
+
262
+ _this.getData = function () {
263
+ return __awaiter(_this, void 0, void 0, function () {
264
+ var res, pageId, list;
265
+ return __generator(this, function (_a) {
266
+ switch (_a.label) {
267
+ case 0:
268
+ return [4
269
+ /*yield*/
270
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/bargain/offer/page', {
271
+ sortType: this.sortType,
272
+ pageIndex: 1,
273
+ pageSize: 30
274
+ })];
275
+
276
+ case 1:
277
+ res = _a.sent();
278
+ pageId = window.magicDesign.pageId || '';
279
+ list = res.pageInfo.list || [];
280
+
281
+ if (!(0, _coreUtil.isDesignMode)()) {
282
+ (0, _storeUtil.setMagicStore)("bargain_" + pageId + "_" + this.props.panelProps.id, list);
283
+ }
284
+
285
+ this.setState({
286
+ list: list
287
+ });
288
+ return [2
289
+ /*return*/
290
+ ];
291
+ }
292
+ });
293
+ });
294
+ };
295
+
296
+ return _this;
297
+ }
298
+
299
+ FlashDealMobile.prototype.componentDidMount = function () {
300
+ this.sortType = this.props.panelProps.content.sortType;
301
+ this.getData();
302
+ };
303
+
304
+ FlashDealMobile.prototype.componentWillReceiveProps = function (nextProps) {
305
+ if (nextProps.panelProps.content.sortType !== this.sortType) {
306
+ this.sortType = nextProps.panelProps.content.sortType;
307
+ this.getData();
308
+ }
309
+ };
310
+
311
+ FlashDealMobile.prototype.render = function () {
312
+ var panelProps = this.props.panelProps;
313
+ var list = this.state.list;
314
+
315
+ var _list = list.length === 0 && (0, _coreUtil.isDesignMode)() ? defaultData : list;
316
+
317
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _list.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
318
+ className: "m-bargain-mobile"
319
+ }, /*#__PURE__*/_react["default"].createElement("div", {
320
+ className: "bargain-title"
321
+ }, /*#__PURE__*/_react["default"].createElement("div", {
322
+ className: "left"
323
+ }, panelProps.title.icon.open && panelProps.title.icon.url && /*#__PURE__*/_react["default"].createElement("img", {
324
+ alt: "",
325
+ className: "icon",
326
+ src: panelProps.title.icon.url
327
+ }), panelProps.title.headline.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
328
+ className: "title",
329
+ data: panelProps.title.headline
330
+ })), /*#__PURE__*/_react["default"].createElement("div", {
331
+ className: "right",
332
+ onClick: function onClick() {
333
+ return (0, _coreUtil.clickUrl)('/spike');
334
+ }
335
+ }, panelProps.title.button.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
336
+ className: "btn",
337
+ data: panelProps.title.button
338
+ }))), /*#__PURE__*/_react["default"].createElement("div", {
339
+ className: "bargain-list"
340
+ }, _list.map(function (item) {
341
+ return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
342
+ key: item.id,
343
+ data: __assign(__assign({}, item), {
344
+ salePercent: item.salePercent
345
+ }) // onItemClick={() => clickUrl(`/product/detail/${item.offerId}?productId=${item.sppProductId ?? ''}`)}
346
+ ,
347
+ onItemClick: function onItemClick() {
348
+ if (window.magicDesign.pushGA) {
349
+ window.magicDesign.pushGA({}, 'select_promotion', {
350
+ event_section: 'Bargain',
351
+ promotion_name: item === null || item === void 0 ? void 0 : item.offerName
352
+ });
353
+ }
354
+
355
+ (0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || ''));
356
+ },
357
+ panelProps: panelProps.content,
358
+ type: "bargain"
359
+ });
360
+ }))));
361
+ };
362
+
363
+ FlashDealMobile.defaultProps = {
364
+ panelProps: {}
365
+ };
366
+ return FlashDealMobile;
367
+ }(_react["default"].Component);
368
+
369
+ var _default = FlashDealMobile;
370
+ exports["default"] = _default;
@@ -0,0 +1,85 @@
1
+ .m-bargain-mobile {
2
+ display: flex;
3
+ flex-direction: column;
4
+ padding: 0.32rem;
5
+ }
6
+ .m-bargain-mobile .bargain-title {
7
+ display: flex;
8
+ justify-content: space-between;
9
+ align-items: center;
10
+ }
11
+ .m-bargain-mobile .bargain-title .left {
12
+ display: flex;
13
+ align-items: center;
14
+ }
15
+ .m-bargain-mobile .bargain-title .left .icon {
16
+ height: 0.36rem;
17
+ margin-right: 0.2rem;
18
+ }
19
+ .m-bargain-mobile .bargain-title .left .title {
20
+ font-family: 'Montserrat';
21
+ font-style: normal;
22
+ font-weight: 600;
23
+ font-size: 0.28rem;
24
+ line-height: 0.36rem;
25
+ color: #2C2C2C;
26
+ margin-right: 0.2rem;
27
+ }
28
+ .m-bargain-mobile .bargain-title .left .sub-title {
29
+ font-family: 'Montserrat';
30
+ font-style: normal;
31
+ font-weight: 600;
32
+ font-size: 0.2rem;
33
+ line-height: 0.36rem;
34
+ color: #2C2C2C;
35
+ margin-right: 0.12rem;
36
+ align-self: end;
37
+ }
38
+ .m-bargain-mobile .bargain-title .right {
39
+ display: flex;
40
+ align-items: center;
41
+ }
42
+ .m-bargain-mobile .bargain-title .right .text {
43
+ font-family: 'Montserrat';
44
+ font-style: normal;
45
+ font-weight: 600;
46
+ font-size: 0.24rem;
47
+ line-height: 0.3rem;
48
+ color: #0038A8;
49
+ margin-right: 0.1rem;
50
+ }
51
+ .m-bargain-mobile .bargain-title .right .btn {
52
+ white-space: nowrap;
53
+ }
54
+ .m-bargain-mobile .bargain-list {
55
+ margin-top: 0.32rem;
56
+ overflow-x: auto;
57
+ overflow-y: hidden;
58
+ white-space: nowrap;
59
+ display: flex;
60
+ align-items: flex-start;
61
+ justify-content: flex-start;
62
+ position: relative;
63
+ }
64
+ .m-bargain-mobile .bargain-list .loading-wrap {
65
+ display: flex;
66
+ align-items: center;
67
+ justify-content: center;
68
+ padding: 0.6rem;
69
+ position: absolute;
70
+ top: 0;
71
+ bottom: 0;
72
+ left: 0;
73
+ right: 0;
74
+ margin: auto;
75
+ }
76
+ .m-bargain-mobile .bargain-list .m-product-item-wrap {
77
+ width: 2.84rem;
78
+ margin-right: 0.16rem;
79
+ border-radius: 0.16rem;
80
+ }
81
+ .m-bargain-mobile .bargain-list .m-product-item-wrap .product-img {
82
+ height: 2.8rem;
83
+ width: 2.8rem;
84
+ border-radius: 0.16rem;
85
+ }
@@ -0,0 +1,157 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _antd = require("antd");
11
+
12
+ var _ButtonConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ButtonConfig"));
13
+
14
+ var _TextConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/TextConfig"));
15
+
16
+ var _coreUtil = require("../../../../../utils/coreUtil");
17
+
18
+ var _common = require("../../../../../common");
19
+
20
+ var _locale = require("../../../../../locale");
21
+
22
+ require("./index.less");
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
+
26
+ var __extends = void 0 && (void 0).__extends || function () {
27
+ var _extendStatics = function extendStatics(d, b) {
28
+ _extendStatics = Object.setPrototypeOf || {
29
+ __proto__: []
30
+ } instanceof Array && function (d, b) {
31
+ d.__proto__ = b;
32
+ } || function (d, b) {
33
+ for (var p in b) {
34
+ if (b.hasOwnProperty(p)) d[p] = b[p];
35
+ }
36
+ };
37
+
38
+ return _extendStatics(d, b);
39
+ };
40
+
41
+ return function (d, b) {
42
+ _extendStatics(d, b);
43
+
44
+ function __() {
45
+ this.constructor = d;
46
+ }
47
+
48
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
49
+ };
50
+ }();
51
+
52
+ var AComponent =
53
+ /** @class */
54
+ function (_super) {
55
+ __extends(AComponent, _super);
56
+
57
+ function AComponent() {
58
+ var _this = _super !== null && _super.apply(this, arguments) || this;
59
+
60
+ _this.state = {};
61
+
62
+ _this.reRender = function () {
63
+ (0, _coreUtil.renderPreview)();
64
+
65
+ _this.setState({});
66
+ };
67
+
68
+ return _this;
69
+ }
70
+
71
+ AComponent.prototype.render = function () {
72
+ var _this = this;
73
+
74
+ var _a;
75
+
76
+ var panelProps = this.props.panelProps;
77
+ return /*#__PURE__*/_react["default"].createElement("div", {
78
+ className: "flash_sale_content"
79
+ }, /*#__PURE__*/_react["default"].createElement(_common.Field, {
80
+ title: (0, _locale.i18n)('PRODUCT_SORT_BY')
81
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
82
+ onChange: function onChange(v) {
83
+ panelProps.sortType = v;
84
+
85
+ _this.reRender();
86
+ },
87
+ value: panelProps.sortType
88
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
89
+ value: "1"
90
+ }, (0, _locale.i18n)('SALES')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
91
+ value: "3"
92
+ }, (0, _locale.i18n)('PRICE')))), /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
93
+ headerSize: "middle",
94
+ onRefresh: this.reRender,
95
+ source: [{
96
+ key: '1',
97
+ name: (0, _locale.i18n)('LABEL'),
98
+ value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
99
+ data: panelProps.label
100
+ }),
101
+ metaOption: panelProps.label
102
+ }, {
103
+ key: '2',
104
+ name: (0, _locale.i18n)('PRODUCT_NAME'),
105
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
106
+ data: panelProps.productName
107
+ }),
108
+ metaOption: panelProps.productName
109
+ }, {
110
+ key: '3',
111
+ name: (0, _locale.i18n)('ACTIVITY_PRICE'),
112
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
113
+ data: panelProps.activityPrice
114
+ }),
115
+ metaOption: panelProps.activityPrice
116
+ }, {
117
+ key: '4',
118
+ name: (0, _locale.i18n)('SALES_PRICE'),
119
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
120
+ data: panelProps.salesPrice
121
+ }),
122
+ metaOption: panelProps.salesPrice
123
+ }],
124
+ type: "switch"
125
+ }), /*#__PURE__*/_react["default"].createElement("div", {
126
+ className: "sales_progress_wrap"
127
+ }, /*#__PURE__*/_react["default"].createElement("span", {
128
+ className: "label"
129
+ }, (0, _locale.i18n)('SALES_PROGRESS')), /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
130
+ checked: (_a = panelProps.salesProgressVisible) === null || _a === void 0 ? void 0 : _a.open,
131
+ onChange: function onChange(v) {
132
+ panelProps.salesProgressVisible = {
133
+ open: v
134
+ };
135
+
136
+ _this.reRender();
137
+ }
138
+ })));
139
+ };
140
+
141
+ AComponent.defaultProps = {
142
+ panelProps: {
143
+ sortType: '1',
144
+ label: {},
145
+ productName: {},
146
+ activityPrice: {},
147
+ salesPrice: {},
148
+ salesProgressVisible: {
149
+ open: false
150
+ }
151
+ }
152
+ };
153
+ return AComponent;
154
+ }(_react["default"].Component);
155
+
156
+ var _default = AComponent;
157
+ exports["default"] = _default;
@@ -0,0 +1,20 @@
1
+ .flash_sale_content {
2
+
3
+ .sales_progress_wrap {
4
+ border-top: 1px solid #EDF0F4;
5
+ padding-top: 20px;
6
+ padding-bottom: 10px;
7
+ display: flex;
8
+ justify-content: space-between;
9
+
10
+ .label {
11
+ font-size: 16px !important;
12
+ line-height: 24px !important;
13
+ height: 24px !important;
14
+ font-weight: 600 !important;
15
+ color: #232F46;
16
+ font-family: 'Open Sans';
17
+ font-style: normal;
18
+ }
19
+ }
20
+ }