@fonixtree/magic-design 0.0.180 → 0.0.183

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.
@@ -116,6 +116,11 @@ function compositeDecorator(WrappedComponent) {
116
116
 
117
117
  if (nodeData.type === 'CAROUSEL' || nodeData.type === 'IMAGE_GALLERY') {
118
118
  zIndex = '1';
119
+ } // 解决pc导航hover上去,类目被下面组件遮罩的问题
120
+
121
+
122
+ if (nodeData.type === 'PC_NAVIGATION') {
123
+ zIndex = '2';
119
124
  }
120
125
 
121
126
  var wrapStyle = {
@@ -81,7 +81,7 @@ var parseUrl = function parseUrl(url) {
81
81
  case _constants.urlType.ANCHOR:
82
82
  // document.getElementById(id) && document.getElementById(id).scrollIntoView({ behavior: 'smooth' });
83
83
  params = {
84
- type: 'ANCHOR',
84
+ action: 'ANCHOR',
85
85
  data: {
86
86
  id: arg1
87
87
  }
@@ -91,9 +91,9 @@ var parseUrl = function parseUrl(url) {
91
91
  case _constants.urlType.GET_COUPON:
92
92
  // 领取优惠券
93
93
  params = {
94
- type: 'operation',
94
+ action: 'operation',
95
95
  params: {
96
- action: 'GET_COUPON',
96
+ type: 'GET_COUPON',
97
97
  couponId: arg1
98
98
  }
99
99
  };
@@ -102,7 +102,7 @@ var parseUrl = function parseUrl(url) {
102
102
  case _constants.urlType.VIDEO:
103
103
  // 播放视频
104
104
  params = {
105
- type: 'operation',
105
+ action: 'operation',
106
106
  params: {
107
107
  type: 'VIDEO',
108
108
  data: (0, _commonUtil.ensure)(function () {
@@ -310,7 +310,7 @@ var clickUrl = function clickUrl(url) {
310
310
  }
311
311
 
312
312
  if ((0, _androidUtil.browserVersion)().isApp) {
313
- (0, _androidUtil.sendToApp)(params);
313
+ (0, _androidUtil.sendToApp)(data);
314
314
  } else {
315
315
  // 视频
316
316
  if (params.type === 'VIDEO') {
@@ -116,6 +116,11 @@ function compositeDecorator(WrappedComponent) {
116
116
 
117
117
  if (nodeData.type === 'CAROUSEL' || nodeData.type === 'IMAGE_GALLERY') {
118
118
  zIndex = '1';
119
+ } // 解决pc导航hover上去,类目被下面组件遮罩的问题
120
+
121
+
122
+ if (nodeData.type === 'PC_NAVIGATION') {
123
+ zIndex = '2';
119
124
  }
120
125
 
121
126
  var wrapStyle = {
@@ -81,7 +81,7 @@ var parseUrl = function parseUrl(url) {
81
81
  case _constants.urlType.ANCHOR:
82
82
  // document.getElementById(id) && document.getElementById(id).scrollIntoView({ behavior: 'smooth' });
83
83
  params = {
84
- type: 'ANCHOR',
84
+ action: 'ANCHOR',
85
85
  data: {
86
86
  id: arg1
87
87
  }
@@ -91,9 +91,9 @@ var parseUrl = function parseUrl(url) {
91
91
  case _constants.urlType.GET_COUPON:
92
92
  // 领取优惠券
93
93
  params = {
94
- type: 'operation',
94
+ action: 'operation',
95
95
  params: {
96
- action: 'GET_COUPON',
96
+ type: 'GET_COUPON',
97
97
  couponId: arg1
98
98
  }
99
99
  };
@@ -102,7 +102,7 @@ var parseUrl = function parseUrl(url) {
102
102
  case _constants.urlType.VIDEO:
103
103
  // 播放视频
104
104
  params = {
105
- type: 'operation',
105
+ action: 'operation',
106
106
  params: {
107
107
  type: 'VIDEO',
108
108
  data: (0, _commonUtil.ensure)(function () {
@@ -310,7 +310,7 @@ var clickUrl = function clickUrl(url) {
310
310
  }
311
311
 
312
312
  if ((0, _androidUtil.browserVersion)().isApp) {
313
- (0, _androidUtil.sendToApp)(params);
313
+ (0, _androidUtil.sendToApp)(data);
314
314
  } else {
315
315
  // 视频
316
316
  if (params.type === 'VIDEO') {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "0.0.180",
4
+ "version": "0.0.183",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",