@fonixtree/magic-design 2.0.101 → 2.0.103
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 +4 -8
- package/es/common/ProductFilterModal/index.less +94 -53
- package/es/common/Tag/index.less +2 -2
- package/es/composite-comp/monpay/components/InterestProducts/mobile/ProductItem/index.js +1 -3
- package/es/composite-comp/monpay/components/InterestProducts/mobile/ProductItem/index.less +1 -6
- package/es/composite-comp/monpay/components/InterestProducts/mobile/index.js +29 -3
- 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 +4 -8
- package/lib/common/ProductFilterModal/index.less +94 -53
- package/lib/common/Tag/index.less +2 -2
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/ProductItem/index.js +1 -3
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/ProductItem/index.less +1 -6
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/index.js +29 -3
- 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
|
@@ -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,7 @@ function ProductFilterModal(props) {
|
|
|
230
230
|
};
|
|
231
231
|
|
|
232
232
|
return /*#__PURE__*/_react["default"].createElement(_PopUpModal["default"], {
|
|
233
|
-
|
|
234
|
-
height: '80vh'
|
|
235
|
-
},
|
|
236
|
-
hideCloseBtn: true,
|
|
233
|
+
className: "productFilterModal",
|
|
237
234
|
onClose: onClose,
|
|
238
235
|
visible: visible
|
|
239
236
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -329,13 +326,12 @@ function ProductFilterModal(props) {
|
|
|
329
326
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
330
327
|
className: "bottomWrap"
|
|
331
328
|
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
329
|
+
className: "btn-reset",
|
|
332
330
|
onClick: onReset,
|
|
333
331
|
plain: true
|
|
334
332
|
}, (0, _locale.i18n)('RESET')), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
marginLeft: '20px'
|
|
338
|
-
}
|
|
333
|
+
className: "btn-confirm",
|
|
334
|
+
onClick: onApply
|
|
339
335
|
}, (0, _locale.i18n)('APPLY'))), /*#__PURE__*/_react["default"].createElement(_FilterSearchModal["default"], {
|
|
340
336
|
filterInfo: keyInfo[detailKey],
|
|
341
337
|
onClose: function onClose() {
|
|
@@ -1,72 +1,113 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
.productFilterModal {
|
|
2
|
+
.productFilterWrap {
|
|
3
|
+
background: #ffffff;
|
|
4
|
+
height: calc(80vh - 40px);
|
|
5
|
+
overflow-y: scroll;
|
|
6
|
+
overflow-x: hidden;
|
|
7
|
+
box-sizing: border-box;
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
.item {
|
|
10
|
+
margin-top: 20px;
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
.inputWrap {
|
|
13
|
+
margin-top: 10px;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: space-between;
|
|
17
|
+
|
|
18
|
+
.divider {
|
|
19
|
+
padding: 0 10px;
|
|
20
|
+
flex-shrink: 0;
|
|
21
|
+
height: 2px;
|
|
22
|
+
width: 11px;
|
|
23
|
+
background-color: #000;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
input {
|
|
27
|
+
width: 45%;
|
|
28
|
+
height: 48px;
|
|
29
|
+
border: 1px solid #E4E4E4;
|
|
30
|
+
box-shadow: none;
|
|
31
|
+
padding: 12px;
|
|
32
|
+
border-radius: 4px;
|
|
33
|
+
outline: none;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
17
36
|
|
|
18
|
-
.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
37
|
+
.title {
|
|
38
|
+
line-height: 24px;
|
|
39
|
+
font-size: 16px;
|
|
40
|
+
font-weight: 600;
|
|
41
|
+
color: #000;
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: space-between;
|
|
24
45
|
}
|
|
25
46
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
47
|
+
.accordionContentWrap {
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-wrap: wrap;
|
|
50
|
+
align-items: center;
|
|
51
|
+
padding-bottom: 1px;
|
|
52
|
+
|
|
53
|
+
.btnMore {
|
|
54
|
+
font-weight: 600;
|
|
55
|
+
font-size: 14px;
|
|
56
|
+
color: #FF8650;
|
|
57
|
+
margin-top: 6px;
|
|
58
|
+
margin-left: 10px;
|
|
59
|
+
}
|
|
34
60
|
}
|
|
35
61
|
}
|
|
62
|
+
}
|
|
36
63
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
64
|
+
.bottomWrap {
|
|
65
|
+
position: fixed;
|
|
66
|
+
bottom: 0;
|
|
67
|
+
left: 0;
|
|
68
|
+
right: 0;
|
|
69
|
+
background: #fff;
|
|
70
|
+
width: 100%;
|
|
71
|
+
height: 78px;
|
|
72
|
+
padding: 12px 24px;
|
|
73
|
+
display: flex;
|
|
74
|
+
gap: 20px;
|
|
75
|
+
justify-content: space-between;
|
|
76
|
+
|
|
77
|
+
.btn-reset {
|
|
42
78
|
display: flex;
|
|
79
|
+
flex: 1 1;
|
|
80
|
+
height: 54px;
|
|
43
81
|
align-items: center;
|
|
44
|
-
justify-content:
|
|
82
|
+
justify-content: center;
|
|
83
|
+
color: #FF8650;
|
|
84
|
+
border: 1px solid #FF8650;
|
|
85
|
+
background-color: #fff;
|
|
86
|
+
border-radius: 8px;
|
|
87
|
+
font-weight: 600;
|
|
88
|
+
font-size: 14px;
|
|
89
|
+
|
|
90
|
+
&:hover {
|
|
91
|
+
background-color: #fff;
|
|
92
|
+
}
|
|
45
93
|
}
|
|
46
94
|
|
|
47
|
-
.
|
|
95
|
+
.btn-confirm {
|
|
48
96
|
display: flex;
|
|
49
|
-
flex
|
|
97
|
+
flex: 1 1;
|
|
98
|
+
height: 54px;
|
|
50
99
|
align-items: center;
|
|
51
|
-
|
|
100
|
+
justify-content: center;
|
|
101
|
+
color: #fff;
|
|
102
|
+
border: 1px solid #FF8650;
|
|
103
|
+
background-color: #FF8650;
|
|
104
|
+
border-radius: 8px;
|
|
105
|
+
font-weight: 600;
|
|
106
|
+
font-size: 14px;
|
|
52
107
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
font-size: 14px;
|
|
56
|
-
color: var(--theme-color);
|
|
57
|
-
margin-top: 6px;
|
|
58
|
-
margin-left: 10px;
|
|
108
|
+
&:hover {
|
|
109
|
+
background-color: #FF8650;
|
|
59
110
|
}
|
|
60
111
|
}
|
|
61
112
|
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.bottomWrap {
|
|
65
|
-
position: fixed;
|
|
66
|
-
bottom: 0;
|
|
67
|
-
background: #fff;
|
|
68
|
-
width: 100%;
|
|
69
|
-
height: 78px;
|
|
70
|
-
padding: 12px 24px;
|
|
71
|
-
display: flex;
|
|
72
113
|
}
|
|
@@ -164,8 +164,6 @@ function (_super) {
|
|
|
164
164
|
}, oldPrice && /*#__PURE__*/_react["default"].createElement("div", {
|
|
165
165
|
className: "old-price"
|
|
166
166
|
}, oldPrice)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
167
|
-
className: "shipping-price"
|
|
168
|
-
}, oldPrice), /*#__PURE__*/_react["default"].createElement("div", {
|
|
169
167
|
className: "rate-sold-wrap"
|
|
170
168
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
171
169
|
className: "evaluation-score"
|
|
@@ -179,7 +177,7 @@ function (_super) {
|
|
|
179
177
|
className: "line"
|
|
180
178
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
181
179
|
className: "sold"
|
|
182
|
-
}, "Sold
|
|
180
|
+
}, "Sold ", soldNumber || 0, "+"))));
|
|
183
181
|
};
|
|
184
182
|
|
|
185
183
|
ProductItem.defaultProps = {
|
|
@@ -102,15 +102,10 @@
|
|
|
102
102
|
font-size: 0.24rem;
|
|
103
103
|
color: #FA7373;
|
|
104
104
|
}
|
|
105
|
-
.monpay-interest-product-item-wrap .content-wrap .shipping-price {
|
|
106
|
-
font-weight: 400;
|
|
107
|
-
font-size: 0.24rem;
|
|
108
|
-
color: #545454;
|
|
109
|
-
margin-top: 0.16rem;
|
|
110
|
-
}
|
|
111
105
|
.monpay-interest-product-item-wrap .content-wrap .rate-sold-wrap {
|
|
112
106
|
display: flex;
|
|
113
107
|
align-items: center;
|
|
108
|
+
margin-top: 0.1rem;
|
|
114
109
|
}
|
|
115
110
|
.monpay-interest-product-item-wrap .content-wrap .rate-sold-wrap .evaluation-score {
|
|
116
111
|
display: inline-flex;
|
|
@@ -51,6 +51,22 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
51
51
|
};
|
|
52
52
|
}();
|
|
53
53
|
|
|
54
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
55
|
+
__assign = Object.assign || function (t) {
|
|
56
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
57
|
+
s = arguments[i];
|
|
58
|
+
|
|
59
|
+
for (var p in s) {
|
|
60
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return t;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
return __assign.apply(this, arguments);
|
|
68
|
+
};
|
|
69
|
+
|
|
54
70
|
var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
|
|
55
71
|
function adopt(value) {
|
|
56
72
|
return value instanceof P ? value : new P(function (resolve) {
|
|
@@ -204,6 +220,7 @@ var defaultData = [{
|
|
|
204
220
|
marketPrice: 19000000,
|
|
205
221
|
discountPercent: 10,
|
|
206
222
|
salePercent: 500,
|
|
223
|
+
salesCnt: 501,
|
|
207
224
|
sppType: '2'
|
|
208
225
|
}, {
|
|
209
226
|
imgUrlContent: {
|
|
@@ -215,6 +232,7 @@ var defaultData = [{
|
|
|
215
232
|
marketPrice: 19000000,
|
|
216
233
|
discountPercent: 10,
|
|
217
234
|
salePercent: 500,
|
|
235
|
+
salesCnt: 501,
|
|
218
236
|
sppType: '2'
|
|
219
237
|
}, {
|
|
220
238
|
imgUrlContent: {
|
|
@@ -226,6 +244,7 @@ var defaultData = [{
|
|
|
226
244
|
marketPrice: 19000000,
|
|
227
245
|
discountPercent: 10,
|
|
228
246
|
salePercent: 500,
|
|
247
|
+
salesCnt: 501,
|
|
229
248
|
sppType: '2'
|
|
230
249
|
}, {
|
|
231
250
|
imgUrlContent: {
|
|
@@ -237,6 +256,7 @@ var defaultData = [{
|
|
|
237
256
|
marketPrice: 19000000,
|
|
238
257
|
discountPercent: 10,
|
|
239
258
|
salePercent: 500,
|
|
259
|
+
salesCnt: 501,
|
|
240
260
|
sppType: '2'
|
|
241
261
|
}];
|
|
242
262
|
|
|
@@ -249,6 +269,7 @@ function (_super) {
|
|
|
249
269
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
250
270
|
|
|
251
271
|
_this.state = {
|
|
272
|
+
interestName: '',
|
|
252
273
|
list: (0, _coreUtil.isDesignMode)() ? defaultData : (0, _commonUtil.ensure)(function () {
|
|
253
274
|
return (0, _storeUtil.getMagicStore)("interestProducts_" + (window.magicDesign.pageId || '') + "_" + _this.props.panelProps.id);
|
|
254
275
|
}, [])
|
|
@@ -280,7 +301,7 @@ function (_super) {
|
|
|
280
301
|
maxProdNum = this.props.panelProps.content.maxProdNum;
|
|
281
302
|
return [4
|
|
282
303
|
/*yield*/
|
|
283
|
-
, (0, _commonUtil.commonFetch)('/designer/v1/h5/offers', {
|
|
304
|
+
, (0, _commonUtil.commonFetch)('/designer/v1/h5/offers/interest', {
|
|
284
305
|
pageIndex: 1,
|
|
285
306
|
pageSize: maxProdNum,
|
|
286
307
|
interested: true
|
|
@@ -290,6 +311,7 @@ function (_super) {
|
|
|
290
311
|
res = _a.sent();
|
|
291
312
|
list = res.pageInfo.list;
|
|
292
313
|
this.setState({
|
|
314
|
+
interestName: res.interest.interestName,
|
|
293
315
|
list: list
|
|
294
316
|
});
|
|
295
317
|
this.getMacy();
|
|
@@ -315,14 +337,18 @@ function (_super) {
|
|
|
315
337
|
|
|
316
338
|
InterestProductsMobile.prototype.render = function () {
|
|
317
339
|
var panelProps = this.props.panelProps;
|
|
318
|
-
var
|
|
340
|
+
var _a = this.state,
|
|
341
|
+
interestName = _a.interestName,
|
|
342
|
+
list = _a.list;
|
|
319
343
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
320
344
|
className: "monpay-interest-products-mobile"
|
|
321
345
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
322
346
|
className: "interest-products-title"
|
|
323
347
|
}, panelProps.title.headline.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
324
348
|
className: "text",
|
|
325
|
-
data: panelProps.title.headline
|
|
349
|
+
data: __assign(__assign({}, panelProps.title.headline), {
|
|
350
|
+
text: interestName
|
|
351
|
+
})
|
|
326
352
|
}), panelProps.title.seeAll.open && /*#__PURE__*/_react["default"].createElement("span", {
|
|
327
353
|
className: "btn"
|
|
328
354
|
}, "See All")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -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/lib/constants/index.js
CHANGED
package/lib/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/lib/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/lib/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.",
|
|
@@ -99,7 +99,7 @@ function (_super) {
|
|
|
99
99
|
this.preData = JSON.stringify(data);
|
|
100
100
|
this.preDevice = window.magicDesign.device;
|
|
101
101
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
102
|
-
className: "item",
|
|
102
|
+
className: "editable-item",
|
|
103
103
|
contentEditable: (0, _coreUtil.isDesignMode)() && !readonly,
|
|
104
104
|
onInput: function onInput(e) {
|
|
105
105
|
var text = e.target.textContent;
|