@fonixtree/magic-design 1.0.157 → 1.0.159
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/common/ProductCardModal/index.less +4 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/index.js +12 -9
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +3 -2
- package/es/utils/coreUtil.js +3 -5
- package/lib/common/ProductCardModal/index.less +4 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/index.js +12 -9
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +3 -2
- package/lib/utils/coreUtil.js +3 -5
- package/package.json +1 -1
|
@@ -524,15 +524,18 @@ function (_super) {
|
|
|
524
524
|
_this.bannerGoto(_this.props.data.groupSource);
|
|
525
525
|
});
|
|
526
526
|
var navCardDom = document.querySelector('.navigation');
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
527
|
+
|
|
528
|
+
if (navCardDom) {
|
|
529
|
+
document.addEventListener('click', function (event) {
|
|
530
|
+
if (!navCardDom.contains(event.target)) {
|
|
531
|
+
_this.setState({
|
|
532
|
+
activeCatgId: null,
|
|
533
|
+
visible: false,
|
|
534
|
+
relativeLeft: 0
|
|
535
|
+
});
|
|
536
|
+
}
|
|
537
|
+
});
|
|
538
|
+
}
|
|
536
539
|
};
|
|
537
540
|
|
|
538
541
|
SearchDitoPc.prototype.componentWillReceiveProps = function (nextProps) {
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
content: '';
|
|
18
18
|
display: block;
|
|
19
19
|
width: 180%;
|
|
20
|
-
|
|
20
|
+
max-width: 672px;
|
|
21
|
+
height: 840px;
|
|
21
22
|
position: absolute;
|
|
22
23
|
transform: translate(-50%, -50%) rotate(-45deg) scale(0);
|
|
23
24
|
top: 50%;
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
background-size: 100%;
|
|
30
31
|
background-repeat: no-repeat;
|
|
31
32
|
background-position: center;
|
|
32
|
-
transition: transform
|
|
33
|
+
transition: transform 0.7s linear;
|
|
33
34
|
pointer-events: none;
|
|
34
35
|
}
|
|
35
36
|
|
package/es/utils/coreUtil.js
CHANGED
|
@@ -364,13 +364,11 @@ var clickUrl = function clickUrl(url, state) {
|
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
var _b = _typeof(url) === 'object' ? (0, _businessUtil.newParseUrl)(url) : (0, _businessUtil.parseUrl)(url),
|
|
367
|
-
|
|
367
|
+
link = _b.link,
|
|
368
368
|
data = _b.data;
|
|
369
369
|
|
|
370
|
-
var link = isPc() ? "web" + _link : _link;
|
|
371
370
|
var _c = data.params,
|
|
372
|
-
params = _c === void 0 ? {} : _c;
|
|
373
|
-
console.log('params...', params); // PC商品卡片弹窗
|
|
371
|
+
params = _c === void 0 ? {} : _c; // PC商品卡片弹窗
|
|
374
372
|
|
|
375
373
|
if (params.type === 'CARD_PRODUCT_LIST') {
|
|
376
374
|
createProdCardModal(params.offerIds);
|
|
@@ -438,7 +436,7 @@ var clickUrl = function clickUrl(url, state) {
|
|
|
438
436
|
}
|
|
439
437
|
} else {
|
|
440
438
|
if (isPc()) {
|
|
441
|
-
window.location.href += link;
|
|
439
|
+
window.location.href += "web" + link;
|
|
442
440
|
} else {
|
|
443
441
|
(0, _commonUtil.navigateTo)(link, state);
|
|
444
442
|
}
|
|
@@ -524,15 +524,18 @@ function (_super) {
|
|
|
524
524
|
_this.bannerGoto(_this.props.data.groupSource);
|
|
525
525
|
});
|
|
526
526
|
var navCardDom = document.querySelector('.navigation');
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
527
|
+
|
|
528
|
+
if (navCardDom) {
|
|
529
|
+
document.addEventListener('click', function (event) {
|
|
530
|
+
if (!navCardDom.contains(event.target)) {
|
|
531
|
+
_this.setState({
|
|
532
|
+
activeCatgId: null,
|
|
533
|
+
visible: false,
|
|
534
|
+
relativeLeft: 0
|
|
535
|
+
});
|
|
536
|
+
}
|
|
537
|
+
});
|
|
538
|
+
}
|
|
536
539
|
};
|
|
537
540
|
|
|
538
541
|
SearchDitoPc.prototype.componentWillReceiveProps = function (nextProps) {
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
content: '';
|
|
18
18
|
display: block;
|
|
19
19
|
width: 180%;
|
|
20
|
-
|
|
20
|
+
max-width: 672px;
|
|
21
|
+
height: 840px;
|
|
21
22
|
position: absolute;
|
|
22
23
|
transform: translate(-50%, -50%) rotate(-45deg) scale(0);
|
|
23
24
|
top: 50%;
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
background-size: 100%;
|
|
30
31
|
background-repeat: no-repeat;
|
|
31
32
|
background-position: center;
|
|
32
|
-
transition: transform
|
|
33
|
+
transition: transform 0.7s linear;
|
|
33
34
|
pointer-events: none;
|
|
34
35
|
}
|
|
35
36
|
|
package/lib/utils/coreUtil.js
CHANGED
|
@@ -364,13 +364,11 @@ var clickUrl = function clickUrl(url, state) {
|
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
var _b = _typeof(url) === 'object' ? (0, _businessUtil.newParseUrl)(url) : (0, _businessUtil.parseUrl)(url),
|
|
367
|
-
|
|
367
|
+
link = _b.link,
|
|
368
368
|
data = _b.data;
|
|
369
369
|
|
|
370
|
-
var link = isPc() ? "web" + _link : _link;
|
|
371
370
|
var _c = data.params,
|
|
372
|
-
params = _c === void 0 ? {} : _c;
|
|
373
|
-
console.log('params...', params); // PC商品卡片弹窗
|
|
371
|
+
params = _c === void 0 ? {} : _c; // PC商品卡片弹窗
|
|
374
372
|
|
|
375
373
|
if (params.type === 'CARD_PRODUCT_LIST') {
|
|
376
374
|
createProdCardModal(params.offerIds);
|
|
@@ -438,7 +436,7 @@ var clickUrl = function clickUrl(url, state) {
|
|
|
438
436
|
}
|
|
439
437
|
} else {
|
|
440
438
|
if (isPc()) {
|
|
441
|
-
window.location.href += link;
|
|
439
|
+
window.location.href += "web" + link;
|
|
442
440
|
} else {
|
|
443
441
|
(0, _commonUtil.navigateTo)(link, state);
|
|
444
442
|
}
|