@fonixtree/magic-design 2.0.36 → 2.0.38

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.
Files changed (47) hide show
  1. package/es/assets/images/layout-icon/walletLayout2.png +0 -0
  2. package/es/assets/less/cylon-antd.less +7246 -1686
  3. package/es/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
  4. package/es/composite-comp/bol/components/Wallet/mobile/index.js +277 -24
  5. package/es/composite-comp/bol/components/Wallet/mobile/index.less +81 -13
  6. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
  7. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
  8. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
  9. package/es/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
  10. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +50 -81
  11. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
  12. package/es/composite-comp/common/components/AffiliateProductItem/index.js +6 -4
  13. package/es/composite-comp/common/components/AffiliateProductItem/index.less +8 -0
  14. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
  15. package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
  16. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +10 -9
  17. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +21 -2
  18. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +1 -1
  19. package/es/constants/layout.js +40 -1
  20. package/es/core/Designer/ConfigPanel/index.js +1 -1
  21. package/es/locale/en/en.json +1 -0
  22. package/es/locale/es/es.json +1 -0
  23. package/es/locale/id/id.json +1 -0
  24. package/lib/assets/images/layout-icon/walletLayout2.png +0 -0
  25. package/lib/assets/less/cylon-antd.less +7246 -1686
  26. package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
  27. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +277 -24
  28. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +81 -13
  29. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
  30. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
  31. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
  32. package/lib/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
  33. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +50 -81
  34. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
  35. package/lib/composite-comp/common/components/AffiliateProductItem/index.js +6 -4
  36. package/lib/composite-comp/common/components/AffiliateProductItem/index.less +8 -0
  37. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
  38. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
  39. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +10 -9
  40. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +21 -2
  41. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +1 -1
  42. package/lib/constants/layout.js +40 -1
  43. package/lib/core/Designer/ConfigPanel/index.js +1 -1
  44. package/lib/locale/en/en.json +1 -0
  45. package/lib/locale/es/es.json +1 -0
  46. package/lib/locale/id/id.json +1 -0
  47. package/package.json +1 -1
@@ -240,12 +240,12 @@ var LAYOUT_IMAGE_SIZE = {
240
240
  h: ''
241
241
  },
242
242
  layout4: {
243
- w: 96,
244
- h: 96
243
+ w: 152,
244
+ h: 152
245
245
  },
246
246
  layout5: {
247
- w: 110,
248
- h: 110
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
- pl_100: layout === 'layout5'
619
+ pl_140: layout === 'layout5'
620
620
  })
621
621
  }, /*#__PURE__*/_react["default"].createElement("div", {
622
- className: "scrollProductList"
622
+ className: "scrollProductListRow"
623
623
  }, products.map(function (item) {
624
624
  return /*#__PURE__*/_react["default"].createElement("div", {
625
- className: "productCard"
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.pl_100 {
60
- padding-left: 2rem;
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,25 @@
67
67
  .m-recommend-mobile .scrollContainer .scrollProductList .productCard {
68
68
  margin-right: 0.24rem;
69
69
  }
70
+ .m-recommend-mobile .scrollContainer .scrollProductListRow {
71
+ display: flex;
72
+ flex-direction: row;
73
+ align-items: stretch;
74
+ }
75
+ .m-recommend-mobile .scrollContainer .scrollProductListRow .productCardRow {
76
+ margin-right: 0.16rem;
77
+ }
78
+ .m-recommend-mobile .scrollContainer .scrollProductListRow .productCardRow .m-product-item-wrap {
79
+ height: 100%;
80
+ }
81
+ .m-recommend-mobile .scrollContainer .scrollProductListRow .productCardRow .m-product-item-wrap .contentWrap {
82
+ flex: 1;
83
+ flex-direction: column;
84
+ display: flex;
85
+ }
86
+ .m-recommend-mobile .scrollContainer .scrollProductListRow .productCardRow .m-product-item-wrap .contentWrap .productItemContent {
87
+ margin-bottom: auto;
88
+ }
70
89
  .m-recommend-mobile .btnSeeAll {
71
90
  display: block;
72
91
  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.recommendLayoutPc : _layout.recommendLayoutMobile,
118
+ layoutSource: (0, _coreUtil.isPc)() ? _layout.affiliateLayoutPc : _layout.affiliateLayoutMobile,
119
119
  selectedLayoutFun: function selectedLayoutFun(v) {
120
120
  _this.getLayout(v);
121
121
  }
@@ -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
 
@@ -1,4 +1,5 @@
1
1
  {
2
+ "PEEK": "Peek",
2
3
  "ADDRESS": "Address",
3
4
  "LOCATION_LOGO": "Location Logo",
4
5
  "MESSAGE_ICON": "Message icon",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "PEEK": "Peek",
2
3
  "ADDRESS": "Address",
3
4
  "LOCATION_LOGO": "Location Logo",
4
5
  "MESSAGE_ICON": "Message icon",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "PEEK": "Peek",
2
3
  "ADDRESS": "Address",
3
4
  "LOCATION_LOGO": "Location Logo",
4
5
  "MESSAGE_ICON": "Message icon",