@fonixtree/magic-design 0.1.58 → 1.0.3
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/.DS_Store +0 -0
- package/es/assets/less/cylon-antd.less +17659 -23296
- package/es/assets/less/modal.less +1 -0
- package/es/common/ImageModal/index.js +2 -35
- package/es/common/ImagePicker/index.js +147 -64
- package/es/common/ImagePicker/index.less +103 -2
- package/es/common/LinkModal/SelectVideoModal/index.js +0 -2
- package/es/composite-comp/bol/components/Banner/mobile/index.less +78 -52
- package/es/composite-comp/bol/components/Banner/pc/index.js +4 -3
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -23
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -38
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +50 -41
- package/es/composite-comp/bol/components/Video/mobile/index.less +3 -2
- package/es/composite-comp/bol/components/Wallet/mobile/index.js +1 -1
- package/es/composite-comp/bol/components/Wallet/mobile/index.less +40 -27
- package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +0 -2
- package/es/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +0 -1
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
- package/es/composite-comp/dito/components/PcNavigation/index.js +0 -1
- package/es/composite-comp/dito/components/PcNavigation/pc/index.js +1 -3
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +0 -1
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +0 -2
- package/es/composite-comp/dito/components/SignBoard/mobile/index.less +80 -76
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +0 -1
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/index.js +0 -1
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +0 -1
- package/es/locale/en/en.json +3 -0
- package/es/locale/es/es.json +3 -0
- package/es/locale/id/id.json +3 -0
- package/es/meta-comp/config-panels/ImageConfig/index.js +1 -1
- package/es/meta-comp/config-panels/TextConfig/index.js +3 -3
- package/es/utils/commonUtil.js +31 -37
- package/lib/assets/fonts/.DS_Store +0 -0
- package/lib/assets/less/cylon-antd.less +17659 -23296
- package/lib/assets/less/modal.less +1 -0
- package/lib/common/ImageModal/index.js +2 -35
- package/lib/common/ImagePicker/index.js +147 -64
- package/lib/common/ImagePicker/index.less +103 -2
- package/lib/common/LinkModal/SelectVideoModal/index.js +0 -2
- package/lib/composite-comp/bol/components/Banner/mobile/index.less +78 -52
- package/lib/composite-comp/bol/components/Banner/pc/index.js +4 -3
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -23
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -38
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +50 -41
- package/lib/composite-comp/bol/components/Video/mobile/index.less +3 -2
- package/lib/composite-comp/bol/components/Wallet/mobile/index.js +1 -1
- package/lib/composite-comp/bol/components/Wallet/mobile/index.less +40 -27
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +0 -2
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +0 -1
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
- package/lib/composite-comp/dito/components/PcNavigation/index.js +0 -1
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +1 -3
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +0 -1
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +0 -2
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +80 -76
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +0 -1
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/index.js +0 -1
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +0 -1
- package/lib/locale/en/en.json +3 -0
- package/lib/locale/es/es.json +3 -0
- package/lib/locale/id/id.json +3 -0
- package/lib/meta-comp/config-panels/ImageConfig/index.js +1 -1
- package/lib/meta-comp/config-panels/TextConfig/index.js +3 -3
- package/lib/utils/commonUtil.js +31 -37
- package/package.json +2 -2
|
@@ -23,8 +23,6 @@ var _CommonSelPicCard = _interopRequireDefault(require("./CommonSelPicCard"));
|
|
|
23
23
|
|
|
24
24
|
var _const2 = require("./const");
|
|
25
25
|
|
|
26
|
-
var _utils = require("./utils");
|
|
27
|
-
|
|
28
26
|
var _Iconfont = _interopRequireDefault(require("../Iconfont"));
|
|
29
27
|
|
|
30
28
|
var _commonUtil = require("../../utils/commonUtil");
|
|
@@ -489,7 +487,7 @@ function ImageModal(_a) {
|
|
|
489
487
|
|
|
490
488
|
var handleUpload = function handleUpload(file) {
|
|
491
489
|
return __awaiter(_this, void 0, void 0, function () {
|
|
492
|
-
var
|
|
490
|
+
var form, result;
|
|
493
491
|
return __generator(this, function (_a) {
|
|
494
492
|
switch (_a.label) {
|
|
495
493
|
case 0:
|
|
@@ -507,37 +505,6 @@ function ImageModal(_a) {
|
|
|
507
505
|
}
|
|
508
506
|
}
|
|
509
507
|
|
|
510
|
-
console.log('file: ', file);
|
|
511
|
-
return [4
|
|
512
|
-
/*yield*/
|
|
513
|
-
, (0, _utils.getUploadParamCodeConfig)()];
|
|
514
|
-
|
|
515
|
-
case 1:
|
|
516
|
-
config = _a.sent();
|
|
517
|
-
if (!(file.size > config.maxSize)) return [3
|
|
518
|
-
/*break*/
|
|
519
|
-
, 3];
|
|
520
|
-
setSpinning(true);
|
|
521
|
-
setProcess(0);
|
|
522
|
-
return [4
|
|
523
|
-
/*yield*/
|
|
524
|
-
, (0, _utils.chunksUpload)({
|
|
525
|
-
file: file,
|
|
526
|
-
contentCatgId: selectedKeys[0]
|
|
527
|
-
}, function (process) {
|
|
528
|
-
// console.log('process', process);
|
|
529
|
-
setProcess(process);
|
|
530
|
-
})];
|
|
531
|
-
|
|
532
|
-
case 2:
|
|
533
|
-
result = _a.sent();
|
|
534
|
-
setProcess(null);
|
|
535
|
-
setSpinning(false);
|
|
536
|
-
return [2
|
|
537
|
-
/*return*/
|
|
538
|
-
, result];
|
|
539
|
-
|
|
540
|
-
case 3:
|
|
541
508
|
form = new FormData();
|
|
542
509
|
form.append('file', file); // 文件对象
|
|
543
510
|
|
|
@@ -551,7 +518,7 @@ function ImageModal(_a) {
|
|
|
551
518
|
/*yield*/
|
|
552
519
|
, onUpload(form)];
|
|
553
520
|
|
|
554
|
-
case
|
|
521
|
+
case 1:
|
|
555
522
|
result = _a.sent();
|
|
556
523
|
return [2
|
|
557
524
|
/*return*/
|
|
@@ -9,10 +9,14 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
require("./index.less");
|
|
11
11
|
|
|
12
|
+
var _antd = require("antd");
|
|
13
|
+
|
|
12
14
|
var _locale = require("../../locale");
|
|
13
15
|
|
|
14
16
|
var _ImageModal = _interopRequireDefault(require("../ImageModal"));
|
|
15
17
|
|
|
18
|
+
var _ = require("..");
|
|
19
|
+
|
|
16
20
|
var _Iconfont = _interopRequireDefault(require("../Iconfont"));
|
|
17
21
|
|
|
18
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -43,6 +47,15 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
43
47
|
};
|
|
44
48
|
}();
|
|
45
49
|
|
|
50
|
+
var Option = _antd.Select.Option;
|
|
51
|
+
var selectList = [{
|
|
52
|
+
key: 'upload',
|
|
53
|
+
value: (0, _locale.i18n)('UPLOAD')
|
|
54
|
+
}, {
|
|
55
|
+
key: 'url',
|
|
56
|
+
value: (0, _locale.i18n)('IMAGE_URL')
|
|
57
|
+
}];
|
|
58
|
+
|
|
46
59
|
var ImagePicker =
|
|
47
60
|
/** @class */
|
|
48
61
|
function (_super) {
|
|
@@ -52,7 +65,9 @@ function (_super) {
|
|
|
52
65
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53
66
|
|
|
54
67
|
_this.state = {
|
|
55
|
-
visible: false
|
|
68
|
+
visible: false,
|
|
69
|
+
imageWay: 'upload',
|
|
70
|
+
inputVal: ''
|
|
56
71
|
};
|
|
57
72
|
|
|
58
73
|
_this.onChange = function (v) {
|
|
@@ -73,84 +88,152 @@ function (_super) {
|
|
|
73
88
|
});
|
|
74
89
|
|
|
75
90
|
if ((data === null || data === void 0 ? void 0 : data.length) > 0) {
|
|
76
|
-
console.log('---', data);
|
|
77
|
-
|
|
78
91
|
_this.props.onChange(data[0]);
|
|
79
92
|
}
|
|
80
93
|
};
|
|
81
94
|
|
|
95
|
+
_this.getImagePick = function () {
|
|
96
|
+
var visible = _this.state.visible;
|
|
97
|
+
var value = _this.props.value;
|
|
98
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
99
|
+
className: "m-image-picker"
|
|
100
|
+
}, value ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
101
|
+
className: "img-wrap",
|
|
102
|
+
onClick: function onClick() {
|
|
103
|
+
_this.setState({
|
|
104
|
+
visible: true
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
108
|
+
src: value
|
|
109
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
110
|
+
className: "btn-icons-modal",
|
|
111
|
+
onClick: function onClick(e) {
|
|
112
|
+
return e.stopPropagation();
|
|
113
|
+
}
|
|
114
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
115
|
+
className: "btn-edit",
|
|
116
|
+
onClick: function onClick() {
|
|
117
|
+
_this.setState({
|
|
118
|
+
visible: true
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
}, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
122
|
+
color: "#fff",
|
|
123
|
+
onClick: function onClick() {},
|
|
124
|
+
size: 25,
|
|
125
|
+
type: "icon-setting"
|
|
126
|
+
}), (0, _locale.i18n)('EDIT')), /*#__PURE__*/_react["default"].createElement("span", {
|
|
127
|
+
className: "line"
|
|
128
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
129
|
+
className: "btn-del",
|
|
130
|
+
onClick: function onClick() {
|
|
131
|
+
_this.props.onChange('');
|
|
132
|
+
}
|
|
133
|
+
}, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
134
|
+
color: "#fff",
|
|
135
|
+
onClick: function onClick() {},
|
|
136
|
+
size: 25,
|
|
137
|
+
type: "icon-delete1"
|
|
138
|
+
}), (0, _locale.i18n)('DELETE')))) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
139
|
+
className: "no-img"
|
|
140
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
141
|
+
className: "hint-txt"
|
|
142
|
+
}, (0, _locale.i18n)('LOOKS_LIKE_YOU_DO_NOT_HAVE_ANY_IMAGES_IN_YOUR_GALLERY__CHOOSE_IMAGES_TO_FEATURE_ON_THIS_PAGE_')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
143
|
+
className: "pick-btn",
|
|
144
|
+
onClick: function onClick() {
|
|
145
|
+
_this.setState({
|
|
146
|
+
visible: true
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
}, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
150
|
+
color: "#FFFFFF",
|
|
151
|
+
size: 18,
|
|
152
|
+
type: "icon-add"
|
|
153
|
+
}), /*#__PURE__*/_react["default"].createElement("p", null, (0, _locale.i18n)('ADD_IMAGE')))), visible && /*#__PURE__*/_react["default"].createElement(_ImageModal["default"], {
|
|
154
|
+
onCancel: function onCancel() {
|
|
155
|
+
_this.setState({
|
|
156
|
+
visible: false
|
|
157
|
+
});
|
|
158
|
+
},
|
|
159
|
+
onOk: _this.onModalOk,
|
|
160
|
+
visible: true
|
|
161
|
+
}));
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
_this.getImageUrl = function () {
|
|
165
|
+
var onChange = _this.props.onChange;
|
|
166
|
+
var inputVal = _this.state.inputVal;
|
|
167
|
+
return /*#__PURE__*/_react["default"].createElement(_.Field, {
|
|
168
|
+
title: (0, _locale.i18n)('IMAGE_URL')
|
|
169
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
170
|
+
className: "input-url"
|
|
171
|
+
}, /*#__PURE__*/_react["default"].createElement("input", {
|
|
172
|
+
onBlur: function onBlur() {
|
|
173
|
+
onChange({
|
|
174
|
+
url: inputVal
|
|
175
|
+
});
|
|
176
|
+
},
|
|
177
|
+
onChange: function onChange(e) {
|
|
178
|
+
_this.setState({
|
|
179
|
+
inputVal: e.target.value
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
console.log('---d', e.target.value);
|
|
183
|
+
},
|
|
184
|
+
placeholder: (0, _locale.i18n)('PLEASE_ADD_A_LINK'),
|
|
185
|
+
type: "text",
|
|
186
|
+
value: inputVal
|
|
187
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
188
|
+
className: "icon-btns"
|
|
189
|
+
}, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
190
|
+
color: "#FF4141",
|
|
191
|
+
onClick: function onClick() {
|
|
192
|
+
return onChange({
|
|
193
|
+
url: ''
|
|
194
|
+
});
|
|
195
|
+
},
|
|
196
|
+
size: "20px",
|
|
197
|
+
type: "icon-delete1"
|
|
198
|
+
}))));
|
|
199
|
+
};
|
|
200
|
+
|
|
82
201
|
return _this;
|
|
83
202
|
}
|
|
84
203
|
|
|
204
|
+
ImagePicker.prototype.componentWillReceiveProps = function (nextProps) {
|
|
205
|
+
if (nextProps.value != this.props.value) {
|
|
206
|
+
this.setState({
|
|
207
|
+
inputVal: nextProps.value
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
|
|
85
212
|
ImagePicker.prototype.render = function () {
|
|
86
213
|
var _this = this;
|
|
87
214
|
|
|
88
|
-
var
|
|
89
|
-
var value = this.props.value;
|
|
215
|
+
var imageWay = this.state.imageWay;
|
|
90
216
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
91
|
-
className: "
|
|
92
|
-
},
|
|
93
|
-
|
|
94
|
-
onClick: function onClick() {
|
|
95
|
-
_this.setState({
|
|
96
|
-
visible: true
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
100
|
-
src: value
|
|
101
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
102
|
-
className: "btn-icons-modal",
|
|
103
|
-
onClick: function onClick(e) {
|
|
104
|
-
return e.stopPropagation();
|
|
105
|
-
}
|
|
106
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
107
|
-
className: "btn-edit",
|
|
108
|
-
onClick: function onClick() {
|
|
109
|
-
_this.setState({
|
|
110
|
-
visible: true
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
}, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
114
|
-
color: "#fff",
|
|
115
|
-
onClick: function onClick() {},
|
|
116
|
-
size: 25,
|
|
117
|
-
type: "icon-setting"
|
|
118
|
-
}), (0, _locale.i18n)('EDIT')), /*#__PURE__*/_react["default"].createElement("span", {
|
|
119
|
-
className: "line"
|
|
120
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
121
|
-
className: "btn-del",
|
|
122
|
-
onClick: function onClick() {
|
|
123
|
-
_this.props.onChange('');
|
|
124
|
-
}
|
|
125
|
-
}, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
126
|
-
color: "#fff",
|
|
127
|
-
onClick: function onClick() {},
|
|
128
|
-
size: 25,
|
|
129
|
-
type: "icon-delete1"
|
|
130
|
-
}), (0, _locale.i18n)('DELETE')))) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
131
|
-
className: "no-img"
|
|
217
|
+
className: "image-picker-wrap"
|
|
218
|
+
}, /*#__PURE__*/_react["default"].createElement(_.Field, {
|
|
219
|
+
title: (0, _locale.i18n)('ADD_IMAGE')
|
|
132
220
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
133
|
-
className: "
|
|
134
|
-
},
|
|
135
|
-
className: "
|
|
136
|
-
|
|
137
|
-
_this.setState({
|
|
138
|
-
visible: true
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
}, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
142
|
-
color: "#FFFFFF",
|
|
143
|
-
size: 18,
|
|
144
|
-
type: "icon-add"
|
|
145
|
-
}), /*#__PURE__*/_react["default"].createElement("p", null, (0, _locale.i18n)('ADD_IMAGE')))), visible && /*#__PURE__*/_react["default"].createElement(_ImageModal["default"], {
|
|
146
|
-
onCancel: function onCancel() {
|
|
221
|
+
className: "select-wrap"
|
|
222
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
223
|
+
className: "image-picker-select",
|
|
224
|
+
onChange: function onChange(value) {
|
|
147
225
|
_this.setState({
|
|
148
|
-
|
|
226
|
+
imageWay: value
|
|
149
227
|
});
|
|
150
228
|
},
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
})
|
|
229
|
+
size: "large",
|
|
230
|
+
value: imageWay
|
|
231
|
+
}, selectList.map(function (v) {
|
|
232
|
+
return /*#__PURE__*/_react["default"].createElement(Option, {
|
|
233
|
+
key: v.key,
|
|
234
|
+
value: v.key
|
|
235
|
+
}, v.value);
|
|
236
|
+
})))), imageWay === 'upload' ? this.getImagePick() : this.getImageUrl());
|
|
154
237
|
};
|
|
155
238
|
|
|
156
239
|
ImagePicker.defaultProps = {
|
|
@@ -1,8 +1,109 @@
|
|
|
1
|
+
.image-picker-wrap {
|
|
2
|
+
border-bottom: 1px dashed #D2D9E5;
|
|
3
|
+
margin-bottom: 16px;
|
|
4
|
+
|
|
5
|
+
.select-wrap {
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
align-items: center;
|
|
9
|
+
.ai-btn {
|
|
10
|
+
background: #FFFFFF;
|
|
11
|
+
border: 1px solid #2F54EB;
|
|
12
|
+
border-radius: 8px;
|
|
13
|
+
padding: 7px 10px;
|
|
14
|
+
.btn-txt {
|
|
15
|
+
font-family: 'Open Sans';
|
|
16
|
+
font-style: normal;
|
|
17
|
+
font-weight: 600;
|
|
18
|
+
font-size: 16px;
|
|
19
|
+
line-height: 24px;
|
|
20
|
+
color: #2F54EB;
|
|
21
|
+
margin-left: 6px;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
.image-picker-select {
|
|
25
|
+
width: 156px;
|
|
26
|
+
height: 40px;
|
|
27
|
+
|
|
28
|
+
.cylon-select-selector {
|
|
29
|
+
border-radius: 8px !important;
|
|
30
|
+
height: 40px !important;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
.input-url {
|
|
35
|
+
width: 100%;
|
|
36
|
+
height: 40px;
|
|
37
|
+
background: #FFFFFF;
|
|
38
|
+
border: 1px solid #D2D9E5;
|
|
39
|
+
border-radius: 8px;
|
|
40
|
+
display: flex;
|
|
41
|
+
padding: 9px 14px;
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
|
|
45
|
+
input {
|
|
46
|
+
border: none;
|
|
47
|
+
outline: none;
|
|
48
|
+
height: 24px;
|
|
49
|
+
flex-grow: 1;
|
|
50
|
+
font-family: 'Open Sans';
|
|
51
|
+
font-style: normal;
|
|
52
|
+
font-weight: 400;
|
|
53
|
+
font-size: 14px;
|
|
54
|
+
color: #232F46;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* 使用webkit内核的浏览器 */
|
|
58
|
+
input::-webkit-input-placeholder {
|
|
59
|
+
font-family: 'Open Sans';
|
|
60
|
+
font-style: normal;
|
|
61
|
+
font-weight: 400;
|
|
62
|
+
font-size: 14px;
|
|
63
|
+
color: #8493AF;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Firefox版本4-18 */
|
|
67
|
+
input:-moz-placeholder {
|
|
68
|
+
font-family: 'Open Sans';
|
|
69
|
+
font-style: normal;
|
|
70
|
+
font-weight: 400;
|
|
71
|
+
font-size: 14px;
|
|
72
|
+
color: #8493AF;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* Firefox版本19+ */
|
|
76
|
+
input::-moz-placeholder {
|
|
77
|
+
font-family: 'Open Sans';
|
|
78
|
+
font-style: normal;
|
|
79
|
+
font-weight: 400;
|
|
80
|
+
font-size: 14px;
|
|
81
|
+
color: #8493AF;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* IE浏览器 */
|
|
85
|
+
input:-ms-input-placeholder {
|
|
86
|
+
font-family: 'Open Sans';
|
|
87
|
+
font-style: normal;
|
|
88
|
+
font-weight: 400;
|
|
89
|
+
font-size: 14px;
|
|
90
|
+
color: #8493AF;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.icon-btns {
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
|
|
97
|
+
&>span {
|
|
98
|
+
margin-left: 12px;
|
|
99
|
+
cursor: pointer;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
1
104
|
.m-image-picker {
|
|
2
105
|
padding-bottom: 12px;
|
|
3
|
-
border-bottom: 1px dashed #D2D9E5;
|
|
4
106
|
width: 100%;
|
|
5
|
-
margin-bottom: 16px;
|
|
6
107
|
cursor: pointer;
|
|
7
108
|
|
|
8
109
|
.no-img {
|
|
@@ -1,54 +1,80 @@
|
|
|
1
1
|
.m-banner-mobile {
|
|
2
2
|
position: relative;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
.
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
3
|
+
// .turnPage {
|
|
4
|
+
// position: absolute;
|
|
5
|
+
// top: 50%;
|
|
6
|
+
// transform: translateY(-50%);
|
|
7
|
+
// z-index: 3;
|
|
8
|
+
// cursor: pointer;
|
|
9
|
+
// }
|
|
10
|
+
// .leftBtn {
|
|
11
|
+
// left: 20px;
|
|
12
|
+
// }
|
|
13
|
+
// .rightBtn {
|
|
14
|
+
// right: 20px;
|
|
15
|
+
// }
|
|
16
|
+
|
|
17
|
+
.cylon-carousel {
|
|
18
|
+
.slick-track {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.carouselItem {
|
|
25
|
+
// height: 386px;
|
|
26
|
+
position: relative;
|
|
27
|
+
display: flex;
|
|
28
|
+
|
|
29
|
+
.carouseContent {
|
|
30
|
+
padding: 0 28px;
|
|
31
|
+
position: absolute;
|
|
32
|
+
z-index: 2;
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
margin-bottom: auto;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.title {
|
|
39
|
+
margin-bottom: 8px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.sub-title {
|
|
43
|
+
margin-bottom: 20px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.btn-wrap {
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: flex-start;
|
|
50
|
+
|
|
51
|
+
.btn {
|
|
52
|
+
margin-right: 12px;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.swiper-ban {
|
|
58
|
+
position: absolute;
|
|
59
|
+
width: 100%;
|
|
60
|
+
bottom: 10px;
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
|
|
65
|
+
.ban {
|
|
66
|
+
font-size: 16px;
|
|
67
|
+
width: 1.5em;
|
|
68
|
+
height: 0.3em;
|
|
69
|
+
background: #FFF;
|
|
70
|
+
cursor: inherit;
|
|
71
|
+
margin-right: 0.3em;
|
|
72
|
+
transition: all .5s;
|
|
73
|
+
|
|
74
|
+
&.active {
|
|
75
|
+
width: 1.5em;
|
|
76
|
+
opacity: 1;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -176,13 +176,14 @@ function (_super) {
|
|
|
176
176
|
textAlign: item.customize.align
|
|
177
177
|
};
|
|
178
178
|
|
|
179
|
-
if (item.customize.vertical === '
|
|
180
|
-
styleObj.top = 30;
|
|
181
|
-
} else if (item.customize.vertical === 'bottom') {
|
|
179
|
+
if (item.customize.vertical === 'bottom') {
|
|
182
180
|
styleObj.bottom = 30;
|
|
183
181
|
} else if (item.customize.vertical === 'center') {
|
|
184
182
|
styleObj.top = '50%';
|
|
185
183
|
styleObj.transform = 'translateY(-50%)';
|
|
184
|
+
} else {
|
|
185
|
+
// item.customize.vertical === 'top'
|
|
186
|
+
styleObj.top = 30;
|
|
186
187
|
}
|
|
187
188
|
|
|
188
189
|
return styleObj;
|