@fonixtree/magic-design 1.0.82 → 1.0.83

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,126 @@
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 _TextConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/TextConfig"));
11
+
12
+ var _ButtonConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ButtonConfig"));
13
+
14
+ var _coreUtil = require("../../../../../utils/coreUtil");
15
+
16
+ var _common = require("../../../../../common");
17
+
18
+ var _locale = require("../../../../../locale");
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
+
22
+ var __extends = void 0 && (void 0).__extends || function () {
23
+ var _extendStatics = function extendStatics(d, b) {
24
+ _extendStatics = Object.setPrototypeOf || {
25
+ __proto__: []
26
+ } instanceof Array && function (d, b) {
27
+ d.__proto__ = b;
28
+ } || function (d, b) {
29
+ for (var p in b) {
30
+ if (b.hasOwnProperty(p)) d[p] = b[p];
31
+ }
32
+ };
33
+
34
+ return _extendStatics(d, b);
35
+ };
36
+
37
+ return function (d, b) {
38
+ _extendStatics(d, b);
39
+
40
+ function __() {
41
+ this.constructor = d;
42
+ }
43
+
44
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
45
+ };
46
+ }();
47
+
48
+ var AComponent =
49
+ /** @class */
50
+ function (_super) {
51
+ __extends(AComponent, _super);
52
+
53
+ function AComponent() {
54
+ var _this = _super !== null && _super.apply(this, arguments) || this;
55
+
56
+ _this.state = {};
57
+
58
+ _this.reRender = function () {
59
+ (0, _coreUtil.renderPreview)();
60
+
61
+ _this.setState({});
62
+ };
63
+
64
+ return _this;
65
+ }
66
+
67
+ AComponent.prototype.render = function () {
68
+ var _this = this;
69
+
70
+ var panelProps = this.props.panelProps;
71
+
72
+ var iconSetting = /*#__PURE__*/_react["default"].createElement(_common.Field, {
73
+ title: ""
74
+ }, /*#__PURE__*/_react["default"].createElement(_common.IconPicker, {
75
+ onChange: function onChange(icon) {
76
+ panelProps.icon.url = icon;
77
+
78
+ _this.reRender();
79
+ },
80
+ value: panelProps.icon.url
81
+ }));
82
+
83
+ return /*#__PURE__*/_react["default"].createElement("div", {
84
+ className: "flash_sale_title"
85
+ }, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
86
+ headerSize: "middle",
87
+ onRefresh: this.reRender,
88
+ source: [{
89
+ key: '1',
90
+ name: (0, _locale.i18n)('ICON'),
91
+ value: iconSetting,
92
+ metaOption: panelProps.icon
93
+ }, {
94
+ key: '2',
95
+ name: (0, _locale.i18n)('HEADLINE'),
96
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
97
+ data: panelProps.headline
98
+ }),
99
+ metaOption: panelProps.headline
100
+ }, {
101
+ key: '3',
102
+ name: (0, _locale.i18n)('BUTTON'),
103
+ value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
104
+ data: panelProps.button
105
+ }),
106
+ metaOption: panelProps.button
107
+ }],
108
+ type: "switch"
109
+ }));
110
+ };
111
+
112
+ AComponent.defaultProps = {
113
+ panelProps: {
114
+ icon: {
115
+ open: true,
116
+ url: ''
117
+ },
118
+ headline: {},
119
+ button: {}
120
+ }
121
+ };
122
+ return AComponent;
123
+ }(_react["default"].Component);
124
+
125
+ var _default = AComponent;
126
+ exports["default"] = _default;
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = FlashDealConfig;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _FlashDealConfigTitle = _interopRequireDefault(require("./FlashDealConfigTitle"));
11
+
12
+ var _FlashDealConfigContent = _interopRequireDefault(require("./FlashDealConfigContent"));
13
+
14
+ var _layout = _interopRequireDefault(require("./imgs/layout1.png"));
15
+
16
+ var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
17
+
18
+ var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
19
+
20
+ var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
21
+
22
+ var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
23
+
24
+ var _locale = require("../../../../locale");
25
+
26
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
+
28
+ function FlashDealConfig(props) {
29
+ var data = props.data;
30
+ return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
31
+ divider: "bold",
32
+ headerSize: "large",
33
+ source: [{
34
+ key: '1',
35
+ name: (0, _locale.i18n)('TITLE'),
36
+ value: /*#__PURE__*/_react["default"].createElement(_FlashDealConfigTitle["default"], {
37
+ panelProps: data.title
38
+ })
39
+ }, {
40
+ key: '2',
41
+ name: (0, _locale.i18n)('CONTENT'),
42
+ value: /*#__PURE__*/_react["default"].createElement(_FlashDealConfigContent["default"], {
43
+ panelProps: data.content
44
+ })
45
+ }, {
46
+ key: '3',
47
+ name: (0, _locale.i18n)('SPACING'),
48
+ value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
49
+ configCompSpace: true,
50
+ data: data.spacing
51
+ })
52
+ }, {
53
+ key: '4',
54
+ name: (0, _locale.i18n)('CUSTOMIZE'),
55
+ value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
56
+ data: data.customize,
57
+ isHideAlign: true,
58
+ layoutSource: [{
59
+ id: 'layout1',
60
+ name: 'layout1',
61
+ image: _layout["default"]
62
+ }]
63
+ })
64
+ }, {
65
+ key: '5',
66
+ name: (0, _locale.i18n)('BACKGROUND'),
67
+ value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
68
+ data: data.background
69
+ })
70
+ }],
71
+ type: "triangle"
72
+ }));
73
+ }
@@ -0,0 +1,144 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = SearchCondition;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _classnames = _interopRequireDefault(require("classnames"));
13
+
14
+ var _locale = require("../../../../../../locale");
15
+
16
+ require("./index.less");
17
+
18
+ var _common = require("../../../../../../common");
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
+
22
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
+
24
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
+
26
+ var __assign = void 0 && (void 0).__assign || function () {
27
+ __assign = Object.assign || function (t) {
28
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
29
+ s = arguments[i];
30
+
31
+ for (var p in s) {
32
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
33
+ }
34
+ }
35
+
36
+ return t;
37
+ };
38
+
39
+ return __assign.apply(this, arguments);
40
+ };
41
+
42
+ function SearchCondition(props) {
43
+ var onChange = props.onChange,
44
+ filterObj = props.filterObj,
45
+ isBundle = props.isBundle;
46
+
47
+ var _a = (0, _react.useState)(false),
48
+ visible = _a[0],
49
+ setVisible = _a[1];
50
+
51
+ var _b = (0, _react.useState)(null),
52
+ sort = _b[0],
53
+ setSort = _b[1];
54
+
55
+ var _c = (0, _react.useState)({}),
56
+ filter = _c[0],
57
+ setFilter = _c[1];
58
+
59
+ var sortList = [{
60
+ title: (0, _locale.i18n)('EARLIEST'),
61
+ key: '8'
62
+ }, {
63
+ title: (0, _locale.i18n)('LOWEST_PRICE'),
64
+ key: '3'
65
+ }, {
66
+ title: (0, _locale.i18n)('MOST_SOLD'),
67
+ key: '1'
68
+ }, {
69
+ title: (0, _locale.i18n)('HIGHEST_RATED'),
70
+ key: '9'
71
+ }, {
72
+ title: (0, _locale.i18n)('PROMOTION'),
73
+ key: '10'
74
+ }];
75
+ var bundleSortList = [{
76
+ title: (0, _locale.i18n)('EARLIEST'),
77
+ key: 2
78
+ }, {
79
+ title: (0, _locale.i18n)('LOWEST_PRICE'),
80
+ key: 3
81
+ }, {
82
+ title: (0, _locale.i18n)('MOST_SOLD'),
83
+ key: 4
84
+ }];
85
+
86
+ var onSortByClick = function onSortByClick(val) {
87
+ var sortType = '';
88
+
89
+ if (val === sort) {
90
+ setSort(null);
91
+ } else {
92
+ setSort(val);
93
+ sortType = val;
94
+ }
95
+
96
+ onChange(__assign(__assign({}, filter), {
97
+ sortType: sortType
98
+ }));
99
+ };
100
+
101
+ var onFilterChange = function onFilterChange(val) {
102
+ setFilter(val);
103
+ onChange(__assign({}, val));
104
+ setVisible(false);
105
+ };
106
+
107
+ (0, _react.useEffect)(function () {}, []);
108
+ return /*#__PURE__*/_react["default"].createElement("div", {
109
+ className: "searchCondWrap",
110
+ id: "sortCond"
111
+ }, /*#__PURE__*/_react["default"].createElement("div", {
112
+ className: "leftWrap"
113
+ }, /*#__PURE__*/_react["default"].createElement("div", {
114
+ className: "sortItem",
115
+ onClick: function onClick() {
116
+ return setVisible(true);
117
+ }
118
+ }, /*#__PURE__*/_react["default"].createElement("span", {
119
+ className: "filterText"
120
+ }, (0, _locale.i18n)('FILTER')), /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
121
+ color: "#848484",
122
+ size: 16,
123
+ type: "icon-list-sort"
124
+ })), /*#__PURE__*/_react["default"].createElement("span", null, (0, _locale.i18n)('SORT_BY'), ":")), /*#__PURE__*/_react["default"].createElement("div", {
125
+ className: "rightWrap"
126
+ }, (isBundle ? bundleSortList : sortList).map(function (srt) {
127
+ return /*#__PURE__*/_react["default"].createElement("div", {
128
+ className: (0, _classnames["default"])('sortItem', {
129
+ activeItem: sort === srt.key
130
+ }),
131
+ onClick: function onClick() {
132
+ return onSortByClick(srt.key);
133
+ }
134
+ }, srt.title);
135
+ })), /*#__PURE__*/_react["default"].createElement(_common.ProductFilterModal, {
136
+ filterObj: filterObj,
137
+ onChange: onFilterChange,
138
+ onClose: function onClose() {
139
+ return setVisible(false);
140
+ },
141
+ value: filter,
142
+ visible: visible
143
+ }));
144
+ }
@@ -59,6 +59,8 @@ var _Orders = _interopRequireDefault(require("../composite-comp/dito/components/
59
59
 
60
60
  var _CommonFunctions = _interopRequireDefault(require("../composite-comp/dito/components/CommonFunctions"));
61
61
 
62
+ var _Bargain = _interopRequireDefault(require("../composite-comp/dito/components/Bargain"));
63
+
62
64
  var _BannerConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/BannerConfig"));
63
65
 
64
66
  var _DividerConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/DividerConfig"));
@@ -113,6 +115,8 @@ var _OrdersConfig = _interopRequireDefault(require("../composite-comp/dito/confi
113
115
 
114
116
  var _CommonFunctionsConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/CommonFunctionsConfig"));
115
117
 
118
+ var _BargainConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/BargainConfig"));
119
+
116
120
  var _BannerSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/BannerSecondConfig"));
117
121
 
118
122
  var _TextSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/TextSecondConfig"));
@@ -159,13 +163,13 @@ var _a, _b, _c; // 组件
159
163
  /**
160
164
  * 渲染组件索引
161
165
  */
162
- var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_GroupBuy["default"].type] = _GroupBuy["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_PersonalInformation["default"].type] = _PersonalInformation["default"], _a[_Orders["default"].type] = _Orders["default"], _a[_CommonFunctions["default"].type] = _CommonFunctions["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a);
166
+ var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_GroupBuy["default"].type] = _GroupBuy["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_PersonalInformation["default"].type] = _PersonalInformation["default"], _a[_Orders["default"].type] = _Orders["default"], _a[_CommonFunctions["default"].type] = _CommonFunctions["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a[_Bargain["default"].type] = _Bargain["default"], _a);
163
167
  /**
164
168
  * 一级配置面板索引
165
169
  */
166
170
 
167
171
  exports.componentMap = componentMap;
168
- var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_GroupBuy["default"].type] = _GroupBuyConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_PersonalInformation["default"].type] = _PersonalInformationConfig["default"], _b[_Orders["default"].type] = _OrdersConfig["default"], _b[_CommonFunctions["default"].type] = _CommonFunctionsConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b);
172
+ var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_GroupBuy["default"].type] = _GroupBuyConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_PersonalInformation["default"].type] = _PersonalInformationConfig["default"], _b[_Orders["default"].type] = _OrdersConfig["default"], _b[_CommonFunctions["default"].type] = _CommonFunctionsConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b[_Bargain["default"].type] = _BargainConfig["default"], _b);
169
173
  /**
170
174
  * 二级配置面板索引
171
175
  */
@@ -144,6 +144,10 @@ var compInfoMap = {
144
144
  name: 'Flash Deal',
145
145
  icon: 'icon-flash-deal'
146
146
  },
147
+ BARGAIN: {
148
+ name: 'Bargain',
149
+ icon: 'icon-kanjia'
150
+ },
147
151
  GROUP_BUY: {
148
152
  name: 'Group Buy',
149
153
  icon: 'icon-group-buy'
@@ -409,6 +409,7 @@ var getPromotionList = function getPromotionList(offer) {
409
409
  var PROMOTION_TYPE_MAP = {
410
410
  2: 'FLASH',
411
411
  4: 'Group',
412
+ 12: 'Bargain',
412
413
  C: 'Discount',
413
414
  D: 'Discount',
414
415
  G: 'Gift'
@@ -1,9 +1,9 @@
1
1
  @font-face {
2
2
  font-family: "magic-box-iconfont";
3
3
  /* Project id 3317752 */
4
- src: url('magic-box-iconfont.woff2?t=1713253836150') format('woff2'),
5
- url('magic-box-iconfont.woff?t=1713253836150') format('woff'),
6
- url('magic-box-iconfont.ttf?t=1713253836150') format('truetype');
4
+ src: url('magic-box-iconfont.woff2?t=1717469468478') format('woff2'),
5
+ url('magic-box-iconfont.woff?t=1717469468478') format('woff'),
6
+ url('magic-box-iconfont.ttf?t=1717469468478') format('truetype');
7
7
  }
8
8
 
9
9
  .magic-box-iconfont {
@@ -14,6 +14,50 @@
14
14
  -moz-osx-font-smoothing: grayscale;
15
15
  }
16
16
 
17
+ .magic-box-icon-bargain:before {
18
+ content: "\e649";
19
+ }
20
+
21
+ .magic-box-icon-kanjia:before {
22
+ content: "\e688";
23
+ }
24
+
25
+ .magic-box-icon-save:before {
26
+ content: "\e646";
27
+ }
28
+
29
+ .magic-box-icon-eye1:before {
30
+ content: "\e647";
31
+ }
32
+
33
+ .magic-box-icon-clock:before {
34
+ content: "\e648";
35
+ }
36
+
37
+ .magic-box-icon-select2:before {
38
+ content: "\e67a";
39
+ }
40
+
41
+ .magic-box-icon-list-sort:before {
42
+ content: "\e645";
43
+ }
44
+
45
+ .magic-box-icon-check:before {
46
+ content: "\e644";
47
+ }
48
+
49
+ .magic-box-icon-sale:before {
50
+ content: "\e78b";
51
+ }
52
+
53
+ .magic-box-icon-bundle:before {
54
+ content: "\e6cb";
55
+ }
56
+
57
+ .magic-box-icon-interests:before {
58
+ content: "\e829";
59
+ }
60
+
17
61
  .magic-box-icon-group-users:before {
18
62
  content: "\e60a";
19
63
  }