@fonixtree/magic-design 2.0.35 → 2.0.37
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/Trueno-Light.otf +0 -0
- package/es/assets/fonts/Trueno-Regular.otf +0 -0
- package/es/assets/fonts/TruenoBd.otf +0 -0
- package/es/assets/images/layout-icon/walletLayout2.png +0 -0
- package/es/assets/less/cylon-antd.less +7246 -1686
- package/es/assets/less/font.less +22 -0
- package/es/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
- package/es/composite-comp/bol/components/Wallet/mobile/index.js +277 -24
- package/es/composite-comp/bol/components/Wallet/mobile/index.less +81 -13
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
- package/es/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +50 -81
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
- package/es/composite-comp/common/components/AffiliateProductItem/index.js +8 -6
- package/es/composite-comp/common/components/AffiliateProductItem/index.less +8 -0
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
- package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +9 -8
- package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +5 -2
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +1 -1
- package/es/constants/layout.js +40 -1
- package/es/core/Designer/ConfigPanel/index.js +1 -1
- package/es/locale/en/en.json +1 -0
- package/es/locale/es/es.json +1 -0
- package/es/locale/id/id.json +1 -0
- package/es/utils/currencyUtil.js +9 -2
- package/lib/assets/fonts/Trueno-Light.otf +0 -0
- package/lib/assets/fonts/Trueno-Regular.otf +0 -0
- package/lib/assets/fonts/TruenoBd.otf +0 -0
- package/lib/assets/images/layout-icon/walletLayout2.png +0 -0
- package/lib/assets/less/cylon-antd.less +7246 -1686
- package/lib/assets/less/font.less +22 -0
- package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
- package/lib/composite-comp/bol/components/Wallet/mobile/index.js +277 -24
- package/lib/composite-comp/bol/components/Wallet/mobile/index.less +81 -13
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
- package/lib/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +50 -81
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/index.js +8 -6
- package/lib/composite-comp/common/components/AffiliateProductItem/index.less +8 -0
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
- package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +9 -8
- package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +5 -2
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +1 -1
- package/lib/constants/layout.js +40 -1
- package/lib/core/Designer/ConfigPanel/index.js +1 -1
- package/lib/locale/en/en.json +1 -0
- package/lib/locale/es/es.json +1 -0
- package/lib/locale/id/id.json +1 -0
- package/lib/utils/currencyUtil.js +9 -2
- package/package.json +1 -1
|
@@ -4,15 +4,16 @@
|
|
|
4
4
|
justify-content: space-between;
|
|
5
5
|
align-items: center;
|
|
6
6
|
}
|
|
7
|
+
|
|
7
8
|
.selectWrap {
|
|
8
9
|
position: relative;
|
|
9
10
|
display: flex;
|
|
10
|
-
|
|
11
|
+
|
|
11
12
|
.iconNum {
|
|
12
13
|
position: absolute;
|
|
13
14
|
z-index: 9;
|
|
14
15
|
left: 15px;
|
|
15
|
-
top:
|
|
16
|
+
top: 8px;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
.cylon-select {
|
|
@@ -240,12 +240,12 @@ var LAYOUT_IMAGE_SIZE = {
|
|
|
240
240
|
h: ''
|
|
241
241
|
},
|
|
242
242
|
layout4: {
|
|
243
|
-
w:
|
|
244
|
-
h:
|
|
243
|
+
w: 152,
|
|
244
|
+
h: 152
|
|
245
245
|
},
|
|
246
246
|
layout5: {
|
|
247
|
-
w:
|
|
248
|
-
h:
|
|
247
|
+
w: 152,
|
|
248
|
+
h: 152
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
251
|
|
|
@@ -616,20 +616,21 @@ function (_super) {
|
|
|
616
616
|
})) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
617
617
|
key: "scrollContainer",
|
|
618
618
|
className: (0, _classnames["default"])('scrollContainer', {
|
|
619
|
-
|
|
619
|
+
pl_140: layout === 'layout5'
|
|
620
620
|
})
|
|
621
621
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
622
622
|
className: "scrollProductList"
|
|
623
623
|
}, products.map(function (item) {
|
|
624
624
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
625
|
-
className: "
|
|
625
|
+
className: "productCardRow"
|
|
626
626
|
}, /*#__PURE__*/_react["default"].createElement(_AffiliateProductItem["default"], {
|
|
627
627
|
key: "scroll_" + item.productId,
|
|
628
|
+
customFont: true,
|
|
628
629
|
data: item,
|
|
629
630
|
fixHeight: true,
|
|
630
|
-
imgHeight: imgHeight
|
|
631
|
-
imgWidth: imgWidth // onItemClick={() => clickUrl(`/product/detail/${item.offerId}?productId=${item.sppProductId || item.productId || ''}`)}
|
|
631
|
+
imgHeight: imgHeight // onItemClick={() => clickUrl(`/product/detail/${item.offerId}?productId=${item.sppProductId || item.productId || ''}`)}
|
|
632
632
|
,
|
|
633
|
+
imgWidth: imgWidth,
|
|
633
634
|
onItemClick: function onItemClick() {
|
|
634
635
|
/** PTO 定制GA */
|
|
635
636
|
if (window.magicDesign.pushGA) {
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
overflow-x: auto;
|
|
57
57
|
padding-bottom: 0.3rem;
|
|
58
58
|
}
|
|
59
|
-
.m-recommend-mobile .scrollContainer.
|
|
60
|
-
padding-left:
|
|
59
|
+
.m-recommend-mobile .scrollContainer.pl_140 {
|
|
60
|
+
padding-left: 2.8rem;
|
|
61
61
|
}
|
|
62
62
|
.m-recommend-mobile .scrollContainer .scrollProductList {
|
|
63
63
|
display: flex;
|
|
@@ -67,6 +67,9 @@
|
|
|
67
67
|
.m-recommend-mobile .scrollContainer .scrollProductList .productCard {
|
|
68
68
|
margin-right: 0.24rem;
|
|
69
69
|
}
|
|
70
|
+
.m-recommend-mobile .scrollContainer .scrollProductList .productCardRow {
|
|
71
|
+
margin-right: 0.16rem;
|
|
72
|
+
}
|
|
70
73
|
.m-recommend-mobile .btnSeeAll {
|
|
71
74
|
display: block;
|
|
72
75
|
width: fit-content;
|
|
@@ -115,7 +115,7 @@ function (_super) {
|
|
|
115
115
|
value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
|
|
116
116
|
data: data.customize,
|
|
117
117
|
isHideAlign: true,
|
|
118
|
-
layoutSource: (0, _coreUtil.isPc)() ? _layout.
|
|
118
|
+
layoutSource: (0, _coreUtil.isPc)() ? _layout.affiliateLayoutPc : _layout.affiliateLayoutMobile,
|
|
119
119
|
selectedLayoutFun: function selectedLayoutFun(v) {
|
|
120
120
|
_this.getLayout(v);
|
|
121
121
|
}
|
package/es/constants/layout.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.videoPCLayout = exports.videoH5Layout = exports.searchLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.pcNavigationLayout = exports.newsletterLayout = exports.mobileNavigationLayout = exports.locationLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryLayout = exports.dividerLayout = exports.carouselLayout = exports.WalletLayout = void 0;
|
|
6
|
+
exports.videoPCLayout = exports.videoH5Layout = exports.searchLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.pcNavigationLayout = exports.newsletterLayout = exports.mobileNavigationLayout = exports.locationLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryLayout = exports.dividerLayout = exports.carouselLayout = exports.affiliateLayoutPc = exports.affiliateLayoutMobile = exports.WalletLayout = void 0;
|
|
7
7
|
|
|
8
8
|
var _dividerLayout = _interopRequireDefault(require("../assets/images/layout-icon/dividerLayout.svg"));
|
|
9
9
|
|
|
@@ -15,6 +15,8 @@ var _imageGalleryLayout2 = _interopRequireDefault(require("../assets/images/layo
|
|
|
15
15
|
|
|
16
16
|
var _walletLayout = _interopRequireDefault(require("../assets/images/layout-icon/walletLayout1.png"));
|
|
17
17
|
|
|
18
|
+
var _walletLayout2 = _interopRequireDefault(require("../assets/images/layout-icon/walletLayout2.png"));
|
|
19
|
+
|
|
18
20
|
var _layoutImagetextM = _interopRequireDefault(require("../assets/images/layout-icon/layout-imagetext-m1-1.png"));
|
|
19
21
|
|
|
20
22
|
var _layoutImagetextM2 = _interopRequireDefault(require("../assets/images/layout-icon/layout-imagetext-m1-2.png"));
|
|
@@ -112,6 +114,10 @@ var WalletLayout = [{
|
|
|
112
114
|
id: 'layout1',
|
|
113
115
|
name: 'layout1',
|
|
114
116
|
image: _walletLayout["default"]
|
|
117
|
+
}, {
|
|
118
|
+
id: 'layout2',
|
|
119
|
+
name: 'layout2',
|
|
120
|
+
image: _walletLayout2["default"]
|
|
115
121
|
}];
|
|
116
122
|
exports.WalletLayout = WalletLayout;
|
|
117
123
|
var carouselLayout = [{
|
|
@@ -214,6 +220,39 @@ var recommendLayoutPc = [{
|
|
|
214
220
|
image: _layoutRecommend5["default"]
|
|
215
221
|
}];
|
|
216
222
|
exports.recommendLayoutPc = recommendLayoutPc;
|
|
223
|
+
var affiliateLayoutMobile = [{
|
|
224
|
+
id: 'layout1',
|
|
225
|
+
name: 'layout1',
|
|
226
|
+
image: _layoutRecommend["default"]
|
|
227
|
+
}, {
|
|
228
|
+
id: 'layout2',
|
|
229
|
+
name: 'layout2',
|
|
230
|
+
image: _layoutRecommend2["default"]
|
|
231
|
+
}, // { id: 'layout3', name: 'layout3', image: recommendLayout3 },
|
|
232
|
+
{
|
|
233
|
+
id: 'layout4',
|
|
234
|
+
name: 'layout4',
|
|
235
|
+
image: _layoutRecommend4["default"]
|
|
236
|
+
}, {
|
|
237
|
+
id: 'layout5',
|
|
238
|
+
name: 'layout5',
|
|
239
|
+
image: _layoutRecommend5["default"]
|
|
240
|
+
}];
|
|
241
|
+
exports.affiliateLayoutMobile = affiliateLayoutMobile;
|
|
242
|
+
var affiliateLayoutPc = [{
|
|
243
|
+
id: 'layout1',
|
|
244
|
+
name: 'layout1',
|
|
245
|
+
image: _layoutRecommend3["default"]
|
|
246
|
+
}, {
|
|
247
|
+
id: 'layout2',
|
|
248
|
+
name: 'layout2',
|
|
249
|
+
image: _layoutRecommend4["default"]
|
|
250
|
+
}, {
|
|
251
|
+
id: 'layout3',
|
|
252
|
+
name: 'layout3',
|
|
253
|
+
image: _layoutRecommend5["default"]
|
|
254
|
+
}];
|
|
255
|
+
exports.affiliateLayoutPc = affiliateLayoutPc;
|
|
217
256
|
var videoPCLayout = [{
|
|
218
257
|
id: 'layout1',
|
|
219
258
|
name: 'layout1',
|
|
@@ -81,7 +81,6 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
|
|
|
81
81
|
|
|
82
82
|
switch (selectedNode.type) {
|
|
83
83
|
case 'IMAGE_GALLERY':
|
|
84
|
-
case 'WALLET':
|
|
85
84
|
case 'BANNER':
|
|
86
85
|
groupName = ''; // if (!groupName) {
|
|
87
86
|
// groupName = isPc() ? panelProps.image?.content?.pcName : panelProps.image?.content?.h5Name;
|
|
@@ -109,6 +108,7 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
|
|
|
109
108
|
break;
|
|
110
109
|
|
|
111
110
|
case 'TEXT':
|
|
111
|
+
case 'WALLET':
|
|
112
112
|
groupName = panelProps.title.text;
|
|
113
113
|
break;
|
|
114
114
|
|
package/es/locale/en/en.json
CHANGED
package/es/locale/es/es.json
CHANGED
package/es/locale/id/id.json
CHANGED
package/es/utils/currencyUtil.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.numberToFixed = exports.getPricePrefix = exports.getPrecision = exports.formatCurrencyWithSymbol = exports.formatCurrency = exports.formatBackendCurrency = exports.currencyToFont = exports.calcFloatCount = exports.addSeparators = void 0;
|
|
6
|
+
exports.numberToFixed = exports.getPricePrefix = exports.getPrecision = exports.formatCurrencyWithSymbolNotSpace = exports.formatCurrencyWithSymbol = exports.formatCurrency = exports.formatBackendCurrency = exports.currencyToFont = exports.calcFloatCount = exports.addSeparators = void 0;
|
|
7
7
|
|
|
8
8
|
var _divide = _interopRequireDefault(require("lodash/divide"));
|
|
9
9
|
|
|
@@ -105,6 +105,13 @@ var formatCurrencyWithSymbol = function formatCurrencyWithSymbol(num) {
|
|
|
105
105
|
var ret = formatCurrency(num);
|
|
106
106
|
return getPricePrefix() + " " + ret;
|
|
107
107
|
};
|
|
108
|
+
|
|
109
|
+
exports.formatCurrencyWithSymbol = formatCurrencyWithSymbol;
|
|
110
|
+
|
|
111
|
+
var formatCurrencyWithSymbolNotSpace = function formatCurrencyWithSymbolNotSpace(num) {
|
|
112
|
+
var ret = formatCurrency(num);
|
|
113
|
+
return "" + getPricePrefix() + ret;
|
|
114
|
+
};
|
|
108
115
|
/**
|
|
109
116
|
* TODO 未兼容科学计数法(小数点后7位)
|
|
110
117
|
* 计算浮点位数
|
|
@@ -113,7 +120,7 @@ var formatCurrencyWithSymbol = function formatCurrencyWithSymbol(num) {
|
|
|
113
120
|
*/
|
|
114
121
|
|
|
115
122
|
|
|
116
|
-
exports.
|
|
123
|
+
exports.formatCurrencyWithSymbolNotSpace = formatCurrencyWithSymbolNotSpace;
|
|
117
124
|
|
|
118
125
|
var calcFloatCount = function calcFloatCount(number) {
|
|
119
126
|
var numbString = String(number);
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|