@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 = {
|
package/es/utils/businessUtil.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
94
|
+
action: 'operation',
|
|
95
95
|
params: {
|
|
96
|
-
|
|
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
|
-
|
|
105
|
+
action: 'operation',
|
|
106
106
|
params: {
|
|
107
107
|
type: 'VIDEO',
|
|
108
108
|
data: (0, _commonUtil.ensure)(function () {
|
package/es/utils/coreUtil.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
94
|
+
action: 'operation',
|
|
95
95
|
params: {
|
|
96
|
-
|
|
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
|
-
|
|
105
|
+
action: 'operation',
|
|
106
106
|
params: {
|
|
107
107
|
type: 'VIDEO',
|
|
108
108
|
data: (0, _commonUtil.ensure)(function () {
|
package/lib/utils/coreUtil.js
CHANGED