@fonixtree/magic-design 2.0.41 → 2.0.42
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/GroupList/index.less +3 -0
- package/es/composite-comp/common/components/AffiliateProductItem/index.less +2 -4
- package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +3 -1
- package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.js +3 -1
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +5 -2
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +5 -2
- package/es/utils/businessUtil.js +6 -1
- package/lib/assets/fonts/.DS_Store +0 -0
- package/lib/common/GroupList/index.less +3 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/index.less +2 -4
- package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +3 -1
- package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.js +3 -1
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +5 -2
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +5 -2
- package/lib/utils/businessUtil.js +6 -1
- package/package.json +1 -1
|
Binary file
|
|
@@ -358,7 +358,9 @@ function (_super) {
|
|
|
358
358
|
return [4
|
|
359
359
|
/*yield*/
|
|
360
360
|
, (0, _commonUtil.commonFetch)('/designer/v1/h5/nuri/distribute/product', {
|
|
361
|
-
affiliateProductIds: prodIds
|
|
361
|
+
affiliateProductIds: prodIds,
|
|
362
|
+
pageIndex: 1,
|
|
363
|
+
pageSize: prodIds.split(',').length || 20
|
|
362
364
|
}, 'GET')];
|
|
363
365
|
|
|
364
366
|
case 2:
|
|
@@ -353,7 +353,9 @@ function (_super) {
|
|
|
353
353
|
return [4
|
|
354
354
|
/*yield*/
|
|
355
355
|
, (0, _commonUtil.commonFetch)('/designer/v1/h5/nuri/distribute/product', {
|
|
356
|
-
affiliateProductIds: prodIds
|
|
356
|
+
affiliateProductIds: prodIds,
|
|
357
|
+
pageIndex: 1,
|
|
358
|
+
pageSize: prodIds.split(',').length || 20
|
|
357
359
|
}, 'GET')];
|
|
358
360
|
|
|
359
361
|
case 2:
|
package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js
CHANGED
|
@@ -108,8 +108,11 @@ function (_super) {
|
|
|
108
108
|
alt: "",
|
|
109
109
|
src: ((0, _coreUtil.isPc)() ? src.image.content.pcImgSrc : src.image.content.h5ImgSrc) || _defaultImg["default"]
|
|
110
110
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
111
|
-
className: "name"
|
|
112
|
-
|
|
111
|
+
className: "name",
|
|
112
|
+
dangerouslySetInnerHTML: {
|
|
113
|
+
__html: src.groupName.text
|
|
114
|
+
}
|
|
115
|
+
}));
|
|
113
116
|
};
|
|
114
117
|
|
|
115
118
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -108,8 +108,11 @@ function (_super) {
|
|
|
108
108
|
alt: "",
|
|
109
109
|
src: ((0, _coreUtil.isPc)() ? src.image.content.pcImgSrc : src.image.content.h5ImgSrc) || _defaultImg["default"]
|
|
110
110
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
111
|
-
className: "name"
|
|
112
|
-
|
|
111
|
+
className: "name",
|
|
112
|
+
dangerouslySetInnerHTML: {
|
|
113
|
+
__html: src.groupName.text
|
|
114
|
+
}
|
|
115
|
+
}));
|
|
113
116
|
}; // console.log('00 reacommend source', JSON.stringify(source));
|
|
114
117
|
|
|
115
118
|
|
package/es/utils/businessUtil.js
CHANGED
|
@@ -219,7 +219,12 @@ var parseUrl = function parseUrl(url) {
|
|
|
219
219
|
switch (type) {
|
|
220
220
|
// 商品详情
|
|
221
221
|
case _constants.urlType.PRODUCT_DETAIL:
|
|
222
|
-
|
|
222
|
+
if (arg1 && arg1 !== 'undefined') {
|
|
223
|
+
link = "/product/detail/" + arg1 + "?productId=" + (arg2 !== null && arg2 !== void 0 ? arg2 : '');
|
|
224
|
+
} else {
|
|
225
|
+
link = "/product/detail/" + arg2;
|
|
226
|
+
}
|
|
227
|
+
|
|
223
228
|
params = {
|
|
224
229
|
action: 'jump',
|
|
225
230
|
params: {
|
|
Binary file
|
|
@@ -358,7 +358,9 @@ function (_super) {
|
|
|
358
358
|
return [4
|
|
359
359
|
/*yield*/
|
|
360
360
|
, (0, _commonUtil.commonFetch)('/designer/v1/h5/nuri/distribute/product', {
|
|
361
|
-
affiliateProductIds: prodIds
|
|
361
|
+
affiliateProductIds: prodIds,
|
|
362
|
+
pageIndex: 1,
|
|
363
|
+
pageSize: prodIds.split(',').length || 20
|
|
362
364
|
}, 'GET')];
|
|
363
365
|
|
|
364
366
|
case 2:
|
|
@@ -353,7 +353,9 @@ function (_super) {
|
|
|
353
353
|
return [4
|
|
354
354
|
/*yield*/
|
|
355
355
|
, (0, _commonUtil.commonFetch)('/designer/v1/h5/nuri/distribute/product', {
|
|
356
|
-
affiliateProductIds: prodIds
|
|
356
|
+
affiliateProductIds: prodIds,
|
|
357
|
+
pageIndex: 1,
|
|
358
|
+
pageSize: prodIds.split(',').length || 20
|
|
357
359
|
}, 'GET')];
|
|
358
360
|
|
|
359
361
|
case 2:
|
package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js
CHANGED
|
@@ -108,8 +108,11 @@ function (_super) {
|
|
|
108
108
|
alt: "",
|
|
109
109
|
src: ((0, _coreUtil.isPc)() ? src.image.content.pcImgSrc : src.image.content.h5ImgSrc) || _defaultImg["default"]
|
|
110
110
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
111
|
-
className: "name"
|
|
112
|
-
|
|
111
|
+
className: "name",
|
|
112
|
+
dangerouslySetInnerHTML: {
|
|
113
|
+
__html: src.groupName.text
|
|
114
|
+
}
|
|
115
|
+
}));
|
|
113
116
|
};
|
|
114
117
|
|
|
115
118
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -108,8 +108,11 @@ function (_super) {
|
|
|
108
108
|
alt: "",
|
|
109
109
|
src: ((0, _coreUtil.isPc)() ? src.image.content.pcImgSrc : src.image.content.h5ImgSrc) || _defaultImg["default"]
|
|
110
110
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
111
|
-
className: "name"
|
|
112
|
-
|
|
111
|
+
className: "name",
|
|
112
|
+
dangerouslySetInnerHTML: {
|
|
113
|
+
__html: src.groupName.text
|
|
114
|
+
}
|
|
115
|
+
}));
|
|
113
116
|
}; // console.log('00 reacommend source', JSON.stringify(source));
|
|
114
117
|
|
|
115
118
|
|
|
@@ -219,7 +219,12 @@ var parseUrl = function parseUrl(url) {
|
|
|
219
219
|
switch (type) {
|
|
220
220
|
// 商品详情
|
|
221
221
|
case _constants.urlType.PRODUCT_DETAIL:
|
|
222
|
-
|
|
222
|
+
if (arg1 && arg1 !== 'undefined') {
|
|
223
|
+
link = "/product/detail/" + arg1 + "?productId=" + (arg2 !== null && arg2 !== void 0 ? arg2 : '');
|
|
224
|
+
} else {
|
|
225
|
+
link = "/product/detail/" + arg2;
|
|
226
|
+
}
|
|
227
|
+
|
|
223
228
|
params = {
|
|
224
229
|
action: 'jump',
|
|
225
230
|
params: {
|