@fonixtree/magic-design 0.1.78 → 1.0.2-0.1
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/assets/fonts/.DS_Store +0 -0
- package/es/composite-comp/bol/components/Banner/mobile/index.less +78 -52
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
- package/es/composite-comp/bol/components/ImageText/pc/index.js +2 -2
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -21
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -36
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -43
- package/es/composite-comp/bol/components/Video/mobile/index.less +3 -2
- package/es/composite-comp/bol/components/Wallet/mobile/index.less +40 -27
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +8 -6
- package/es/composite-comp/common/components/ProductItem/index.js +6 -8
- package/es/composite-comp/common/components/ProductItem/index.less +22 -28
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
- package/es/composite-comp/dito/components/Recommend/pc/index.js +6 -6
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
- package/es/composite-comp/dito/components/SignBoard/mobile/index.js +2 -2
- package/es/composite-comp/dito/components/SignBoard/mobile/index.less +66 -62
- package/es/core/Designer/History/index.js +2 -2
- package/es/core/Designer/PageCompList/index.js +5 -3
- package/es/core/Designer/index.js +0 -3
- package/es/core/Renderer/index.js +21 -20
- package/es/meta-comp/config-panels/ButtonConfig/index.js +5 -5
- package/es/utils/businessUtil.js +3 -3
- package/es/utils/commonUtil.js +6 -4
- package/lib/assets/fonts/.DS_Store +0 -0
- package/lib/composite-comp/bol/components/Banner/mobile/index.less +78 -52
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
- package/lib/composite-comp/bol/components/ImageText/pc/index.js +2 -2
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -21
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -36
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -43
- package/lib/composite-comp/bol/components/Video/mobile/index.less +3 -2
- package/lib/composite-comp/bol/components/Wallet/mobile/index.less +40 -27
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +8 -6
- package/lib/composite-comp/common/components/ProductItem/index.js +6 -8
- package/lib/composite-comp/common/components/ProductItem/index.less +22 -28
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +6 -6
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +2 -2
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +66 -62
- package/lib/core/Designer/History/index.js +2 -2
- package/lib/core/Designer/PageCompList/index.js +5 -3
- package/lib/core/Designer/index.js +0 -3
- package/lib/core/Renderer/index.js +21 -20
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +5 -5
- package/lib/utils/businessUtil.js +3 -3
- package/lib/utils/commonUtil.js +6 -4
- package/package.json +1 -1
|
@@ -1,76 +1,89 @@
|
|
|
1
1
|
.m-recommend-mobile {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
|
|
5
|
-
.
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
.
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
4
|
+
|
|
5
|
+
.cylon-tabs-nav-operations {
|
|
6
|
+
display: none !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
::-webkit-scrollbar {
|
|
10
|
+
width: 0;
|
|
11
|
+
height: 0;
|
|
12
|
+
display: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
.tab-select-wrap {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
height: 50px;
|
|
20
|
+
background: rgb(255 255 255);
|
|
21
|
+
overflow: auto;
|
|
22
|
+
position: relative;
|
|
23
|
+
margin-bottom: 15px;
|
|
24
|
+
|
|
25
|
+
.tabTitle {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
text-align: center;
|
|
29
|
+
padding: 0 16px;
|
|
30
|
+
width: fit-content;
|
|
31
|
+
height: 100%;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
white-space: nowrap;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
|
|
36
|
+
img {
|
|
37
|
+
height: 20px;
|
|
38
|
+
width: 20px;
|
|
39
|
+
margin-bottom: 2px;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.active-line {
|
|
44
|
+
position: absolute;
|
|
45
|
+
bottom: 0;
|
|
46
|
+
width: 200px;
|
|
47
|
+
height: 3px;
|
|
48
|
+
background-color: #fff;
|
|
49
|
+
transition: .2s all linear;
|
|
50
|
+
border-radius: 1.5px;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.macyContainer {
|
|
55
|
+
display: flex;
|
|
56
|
+
margin: 0 16px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.scrollContainer {
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: row;
|
|
62
|
+
align-items: center;
|
|
63
|
+
margin: 0 16px;
|
|
64
|
+
overflow-x: auto;
|
|
65
|
+
padding-bottom: 15px;
|
|
66
|
+
|
|
67
|
+
&.pl_100 {
|
|
68
|
+
padding-left: 100px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.scrollProductList {
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: row;
|
|
74
|
+
align-items: flex-start;
|
|
75
|
+
|
|
76
|
+
.productCard {
|
|
77
|
+
margin-right: 12px;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.btnSeeAll {
|
|
83
|
+
display: block;
|
|
84
|
+
width: fit-content;
|
|
85
|
+
min-width: 80px;
|
|
86
|
+
margin: 0 auto;
|
|
87
|
+
flex: none;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -13,9 +13,9 @@ require("./index.less");
|
|
|
13
13
|
|
|
14
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _lodash = _interopRequireDefault(require("lodash.throttle"));
|
|
19
19
|
|
|
20
20
|
var _mobx = require("../../../../../mobx");
|
|
21
21
|
|
|
@@ -479,7 +479,7 @@ function (_super) {
|
|
|
479
479
|
if (scrollDom) {
|
|
480
480
|
_this.setScrollDisabled(scrollDom);
|
|
481
481
|
|
|
482
|
-
scrollDom.onscroll = (0,
|
|
482
|
+
scrollDom.onscroll = (0, _lodash["default"])(function () {
|
|
483
483
|
_this.setScrollDisabled(scrollDom);
|
|
484
484
|
}, 500);
|
|
485
485
|
}
|
|
@@ -527,13 +527,13 @@ function (_super) {
|
|
|
527
527
|
if (scrollDom) {
|
|
528
528
|
_this.setScrollDisabled(scrollDom);
|
|
529
529
|
|
|
530
|
-
scrollDom.onscroll = (0,
|
|
530
|
+
scrollDom.onscroll = (0, _lodash["default"])(function () {
|
|
531
531
|
_this.setScrollDisabled(scrollDom);
|
|
532
532
|
}, 500);
|
|
533
533
|
}
|
|
534
534
|
}, 0);
|
|
535
535
|
this.listenWidth();
|
|
536
|
-
window.addEventListener('resize', (0,
|
|
536
|
+
window.addEventListener('resize', (0, _debounce["default"])(this.listenWidth));
|
|
537
537
|
};
|
|
538
538
|
|
|
539
539
|
RecommendMobile.prototype.componentWillUnmount = function () {
|
|
@@ -589,7 +589,7 @@ function (_super) {
|
|
|
589
589
|
if (scrollDom) {
|
|
590
590
|
_this.setScrollDisabled(scrollDom);
|
|
591
591
|
|
|
592
|
-
scrollDom.onscroll = (0,
|
|
592
|
+
scrollDom.onscroll = (0, _lodash["default"])(function () {
|
|
593
593
|
_this.setScrollDisabled(scrollDom);
|
|
594
594
|
}, 500);
|
|
595
595
|
}
|
|
@@ -1,51 +1,58 @@
|
|
|
1
1
|
.m-search-bar {
|
|
2
|
-
height:
|
|
3
|
-
padding:
|
|
2
|
+
height: 48px;
|
|
3
|
+
padding: 8px 0;
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: row-reverse;
|
|
6
6
|
align-items: center;
|
|
7
7
|
justify-content: space-between;
|
|
8
8
|
width: 100%;
|
|
9
|
-
|
|
10
|
-
.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
9
|
+
|
|
10
|
+
.right {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex: 1;
|
|
13
|
+
margin-left: 15px;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: space-between;
|
|
16
|
+
|
|
17
|
+
.search-input-wrap {
|
|
18
|
+
flex: 1;
|
|
19
|
+
background: #fff;
|
|
20
|
+
border-radius: 4px;
|
|
21
|
+
border: 1px solid #D2D9E5;
|
|
22
|
+
padding: 4px 12px;
|
|
23
|
+
height: 32px;
|
|
24
|
+
text-align: right;
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: flex-end;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.message-wrap {
|
|
30
|
+
position: relative;
|
|
31
|
+
margin-left: 10px;
|
|
32
|
+
|
|
33
|
+
.num {
|
|
34
|
+
position: absolute;
|
|
35
|
+
top: -6px;
|
|
36
|
+
right: -6px;
|
|
37
|
+
display: inline-block;
|
|
38
|
+
padding: 1px 2px;
|
|
39
|
+
min-width: 17px;
|
|
40
|
+
text-align: center;
|
|
41
|
+
background-color: #CE1126;
|
|
42
|
+
border: 1px solid #fff;
|
|
43
|
+
border-radius: 8px;
|
|
44
|
+
font-family: 'Montserrat';
|
|
45
|
+
font-style: normal;
|
|
46
|
+
font-weight: 600;
|
|
47
|
+
font-size: 8px;
|
|
48
|
+
color: #FFFFFF;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.logo {
|
|
54
|
+
img {
|
|
55
|
+
width: auto;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -380,14 +380,14 @@ function (_super) {
|
|
|
380
380
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
381
381
|
onClick: this.clickCollect
|
|
382
382
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
383
|
-
color: isFollow ? '#
|
|
383
|
+
color: isFollow ? '#fe1559' : '#333333',
|
|
384
384
|
size: (0, _commonUtil.convertToRem)(24),
|
|
385
385
|
type: isFollow ? 'icon-HeartStraight_fill' : 'icon-HeartStraight'
|
|
386
386
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
387
387
|
className: "store-info-wrap"
|
|
388
388
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
389
389
|
className: "number"
|
|
390
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.storeEvalValue) ? Number(storeInfo.storeEvalValue / 100).toFixed(1) : '5
|
|
390
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.storeEvalValue) ? Number(storeInfo.storeEvalValue / 100).toFixed(1) : '5.0', " "), /*#__PURE__*/_react["default"].createElement("img", {
|
|
391
391
|
alt: "star",
|
|
392
392
|
src: _star["default"]
|
|
393
393
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -1,64 +1,68 @@
|
|
|
1
1
|
.m-sign-board-bar {
|
|
2
2
|
width: 100%;
|
|
3
|
-
|
|
4
|
-
.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
.
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
3
|
+
|
|
4
|
+
.search {
|
|
5
|
+
width: 100%;
|
|
6
|
+
background: #EEEEEE;
|
|
7
|
+
border-radius: 8px;
|
|
8
|
+
padding: 8px 12px;
|
|
9
|
+
height: 36px;
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
align-items: center;
|
|
13
|
+
margin-bottom: 4px;
|
|
14
|
+
.search-input {
|
|
15
|
+
height: 20px;
|
|
16
|
+
font-weight: 400;
|
|
17
|
+
font-size: 16px;
|
|
18
|
+
line-height: 20px;
|
|
19
|
+
padding: 0;
|
|
20
|
+
background-color: transparent;
|
|
21
|
+
border: none;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.store-info-wrap {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
margin-top: 20px;
|
|
29
|
+
.number {
|
|
30
|
+
font-family: 'Montserrat';
|
|
31
|
+
font-weight: 400;
|
|
32
|
+
font-size: 12px;
|
|
33
|
+
line-height: 16px;
|
|
34
|
+
color: #696973;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
&> img {
|
|
38
|
+
width: 14px;
|
|
39
|
+
}
|
|
40
|
+
&> span {
|
|
41
|
+
font-weight: 700;
|
|
42
|
+
font-size: 14px;
|
|
43
|
+
line-height: 18px;
|
|
44
|
+
color: #333333;
|
|
45
|
+
margin: 0 4px;
|
|
46
|
+
}
|
|
47
|
+
&:nth-child(2) {
|
|
48
|
+
margin-left: 24px;
|
|
49
|
+
flex: 1;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
.chat-btn {
|
|
53
|
+
padding: 5px 12px;
|
|
54
|
+
// height: 26px;
|
|
55
|
+
background: #FFFFFF;
|
|
56
|
+
border: 1px solid #333333;
|
|
57
|
+
border-radius: 4px;
|
|
58
|
+
width: fit-content;
|
|
59
|
+
font-family: 'Montserrat';
|
|
60
|
+
font-weight: 400;
|
|
61
|
+
font-size: 12px;
|
|
62
|
+
line-height: 16px;
|
|
63
|
+
text-transform: uppercase;
|
|
64
|
+
color: #333333;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
}
|
|
@@ -7,7 +7,7 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _cloneDeep = _interopRequireDefault(require("lodash/cloneDeep"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
13
|
|
|
@@ -79,7 +79,7 @@ function () {
|
|
|
79
79
|
_this.doAction(callback);
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
this.doAction = (0,
|
|
82
|
+
this.doAction = (0, _debounce["default"])(function (callback) {
|
|
83
83
|
var newCursor = _this.cursor + _this.step;
|
|
84
84
|
_this.cursor = newCursor;
|
|
85
85
|
var newData = (0, _cloneDeep["default"])(_this.list[newCursor]);
|
|
@@ -15,7 +15,9 @@ var _immutabilityHelper = _interopRequireDefault(require("immutability-helper"))
|
|
|
15
15
|
|
|
16
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _findLastIndex = _interopRequireDefault(require("lodash/findLastIndex"));
|
|
19
|
+
|
|
20
|
+
var _findIndex = _interopRequireDefault(require("lodash/findIndex"));
|
|
19
21
|
|
|
20
22
|
var _common = require("../../../common");
|
|
21
23
|
|
|
@@ -139,7 +141,7 @@ function PageCompList(_a) {
|
|
|
139
141
|
|
|
140
142
|
var getLastSameIndex = function getLastSameIndex(comps, index) {
|
|
141
143
|
var lastComps = comps.slice(0, index);
|
|
142
|
-
var newIndex = (0,
|
|
144
|
+
var newIndex = (0, _findLastIndex["default"])(lastComps, function (comp) {
|
|
143
145
|
return (0, _coreUtil.isActiveFloor)(comp.activeTerminal);
|
|
144
146
|
});
|
|
145
147
|
return newIndex;
|
|
@@ -147,7 +149,7 @@ function PageCompList(_a) {
|
|
|
147
149
|
|
|
148
150
|
var getNextSameIndex = function getNextSameIndex(comps, index) {
|
|
149
151
|
var nextComps = comps.slice(index + 1);
|
|
150
|
-
var newIndex = (0,
|
|
152
|
+
var newIndex = (0, _findIndex["default"])(nextComps, function (comp) {
|
|
151
153
|
return (0, _coreUtil.isActiveFloor)(comp.activeTerminal);
|
|
152
154
|
});
|
|
153
155
|
return newIndex + index + 1;
|
|
@@ -58,36 +58,38 @@ var Renderer = function Renderer(props) {
|
|
|
58
58
|
outputType = props.outputType,
|
|
59
59
|
noSetWindow = props.noSetWindow;
|
|
60
60
|
|
|
61
|
-
var _a = (0, _react.useState)([]),
|
|
62
|
-
floors = _a[0],
|
|
63
|
-
setFloors = _a[1];
|
|
64
|
-
|
|
65
61
|
if (!noSetWindow) {
|
|
66
62
|
setDesignConfig(props);
|
|
67
63
|
}
|
|
68
64
|
|
|
69
65
|
window.magicDesignPageData = pageData;
|
|
70
|
-
var pageBackground = window.magicDesign.pageBackground;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
var
|
|
66
|
+
var pageBackground = window.magicDesign.pageBackground; // 根据楼层展示设备进行过滤
|
|
67
|
+
|
|
68
|
+
var filterCompFloor = function filterCompFloor() {
|
|
69
|
+
var source = [];
|
|
74
70
|
|
|
75
71
|
if (pageData && pageData.childNodes && pageData.childNodes.length) {
|
|
76
|
-
|
|
72
|
+
source = pageData.childNodes.filter(function (node) {
|
|
77
73
|
return (0, _coreUtil.isActiveFloor)(node.activeTerminal);
|
|
78
74
|
});
|
|
79
|
-
}
|
|
75
|
+
}
|
|
80
76
|
|
|
77
|
+
return source;
|
|
78
|
+
};
|
|
81
79
|
|
|
82
|
-
setFloors(filterData.slice(0, 5));
|
|
83
|
-
setTimeout(function () {
|
|
84
|
-
setFloors(filterData.slice(0, 10));
|
|
85
|
-
setTimeout(function () {
|
|
86
|
-
setFloors(filterData);
|
|
87
|
-
}, 200);
|
|
88
|
-
}, 200);
|
|
89
|
-
}, [pageData]);
|
|
90
80
|
(0, _react.useEffect)(function () {
|
|
81
|
+
// const data = await fishFetch('/h5/ga/mediaid', {}, 'GET');
|
|
82
|
+
(0, _commonUtil.importAsync)('https://www.googletagmanager.com/gtag/js?id=G-7B9GSSLVX3', 'js').then(function () {
|
|
83
|
+
window.dataLayer = window.dataLayer || [];
|
|
84
|
+
|
|
85
|
+
function gtag() {
|
|
86
|
+
dataLayer.push(arguments);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
gtag('js', new Date());
|
|
90
|
+
gtag('config', 'G-7B9GSSLVX3');
|
|
91
|
+
window.gtag = gtag;
|
|
92
|
+
});
|
|
91
93
|
setTimeout(function () {
|
|
92
94
|
var _a;
|
|
93
95
|
|
|
@@ -101,11 +103,10 @@ var Renderer = function Renderer(props) {
|
|
|
101
103
|
className: "render_wrap",
|
|
102
104
|
magic_design: "",
|
|
103
105
|
style: {
|
|
104
|
-
height: '100%',
|
|
105
106
|
background: pageBackground,
|
|
106
107
|
overflow: 'auto'
|
|
107
108
|
}
|
|
108
|
-
},
|
|
109
|
+
}, filterCompFloor().map(function (nodeData, moduleIndex) {
|
|
109
110
|
var Clazz = _componentTypes.componentMap[nodeData.type];
|
|
110
111
|
|
|
111
112
|
if (!Clazz) {
|
|
@@ -11,7 +11,7 @@ var _antd = require("antd");
|
|
|
11
11
|
|
|
12
12
|
require("./index.less");
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _cloneDeep = _interopRequireDefault(require("lodash/cloneDeep"));
|
|
15
15
|
|
|
16
16
|
var _locale = require("../../../locale");
|
|
17
17
|
|
|
@@ -106,11 +106,11 @@ function (_super) {
|
|
|
106
106
|
|
|
107
107
|
_this.updateAttr(data, 'hover', {
|
|
108
108
|
open: true,
|
|
109
|
-
buttonBorder: (0,
|
|
110
|
-
buttonIcon: (0,
|
|
111
|
-
buttonText: (0,
|
|
109
|
+
buttonBorder: (0, _cloneDeep["default"])(data.buttonBorder),
|
|
110
|
+
buttonIcon: (0, _cloneDeep["default"])(data.buttonIcon),
|
|
111
|
+
buttonText: (0, _cloneDeep["default"])(data.buttonText),
|
|
112
112
|
content: {
|
|
113
|
-
backgroundColor: (0,
|
|
113
|
+
backgroundColor: (0, _cloneDeep["default"])(data.content.backgroundColor)
|
|
114
114
|
}
|
|
115
115
|
}); // console.log('--ffd, button hover first click', data);
|
|
116
116
|
|
|
@@ -7,7 +7,7 @@ exports.renderPreview = exports.parseUrl = exports.newParseUrl = exports.listToT
|
|
|
7
7
|
|
|
8
8
|
var _qs = _interopRequireDefault(require("qs"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _pickBy = _interopRequireDefault(require("lodash/pickBy"));
|
|
11
11
|
|
|
12
12
|
var _commonUtil = require("./commonUtil");
|
|
13
13
|
|
|
@@ -87,7 +87,7 @@ var newParseUrl = function newParseUrl(urlObj) {
|
|
|
87
87
|
action: 'jump',
|
|
88
88
|
params: {
|
|
89
89
|
type: 'PRODUCT_LIST',
|
|
90
|
-
params: (0,
|
|
90
|
+
params: (0, _pickBy["default"])(_qs["default"].parse(value), function (value) {
|
|
91
91
|
return value;
|
|
92
92
|
})
|
|
93
93
|
}
|
|
@@ -256,7 +256,7 @@ var parseUrl = function parseUrl(url) {
|
|
|
256
256
|
action: 'jump',
|
|
257
257
|
params: {
|
|
258
258
|
type: 'PRODUCT_LIST',
|
|
259
|
-
params: (0,
|
|
259
|
+
params: (0, _pickBy["default"])(_qs["default"].parse(arg1), function (value) {
|
|
260
260
|
return value;
|
|
261
261
|
})
|
|
262
262
|
}
|