@fonixtree/magic-design 2.0.92 → 2.0.94
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/composite-comp/common/components/AffiliateProductItem/imgs/icon-cashback.svg +9 -0
- package/es/composite-comp/common/components/AffiliateProductItem/index.js +25 -14
- package/es/composite-comp/common/components/AffiliateProductItem/index.less +31 -1
- package/es/composite-comp/{dito → nuri}/components/AffiliateRecommend/mobile/index.js +12 -10
- package/es/composite-comp/{dito → nuri}/components/AffiliateRecommend/pc/index.js +12 -10
- package/{lib/composite-comp/dito → es/composite-comp/nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +1 -1
- package/es/constants/component-types.js +3 -3
- package/es/decorator/metaDecorator.js +6 -2
- package/es/utils/commonUtil.js +16 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-cashback.svg +9 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/index.js +25 -14
- package/lib/composite-comp/common/components/AffiliateProductItem/index.less +31 -1
- package/lib/composite-comp/{dito → nuri}/components/AffiliateRecommend/mobile/index.js +12 -10
- package/lib/composite-comp/{dito → nuri}/components/AffiliateRecommend/pc/index.js +12 -10
- package/{es/composite-comp/dito → lib/composite-comp/nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +1 -1
- package/lib/constants/component-types.js +3 -3
- package/lib/decorator/metaDecorator.js +6 -2
- package/lib/utils/commonUtil.js +16 -0
- package/package.json +1 -1
- /package/es/composite-comp/{dito → nuri}/components/AffiliateRecommend/defaultJSON.js +0 -0
- /package/es/composite-comp/{dito → nuri}/components/AffiliateRecommend/index.js +0 -0
- /package/es/composite-comp/{dito → nuri}/components/AffiliateRecommend/mobile/index.less +0 -0
- /package/es/composite-comp/{dito → nuri}/components/AffiliateRecommend/pc/index.less +0 -0
- /package/es/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -0
- /package/es/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
- /package/es/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -0
- /package/es/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
- /package/es/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/index.js +0 -0
- /package/es/composite-comp/{dito → nuri}/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -0
- /package/es/composite-comp/{dito → nuri}/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -0
- /package/es/composite-comp/{dito → nuri}/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -0
- /package/lib/composite-comp/{dito → nuri}/components/AffiliateRecommend/defaultJSON.js +0 -0
- /package/lib/composite-comp/{dito → nuri}/components/AffiliateRecommend/index.js +0 -0
- /package/lib/composite-comp/{dito → nuri}/components/AffiliateRecommend/mobile/index.less +0 -0
- /package/lib/composite-comp/{dito → nuri}/components/AffiliateRecommend/pc/index.less +0 -0
- /package/lib/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -0
- /package/lib/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
- /package/lib/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -0
- /package/lib/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
- /package/lib/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/index.js +0 -0
- /package/lib/composite-comp/{dito → nuri}/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -0
- /package/lib/composite-comp/{dito → nuri}/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -0
- /package/lib/composite-comp/{dito → nuri}/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -0
|
@@ -309,8 +309,10 @@ function (_super) {
|
|
|
309
309
|
|
|
310
310
|
var _this = this;
|
|
311
311
|
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
var _e;
|
|
313
|
+
|
|
314
|
+
return __generator(this, function (_f) {
|
|
315
|
+
switch (_f.label) {
|
|
314
316
|
case 0:
|
|
315
317
|
panelProps = this.props.panelProps;
|
|
316
318
|
groupSource = this.state.groupSource;
|
|
@@ -336,10 +338,10 @@ function (_super) {
|
|
|
336
338
|
|
|
337
339
|
_a = (groupSource[index] || {}).prodIds, prodIds = _a === void 0 ? '' : _a;
|
|
338
340
|
newData = [];
|
|
339
|
-
|
|
341
|
+
_f.label = 1;
|
|
340
342
|
|
|
341
343
|
case 1:
|
|
342
|
-
|
|
344
|
+
_f.trys.push([1, 5,, 6]);
|
|
343
345
|
|
|
344
346
|
if (!(groupSource.length > 0)) return [3
|
|
345
347
|
/*break*/
|
|
@@ -353,22 +355,22 @@ function (_super) {
|
|
|
353
355
|
|
|
354
356
|
return [4
|
|
355
357
|
/*yield*/
|
|
356
|
-
, (0, _commonUtil.commonFetch)('/designer/v1/h5/nuri/distribute/product', {
|
|
358
|
+
, (0, _commonUtil.commonFetch)('/designer/v1/h5/nuri/distribute/product/es/page', {
|
|
357
359
|
affiliateProductIds: prodIds,
|
|
358
360
|
pageIndex: 1,
|
|
359
361
|
pageSize: prodIds.split(',').length || 20
|
|
360
|
-
}, '
|
|
362
|
+
}, 'POST')];
|
|
361
363
|
|
|
362
364
|
case 2:
|
|
363
|
-
res =
|
|
364
|
-
newData = __spreadArrays(res.list);
|
|
365
|
+
res = _f.sent();
|
|
366
|
+
newData = __spreadArrays((_e = res.pageInfo) === null || _e === void 0 ? void 0 : _e.list);
|
|
365
367
|
return [3
|
|
366
368
|
/*break*/
|
|
367
369
|
, 4];
|
|
368
370
|
|
|
369
371
|
case 3:
|
|
370
372
|
newData = [];
|
|
371
|
-
|
|
373
|
+
_f.label = 4;
|
|
372
374
|
|
|
373
375
|
case 4:
|
|
374
376
|
return [3
|
|
@@ -376,7 +378,7 @@ function (_super) {
|
|
|
376
378
|
, 6];
|
|
377
379
|
|
|
378
380
|
case 5:
|
|
379
|
-
e_1 =
|
|
381
|
+
e_1 = _f.sent();
|
|
380
382
|
newData = [];
|
|
381
383
|
return [3
|
|
382
384
|
/*break*/
|
|
@@ -15,7 +15,7 @@ var _Button = _interopRequireDefault(require("../../../../../common/Button"));
|
|
|
15
15
|
|
|
16
16
|
var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
|
|
17
17
|
|
|
18
|
-
var _defaultJSON = require("
|
|
18
|
+
var _defaultJSON = require("../../../../dito/components/Recommend/defaultJSON");
|
|
19
19
|
|
|
20
20
|
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
21
21
|
|
|
@@ -41,7 +41,7 @@ var _SignBoard = _interopRequireDefault(require("../composite-comp/dito/componen
|
|
|
41
41
|
|
|
42
42
|
var _Recommend = _interopRequireDefault(require("../composite-comp/dito/components/Recommend"));
|
|
43
43
|
|
|
44
|
-
var _AffiliateRecommend = _interopRequireDefault(require("../composite-comp/
|
|
44
|
+
var _AffiliateRecommend = _interopRequireDefault(require("../composite-comp/nuri/components/AffiliateRecommend"));
|
|
45
45
|
|
|
46
46
|
var _MobileNavigation = _interopRequireDefault(require("../composite-comp/dito/components/MobileNavigation"));
|
|
47
47
|
|
|
@@ -93,7 +93,7 @@ var _SignBoardConfig = _interopRequireDefault(require("../composite-comp/dito/co
|
|
|
93
93
|
|
|
94
94
|
var _RecommendConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/RecommendConfig"));
|
|
95
95
|
|
|
96
|
-
var _AffiliateRecommendConfig = _interopRequireDefault(require("../composite-comp/
|
|
96
|
+
var _AffiliateRecommendConfig = _interopRequireDefault(require("../composite-comp/nuri/config-panels/AffiliateRecommendConfig"));
|
|
97
97
|
|
|
98
98
|
var _MobileNavigationConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/MobileNavigationConfig"));
|
|
99
99
|
|
|
@@ -131,7 +131,7 @@ var _WalletNuriSecondConfig = _interopRequireDefault(require("../composite-comp/
|
|
|
131
131
|
|
|
132
132
|
var _RecommendSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/RecommendSecondConfig"));
|
|
133
133
|
|
|
134
|
-
var _AffiliateRecommendSecondConfig = _interopRequireDefault(require("../composite-comp/
|
|
134
|
+
var _AffiliateRecommendSecondConfig = _interopRequireDefault(require("../composite-comp/nuri/second-config-panels/AffiliateRecommendSecondConfig"));
|
|
135
135
|
|
|
136
136
|
var _MobileNavigationSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/MobileNavigationSecondConfig"));
|
|
137
137
|
|
|
@@ -93,10 +93,14 @@ function metaDecorator(WrappedComponent) {
|
|
|
93
93
|
var _c = _this.props,
|
|
94
94
|
data = _c.data,
|
|
95
95
|
GAData = _c.GAData;
|
|
96
|
-
|
|
96
|
+
|
|
97
|
+
var eventData = __assign(__assign({}, GAData), {
|
|
97
98
|
elementId: data.id,
|
|
98
99
|
elementName: data.text || (GAData === null || GAData === void 0 ? void 0 : GAData.groupName)
|
|
99
|
-
})
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
(0, _commonUtil.pushGA)(eventData); // triggerBuryingPointEvent(eventData);
|
|
103
|
+
|
|
100
104
|
return;
|
|
101
105
|
} // 组织冒泡
|
|
102
106
|
|
package/lib/utils/commonUtil.js
CHANGED
|
@@ -28,6 +28,7 @@ exports.shareLinkedin = shareLinkedin;
|
|
|
28
28
|
exports.shareTwitter = shareTwitter;
|
|
29
29
|
exports.sleep = sleep;
|
|
30
30
|
exports.styleStringify = void 0;
|
|
31
|
+
exports.triggerBuryingPointEvent = triggerBuryingPointEvent;
|
|
31
32
|
|
|
32
33
|
var _axios = _interopRequireDefault(require("axios"));
|
|
33
34
|
|
|
@@ -758,6 +759,21 @@ function pushGA(data, eventName) {
|
|
|
758
759
|
console.error(error);
|
|
759
760
|
}
|
|
760
761
|
}
|
|
762
|
+
/** 触发埋点事件
|
|
763
|
+
*
|
|
764
|
+
window.document.addEventListener('magic-design-burying-point', e => {
|
|
765
|
+
console.log(e.data);
|
|
766
|
+
});
|
|
767
|
+
*/
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
function triggerBuryingPointEvent(data) {
|
|
771
|
+
var evt = new Event('magic-design-burying-point', {
|
|
772
|
+
bubbles: false
|
|
773
|
+
});
|
|
774
|
+
evt.data = data;
|
|
775
|
+
window.document.dispatchEvent(evt);
|
|
776
|
+
}
|
|
761
777
|
/** react key 计算 */
|
|
762
778
|
|
|
763
779
|
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/es/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/lib/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|