@fonixtree/magic-design 1.0.145 → 1.0.147

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.
@@ -139,7 +139,7 @@ function ProductCardModal(_a) {
139
139
  }
140
140
  }, /*#__PURE__*/_react["default"].createElement("div", {
141
141
  dangerouslySetInnerHTML: {
142
- __html: (0, _commonUtil.xssDecode)(item.goodsIntroduce)
142
+ __html: (0, _commonUtil.xssDecode)(item.goodsIntroduce || '')
143
143
  }
144
144
  })), index === active && /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
145
145
  className: "closIcon",
@@ -14,7 +14,7 @@
14
14
 
15
15
  .content {
16
16
  position: relative;
17
- width: 60%;
17
+ width: 50%;
18
18
 
19
19
  .card {
20
20
  transform-origin: bottom;
@@ -728,9 +728,11 @@ function (_super) {
728
728
  var _a = this.props,
729
729
  videoId = _a.videoId,
730
730
  opts = _a.opts,
731
- play = _a.play;
731
+ play = _a.play,
732
+ onClick = _a.onClick;
732
733
  return /*#__PURE__*/_react["default"].createElement("div", {
733
- className: "video-container"
734
+ className: "video-container",
735
+ onClick: onClick
734
736
  }, opts.source ? /*#__PURE__*/_react["default"].createElement("div", {
735
737
  className: "video-wrap",
736
738
  id: 'video' + videoId
@@ -174,6 +174,8 @@
174
174
  }
175
175
 
176
176
  .carousel-img {
177
+ min-height: 400px;
178
+
177
179
  .bgImg {
178
180
  // height: 700px;
179
181
  }
@@ -83,7 +83,7 @@ function ParallaxScroll(_a) {
83
83
  setColThreeScrollY(space);
84
84
  }
85
85
  }
86
- }, 1000);
86
+ }, 1500);
87
87
  }, [scrollYProgress]);
88
88
  return /*#__PURE__*/_react["default"].createElement("div", {
89
89
  className: "m-parallax-scroll"
@@ -372,7 +372,7 @@ var clickUrl = function clickUrl(url, state) {
372
372
  params = _c === void 0 ? {} : _c;
373
373
  console.log('params...', params); // PC商品卡片弹窗
374
374
 
375
- if (params.type === _constants.urlTypeMap.CARD_PRODUCT_LIST) {
375
+ if (params.type === 'CARD_PRODUCT_LIST') {
376
376
  createProdCardModal(params.offerIds);
377
377
  return;
378
378
  }
@@ -139,7 +139,7 @@ function ProductCardModal(_a) {
139
139
  }
140
140
  }, /*#__PURE__*/_react["default"].createElement("div", {
141
141
  dangerouslySetInnerHTML: {
142
- __html: (0, _commonUtil.xssDecode)(item.goodsIntroduce)
142
+ __html: (0, _commonUtil.xssDecode)(item.goodsIntroduce || '')
143
143
  }
144
144
  })), index === active && /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
145
145
  className: "closIcon",
@@ -14,7 +14,7 @@
14
14
 
15
15
  .content {
16
16
  position: relative;
17
- width: 60%;
17
+ width: 50%;
18
18
 
19
19
  .card {
20
20
  transform-origin: bottom;
@@ -728,9 +728,11 @@ function (_super) {
728
728
  var _a = this.props,
729
729
  videoId = _a.videoId,
730
730
  opts = _a.opts,
731
- play = _a.play;
731
+ play = _a.play,
732
+ onClick = _a.onClick;
732
733
  return /*#__PURE__*/_react["default"].createElement("div", {
733
- className: "video-container"
734
+ className: "video-container",
735
+ onClick: onClick
734
736
  }, opts.source ? /*#__PURE__*/_react["default"].createElement("div", {
735
737
  className: "video-wrap",
736
738
  id: 'video' + videoId
@@ -174,6 +174,8 @@
174
174
  }
175
175
 
176
176
  .carousel-img {
177
+ min-height: 400px;
178
+
177
179
  .bgImg {
178
180
  // height: 700px;
179
181
  }
@@ -83,7 +83,7 @@ function ParallaxScroll(_a) {
83
83
  setColThreeScrollY(space);
84
84
  }
85
85
  }
86
- }, 1000);
86
+ }, 1500);
87
87
  }, [scrollYProgress]);
88
88
  return /*#__PURE__*/_react["default"].createElement("div", {
89
89
  className: "m-parallax-scroll"
@@ -372,7 +372,7 @@ var clickUrl = function clickUrl(url, state) {
372
372
  params = _c === void 0 ? {} : _c;
373
373
  console.log('params...', params); // PC商品卡片弹窗
374
374
 
375
- if (params.type === _constants.urlTypeMap.CARD_PRODUCT_LIST) {
375
+ if (params.type === 'CARD_PRODUCT_LIST') {
376
376
  createProdCardModal(params.offerIds);
377
377
  return;
378
378
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "1.0.145",
4
+ "version": "1.0.147",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",