@fonixtree/magic-design 2.0.101 → 2.0.102
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/common/PopUpModal/index.js +9 -215
- package/es/common/PopUpModal/index.less +14 -0
- package/es/common/ProductFilterModal/components/FilterSearchModal/index.js +2 -5
- package/es/common/ProductFilterModal/components/FilterSearchModal/index.less +21 -6
- package/es/common/ProductFilterModal/index.js +3 -8
- package/es/common/ProductFilterModal/index.less +41 -2
- package/es/common/Tag/index.less +2 -2
- package/es/composite-comp/monpay/components/MerchantSales/mobile/index.js +5 -8
- package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +1 -1
- package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/index.js +1 -1
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +11 -8
- package/es/constants/index.js +1 -1
- package/es/locale/en/en.json +7 -2
- package/es/locale/es/es.json +7 -2
- package/es/locale/id/id.json +7 -2
- package/es/meta-comp/components/Button/editable.js +1 -1
- package/es/meta-comp/components/Button/editable.less +1 -1
- package/lib/common/PopUpModal/index.js +9 -215
- package/lib/common/PopUpModal/index.less +14 -0
- package/lib/common/ProductFilterModal/components/FilterSearchModal/index.js +2 -5
- package/lib/common/ProductFilterModal/components/FilterSearchModal/index.less +21 -6
- package/lib/common/ProductFilterModal/index.js +3 -8
- package/lib/common/ProductFilterModal/index.less +41 -2
- package/lib/common/Tag/index.less +2 -2
- package/lib/composite-comp/monpay/components/MerchantSales/mobile/index.js +5 -8
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +1 -1
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/index.js +1 -1
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +11 -8
- package/lib/constants/index.js +1 -1
- package/lib/locale/en/en.json +7 -2
- package/lib/locale/es/es.json +7 -2
- package/lib/locale/id/id.json +7 -2
- package/lib/meta-comp/components/Button/editable.js +1 -1
- package/lib/meta-comp/components/Button/editable.less +1 -1
- package/package.json +1 -1
- package/es/common/PopUpModal1/index.js +0 -164
- package/es/common/PopUpModal1/style.less +0 -56
- package/lib/common/PopUpModal1/index.js +0 -164
- package/lib/common/PopUpModal1/style.less +0 -56
|
@@ -15,8 +15,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
15
15
|
|
|
16
16
|
require("./index.less");
|
|
17
17
|
|
|
18
|
-
var _Button = _interopRequireDefault(require("../Button"));
|
|
19
|
-
|
|
20
18
|
var _coreUtil = require("../../utils/coreUtil");
|
|
21
19
|
|
|
22
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -51,149 +49,6 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
51
49
|
};
|
|
52
50
|
}();
|
|
53
51
|
|
|
54
|
-
var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
|
|
55
|
-
function adopt(value) {
|
|
56
|
-
return value instanceof P ? value : new P(function (resolve) {
|
|
57
|
-
resolve(value);
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
62
|
-
function fulfilled(value) {
|
|
63
|
-
try {
|
|
64
|
-
step(generator.next(value));
|
|
65
|
-
} catch (e) {
|
|
66
|
-
reject(e);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
function rejected(value) {
|
|
71
|
-
try {
|
|
72
|
-
step(generator["throw"](value));
|
|
73
|
-
} catch (e) {
|
|
74
|
-
reject(e);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function step(result) {
|
|
79
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
83
|
-
});
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
87
|
-
var _ = {
|
|
88
|
-
label: 0,
|
|
89
|
-
sent: function sent() {
|
|
90
|
-
if (t[0] & 1) throw t[1];
|
|
91
|
-
return t[1];
|
|
92
|
-
},
|
|
93
|
-
trys: [],
|
|
94
|
-
ops: []
|
|
95
|
-
},
|
|
96
|
-
f,
|
|
97
|
-
y,
|
|
98
|
-
t,
|
|
99
|
-
g;
|
|
100
|
-
return g = {
|
|
101
|
-
next: verb(0),
|
|
102
|
-
"throw": verb(1),
|
|
103
|
-
"return": verb(2)
|
|
104
|
-
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
105
|
-
return this;
|
|
106
|
-
}), g;
|
|
107
|
-
|
|
108
|
-
function verb(n) {
|
|
109
|
-
return function (v) {
|
|
110
|
-
return step([n, v]);
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
function step(op) {
|
|
115
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
116
|
-
|
|
117
|
-
while (_) {
|
|
118
|
-
try {
|
|
119
|
-
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;
|
|
120
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
121
|
-
|
|
122
|
-
switch (op[0]) {
|
|
123
|
-
case 0:
|
|
124
|
-
case 1:
|
|
125
|
-
t = op;
|
|
126
|
-
break;
|
|
127
|
-
|
|
128
|
-
case 4:
|
|
129
|
-
_.label++;
|
|
130
|
-
return {
|
|
131
|
-
value: op[1],
|
|
132
|
-
done: false
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
case 5:
|
|
136
|
-
_.label++;
|
|
137
|
-
y = op[1];
|
|
138
|
-
op = [0];
|
|
139
|
-
continue;
|
|
140
|
-
|
|
141
|
-
case 7:
|
|
142
|
-
op = _.ops.pop();
|
|
143
|
-
|
|
144
|
-
_.trys.pop();
|
|
145
|
-
|
|
146
|
-
continue;
|
|
147
|
-
|
|
148
|
-
default:
|
|
149
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
150
|
-
_ = 0;
|
|
151
|
-
continue;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
155
|
-
_.label = op[1];
|
|
156
|
-
break;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
160
|
-
_.label = t[1];
|
|
161
|
-
t = op;
|
|
162
|
-
break;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
if (t && _.label < t[2]) {
|
|
166
|
-
_.label = t[2];
|
|
167
|
-
|
|
168
|
-
_.ops.push(op);
|
|
169
|
-
|
|
170
|
-
break;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
if (t[2]) _.ops.pop();
|
|
174
|
-
|
|
175
|
-
_.trys.pop();
|
|
176
|
-
|
|
177
|
-
continue;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
op = body.call(thisArg, _);
|
|
181
|
-
} catch (e) {
|
|
182
|
-
op = [6, e];
|
|
183
|
-
y = 0;
|
|
184
|
-
} finally {
|
|
185
|
-
f = t = 0;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
if (op[0] & 5) throw op[1];
|
|
190
|
-
return {
|
|
191
|
-
value: op[0] ? op[1] : void 0,
|
|
192
|
-
done: true
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
};
|
|
196
|
-
|
|
197
52
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
198
53
|
var t = {};
|
|
199
54
|
|
|
@@ -207,8 +62,6 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
207
62
|
return t;
|
|
208
63
|
};
|
|
209
64
|
|
|
210
|
-
var debug = require('debug')('worker:pop-up-modal');
|
|
211
|
-
|
|
212
65
|
var AComponent =
|
|
213
66
|
/** @class */
|
|
214
67
|
function (_super) {
|
|
@@ -218,55 +71,6 @@ function (_super) {
|
|
|
218
71
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
219
72
|
|
|
220
73
|
_this.state = {};
|
|
221
|
-
|
|
222
|
-
_this.onConfirm = function () {
|
|
223
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
224
|
-
var _a, onConfirm, onClose, error_1;
|
|
225
|
-
|
|
226
|
-
return __generator(this, function (_b) {
|
|
227
|
-
switch (_b.label) {
|
|
228
|
-
case 0:
|
|
229
|
-
_b.trys.push([0, 2,, 3]);
|
|
230
|
-
|
|
231
|
-
_a = this.props, onConfirm = _a.onConfirm, onClose = _a.onClose;
|
|
232
|
-
return [4
|
|
233
|
-
/*yield*/
|
|
234
|
-
, onConfirm()];
|
|
235
|
-
|
|
236
|
-
case 1:
|
|
237
|
-
_b.sent();
|
|
238
|
-
|
|
239
|
-
onClose();
|
|
240
|
-
return [3
|
|
241
|
-
/*break*/
|
|
242
|
-
, 3];
|
|
243
|
-
|
|
244
|
-
case 2:
|
|
245
|
-
error_1 = _b.sent();
|
|
246
|
-
debug(error_1);
|
|
247
|
-
return [3
|
|
248
|
-
/*break*/
|
|
249
|
-
, 3];
|
|
250
|
-
|
|
251
|
-
case 3:
|
|
252
|
-
return [2
|
|
253
|
-
/*return*/
|
|
254
|
-
];
|
|
255
|
-
}
|
|
256
|
-
});
|
|
257
|
-
});
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
_this.onCancel = function () {
|
|
261
|
-
try {
|
|
262
|
-
var onClose = _this.props.onClose;
|
|
263
|
-
onCancel();
|
|
264
|
-
onClose();
|
|
265
|
-
} catch (error) {
|
|
266
|
-
debug(error);
|
|
267
|
-
}
|
|
268
|
-
};
|
|
269
|
-
|
|
270
74
|
return _this;
|
|
271
75
|
}
|
|
272
76
|
|
|
@@ -274,19 +78,10 @@ function (_super) {
|
|
|
274
78
|
var _a = this.props,
|
|
275
79
|
title = _a.title,
|
|
276
80
|
titleStyle = _a.titleStyle,
|
|
277
|
-
|
|
278
|
-
confirmText = _a.confirmText,
|
|
279
|
-
cancelText = _a.cancelText,
|
|
81
|
+
children = _a.children,
|
|
280
82
|
onClose = _a.onClose,
|
|
281
83
|
visible = _a.visible,
|
|
282
|
-
|
|
283
|
-
rest = __rest(_a, ["title", "titleStyle", "message", "confirmText", "cancelText", "onClose", "visible", "maskClosable"]);
|
|
284
|
-
|
|
285
|
-
var messageBox = message;
|
|
286
|
-
|
|
287
|
-
if (message instanceof Function) {
|
|
288
|
-
messageBox = message();
|
|
289
|
-
}
|
|
84
|
+
rest = __rest(_a, ["title", "titleStyle", "children", "onClose", "visible"]);
|
|
290
85
|
|
|
291
86
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, visible && /*#__PURE__*/_react["default"].createElement("div", {
|
|
292
87
|
className: (0, _classnames["default"])('popUpModal', rest.className),
|
|
@@ -295,20 +90,19 @@ function (_super) {
|
|
|
295
90
|
}
|
|
296
91
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
297
92
|
className: "modal-shadow",
|
|
298
|
-
onClick:
|
|
93
|
+
onClick: onClose
|
|
299
94
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
300
95
|
className: "modal-content"
|
|
301
|
-
},
|
|
96
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
97
|
+
className: "topLineWrap"
|
|
98
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
99
|
+
className: "topLine"
|
|
100
|
+
})), title && /*#__PURE__*/_react["default"].createElement("div", {
|
|
302
101
|
className: "modal-title",
|
|
303
102
|
style: titleStyle
|
|
304
103
|
}, title), /*#__PURE__*/_react["default"].createElement("div", {
|
|
305
104
|
className: "modal-btn-wrap"
|
|
306
|
-
},
|
|
307
|
-
onClick: this.onConfirm,
|
|
308
|
-
style: {
|
|
309
|
-
flex: 'none'
|
|
310
|
-
}
|
|
311
|
-
}, confirmText)))));
|
|
105
|
+
}, children))));
|
|
312
106
|
};
|
|
313
107
|
|
|
314
108
|
return AComponent;
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
right: 0;
|
|
33
33
|
width: 100%;
|
|
34
34
|
padding: 20px;
|
|
35
|
+
padding-top: 0;
|
|
35
36
|
display: flex;
|
|
36
37
|
flex-direction: column;
|
|
37
38
|
background-color: #fff;
|
|
@@ -41,6 +42,19 @@
|
|
|
41
42
|
max-height: 60%;
|
|
42
43
|
border-radius: 10px 10px 0 0;
|
|
43
44
|
|
|
45
|
+
.topLineWrap {
|
|
46
|
+
text-align: center;
|
|
47
|
+
margin-bottom: 15px;
|
|
48
|
+
|
|
49
|
+
.topLine {
|
|
50
|
+
display: inline-block;
|
|
51
|
+
width: 42px;
|
|
52
|
+
height: 4px;
|
|
53
|
+
background: #e9e9e9;
|
|
54
|
+
border-radius: 2px;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
44
58
|
.modal-title {
|
|
45
59
|
color: #000;
|
|
46
60
|
font-size: 16px;
|
|
@@ -162,10 +162,6 @@ function (_super) {
|
|
|
162
162
|
}) : list;
|
|
163
163
|
|
|
164
164
|
return /*#__PURE__*/_react["default"].createElement(_PopUpModal["default"], {
|
|
165
|
-
bodyStyle: {
|
|
166
|
-
height: '80vh'
|
|
167
|
-
},
|
|
168
|
-
destroyOnClose: true,
|
|
169
165
|
visible: visible
|
|
170
166
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
171
167
|
className: "classificationDetailModal"
|
|
@@ -179,7 +175,7 @@ function (_super) {
|
|
|
179
175
|
_this.onClear();
|
|
180
176
|
},
|
|
181
177
|
size: 20,
|
|
182
|
-
type: "icon-
|
|
178
|
+
type: "icon-outlined-left"
|
|
183
179
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
184
180
|
className: "headerTitle"
|
|
185
181
|
}, title)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -221,6 +217,7 @@ function (_super) {
|
|
|
221
217
|
}), /*#__PURE__*/_react["default"].createElement("p", null, "Sorry, we couldn't find \"", searchValue, "\"")))), _list.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
222
218
|
className: "bottomWrap"
|
|
223
219
|
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
220
|
+
className: "btn-confirm",
|
|
224
221
|
onClick: this.onOkClick
|
|
225
222
|
}, (0, _locale.i18n)('OK')))));
|
|
226
223
|
};
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
.classificationDetailModal {
|
|
2
|
-
height:
|
|
2
|
+
height: calc(80vh - 40px);
|
|
3
3
|
width: 100%;
|
|
4
|
-
position: absolute;
|
|
5
|
-
z-index: 5;
|
|
6
|
-
padding: 16px;
|
|
7
4
|
background-color: #fff;
|
|
8
5
|
box-sizing: border-box;
|
|
9
6
|
|
|
@@ -56,7 +53,7 @@
|
|
|
56
53
|
|
|
57
54
|
.contentWrap {
|
|
58
55
|
background: #ffffff;
|
|
59
|
-
height:
|
|
56
|
+
height: 300px;
|
|
60
57
|
margin-top: 16px;
|
|
61
58
|
overflow-y: scroll;
|
|
62
59
|
overflow-x: hidden;
|
|
@@ -76,7 +73,7 @@
|
|
|
76
73
|
font-size: 14px;
|
|
77
74
|
text-align: center;
|
|
78
75
|
color: #333333;
|
|
79
|
-
margin:
|
|
76
|
+
margin: 0 auto;
|
|
80
77
|
}
|
|
81
78
|
|
|
82
79
|
:global {
|
|
@@ -124,6 +121,24 @@
|
|
|
124
121
|
background: #fff;
|
|
125
122
|
height: 78px;
|
|
126
123
|
padding: 12px;
|
|
124
|
+
|
|
125
|
+
.btn-confirm {
|
|
126
|
+
display: flex;
|
|
127
|
+
flex: 1 1;
|
|
128
|
+
height: 54px;
|
|
129
|
+
align-items: center;
|
|
130
|
+
justify-content: center;
|
|
131
|
+
color: #fff;
|
|
132
|
+
border: 1px solid #FF8650;
|
|
133
|
+
background-color: #FF8650;
|
|
134
|
+
border-radius: 8px;
|
|
135
|
+
font-weight: 600;
|
|
136
|
+
font-size: 14px;
|
|
137
|
+
|
|
138
|
+
&:hover {
|
|
139
|
+
background-color: #FF8650;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
127
142
|
}
|
|
128
143
|
|
|
129
144
|
}
|
|
@@ -230,10 +230,6 @@ function ProductFilterModal(props) {
|
|
|
230
230
|
};
|
|
231
231
|
|
|
232
232
|
return /*#__PURE__*/_react["default"].createElement(_PopUpModal["default"], {
|
|
233
|
-
bodyStyle: {
|
|
234
|
-
height: '80vh'
|
|
235
|
-
},
|
|
236
|
-
hideCloseBtn: true,
|
|
237
233
|
onClose: onClose,
|
|
238
234
|
visible: visible
|
|
239
235
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -329,13 +325,12 @@ function ProductFilterModal(props) {
|
|
|
329
325
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
330
326
|
className: "bottomWrap"
|
|
331
327
|
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
328
|
+
className: "btn-reset",
|
|
332
329
|
onClick: onReset,
|
|
333
330
|
plain: true
|
|
334
331
|
}, (0, _locale.i18n)('RESET')), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
marginLeft: '20px'
|
|
338
|
-
}
|
|
332
|
+
className: "btn-confirm",
|
|
333
|
+
onClick: onApply
|
|
339
334
|
}, (0, _locale.i18n)('APPLY'))), /*#__PURE__*/_react["default"].createElement(_FilterSearchModal["default"], {
|
|
340
335
|
filterInfo: keyInfo[detailKey],
|
|
341
336
|
onClose: function onClose() {
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
height: calc(80vh - 40px);
|
|
4
4
|
overflow-y: scroll;
|
|
5
5
|
overflow-x: hidden;
|
|
6
|
-
padding: 0 20px 78px 20px;
|
|
7
6
|
box-sizing: border-box;
|
|
8
7
|
|
|
9
8
|
.item {
|
|
@@ -53,7 +52,7 @@
|
|
|
53
52
|
.btnMore {
|
|
54
53
|
font-weight: 600;
|
|
55
54
|
font-size: 14px;
|
|
56
|
-
color:
|
|
55
|
+
color: #FF8650;
|
|
57
56
|
margin-top: 6px;
|
|
58
57
|
margin-left: 10px;
|
|
59
58
|
}
|
|
@@ -64,9 +63,49 @@
|
|
|
64
63
|
.bottomWrap {
|
|
65
64
|
position: fixed;
|
|
66
65
|
bottom: 0;
|
|
66
|
+
left: 0;
|
|
67
|
+
right: 0;
|
|
67
68
|
background: #fff;
|
|
68
69
|
width: 100%;
|
|
69
70
|
height: 78px;
|
|
70
71
|
padding: 12px 24px;
|
|
71
72
|
display: flex;
|
|
73
|
+
gap: 20px;
|
|
74
|
+
justify-content: space-between;
|
|
75
|
+
|
|
76
|
+
.btn-reset {
|
|
77
|
+
display: flex;
|
|
78
|
+
flex: 1 1;
|
|
79
|
+
height: 54px;
|
|
80
|
+
align-items: center;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
color: #FF8650;
|
|
83
|
+
border: 1px solid #FF8650;
|
|
84
|
+
background-color: #fff;
|
|
85
|
+
border-radius: 8px;
|
|
86
|
+
font-weight: 600;
|
|
87
|
+
font-size: 14px;
|
|
88
|
+
|
|
89
|
+
&:hover {
|
|
90
|
+
background-color: #fff;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.btn-confirm {
|
|
95
|
+
display: flex;
|
|
96
|
+
flex: 1 1;
|
|
97
|
+
height: 54px;
|
|
98
|
+
align-items: center;
|
|
99
|
+
justify-content: center;
|
|
100
|
+
color: #fff;
|
|
101
|
+
border: 1px solid #FF8650;
|
|
102
|
+
background-color: #FF8650;
|
|
103
|
+
border-radius: 8px;
|
|
104
|
+
font-weight: 600;
|
|
105
|
+
font-size: 14px;
|
|
106
|
+
|
|
107
|
+
&:hover {
|
|
108
|
+
background-color: #FF8650;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
72
111
|
}
|
package/es/common/Tag/index.less
CHANGED
|
@@ -225,21 +225,18 @@ function (_super) {
|
|
|
225
225
|
|
|
226
226
|
_this.getData = function () {
|
|
227
227
|
return __awaiter(_this, void 0, void 0, function () {
|
|
228
|
-
var
|
|
228
|
+
var res, list;
|
|
229
229
|
return __generator(this, function (_a) {
|
|
230
230
|
switch (_a.label) {
|
|
231
231
|
case 0:
|
|
232
|
-
maxProdNum = this.props.panelProps.content.maxProdNum;
|
|
233
232
|
return [4
|
|
234
233
|
/*yield*/
|
|
235
234
|
, (0, _commonUtil.commonFetch)('/designer/v1/h5/offers', {
|
|
236
235
|
pageIndex: 1,
|
|
237
|
-
pageSize:
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
aggregation: false,
|
|
242
|
-
storeId: window.magicDesign.storeId >= 0 ? window.magicDesign.storeId : ''
|
|
236
|
+
pageSize: 50,
|
|
237
|
+
qryStorePage: 'Y',
|
|
238
|
+
storeOfferCnt: 0,
|
|
239
|
+
campaignType: '2,14'
|
|
243
240
|
}, 'POST')];
|
|
244
241
|
|
|
245
242
|
case 1:
|
|
@@ -402,7 +402,7 @@ function (_super) {
|
|
|
402
402
|
}), panelProps.title.headline.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
403
403
|
className: "title",
|
|
404
404
|
data: panelProps.title.headline
|
|
405
|
-
}), /*#__PURE__*/_react["default"].createElement(_MonpayCountDown["default"], {
|
|
405
|
+
}), panelProps.title.countdown.open && /*#__PURE__*/_react["default"].createElement(_MonpayCountDown["default"], {
|
|
406
406
|
bgColor: panelProps.title.countdown.backgroundColor,
|
|
407
407
|
effDate: effDate,
|
|
408
408
|
expDate: expDate,
|
|
@@ -505,7 +505,7 @@ function (_super) {
|
|
|
505
505
|
}), panelProps.title.headline.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
506
506
|
className: "title",
|
|
507
507
|
data: panelProps.title.headline
|
|
508
|
-
}), /*#__PURE__*/_react["default"].createElement(_MonpayCountDown["default"], {
|
|
508
|
+
}), panelProps.title.countdown.open && /*#__PURE__*/_react["default"].createElement(_MonpayCountDown["default"], {
|
|
509
509
|
bgColor: panelProps.title.countdown.backgroundColor,
|
|
510
510
|
effDate: effDate,
|
|
511
511
|
expDate: expDate,
|
|
@@ -362,9 +362,9 @@ function (_super) {
|
|
|
362
362
|
}, '#CE1126') : '#CE1126';
|
|
363
363
|
};
|
|
364
364
|
|
|
365
|
-
_this.getProductList = function (index) {
|
|
365
|
+
_this.getProductList = function (index, filterParams) {
|
|
366
366
|
return __awaiter(_this, void 0, void 0, function () {
|
|
367
|
-
var panelProps, groupSource, recommendId, pageId, cache, _a, _b, sourceType, _c, prodIds, _d, prodType, _e, intelligentType, _f, intelligentValue, _g, maxProdNum, newData, params, res, res, _h, pageInfo, brandIds, catgIds, offerAttrValues,
|
|
367
|
+
var panelProps, groupSource, recommendId, pageId, cache, _a, _b, sourceType, _c, prodIds, _d, prodType, _e, intelligentType, _f, intelligentValue, _g, maxProdNum, newData, params, res, res, _h, pageInfo, serviceIds, brandIds, catgIds, offerAttrValues, e_1, _cache;
|
|
368
368
|
|
|
369
369
|
var _j, _k, _l;
|
|
370
370
|
|
|
@@ -468,7 +468,7 @@ function (_super) {
|
|
|
468
468
|
case 7:
|
|
469
469
|
return [4
|
|
470
470
|
/*yield*/
|
|
471
|
-
, (0, _commonUtil.commonFetch)('/designer/v1/h5/offers', {
|
|
471
|
+
, (0, _commonUtil.commonFetch)('/designer/v1/h5/offers', __assign({
|
|
472
472
|
pageIndex: 1,
|
|
473
473
|
pageSize: maxProdNum,
|
|
474
474
|
sortType: '1',
|
|
@@ -476,16 +476,16 @@ function (_super) {
|
|
|
476
476
|
intelligentValue: intelligentValue.join(','),
|
|
477
477
|
aggregation: false,
|
|
478
478
|
storeId: window.magicDesign.storeId >= 0 ? window.magicDesign.storeId : ''
|
|
479
|
-
}, 'POST')];
|
|
479
|
+
}, filterParams), 'POST')];
|
|
480
480
|
|
|
481
481
|
case 8:
|
|
482
|
-
_h = _m.sent(), pageInfo = _h.pageInfo,
|
|
482
|
+
_h = _m.sent(), pageInfo = _h.pageInfo, serviceIds = _h.serviceIds, brandIds = _h.brandIds, catgIds = _h.catgIds, offerAttrValues = _h.offerAttrValues;
|
|
483
483
|
this.setState({
|
|
484
484
|
filterObj: {
|
|
485
|
+
serviceIds: serviceIds,
|
|
485
486
|
brandIds: brandIds,
|
|
486
487
|
catgIds: catgIds,
|
|
487
|
-
offerAttrValues: offerAttrValues
|
|
488
|
-
serviceIds: serviceIds
|
|
488
|
+
offerAttrValues: offerAttrValues
|
|
489
489
|
}
|
|
490
490
|
});
|
|
491
491
|
newData = __spreadArrays(pageInfo.list);
|
|
@@ -592,8 +592,11 @@ function (_super) {
|
|
|
592
592
|
_this.onSearchCondChange = function (cond) {
|
|
593
593
|
_this.setState({
|
|
594
594
|
searchParams: cond
|
|
595
|
-
});
|
|
595
|
+
});
|
|
596
|
+
|
|
597
|
+
var tabIndex = _this.state.tabIndex;
|
|
596
598
|
|
|
599
|
+
_this.getProductList(tabIndex, cond);
|
|
597
600
|
};
|
|
598
601
|
|
|
599
602
|
return _this;
|
package/es/constants/index.js
CHANGED
package/es/locale/en/en.json
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
+
"OK": "OK",
|
|
3
|
+
"BRANDS": "Brands",
|
|
4
|
+
"CATEGORY": "Category",
|
|
5
|
+
"SERVICE": "Service",
|
|
6
|
+
"RATINGS": "Ratings",
|
|
7
|
+
"STAR": "Star",
|
|
8
|
+
"APPLY": "Apply",
|
|
2
9
|
"SORT_BY": "Sort by",
|
|
3
10
|
"PROMOTION": "Promotion",
|
|
4
11
|
"HIGHEST_RATED": "Highest rated",
|
|
@@ -158,7 +165,6 @@
|
|
|
158
165
|
"ALL": "ALL",
|
|
159
166
|
"HOT": "Hot",
|
|
160
167
|
"GUESS_YOU_LIKE": "Guess you like",
|
|
161
|
-
"CATEGORY": "Category",
|
|
162
168
|
"LABEL": "Label",
|
|
163
169
|
"UNDERLINE_STYLE": "Underline Style",
|
|
164
170
|
"UNDERLINE_COLOR": "Underline Color",
|
|
@@ -214,7 +220,6 @@
|
|
|
214
220
|
"GROUP_BY": "Group By",
|
|
215
221
|
"FLASH_SALE": "Flash Sale",
|
|
216
222
|
"THE_PRODUCT_QUANTITY_WILL_BE_AUTOMATICALLY_UPDATED_WITH_THE_ITEMS_THAT_MEET_THE_CATEGORY_CONDITIONS": "The product quantity will be automatically updated with the items that meet the category conditions",
|
|
217
|
-
"OK": "OK",
|
|
218
223
|
"CANCEL": "Cancel",
|
|
219
224
|
"LINK_TYPE": "Link Type",
|
|
220
225
|
"LOOKS_LIKE_YOU_DO_NOT_HAVE_ANY_IMAGES_IN_YOUR_GALLERY__CHOOSE_IMAGES_TO_FEATURE_ON_THIS_PAGE_": "Looks like you do not have any images in your gallery. Choose images to feature on this page.",
|
package/es/locale/es/es.json
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
+
"OK": "OK",
|
|
3
|
+
"BRANDS": "Brands",
|
|
4
|
+
"CATEGORY": "Categoría",
|
|
5
|
+
"SERVICE": "Service",
|
|
6
|
+
"RATINGS": "Ratings",
|
|
7
|
+
"STAR": "Star",
|
|
8
|
+
"APPLY": "Apply",
|
|
2
9
|
"SORT_BY": "Sort by",
|
|
3
10
|
"PROMOTION": "Promotion",
|
|
4
11
|
"HIGHEST_RATED": "Highest rated",
|
|
@@ -158,7 +165,6 @@
|
|
|
158
165
|
"ALL": "TODO",
|
|
159
166
|
"HOT": "Caliente",
|
|
160
167
|
"GUESS_YOU_LIKE": "Supongo que te gusta",
|
|
161
|
-
"CATEGORY": "Categoría",
|
|
162
168
|
"LABEL": "Etiqueta",
|
|
163
169
|
"UNDERLINE_STYLE": "Estilo de subrayado",
|
|
164
170
|
"UNDERLINE_COLOR": "Color de subrayado",
|
|
@@ -214,7 +220,6 @@
|
|
|
214
220
|
"GROUP_BY": "Agrupar por",
|
|
215
221
|
"FLASH_SALE": "Oferta relámpago",
|
|
216
222
|
"THE_PRODUCT_QUANTITY_WILL_BE_AUTOMATICALLY_UPDATED_WITH_THE_ITEMS_THAT_MEET_THE_CATEGORY_CONDITIONS": "La cantidad del producto se actualizará automáticamente con los artículos que cumplan con las condiciones de la categoría",
|
|
217
|
-
"OK": "OK",
|
|
218
223
|
"CANCEL": "Cancelar",
|
|
219
224
|
"LINK_TYPE": "Tipo de enlace",
|
|
220
225
|
"LOOKS_LIKE_YOU_DO_NOT_HAVE_ANY_IMAGES_IN_YOUR_GALLERY__CHOOSE_IMAGES_TO_FEATURE_ON_THIS_PAGE_": "Parece que no tiene ninguna imagen en su galería. Elija imágenes para mostrar en esta página.",
|
package/es/locale/id/id.json
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
+
"OK": "OK",
|
|
3
|
+
"BRANDS": "Brands",
|
|
4
|
+
"CATEGORY": "Category",
|
|
5
|
+
"SERVICE": "Service",
|
|
6
|
+
"RATINGS": "Ratings",
|
|
7
|
+
"STAR": "Star",
|
|
8
|
+
"APPLY": "Apply",
|
|
2
9
|
"SORT_BY": "Sort by",
|
|
3
10
|
"PROMOTION": "Promotion",
|
|
4
11
|
"HIGHEST_RATED": "Highest rated",
|
|
@@ -158,7 +165,6 @@
|
|
|
158
165
|
"ALL": "ALL",
|
|
159
166
|
"HOT": "Hot",
|
|
160
167
|
"GUESS_YOU_LIKE": "Guess you like",
|
|
161
|
-
"CATEGORY": "Category",
|
|
162
168
|
"LABEL": "Label",
|
|
163
169
|
"UNDERLINE_STYLE": "Underline Style",
|
|
164
170
|
"UNDERLINE_COLOR": "Underline Color",
|
|
@@ -214,7 +220,6 @@
|
|
|
214
220
|
"GROUP_BY": "Group By",
|
|
215
221
|
"FLASH_SALE": "Flash Sale",
|
|
216
222
|
"THE_PRODUCT_QUANTITY_WILL_BE_AUTOMATICALLY_UPDATED_WITH_THE_ITEMS_THAT_MEET_THE_CATEGORY_CONDITIONS": "The product quantity will be automatically updated with the items that meet the category conditions",
|
|
217
|
-
"OK": "OK",
|
|
218
223
|
"CANCEL": "Cancel",
|
|
219
224
|
"LINK_TYPE": "Link Type",
|
|
220
225
|
"LOOKS_LIKE_YOU_DO_NOT_HAVE_ANY_IMAGES_IN_YOUR_GALLERY__CHOOSE_IMAGES_TO_FEATURE_ON_THIS_PAGE_": "Looks like you do not have any images in your gallery. Choose images to feature on this page.",
|