@fonixtree/magic-design 2.0.143 → 2.0.147
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/common/AffiliateProductModal/index.js +4 -4
- package/es/common/ColorPickerInput/index.js +3 -1
- package/es/common/FontStyles/index.js +2 -2
- package/es/common/FontStyles/index.less +5 -9
- package/es/common/ImageModal/CommonModal/index.js +4 -2
- package/es/common/ImageModal/index.js +1 -1
- package/es/common/ProductFilterModal/index.js +1 -1
- package/es/common/ProductModal/index.js +8 -8
- package/es/composite-comp/bol/components/Wallet/mobile/index.js +11 -9
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +5 -5
- package/es/composite-comp/common/components/MonpayProductItem/index.js +3 -2
- package/es/composite-comp/monpay/components/Bundle/mobile/BundleItem/index.less +1 -0
- package/es/composite-comp/monpay/components/Bundle/mobile/index.js +10 -5
- package/es/composite-comp/monpay/components/InterestProducts/mobile/index.js +3 -1
- package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +2 -2
- package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.js +1 -1
- package/es/core/Designer/AiImageGenerator/GenerateArtist/index.js +6 -4
- package/es/core/Designer/AiImageGenerator/index.js +10 -10
- package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +7 -5
- package/es/core/Designer/ChatRobot/index.js +4 -4
- package/es/locale/en/en.json +52 -13
- package/es/locale/es/es.json +52 -13
- package/es/locale/mn/mn.json +53 -14
- package/lib/assets/fonts/.DS_Store +0 -0
- package/lib/common/AffiliateProductModal/index.js +4 -4
- package/lib/common/ColorPickerInput/index.js +3 -1
- package/lib/common/FontStyles/index.js +2 -2
- package/lib/common/FontStyles/index.less +5 -9
- package/lib/common/ImageModal/CommonModal/index.js +4 -2
- package/lib/common/ImageModal/index.js +1 -1
- package/lib/common/ProductFilterModal/index.js +1 -1
- package/lib/common/ProductModal/index.js +8 -8
- package/lib/composite-comp/bol/components/Wallet/mobile/index.js +11 -9
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +5 -5
- package/lib/composite-comp/common/components/MonpayProductItem/index.js +3 -2
- package/lib/composite-comp/monpay/components/Bundle/mobile/BundleItem/index.less +1 -0
- package/lib/composite-comp/monpay/components/Bundle/mobile/index.js +10 -5
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/index.js +3 -1
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +2 -2
- package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.js +1 -1
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/index.js +6 -4
- package/lib/core/Designer/AiImageGenerator/index.js +10 -10
- package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +7 -5
- package/lib/core/Designer/ChatRobot/index.js +4 -4
- package/lib/locale/en/en.json +52 -13
- package/lib/locale/es/es.json +52 -13
- package/lib/locale/mn/mn.json +53 -14
- package/package.json +1 -1
|
Binary file
|
|
@@ -441,13 +441,13 @@ var AffiliateProductModal = function AffiliateProductModal(props) {
|
|
|
441
441
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
|
|
442
442
|
layout: "vertical"
|
|
443
443
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
444
|
-
label:
|
|
444
|
+
label: (0, _locale.i18n)('CATEGORY')
|
|
445
445
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select // defaultValue={data[0].id}
|
|
446
446
|
, {
|
|
447
447
|
onChange: function onChange(value) {
|
|
448
448
|
setSelCatgsList(value);
|
|
449
449
|
},
|
|
450
|
-
placeholder:
|
|
450
|
+
placeholder: (0, _locale.i18n)('PLEASE_INPUT'),
|
|
451
451
|
style: {
|
|
452
452
|
width: 241
|
|
453
453
|
}
|
|
@@ -457,7 +457,7 @@ var AffiliateProductModal = function AffiliateProductModal(props) {
|
|
|
457
457
|
value: item.affiliateCatgId
|
|
458
458
|
}, item.catgName);
|
|
459
459
|
}))), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
460
|
-
label:
|
|
460
|
+
label: (0, _locale.i18n)('PRODUCT_NAME')
|
|
461
461
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
462
462
|
onChange: function onChange(e) {
|
|
463
463
|
setProductName(e.target.value);
|
|
@@ -466,7 +466,7 @@ var AffiliateProductModal = function AffiliateProductModal(props) {
|
|
|
466
466
|
size: "small",
|
|
467
467
|
value: productName
|
|
468
468
|
})), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
469
|
-
label:
|
|
469
|
+
label: (0, _locale.i18n)('SKU_CODE')
|
|
470
470
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
471
471
|
className: "inputStyle",
|
|
472
472
|
onChange: function onChange(e) {
|
|
@@ -11,6 +11,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
11
11
|
|
|
12
12
|
require("./index.less");
|
|
13
13
|
|
|
14
|
+
var _locale = require("../../locale");
|
|
15
|
+
|
|
14
16
|
var _ColorPicker = _interopRequireDefault(require("../ColorPicker"));
|
|
15
17
|
|
|
16
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -85,7 +87,7 @@ function (_super) {
|
|
|
85
87
|
}
|
|
86
88
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
87
89
|
className: "color-value"
|
|
88
|
-
}, value || '
|
|
90
|
+
}, value || (0, _locale.i18n)('TRANSPARENT'))), /*#__PURE__*/_react["default"].createElement(_ColorPicker["default"], {
|
|
89
91
|
color: value,
|
|
90
92
|
onChangeColor: function onChangeColor(color) {
|
|
91
93
|
return onChange(color);
|
|
@@ -118,7 +118,7 @@ function (_super) {
|
|
|
118
118
|
size: "20px",
|
|
119
119
|
type: "icon-italic"
|
|
120
120
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
121
|
-
className: "item
|
|
121
|
+
className: "item",
|
|
122
122
|
onClick: function onClick() {
|
|
123
123
|
return _this.setState({
|
|
124
124
|
visibility: true,
|
|
@@ -135,7 +135,7 @@ function (_super) {
|
|
|
135
135
|
backgroundColor: value.color
|
|
136
136
|
}
|
|
137
137
|
})), showBgColor && /*#__PURE__*/_react["default"].createElement("span", {
|
|
138
|
-
className: "item
|
|
138
|
+
className: "item",
|
|
139
139
|
onClick: function onClick() {
|
|
140
140
|
return _this.setState({
|
|
141
141
|
visibility: true,
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
position: relative;
|
|
5
5
|
|
|
6
6
|
.item {
|
|
7
|
-
display: inline-block;
|
|
8
7
|
min-width: 40px;
|
|
9
8
|
height: 40px;
|
|
10
9
|
line-height: 45px;
|
|
@@ -13,19 +12,15 @@
|
|
|
13
12
|
border-radius: 6px;
|
|
14
13
|
margin-right: 12px;
|
|
15
14
|
cursor: pointer;
|
|
16
|
-
display: flex;
|
|
17
|
-
|
|
18
|
-
&.active {
|
|
19
|
-
background: #E9F0FF;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.item-color {
|
|
24
15
|
display: inline-flex;
|
|
25
16
|
align-items: center;
|
|
26
17
|
justify-content: center;
|
|
27
18
|
flex-direction: column;
|
|
28
19
|
|
|
20
|
+
&.active {
|
|
21
|
+
background: #E9F0FF;
|
|
22
|
+
}
|
|
23
|
+
|
|
29
24
|
.text-color-line {
|
|
30
25
|
display: block;
|
|
31
26
|
width: 15px;
|
|
@@ -37,6 +32,7 @@
|
|
|
37
32
|
}
|
|
38
33
|
|
|
39
34
|
.item-text-align {
|
|
35
|
+
flex-direction: row;
|
|
40
36
|
padding: 0 9px;
|
|
41
37
|
margin-right: 0;
|
|
42
38
|
cursor: default;
|
|
@@ -11,6 +11,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _const = require("./const");
|
|
13
13
|
|
|
14
|
+
var _locale = require("../../../locale");
|
|
15
|
+
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
17
|
|
|
16
18
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -32,8 +34,8 @@ function CommonModal(_a) {
|
|
|
32
34
|
centered: true,
|
|
33
35
|
maskClosable: false,
|
|
34
36
|
destroyOnClose: true,
|
|
35
|
-
okText: okText || '
|
|
36
|
-
cancelText: cancelText || '
|
|
37
|
+
okText: okText || (0, _locale.i18n)('CONFIRM'),
|
|
38
|
+
cancelText: cancelText || (0, _locale.i18n)('CANCEL')
|
|
37
39
|
};
|
|
38
40
|
return /*#__PURE__*/_react["default"].createElement(_antd.Modal, _extends({}, modalCommonProps, modalOpts, {
|
|
39
41
|
confirmLoading: confirmLoading,
|
|
@@ -754,7 +754,7 @@ function ImageModal(_a) {
|
|
|
754
754
|
headers: headers
|
|
755
755
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Button, null, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
756
756
|
type: "upload"
|
|
757
|
-
}),
|
|
757
|
+
}), (0, _locale.i18n)('UPLOAD')))), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
758
758
|
span: 8
|
|
759
759
|
}, /*#__PURE__*/_react["default"].createElement(Search, {
|
|
760
760
|
enterButton: true,
|
|
@@ -263,7 +263,7 @@ function ProductFilterModal(props) {
|
|
|
263
263
|
onClick: function onClick() {
|
|
264
264
|
onShowMore(key);
|
|
265
265
|
}
|
|
266
|
-
},
|
|
266
|
+
}, (0, _locale.i18n)('SHOW_MORE'))));
|
|
267
267
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
268
268
|
className: "item"
|
|
269
269
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -647,7 +647,7 @@ var ProductModal = function ProductModal(props) {
|
|
|
647
647
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
|
|
648
648
|
layout: "vertical"
|
|
649
649
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
650
|
-
label:
|
|
650
|
+
label: (0, _locale.i18n)('CATEGORY')
|
|
651
651
|
}, /*#__PURE__*/_react["default"].createElement(_antd.TreeSelect, {
|
|
652
652
|
dropdownStyle: {
|
|
653
653
|
maxHeight: 400,
|
|
@@ -665,7 +665,7 @@ var ProductModal = function ProductModal(props) {
|
|
|
665
665
|
treeDefaultExpandAll: true,
|
|
666
666
|
value: selCatgsList
|
|
667
667
|
})), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
668
|
-
label:
|
|
668
|
+
label: (0, _locale.i18n)('BRAND')
|
|
669
669
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
670
670
|
mode: "multiple",
|
|
671
671
|
onChange: function onChange(value) {
|
|
@@ -680,7 +680,7 @@ var ProductModal = function ProductModal(props) {
|
|
|
680
680
|
value: item.brandId
|
|
681
681
|
}, item.brandName);
|
|
682
682
|
}))), (0, _businessUtil.isPlatform)() && /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
683
|
-
label:
|
|
683
|
+
label: (0, _locale.i18n)('STORE')
|
|
684
684
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
685
685
|
className: "inputStyle",
|
|
686
686
|
defaultValue: [],
|
|
@@ -697,7 +697,7 @@ var ProductModal = function ProductModal(props) {
|
|
|
697
697
|
value: v.storeId
|
|
698
698
|
}, v.storeName);
|
|
699
699
|
}))), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
700
|
-
label:
|
|
700
|
+
label: (0, _locale.i18n)('LABEL')
|
|
701
701
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
702
702
|
defaultValue: selLabelData.children || null,
|
|
703
703
|
onChange: function onChange(v, o) {
|
|
@@ -712,7 +712,7 @@ var ProductModal = function ProductModal(props) {
|
|
|
712
712
|
value: v.labelId
|
|
713
713
|
}, v.labelName);
|
|
714
714
|
}))), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
715
|
-
label:
|
|
715
|
+
label: (0, _locale.i18n)('PRICE')
|
|
716
716
|
}, /*#__PURE__*/_react["default"].createElement(InputGroup, {
|
|
717
717
|
compact: true
|
|
718
718
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
@@ -738,7 +738,7 @@ var ProductModal = function ProductModal(props) {
|
|
|
738
738
|
},
|
|
739
739
|
value: maxPrice
|
|
740
740
|
}))), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
741
|
-
label:
|
|
741
|
+
label: (0, _locale.i18n)('PRODUCT_NAME')
|
|
742
742
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
743
743
|
onChange: function onChange(e) {
|
|
744
744
|
setProductName(e.target.value);
|
|
@@ -747,7 +747,7 @@ var ProductModal = function ProductModal(props) {
|
|
|
747
747
|
size: "small",
|
|
748
748
|
value: productName
|
|
749
749
|
})), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
750
|
-
label: proType === 'spu' ?
|
|
750
|
+
label: proType === 'spu' ? (0, _locale.i18n)('SPU_CODE') : (0, _locale.i18n)('SKU_CODE')
|
|
751
751
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
752
752
|
className: "inputStyle",
|
|
753
753
|
onChange: function onChange(e) {
|
|
@@ -757,7 +757,7 @@ var ProductModal = function ProductModal(props) {
|
|
|
757
757
|
size: "small",
|
|
758
758
|
value: productCode
|
|
759
759
|
})), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
760
|
-
label:
|
|
760
|
+
label: (0, _locale.i18n)('PROMOTIONS')
|
|
761
761
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
762
762
|
defaultValue: promotions,
|
|
763
763
|
onChange: function onChange(value) {
|
|
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
11
|
|
|
12
|
+
var _locale = require("../../../../../locale");
|
|
13
|
+
|
|
12
14
|
var _components = require("../../../../../meta-comp/components");
|
|
13
15
|
|
|
14
16
|
var _mobx = require("../../../../../mobx");
|
|
@@ -271,26 +273,26 @@ function (_super) {
|
|
|
271
273
|
});
|
|
272
274
|
this.setState({
|
|
273
275
|
userWalletData: (_b = {}, _b[_constants.walletType.BNPL] = {
|
|
274
|
-
amount: userCreditResps === null ? '****' : bnplObj ? (0, _currencyUtil.formatCurrencyWithSymbol)(bnplObj.availableAmount) : 'APPLY',
|
|
276
|
+
amount: userCreditResps === null ? '****' : bnplObj ? (0, _currencyUtil.formatCurrencyWithSymbol)(bnplObj.availableAmount) : (0, _locale.i18n)('APPLY'),
|
|
275
277
|
show: userCreditResps === null || [_constants.CREDIT_STATE.APPROVED.KEY].includes(bnplObj === null || bnplObj === void 0 ? void 0 : bnplObj.state)
|
|
276
278
|
}, _b[_constants.walletType.CREDIT] = {
|
|
277
|
-
amount: userCreditResps === null ? '****' : creditObj ? (0, _currencyUtil.formatCurrencyWithSymbol)(creditObj.availableAmount) : 'APPLY',
|
|
279
|
+
amount: userCreditResps === null ? '****' : creditObj ? (0, _currencyUtil.formatCurrencyWithSymbol)(creditObj.availableAmount) : (0, _locale.i18n)('APPLY'),
|
|
278
280
|
show: userCreditResps === null || [_constants.CREDIT_STATE.APPROVED.KEY].includes(creditObj === null || creditObj === void 0 ? void 0 : creditObj.state)
|
|
279
281
|
}, _b[_constants.walletType.B2B] = {
|
|
280
|
-
amount: userCreditResps === null ? '****' : B2BObj ? (0, _currencyUtil.formatCurrencyWithSymbol)(B2BObj.availableAmount) : 'APPLY',
|
|
281
|
-
text: B2BObj ?
|
|
282
|
-
btnText: B2BObj ?
|
|
282
|
+
amount: userCreditResps === null ? '****' : B2BObj ? (0, _currencyUtil.formatCurrencyWithSymbol)(B2BObj.availableAmount) : (0, _locale.i18n)('APPLY'),
|
|
283
|
+
text: B2BObj ? (0, _locale.i18n)('ADD_MORE_PRODUCTS_TO_YOUR_SHOP') : '',
|
|
284
|
+
btnText: B2BObj ? (0, _locale.i18n)('PROCURE_PRODUCT') : '',
|
|
283
285
|
show: userCreditResps === null || [_constants.CREDIT_STATE.APPROVED.KEY].includes(B2BObj === null || B2BObj === void 0 ? void 0 : B2BObj.state)
|
|
284
286
|
}, _b[_constants.walletType.CASHBACK] = {
|
|
285
287
|
amount: userCashbackValues === null ? '****' : (0, _currencyUtil.formatCurrencyWithSymbol)(userCashbackValues),
|
|
286
288
|
show: true
|
|
287
289
|
}, _b[_constants.walletType.BALANCE] = {
|
|
288
290
|
amount: userBalance === null ? '****' : (0, _currencyUtil.formatCurrencyWithSymbol)(userBalance),
|
|
289
|
-
btnText: userBalance ?
|
|
291
|
+
btnText: userBalance ? (0, _locale.i18n)('SOCIAL_COMMERCE') : '',
|
|
290
292
|
show: true
|
|
291
293
|
}, _b[_constants.walletType.CENDUIT] = {
|
|
292
294
|
amount: userPoint === null ? '****' : userPoint,
|
|
293
|
-
btnText: userPoint ?
|
|
295
|
+
btnText: userPoint ? (0, _locale.i18n)('CENDUIT_MALL') : '',
|
|
294
296
|
show: true
|
|
295
297
|
}, _b)
|
|
296
298
|
}, function () {
|
|
@@ -444,7 +446,7 @@ function (_super) {
|
|
|
444
446
|
}
|
|
445
447
|
}
|
|
446
448
|
|
|
447
|
-
item.text.text = ((_a = userWalletData[item.sourceType]) === null || _a === void 0 ? void 0 : _a.text) ||
|
|
449
|
+
item.text.text = ((_a = userWalletData[item.sourceType]) === null || _a === void 0 ? void 0 : _a.text) || (0, _locale.i18n)('MAKE_MONEY_AND_SHOP_ON_CENDOL');
|
|
448
450
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
449
451
|
className: "text-content",
|
|
450
452
|
style: _bgStyle
|
|
@@ -475,7 +477,7 @@ function (_super) {
|
|
|
475
477
|
}), ((_f = item.button) === null || _f === void 0 ? void 0 : _f.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
476
478
|
className: "wallet-btn",
|
|
477
479
|
data: __assign(__assign({}, item.button), {
|
|
478
|
-
text: ((_g = userWalletData[item.sourceType]) === null || _g === void 0 ? void 0 : _g.btnText) ||
|
|
480
|
+
text: ((_g = userWalletData[item.sourceType]) === null || _g === void 0 ? void 0 : _g.btnText) || (0, _locale.i18n)('LETS_GO')
|
|
479
481
|
}),
|
|
480
482
|
GAData: __assign(__assign({}, GAData), {
|
|
481
483
|
groupId: item.id,
|
|
@@ -132,17 +132,17 @@ function (_super) {
|
|
|
132
132
|
value: panelProps.sourceType
|
|
133
133
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
134
134
|
value: _constants.walletType.BALANCE
|
|
135
|
-
}, (0, _locale.i18n)('
|
|
135
|
+
}, (0, _locale.i18n)('BALANCE')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
136
136
|
value: _constants.walletType.B2B
|
|
137
|
-
}, (0, _locale.i18n)('
|
|
137
|
+
}, (0, _locale.i18n)('B2B_PAYLATER')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
138
138
|
value: _constants.walletType.CENDUIT
|
|
139
|
-
}, (0, _locale.i18n)('
|
|
139
|
+
}, (0, _locale.i18n)('CENDUIT')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
140
140
|
value: _constants.walletType.BNPL
|
|
141
141
|
}, (0, _locale.i18n)('BNPL')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
142
142
|
value: _constants.walletType.CREDIT
|
|
143
|
-
}, (0, _locale.i18n)('
|
|
143
|
+
}, (0, _locale.i18n)('CREDIT')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
144
144
|
value: _constants.walletType.CASHBACK
|
|
145
|
-
}, (0, _locale.i18n)('
|
|
145
|
+
}, (0, _locale.i18n)('CASHBACK'))))), /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
146
146
|
divider: "dashed",
|
|
147
147
|
headerSize: "middle",
|
|
148
148
|
onRefresh: function onRefresh() {
|
|
@@ -129,7 +129,8 @@ function (_super) {
|
|
|
129
129
|
imgHeight = _m.imgHeight,
|
|
130
130
|
imgWidth = _m.imgWidth,
|
|
131
131
|
showDiscountTag = _m.showDiscountTag,
|
|
132
|
-
|
|
132
|
+
isWill = _m.isWill,
|
|
133
|
+
rest = __rest(_m, ["data", "panelProps", "onItemClick", "showProName", "showProgress", "intelligentType", "fixHeight", "layout", "imgHeight", "imgWidth", "showDiscountTag", "isWill"]); // const promotions = getPromotionList(data);
|
|
133
134
|
|
|
134
135
|
|
|
135
136
|
var price = (0, _currencyUtil.formatCurrencyWithSymbol)(data.salesPrice);
|
|
@@ -178,7 +179,7 @@ function (_super) {
|
|
|
178
179
|
small: true
|
|
179
180
|
}), (((_d = panelProps.discount) === null || _d === void 0 ? void 0 : _d.open) || showDiscountTag) && data.discountPercent && /*#__PURE__*/_react["default"].createElement("div", {
|
|
180
181
|
className: "discount-tag"
|
|
181
|
-
}, data.discountPercent
|
|
182
|
+
}, isWill ? (0, _locale.i18n)('COMING_SOON') : data.discountPercent + "% off")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
182
183
|
className: "content-wrap"
|
|
183
184
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
184
185
|
className: "product-name-wrap"
|
|
@@ -414,7 +414,7 @@ function (_super) {
|
|
|
414
414
|
|
|
415
415
|
_this.getData = function () {
|
|
416
416
|
return __awaiter(_this, void 0, void 0, function () {
|
|
417
|
-
var maxProdNum, params, res, list;
|
|
417
|
+
var maxProdNum, params, res, list, newList;
|
|
418
418
|
|
|
419
419
|
var _a;
|
|
420
420
|
|
|
@@ -424,7 +424,7 @@ function (_super) {
|
|
|
424
424
|
maxProdNum = this.props.panelProps.content.maxProdNum;
|
|
425
425
|
params = {
|
|
426
426
|
pageIndex: 1,
|
|
427
|
-
pageSize:
|
|
427
|
+
pageSize: 10
|
|
428
428
|
};
|
|
429
429
|
return [4
|
|
430
430
|
/*yield*/
|
|
@@ -433,8 +433,13 @@ function (_super) {
|
|
|
433
433
|
case 1:
|
|
434
434
|
res = _b.sent();
|
|
435
435
|
list = (_a = res === null || res === void 0 ? void 0 : res.pageInfo) === null || _a === void 0 ? void 0 : _a.list;
|
|
436
|
+
newList = list.filter(function (camp) {
|
|
437
|
+
return camp.spu.every(function (spu) {
|
|
438
|
+
return spu.sku[0].stock;
|
|
439
|
+
});
|
|
440
|
+
});
|
|
436
441
|
this.setState({
|
|
437
|
-
list:
|
|
442
|
+
list: newList.splice(0, maxProdNum)
|
|
438
443
|
});
|
|
439
444
|
|
|
440
445
|
if (!(0, _coreUtil.isDesignMode)()) {
|
|
@@ -473,8 +478,8 @@ function (_super) {
|
|
|
473
478
|
className: "monpay-bundle-mobile"
|
|
474
479
|
}, panelProps.title.headerImage.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
475
480
|
className: "headerImg",
|
|
476
|
-
|
|
477
|
-
|
|
481
|
+
data: panelProps.title.headerImage,
|
|
482
|
+
isRect: true
|
|
478
483
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
479
484
|
className: "bundle-list"
|
|
480
485
|
}, _list.map(function (item) {
|
|
@@ -15,6 +15,8 @@ var _ProductItem = _interopRequireDefault(require("./ProductItem"));
|
|
|
15
15
|
|
|
16
16
|
var _card = _interopRequireDefault(require("./img/card.png"));
|
|
17
17
|
|
|
18
|
+
var _locale = require("../../../../../locale");
|
|
19
|
+
|
|
18
20
|
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
19
21
|
|
|
20
22
|
var _components = require("../../../../../meta-comp/components");
|
|
@@ -353,7 +355,7 @@ function (_super) {
|
|
|
353
355
|
onClick: function onClick() {
|
|
354
356
|
return (0, _coreUtil.clickUrl)("/product/recommend/" + (interest.interestId || ''));
|
|
355
357
|
}
|
|
356
|
-
},
|
|
358
|
+
}, (0, _locale.i18n)('SEE_ALL'))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
357
359
|
className: "interest-products-list macyContainer_" + panelProps.id
|
|
358
360
|
}, list.map(function (item) {
|
|
359
361
|
return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
|
|
@@ -436,6 +436,7 @@ function (_super) {
|
|
|
436
436
|
salePercent: isWill ? 0 : item.salePercent
|
|
437
437
|
}) // onItemClick={() => clickUrl(`/product/detail/${item.offerId}?productId=${item.sppProductId ?? ''}`)}
|
|
438
438
|
,
|
|
439
|
+
isWill: isWill,
|
|
439
440
|
onItemClick: function onItemClick() {
|
|
440
441
|
if (window.magicDesign.pushGA) {
|
|
441
442
|
window.magicDesign.pushGA({}, 'select_promotion', {
|
|
@@ -446,8 +447,7 @@ function (_super) {
|
|
|
446
447
|
|
|
447
448
|
(0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || ''));
|
|
448
449
|
},
|
|
449
|
-
panelProps: panelProps.content
|
|
450
|
-
unknownPrice: isWill
|
|
450
|
+
panelProps: panelProps.content
|
|
451
451
|
});
|
|
452
452
|
}))));
|
|
453
453
|
};
|
|
@@ -89,7 +89,7 @@ function (_super) {
|
|
|
89
89
|
onRefresh: this.reRender,
|
|
90
90
|
source: [{
|
|
91
91
|
key: '1',
|
|
92
|
-
name:
|
|
92
|
+
name: (0, _locale.i18n)('MERCHANT_NAME'),
|
|
93
93
|
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
94
94
|
data: panelProps.merchantName
|
|
95
95
|
}),
|
|
@@ -19,6 +19,8 @@ var _back3 = _interopRequireDefault(require("./images/back3.png"));
|
|
|
19
19
|
|
|
20
20
|
var _back4 = _interopRequireDefault(require("./images/back4.png"));
|
|
21
21
|
|
|
22
|
+
var _locale = require("../../../../locale");
|
|
23
|
+
|
|
22
24
|
require("./index.less");
|
|
23
25
|
|
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -34,19 +36,19 @@ function GenerateArtist() {
|
|
|
34
36
|
|
|
35
37
|
var source = [{
|
|
36
38
|
key: 1,
|
|
37
|
-
name: '
|
|
39
|
+
name: (0, _locale.i18n)('CREATIVITY'),
|
|
38
40
|
src: _back["default"]
|
|
39
41
|
}, {
|
|
40
42
|
key: 2,
|
|
41
|
-
name:
|
|
43
|
+
name: (0, _locale.i18n)('QUADRATIC_ELEMENT'),
|
|
42
44
|
src: _back2["default"]
|
|
43
45
|
}, {
|
|
44
46
|
key: 3,
|
|
45
|
-
name: '
|
|
47
|
+
name: (0, _locale.i18n)('EXPECT'),
|
|
46
48
|
src: _back3["default"]
|
|
47
49
|
}, {
|
|
48
50
|
key: 4,
|
|
49
|
-
name: '
|
|
51
|
+
name: (0, _locale.i18n)('CONCRETENESS'),
|
|
50
52
|
src: _back4["default"]
|
|
51
53
|
}];
|
|
52
54
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -655,7 +655,7 @@ function (_super) {
|
|
|
655
655
|
className: "dialog_head"
|
|
656
656
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
657
657
|
className: "dialog_title"
|
|
658
|
-
},
|
|
658
|
+
}, (0, _locale.i18n)('TEXT_TO_IMAGE')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
659
659
|
className: "btn_group"
|
|
660
660
|
}, /*#__PURE__*/_react["default"].createElement(_common.Button, {
|
|
661
661
|
onClick: this.onCloseDrawer,
|
|
@@ -681,29 +681,29 @@ function (_super) {
|
|
|
681
681
|
},
|
|
682
682
|
layout: "vertical"
|
|
683
683
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
684
|
-
label:
|
|
684
|
+
label: (0, _locale.i18n)('CHOOSE_AN_AI_ARTIST'),
|
|
685
685
|
name: "size"
|
|
686
686
|
}, /*#__PURE__*/_react["default"].createElement(_GenerateArtist["default"], null)), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
687
|
-
label:
|
|
687
|
+
label: (0, _locale.i18n)('UPLOAD_REFERENCE_IMAGES'),
|
|
688
688
|
name: "ref"
|
|
689
689
|
}, /*#__PURE__*/_react["default"].createElement(_UploadReference["default"], null)), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
690
|
-
label:
|
|
690
|
+
label: (0, _locale.i18n)('SIZE'),
|
|
691
691
|
name: "size"
|
|
692
692
|
}, /*#__PURE__*/_react["default"].createElement(_GenerateSize["default"], null)), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
693
|
-
label:
|
|
693
|
+
label: (0, _locale.i18n)('NUMBER'),
|
|
694
694
|
name: "number"
|
|
695
695
|
}, /*#__PURE__*/_react["default"].createElement(_NumberSlider["default"], null)), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
696
|
-
label:
|
|
696
|
+
label: (0, _locale.i18n)('STYLE'),
|
|
697
697
|
name: "style"
|
|
698
698
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
699
699
|
mode: "tags"
|
|
700
700
|
})), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
701
|
-
label:
|
|
701
|
+
label: (0, _locale.i18n)('MODIFIER'),
|
|
702
702
|
name: "modifier"
|
|
703
703
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
704
704
|
mode: "tags"
|
|
705
705
|
})), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
706
|
-
label:
|
|
706
|
+
label: (0, _locale.i18n)('DO_NOT_APPEAR'),
|
|
707
707
|
name: "notAppear"
|
|
708
708
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
709
709
|
mode: "tags"
|
|
@@ -733,10 +733,10 @@ function (_super) {
|
|
|
733
733
|
marginRight: 5
|
|
734
734
|
},
|
|
735
735
|
type: "icon-refresh"
|
|
736
|
-
}),
|
|
736
|
+
}), (0, _locale.i18n)('REGENERATE_RESPONSE'))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
737
737
|
className: "search_wrap"
|
|
738
738
|
}, /*#__PURE__*/_react["default"].createElement(Search, {
|
|
739
|
-
enterButton:
|
|
739
|
+
enterButton: (0, _locale.i18n)('GENERATE'),
|
|
740
740
|
onSearch: this.onGenarate,
|
|
741
741
|
size: "large"
|
|
742
742
|
}))), /*#__PURE__*/_react["default"].createElement(_History["default"], {
|
|
@@ -13,6 +13,8 @@ var _antd = require("antd4");
|
|
|
13
13
|
|
|
14
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
15
|
|
|
16
|
+
var _locale = require("../../../../../locale");
|
|
17
|
+
|
|
16
18
|
require("./index.less");
|
|
17
19
|
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -58,11 +60,11 @@ function SearchCondition(_a) {
|
|
|
58
60
|
className: "condition_wrap"
|
|
59
61
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
60
62
|
className: "cond_title"
|
|
61
|
-
},
|
|
63
|
+
}, (0, _locale.i18n)('DETAILED_DESCRIPTION')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
62
64
|
className: "cond_item"
|
|
63
65
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
64
66
|
className: "item_label"
|
|
65
|
-
},
|
|
67
|
+
}, (0, _locale.i18n)('PREFERRED_TONE_OF_THE_DESCRIPTION')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
66
68
|
className: "cond_value"
|
|
67
69
|
}, toneList.map(function (name) {
|
|
68
70
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -77,7 +79,7 @@ function SearchCondition(_a) {
|
|
|
77
79
|
className: "cond_item"
|
|
78
80
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
79
81
|
className: "item_label"
|
|
80
|
-
},
|
|
82
|
+
}, (0, _locale.i18n)('DESIRED_WORD_COUNT_RANGE')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
81
83
|
className: "cond_value"
|
|
82
84
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
83
85
|
allowClear: true,
|
|
@@ -102,7 +104,7 @@ function SearchCondition(_a) {
|
|
|
102
104
|
className: "cond_item"
|
|
103
105
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
104
106
|
className: "item_label"
|
|
105
|
-
},
|
|
107
|
+
}, (0, _locale.i18n)('WHAT_ARE_THE_KEY_FEATURES')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
106
108
|
className: "cond_value"
|
|
107
109
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
108
110
|
onChange: function onChange(e) {
|
|
@@ -113,7 +115,7 @@ function SearchCondition(_a) {
|
|
|
113
115
|
className: "cond_item"
|
|
114
116
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
115
117
|
className: "item_label"
|
|
116
|
-
},
|
|
118
|
+
}, (0, _locale.i18n)('WHAT_KEY_DETAILS_SHOULD_BE_EMPHASIZED')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
117
119
|
className: "cond_value"
|
|
118
120
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
119
121
|
onChange: function onChange(e) {
|
|
@@ -276,7 +276,7 @@ function (_super) {
|
|
|
276
276
|
className: "text_area",
|
|
277
277
|
onChange: this.onMessageChage,
|
|
278
278
|
onPressEnter: this.onEnter,
|
|
279
|
-
placeholder:
|
|
279
|
+
placeholder: (0, _locale.i18n)('SEND_A_MESSAGE'),
|
|
280
280
|
value: message
|
|
281
281
|
}), /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
282
282
|
className: "image_btn",
|
|
@@ -302,7 +302,7 @@ function (_super) {
|
|
|
302
302
|
disable_btn: message.length === 0
|
|
303
303
|
}),
|
|
304
304
|
onClick: this.onEnter
|
|
305
|
-
},
|
|
305
|
+
}, (0, _locale.i18n)('GENERATE'))),
|
|
306
306
|
footerStyle: {
|
|
307
307
|
padding: 12
|
|
308
308
|
},
|
|
@@ -324,7 +324,7 @@ function (_super) {
|
|
|
324
324
|
marginRight: 5
|
|
325
325
|
},
|
|
326
326
|
type: "icon-ai"
|
|
327
|
-
}),
|
|
327
|
+
}), (0, _locale.i18n)('CONVERSATIONAL_EDITOR')), /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
328
328
|
onClick: this.onCloseDrawer,
|
|
329
329
|
size: 24,
|
|
330
330
|
style: {
|
|
@@ -384,7 +384,7 @@ function (_super) {
|
|
|
384
384
|
marginRight: 5
|
|
385
385
|
},
|
|
386
386
|
type: "icon-refresh"
|
|
387
|
-
}),
|
|
387
|
+
}), (0, _locale.i18n)('REGENERATE_RESPONSE'))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
388
388
|
className: (0, _classnames["default"])('more_condition', {
|
|
389
389
|
more_condition_hide: !showCondition
|
|
390
390
|
})
|