@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.
Binary file
@@ -50,6 +50,9 @@
50
50
  overflow: hidden;
51
51
  text-overflow: ellipsis;
52
52
  white-space: nowrap;
53
+ p {
54
+ margin-bottom: 0;
55
+ }
53
56
  }
54
57
  }
55
58
  }
@@ -8,10 +8,8 @@
8
8
  position: relative;
9
9
  border-radius: 4px;
10
10
 
11
- .productItemImg {
12
- height: 167px;
13
- border-top-right-radius: 8px;
14
- border-top-left-radius: 8px;
11
+ .product-img {
12
+ flex-shrink: 0;
15
13
  }
16
14
  .productItemContent {
17
15
  padding: 4px 4px 0;
@@ -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:
@@ -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
- }, src.groupName.text));
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
- }, src.groupName.text));
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
- link = "/product/detail/" + arg1 + "?productId=" + (arg2 !== null && arg2 !== void 0 ? arg2 : '');
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
@@ -50,6 +50,9 @@
50
50
  overflow: hidden;
51
51
  text-overflow: ellipsis;
52
52
  white-space: nowrap;
53
+ p {
54
+ margin-bottom: 0;
55
+ }
53
56
  }
54
57
  }
55
58
  }
@@ -8,10 +8,8 @@
8
8
  position: relative;
9
9
  border-radius: 4px;
10
10
 
11
- .productItemImg {
12
- height: 167px;
13
- border-top-right-radius: 8px;
14
- border-top-left-radius: 8px;
11
+ .product-img {
12
+ flex-shrink: 0;
15
13
  }
16
14
  .productItemContent {
17
15
  padding: 4px 4px 0;
@@ -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:
@@ -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
- }, src.groupName.text));
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
- }, src.groupName.text));
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
- link = "/product/detail/" + arg1 + "?productId=" + (arg2 !== null && arg2 !== void 0 ? arg2 : '');
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: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "2.0.41",
4
+ "version": "2.0.42",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",