@fonixtree/magic-design 0.0.69 → 0.0.70
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/assets/fonts/magic-box-iconfont.css +3 -3
- package/es/assets/fonts/magic-box-iconfont.css.bak +3 -3
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/composite-comp/bol/config-panels/NewsletterConfig/index.js +6 -4
- package/es/composite-comp/dito/components/PcNavigation/defaultJSON.js +0 -4
- package/es/composite-comp/dito/components/PcNavigation/pc/index.js +9 -15
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +20 -2
- package/es/composite-comp/dito/components/SearchBar/index.js +2 -1
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +3 -3
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +6 -6
- package/es/composite-comp/dito/components/SearchBar/pc/index.less +4 -2
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +1 -1
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +3 -1
- package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +23 -7
- package/lib/assets/fonts/magic-box-iconfont.css +3 -3
- package/lib/assets/fonts/magic-box-iconfont.css.bak +3 -3
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/index.js +6 -4
- package/lib/composite-comp/dito/components/PcNavigation/defaultJSON.js +0 -4
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +9 -15
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +20 -2
- package/lib/composite-comp/dito/components/SearchBar/index.js +2 -1
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +3 -3
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +6 -6
- package/lib/composite-comp/dito/components/SearchBar/pc/index.less +4 -2
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +3 -1
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +23 -7
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "magic-box-iconfont"; /* Project id 3317752 */
|
|
3
|
-
src: url('magic-box-iconfont.woff2?t=
|
|
4
|
-
url('magic-box-iconfont.woff?t=
|
|
5
|
-
url('magic-box-iconfont.ttf?t=
|
|
3
|
+
src: url('magic-box-iconfont.woff2?t=1669616689172') format('woff2'),
|
|
4
|
+
url('magic-box-iconfont.woff?t=1669616689172') format('woff'),
|
|
5
|
+
url('magic-box-iconfont.ttf?t=1669616689172') format('truetype');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.magic-box-iconfont {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "magic-box-iconfont"; /* Project id 3317752 */
|
|
3
|
-
src: url('magic-box-iconfont.woff2?t=
|
|
4
|
-
url('magic-box-iconfont.woff?t=
|
|
5
|
-
url('magic-box-iconfont.ttf?t=
|
|
3
|
+
src: url('magic-box-iconfont.woff2?t=1669616689172') format('woff2'),
|
|
4
|
+
url('magic-box-iconfont.woff?t=1669616689172') format('woff'),
|
|
5
|
+
url('magic-box-iconfont.ttf?t=1669616689172') format('truetype');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.magic-box-iconfont {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _NewsletterContentSetting = _interopRequireDefault(require("./NewsletterContentSetting"));
|
|
11
11
|
|
|
12
|
+
var _locale = require("../../../../locale");
|
|
13
|
+
|
|
12
14
|
var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
13
15
|
|
|
14
16
|
var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
|
|
@@ -28,26 +30,26 @@ function NewsletterConfig(props) {
|
|
|
28
30
|
headerSize: "large",
|
|
29
31
|
source: [{
|
|
30
32
|
key: '1',
|
|
31
|
-
name: i18n('CONTENT'),
|
|
33
|
+
name: (0, _locale.i18n)('CONTENT'),
|
|
32
34
|
value: /*#__PURE__*/_react["default"].createElement(_NewsletterContentSetting["default"], {
|
|
33
35
|
panelProps: data.content
|
|
34
36
|
})
|
|
35
37
|
}, {
|
|
36
38
|
key: '2',
|
|
37
|
-
name: i18n('SPACING'),
|
|
39
|
+
name: (0, _locale.i18n)('SPACING'),
|
|
38
40
|
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
39
41
|
data: data.spacing
|
|
40
42
|
})
|
|
41
43
|
}, {
|
|
42
44
|
key: '3',
|
|
43
|
-
name: i18n('CUSTOMIZE'),
|
|
45
|
+
name: (0, _locale.i18n)('CUSTOMIZE'),
|
|
44
46
|
value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
|
|
45
47
|
data: data.customize,
|
|
46
48
|
layoutSource: _layout.newsletterLayout
|
|
47
49
|
})
|
|
48
50
|
}, {
|
|
49
51
|
key: '4',
|
|
50
|
-
name: i18n('BACKGROUND'),
|
|
52
|
+
name: (0, _locale.i18n)('BACKGROUND'),
|
|
51
53
|
value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
52
54
|
data: data.background
|
|
53
55
|
})
|
|
@@ -75,7 +75,6 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
75
75
|
specialContent: [],
|
|
76
76
|
iconUrl: '',
|
|
77
77
|
content: {
|
|
78
|
-
backgroundColor: 'transparent',
|
|
79
78
|
sizeType: 'Customize font styles',
|
|
80
79
|
fontFamily: 'Open Sans',
|
|
81
80
|
fontWeight: 400,
|
|
@@ -89,7 +88,6 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
89
88
|
id: (0, _uuid.v4)(),
|
|
90
89
|
specialContent: [],
|
|
91
90
|
content: {
|
|
92
|
-
backgroundColor: 'transparent',
|
|
93
91
|
sizeType: 'Customize font styles',
|
|
94
92
|
fontFamily: 'Open Sans',
|
|
95
93
|
fontWeight: 400,
|
|
@@ -103,7 +101,6 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
103
101
|
id: (0, _uuid.v4)(),
|
|
104
102
|
specialContent: [],
|
|
105
103
|
content: {
|
|
106
|
-
backgroundColor: 'transparent',
|
|
107
104
|
sizeType: 'Customize font styles',
|
|
108
105
|
fontFamily: 'Open Sans',
|
|
109
106
|
fontWeight: 400,
|
|
@@ -117,7 +114,6 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
117
114
|
id: (0, _uuid.v4)(),
|
|
118
115
|
specialContent: [],
|
|
119
116
|
content: {
|
|
120
|
-
backgroundColor: 'transparent',
|
|
121
117
|
sizeType: 'Customize font styles',
|
|
122
118
|
fontFamily: 'Open Sans',
|
|
123
119
|
fontWeight: 400,
|
|
@@ -418,7 +418,12 @@ function (_super) {
|
|
|
418
418
|
|
|
419
419
|
_this.mouseLeaveBtn = function () {
|
|
420
420
|
var data = _this.props.data;
|
|
421
|
+
var categList = _this.state.categList;
|
|
421
422
|
document.querySelector('.all-category .m-meta-text').style.color = data.home.allCategory.content.color;
|
|
423
|
+
|
|
424
|
+
_this.setState({
|
|
425
|
+
list: [categList]
|
|
426
|
+
});
|
|
422
427
|
};
|
|
423
428
|
|
|
424
429
|
return _this;
|
|
@@ -434,32 +439,21 @@ function (_super) {
|
|
|
434
439
|
var data = this.props.data; // const { ready } = this.state;
|
|
435
440
|
|
|
436
441
|
console.log('----nav pc', data);
|
|
437
|
-
var
|
|
438
|
-
list = _a.list,
|
|
439
|
-
categList = _a.categList;
|
|
442
|
+
var list = this.state.list;
|
|
440
443
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
441
444
|
className: (0, _classnames["default"])('pc-navigation')
|
|
442
445
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
443
446
|
className: "menu-wrap",
|
|
444
|
-
onMouseLeave: function onMouseLeave() {
|
|
445
|
-
_this.setState({
|
|
446
|
-
list: [categList]
|
|
447
|
-
});
|
|
448
|
-
}
|
|
449
|
-
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
450
|
-
className: "menu-drop",
|
|
451
|
-
onClick: function onClick(e) {
|
|
452
|
-
return e.preventDefault();
|
|
453
|
-
},
|
|
454
447
|
onMouseEnter: this.mouseEnterBtn,
|
|
455
448
|
onMouseLeave: this.mouseLeaveBtn
|
|
449
|
+
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
450
|
+
className: "menu-drop"
|
|
456
451
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
457
452
|
alt: "icon",
|
|
458
453
|
src: data.home.allCategory.iconUrl || _menuIcon["default"]
|
|
459
454
|
}), /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
460
455
|
className: "all-category",
|
|
461
|
-
data: data.home.allCategory
|
|
462
|
-
readonly: true
|
|
456
|
+
data: data.home.allCategory
|
|
463
457
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
464
458
|
className: "category"
|
|
465
459
|
}, list.map(function (arrItem, index) {
|
|
@@ -39,12 +39,30 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
39
39
|
box: {
|
|
40
40
|
id: (0, _uuid.v4)(),
|
|
41
41
|
open: true,
|
|
42
|
-
color:
|
|
42
|
+
color: {
|
|
43
|
+
pc: '#D92929',
|
|
44
|
+
mobile: '#D92929'
|
|
45
|
+
}
|
|
43
46
|
},
|
|
44
47
|
icon: {
|
|
45
48
|
id: (0, _uuid.v4)(),
|
|
46
49
|
open: true,
|
|
47
|
-
color:
|
|
50
|
+
color: {
|
|
51
|
+
pc: '#D92929',
|
|
52
|
+
mobile: '#D92929'
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
spacing: {
|
|
56
|
+
pc: {
|
|
57
|
+
paddingTop: 20,
|
|
58
|
+
paddingBottom: 30,
|
|
59
|
+
marginBottom: 0
|
|
60
|
+
},
|
|
61
|
+
mobile: {
|
|
62
|
+
paddingTop: 8,
|
|
63
|
+
paddingBottom: 8,
|
|
64
|
+
marginBottom: 0
|
|
65
|
+
}
|
|
48
66
|
},
|
|
49
67
|
customize: {
|
|
50
68
|
layout: 'left',
|
|
@@ -71,7 +71,8 @@ function (_super) {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
SearchBar.prototype.render = function () {
|
|
74
|
-
var nodeData = this.props.nodeData;
|
|
74
|
+
var nodeData = this.props.nodeData; // console.log('search nodeData', nodeData);
|
|
75
|
+
|
|
75
76
|
return /*#__PURE__*/_react["default"].createElement("div", null, (0, _coreUtil.isPc)() ? /*#__PURE__*/_react["default"].createElement(_index2["default"], {
|
|
76
77
|
data: nodeData
|
|
77
78
|
}) : /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
@@ -259,16 +259,16 @@ function (_super) {
|
|
|
259
259
|
return (0, _coreUtil.clickUrl)('/search-page');
|
|
260
260
|
},
|
|
261
261
|
style: {
|
|
262
|
-
borderColor: data.box.color
|
|
262
|
+
borderColor: data.box.color.mobile
|
|
263
263
|
}
|
|
264
264
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
265
|
-
color: data.box.color,
|
|
265
|
+
color: data.box.color.mobile,
|
|
266
266
|
size: 24,
|
|
267
267
|
type: "icon-search2"
|
|
268
268
|
})), data.icon.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
269
269
|
className: "message-wrap"
|
|
270
270
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
271
|
-
color: data.icon.color,
|
|
271
|
+
color: data.icon.color.mobile,
|
|
272
272
|
onClick: function onClick() {
|
|
273
273
|
return (0, _coreUtil.clickUrl)('/message-center');
|
|
274
274
|
},
|
|
@@ -98,7 +98,7 @@ function (_super) {
|
|
|
98
98
|
}, data.box.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
99
99
|
className: "search-input-wrap",
|
|
100
100
|
style: {
|
|
101
|
-
borderColor: data.box.color
|
|
101
|
+
borderColor: data.box.color.pc
|
|
102
102
|
}
|
|
103
103
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
104
104
|
className: "search-input",
|
|
@@ -112,7 +112,7 @@ function (_super) {
|
|
|
112
112
|
className: "search-icon",
|
|
113
113
|
onClick: this.searchProduct,
|
|
114
114
|
style: {
|
|
115
|
-
background: data.box.color
|
|
115
|
+
background: data.box.color.pc
|
|
116
116
|
}
|
|
117
117
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
118
118
|
color: "#fff",
|
|
@@ -124,11 +124,11 @@ function (_super) {
|
|
|
124
124
|
return (0, _coreUtil.clickUrl)('/cart');
|
|
125
125
|
},
|
|
126
126
|
style: {
|
|
127
|
-
borderColor: data.icon.color,
|
|
128
|
-
color: data.icon.color
|
|
127
|
+
borderColor: data.icon.color.pc,
|
|
128
|
+
color: data.icon.color.pc
|
|
129
129
|
}
|
|
130
130
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
131
|
-
color: data.icon.color,
|
|
131
|
+
color: data.icon.color.pc,
|
|
132
132
|
size: 16,
|
|
133
133
|
type: "icon-ShoppingCartSimple"
|
|
134
134
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -136,7 +136,7 @@ function (_super) {
|
|
|
136
136
|
}, (0, _locale.i18n)('SHOPPING_CART')))), data.logo.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
137
137
|
data: data.logo,
|
|
138
138
|
style: {
|
|
139
|
-
height:
|
|
139
|
+
height: 40
|
|
140
140
|
}
|
|
141
141
|
}));
|
|
142
142
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.pc-search-bar {
|
|
2
2
|
// height: 48px;
|
|
3
|
-
padding: 20px 100px 30px;
|
|
3
|
+
// padding: 20px 100px 30px;
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: row-reverse;
|
|
6
6
|
align-items: flex-start;
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
|
|
10
10
|
.right {
|
|
11
11
|
display: flex;
|
|
12
|
+
flex: 1;
|
|
13
|
+
margin-left: 90px;
|
|
12
14
|
align-items: center;
|
|
13
15
|
justify-content: space-between;
|
|
14
16
|
|
|
@@ -17,7 +19,7 @@
|
|
|
17
19
|
border-radius: 6px;
|
|
18
20
|
height: 40px;
|
|
19
21
|
display: flex;
|
|
20
|
-
|
|
22
|
+
flex: 1;
|
|
21
23
|
.search-input {
|
|
22
24
|
border: none;
|
|
23
25
|
height: 38px;
|
package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js
CHANGED
|
@@ -73,7 +73,7 @@ function (_super) {
|
|
|
73
73
|
key: 'category1',
|
|
74
74
|
name: /*#__PURE__*/_react["default"].createElement("div", {
|
|
75
75
|
onClick: function onClick() {
|
|
76
|
-
return
|
|
76
|
+
return window.open('/#/PageCategoryManagement');
|
|
77
77
|
}
|
|
78
78
|
}, (0, _locale.i18n)('ALL_CATEGORY'), /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
79
79
|
color: "#2F54EB",
|
package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js
CHANGED
|
@@ -19,6 +19,8 @@ var _defaultJSON = require("../../../components/PcNavigation/defaultJSON");
|
|
|
19
19
|
|
|
20
20
|
var _locale = require("../../../../../locale");
|
|
21
21
|
|
|
22
|
+
var _decorator = require("../../../../../decorator");
|
|
23
|
+
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
25
|
|
|
24
26
|
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); }
|
|
@@ -118,7 +120,7 @@ function (_super) {
|
|
|
118
120
|
PcNavigationConfigGroup.defaultProps = {
|
|
119
121
|
source: []
|
|
120
122
|
};
|
|
121
|
-
PcNavigationConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], PcNavigationConfigGroup);
|
|
123
|
+
PcNavigationConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], PcNavigationConfigGroup);
|
|
122
124
|
return PcNavigationConfigGroup;
|
|
123
125
|
}(_react["default"].Component);
|
|
124
126
|
|
|
@@ -15,6 +15,8 @@ var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-
|
|
|
15
15
|
|
|
16
16
|
var _common = require("../../../../common");
|
|
17
17
|
|
|
18
|
+
var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
|
|
19
|
+
|
|
18
20
|
var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
|
|
19
21
|
|
|
20
22
|
var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
|
|
@@ -83,11 +85,15 @@ function (_super) {
|
|
|
83
85
|
title: (0, _locale.i18n)('COLOR')
|
|
84
86
|
}, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
85
87
|
onChange: function onChange(v) {
|
|
86
|
-
|
|
88
|
+
if ((0, _coreUtil.isPc)()) {
|
|
89
|
+
data.box.color.pc = v;
|
|
90
|
+
} else {
|
|
91
|
+
data.box.color.mobile = v;
|
|
92
|
+
}
|
|
87
93
|
|
|
88
94
|
_this.selfRender();
|
|
89
95
|
},
|
|
90
|
-
value: data.box.color
|
|
96
|
+
value: (0, _coreUtil.isPc)() ? data.box.color.pc : data.box.color.mobile
|
|
91
97
|
})),
|
|
92
98
|
metaOption: data.box,
|
|
93
99
|
toggleType: 'switch'
|
|
@@ -101,20 +107,23 @@ function (_super) {
|
|
|
101
107
|
title: (0, _locale.i18n)('COLOR')
|
|
102
108
|
}, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
103
109
|
onChange: function onChange(v) {
|
|
104
|
-
|
|
110
|
+
if ((0, _coreUtil.isPc)()) {
|
|
111
|
+
data.icon.color.pc = v;
|
|
112
|
+
} else {
|
|
113
|
+
data.icon.color.mobile = v;
|
|
114
|
+
}
|
|
105
115
|
|
|
106
116
|
_this.selfRender();
|
|
107
117
|
},
|
|
108
|
-
value: data.icon.color
|
|
118
|
+
value: (0, _coreUtil.isPc)() ? data.icon.color.pc : data.icon.color.mobile
|
|
109
119
|
})),
|
|
110
120
|
metaOption: data.icon,
|
|
111
121
|
toggleType: 'switch'
|
|
112
122
|
}];
|
|
113
123
|
return /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
114
124
|
headerSize: "middle",
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
},
|
|
125
|
+
noChange: true,
|
|
126
|
+
onRefresh: _this.selfRender,
|
|
118
127
|
showActiveColor: true,
|
|
119
128
|
source: source,
|
|
120
129
|
type: "switch"
|
|
@@ -133,6 +142,13 @@ function (_super) {
|
|
|
133
142
|
key: 'searchBar1',
|
|
134
143
|
name: (0, _locale.i18n)('CONTENT'),
|
|
135
144
|
value: this.getContentPanel()
|
|
145
|
+
}, {
|
|
146
|
+
key: 'searchBar4',
|
|
147
|
+
name: (0, _locale.i18n)('SPACING'),
|
|
148
|
+
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
149
|
+
configCompSpace: true,
|
|
150
|
+
data: data.spacing
|
|
151
|
+
})
|
|
136
152
|
}, {
|
|
137
153
|
key: 'searchBar2',
|
|
138
154
|
name: (0, _locale.i18n)('CUSTOMIZE'),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "magic-box-iconfont"; /* Project id 3317752 */
|
|
3
|
-
src: url('magic-box-iconfont.woff2?t=
|
|
4
|
-
url('magic-box-iconfont.woff?t=
|
|
5
|
-
url('magic-box-iconfont.ttf?t=
|
|
3
|
+
src: url('magic-box-iconfont.woff2?t=1669616689172') format('woff2'),
|
|
4
|
+
url('magic-box-iconfont.woff?t=1669616689172') format('woff'),
|
|
5
|
+
url('magic-box-iconfont.ttf?t=1669616689172') format('truetype');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.magic-box-iconfont {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "magic-box-iconfont"; /* Project id 3317752 */
|
|
3
|
-
src: url('magic-box-iconfont.woff2?t=
|
|
4
|
-
url('magic-box-iconfont.woff?t=
|
|
5
|
-
url('magic-box-iconfont.ttf?t=
|
|
3
|
+
src: url('magic-box-iconfont.woff2?t=1669616689172') format('woff2'),
|
|
4
|
+
url('magic-box-iconfont.woff?t=1669616689172') format('woff'),
|
|
5
|
+
url('magic-box-iconfont.ttf?t=1669616689172') format('truetype');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.magic-box-iconfont {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _NewsletterContentSetting = _interopRequireDefault(require("./NewsletterContentSetting"));
|
|
11
11
|
|
|
12
|
+
var _locale = require("../../../../locale");
|
|
13
|
+
|
|
12
14
|
var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
13
15
|
|
|
14
16
|
var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
|
|
@@ -28,26 +30,26 @@ function NewsletterConfig(props) {
|
|
|
28
30
|
headerSize: "large",
|
|
29
31
|
source: [{
|
|
30
32
|
key: '1',
|
|
31
|
-
name: i18n('CONTENT'),
|
|
33
|
+
name: (0, _locale.i18n)('CONTENT'),
|
|
32
34
|
value: /*#__PURE__*/_react["default"].createElement(_NewsletterContentSetting["default"], {
|
|
33
35
|
panelProps: data.content
|
|
34
36
|
})
|
|
35
37
|
}, {
|
|
36
38
|
key: '2',
|
|
37
|
-
name: i18n('SPACING'),
|
|
39
|
+
name: (0, _locale.i18n)('SPACING'),
|
|
38
40
|
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
39
41
|
data: data.spacing
|
|
40
42
|
})
|
|
41
43
|
}, {
|
|
42
44
|
key: '3',
|
|
43
|
-
name: i18n('CUSTOMIZE'),
|
|
45
|
+
name: (0, _locale.i18n)('CUSTOMIZE'),
|
|
44
46
|
value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
|
|
45
47
|
data: data.customize,
|
|
46
48
|
layoutSource: _layout.newsletterLayout
|
|
47
49
|
})
|
|
48
50
|
}, {
|
|
49
51
|
key: '4',
|
|
50
|
-
name: i18n('BACKGROUND'),
|
|
52
|
+
name: (0, _locale.i18n)('BACKGROUND'),
|
|
51
53
|
value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
52
54
|
data: data.background
|
|
53
55
|
})
|
|
@@ -75,7 +75,6 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
75
75
|
specialContent: [],
|
|
76
76
|
iconUrl: '',
|
|
77
77
|
content: {
|
|
78
|
-
backgroundColor: 'transparent',
|
|
79
78
|
sizeType: 'Customize font styles',
|
|
80
79
|
fontFamily: 'Open Sans',
|
|
81
80
|
fontWeight: 400,
|
|
@@ -89,7 +88,6 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
89
88
|
id: (0, _uuid.v4)(),
|
|
90
89
|
specialContent: [],
|
|
91
90
|
content: {
|
|
92
|
-
backgroundColor: 'transparent',
|
|
93
91
|
sizeType: 'Customize font styles',
|
|
94
92
|
fontFamily: 'Open Sans',
|
|
95
93
|
fontWeight: 400,
|
|
@@ -103,7 +101,6 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
103
101
|
id: (0, _uuid.v4)(),
|
|
104
102
|
specialContent: [],
|
|
105
103
|
content: {
|
|
106
|
-
backgroundColor: 'transparent',
|
|
107
104
|
sizeType: 'Customize font styles',
|
|
108
105
|
fontFamily: 'Open Sans',
|
|
109
106
|
fontWeight: 400,
|
|
@@ -117,7 +114,6 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
117
114
|
id: (0, _uuid.v4)(),
|
|
118
115
|
specialContent: [],
|
|
119
116
|
content: {
|
|
120
|
-
backgroundColor: 'transparent',
|
|
121
117
|
sizeType: 'Customize font styles',
|
|
122
118
|
fontFamily: 'Open Sans',
|
|
123
119
|
fontWeight: 400,
|
|
@@ -418,7 +418,12 @@ function (_super) {
|
|
|
418
418
|
|
|
419
419
|
_this.mouseLeaveBtn = function () {
|
|
420
420
|
var data = _this.props.data;
|
|
421
|
+
var categList = _this.state.categList;
|
|
421
422
|
document.querySelector('.all-category .m-meta-text').style.color = data.home.allCategory.content.color;
|
|
423
|
+
|
|
424
|
+
_this.setState({
|
|
425
|
+
list: [categList]
|
|
426
|
+
});
|
|
422
427
|
};
|
|
423
428
|
|
|
424
429
|
return _this;
|
|
@@ -434,32 +439,21 @@ function (_super) {
|
|
|
434
439
|
var data = this.props.data; // const { ready } = this.state;
|
|
435
440
|
|
|
436
441
|
console.log('----nav pc', data);
|
|
437
|
-
var
|
|
438
|
-
list = _a.list,
|
|
439
|
-
categList = _a.categList;
|
|
442
|
+
var list = this.state.list;
|
|
440
443
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
441
444
|
className: (0, _classnames["default"])('pc-navigation')
|
|
442
445
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
443
446
|
className: "menu-wrap",
|
|
444
|
-
onMouseLeave: function onMouseLeave() {
|
|
445
|
-
_this.setState({
|
|
446
|
-
list: [categList]
|
|
447
|
-
});
|
|
448
|
-
}
|
|
449
|
-
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
450
|
-
className: "menu-drop",
|
|
451
|
-
onClick: function onClick(e) {
|
|
452
|
-
return e.preventDefault();
|
|
453
|
-
},
|
|
454
447
|
onMouseEnter: this.mouseEnterBtn,
|
|
455
448
|
onMouseLeave: this.mouseLeaveBtn
|
|
449
|
+
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
450
|
+
className: "menu-drop"
|
|
456
451
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
457
452
|
alt: "icon",
|
|
458
453
|
src: data.home.allCategory.iconUrl || _menuIcon["default"]
|
|
459
454
|
}), /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
460
455
|
className: "all-category",
|
|
461
|
-
data: data.home.allCategory
|
|
462
|
-
readonly: true
|
|
456
|
+
data: data.home.allCategory
|
|
463
457
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
464
458
|
className: "category"
|
|
465
459
|
}, list.map(function (arrItem, index) {
|
|
@@ -39,12 +39,30 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
39
39
|
box: {
|
|
40
40
|
id: (0, _uuid.v4)(),
|
|
41
41
|
open: true,
|
|
42
|
-
color:
|
|
42
|
+
color: {
|
|
43
|
+
pc: '#D92929',
|
|
44
|
+
mobile: '#D92929'
|
|
45
|
+
}
|
|
43
46
|
},
|
|
44
47
|
icon: {
|
|
45
48
|
id: (0, _uuid.v4)(),
|
|
46
49
|
open: true,
|
|
47
|
-
color:
|
|
50
|
+
color: {
|
|
51
|
+
pc: '#D92929',
|
|
52
|
+
mobile: '#D92929'
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
spacing: {
|
|
56
|
+
pc: {
|
|
57
|
+
paddingTop: 20,
|
|
58
|
+
paddingBottom: 30,
|
|
59
|
+
marginBottom: 0
|
|
60
|
+
},
|
|
61
|
+
mobile: {
|
|
62
|
+
paddingTop: 8,
|
|
63
|
+
paddingBottom: 8,
|
|
64
|
+
marginBottom: 0
|
|
65
|
+
}
|
|
48
66
|
},
|
|
49
67
|
customize: {
|
|
50
68
|
layout: 'left',
|
|
@@ -71,7 +71,8 @@ function (_super) {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
SearchBar.prototype.render = function () {
|
|
74
|
-
var nodeData = this.props.nodeData;
|
|
74
|
+
var nodeData = this.props.nodeData; // console.log('search nodeData', nodeData);
|
|
75
|
+
|
|
75
76
|
return /*#__PURE__*/_react["default"].createElement("div", null, (0, _coreUtil.isPc)() ? /*#__PURE__*/_react["default"].createElement(_index2["default"], {
|
|
76
77
|
data: nodeData
|
|
77
78
|
}) : /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
@@ -259,16 +259,16 @@ function (_super) {
|
|
|
259
259
|
return (0, _coreUtil.clickUrl)('/search-page');
|
|
260
260
|
},
|
|
261
261
|
style: {
|
|
262
|
-
borderColor: data.box.color
|
|
262
|
+
borderColor: data.box.color.mobile
|
|
263
263
|
}
|
|
264
264
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
265
|
-
color: data.box.color,
|
|
265
|
+
color: data.box.color.mobile,
|
|
266
266
|
size: 24,
|
|
267
267
|
type: "icon-search2"
|
|
268
268
|
})), data.icon.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
269
269
|
className: "message-wrap"
|
|
270
270
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
271
|
-
color: data.icon.color,
|
|
271
|
+
color: data.icon.color.mobile,
|
|
272
272
|
onClick: function onClick() {
|
|
273
273
|
return (0, _coreUtil.clickUrl)('/message-center');
|
|
274
274
|
},
|
|
@@ -98,7 +98,7 @@ function (_super) {
|
|
|
98
98
|
}, data.box.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
99
99
|
className: "search-input-wrap",
|
|
100
100
|
style: {
|
|
101
|
-
borderColor: data.box.color
|
|
101
|
+
borderColor: data.box.color.pc
|
|
102
102
|
}
|
|
103
103
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
104
104
|
className: "search-input",
|
|
@@ -112,7 +112,7 @@ function (_super) {
|
|
|
112
112
|
className: "search-icon",
|
|
113
113
|
onClick: this.searchProduct,
|
|
114
114
|
style: {
|
|
115
|
-
background: data.box.color
|
|
115
|
+
background: data.box.color.pc
|
|
116
116
|
}
|
|
117
117
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
118
118
|
color: "#fff",
|
|
@@ -124,11 +124,11 @@ function (_super) {
|
|
|
124
124
|
return (0, _coreUtil.clickUrl)('/cart');
|
|
125
125
|
},
|
|
126
126
|
style: {
|
|
127
|
-
borderColor: data.icon.color,
|
|
128
|
-
color: data.icon.color
|
|
127
|
+
borderColor: data.icon.color.pc,
|
|
128
|
+
color: data.icon.color.pc
|
|
129
129
|
}
|
|
130
130
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
131
|
-
color: data.icon.color,
|
|
131
|
+
color: data.icon.color.pc,
|
|
132
132
|
size: 16,
|
|
133
133
|
type: "icon-ShoppingCartSimple"
|
|
134
134
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -136,7 +136,7 @@ function (_super) {
|
|
|
136
136
|
}, (0, _locale.i18n)('SHOPPING_CART')))), data.logo.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
137
137
|
data: data.logo,
|
|
138
138
|
style: {
|
|
139
|
-
height:
|
|
139
|
+
height: 40
|
|
140
140
|
}
|
|
141
141
|
}));
|
|
142
142
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.pc-search-bar {
|
|
2
2
|
// height: 48px;
|
|
3
|
-
padding: 20px 100px 30px;
|
|
3
|
+
// padding: 20px 100px 30px;
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: row-reverse;
|
|
6
6
|
align-items: flex-start;
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
|
|
10
10
|
.right {
|
|
11
11
|
display: flex;
|
|
12
|
+
flex: 1;
|
|
13
|
+
margin-left: 90px;
|
|
12
14
|
align-items: center;
|
|
13
15
|
justify-content: space-between;
|
|
14
16
|
|
|
@@ -17,7 +19,7 @@
|
|
|
17
19
|
border-radius: 6px;
|
|
18
20
|
height: 40px;
|
|
19
21
|
display: flex;
|
|
20
|
-
|
|
22
|
+
flex: 1;
|
|
21
23
|
.search-input {
|
|
22
24
|
border: none;
|
|
23
25
|
height: 38px;
|
package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js
CHANGED
|
@@ -73,7 +73,7 @@ function (_super) {
|
|
|
73
73
|
key: 'category1',
|
|
74
74
|
name: /*#__PURE__*/_react["default"].createElement("div", {
|
|
75
75
|
onClick: function onClick() {
|
|
76
|
-
return
|
|
76
|
+
return window.open('/#/PageCategoryManagement');
|
|
77
77
|
}
|
|
78
78
|
}, (0, _locale.i18n)('ALL_CATEGORY'), /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
79
79
|
color: "#2F54EB",
|
package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js
CHANGED
|
@@ -19,6 +19,8 @@ var _defaultJSON = require("../../../components/PcNavigation/defaultJSON");
|
|
|
19
19
|
|
|
20
20
|
var _locale = require("../../../../../locale");
|
|
21
21
|
|
|
22
|
+
var _decorator = require("../../../../../decorator");
|
|
23
|
+
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
25
|
|
|
24
26
|
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); }
|
|
@@ -118,7 +120,7 @@ function (_super) {
|
|
|
118
120
|
PcNavigationConfigGroup.defaultProps = {
|
|
119
121
|
source: []
|
|
120
122
|
};
|
|
121
|
-
PcNavigationConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], PcNavigationConfigGroup);
|
|
123
|
+
PcNavigationConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], PcNavigationConfigGroup);
|
|
122
124
|
return PcNavigationConfigGroup;
|
|
123
125
|
}(_react["default"].Component);
|
|
124
126
|
|
|
@@ -15,6 +15,8 @@ var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-
|
|
|
15
15
|
|
|
16
16
|
var _common = require("../../../../common");
|
|
17
17
|
|
|
18
|
+
var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
|
|
19
|
+
|
|
18
20
|
var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
|
|
19
21
|
|
|
20
22
|
var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
|
|
@@ -83,11 +85,15 @@ function (_super) {
|
|
|
83
85
|
title: (0, _locale.i18n)('COLOR')
|
|
84
86
|
}, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
85
87
|
onChange: function onChange(v) {
|
|
86
|
-
|
|
88
|
+
if ((0, _coreUtil.isPc)()) {
|
|
89
|
+
data.box.color.pc = v;
|
|
90
|
+
} else {
|
|
91
|
+
data.box.color.mobile = v;
|
|
92
|
+
}
|
|
87
93
|
|
|
88
94
|
_this.selfRender();
|
|
89
95
|
},
|
|
90
|
-
value: data.box.color
|
|
96
|
+
value: (0, _coreUtil.isPc)() ? data.box.color.pc : data.box.color.mobile
|
|
91
97
|
})),
|
|
92
98
|
metaOption: data.box,
|
|
93
99
|
toggleType: 'switch'
|
|
@@ -101,20 +107,23 @@ function (_super) {
|
|
|
101
107
|
title: (0, _locale.i18n)('COLOR')
|
|
102
108
|
}, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
103
109
|
onChange: function onChange(v) {
|
|
104
|
-
|
|
110
|
+
if ((0, _coreUtil.isPc)()) {
|
|
111
|
+
data.icon.color.pc = v;
|
|
112
|
+
} else {
|
|
113
|
+
data.icon.color.mobile = v;
|
|
114
|
+
}
|
|
105
115
|
|
|
106
116
|
_this.selfRender();
|
|
107
117
|
},
|
|
108
|
-
value: data.icon.color
|
|
118
|
+
value: (0, _coreUtil.isPc)() ? data.icon.color.pc : data.icon.color.mobile
|
|
109
119
|
})),
|
|
110
120
|
metaOption: data.icon,
|
|
111
121
|
toggleType: 'switch'
|
|
112
122
|
}];
|
|
113
123
|
return /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
114
124
|
headerSize: "middle",
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
},
|
|
125
|
+
noChange: true,
|
|
126
|
+
onRefresh: _this.selfRender,
|
|
118
127
|
showActiveColor: true,
|
|
119
128
|
source: source,
|
|
120
129
|
type: "switch"
|
|
@@ -133,6 +142,13 @@ function (_super) {
|
|
|
133
142
|
key: 'searchBar1',
|
|
134
143
|
name: (0, _locale.i18n)('CONTENT'),
|
|
135
144
|
value: this.getContentPanel()
|
|
145
|
+
}, {
|
|
146
|
+
key: 'searchBar4',
|
|
147
|
+
name: (0, _locale.i18n)('SPACING'),
|
|
148
|
+
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
149
|
+
configCompSpace: true,
|
|
150
|
+
data: data.spacing
|
|
151
|
+
})
|
|
136
152
|
}, {
|
|
137
153
|
key: 'searchBar2',
|
|
138
154
|
name: (0, _locale.i18n)('CUSTOMIZE'),
|