@fonixtree/magic-design 0.1.69 → 0.1.70-nuri

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.
Files changed (93) hide show
  1. package/es/assets/fonts/.DS_Store +0 -0
  2. package/es/common/LinkModal/AffiliateProductTable/index.js +3 -2
  3. package/es/composite-comp/bol/components/Banner/mobile/index.js +1 -4
  4. package/es/composite-comp/bol/components/Banner/mobile/index.less +52 -78
  5. package/es/composite-comp/bol/components/Banner/pc/index.js +1 -4
  6. package/es/composite-comp/bol/components/Button/index.js +3 -4
  7. package/es/composite-comp/bol/components/Carousel/mobile/index.js +1 -4
  8. package/es/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
  9. package/es/composite-comp/bol/components/Carousel/pc/index.js +1 -4
  10. package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +1 -4
  11. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
  12. package/es/composite-comp/bol/components/ImageGallery/pc/index.js +3 -4
  13. package/es/composite-comp/bol/components/ImageText/mobile/index.js +1 -4
  14. package/es/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
  15. package/es/composite-comp/bol/components/ImageText/pc/index.js +3 -4
  16. package/es/composite-comp/bol/components/Newsletter/index.js +1 -4
  17. package/es/composite-comp/bol/components/Tag/index.js +3 -4
  18. package/es/composite-comp/bol/components/Text/index.js +3 -4
  19. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.js +1 -4
  20. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
  21. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.js +1 -4
  22. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
  23. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.js +1 -4
  24. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -54
  25. package/es/composite-comp/bol/components/Video/mobile/index.less +2 -3
  26. package/es/composite-comp/bol/components/Video/pc/Layout1/index.js +1 -4
  27. package/es/composite-comp/bol/components/Video/pc/Layout2/index.js +1 -4
  28. package/es/composite-comp/bol/components/Video/pc/Layout3/index.js +1 -4
  29. package/es/composite-comp/bol/components/Video/pc/Layout4/index.js +1 -4
  30. package/es/composite-comp/bol/components/Video/pc/Layout5/index.js +1 -4
  31. package/es/composite-comp/bol/components/Wallet/mobile/index.js +1 -4
  32. package/es/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
  33. package/es/composite-comp/bol/components/Wallet/pc/index.js +1 -4
  34. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
  35. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
  36. package/es/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
  37. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
  38. package/es/composite-comp/dito/components/SignBoard/mobile/index.less +76 -80
  39. package/es/decorator/metaDecorator.js +1 -1
  40. package/es/locale/en/en.json +2 -0
  41. package/es/locale/es/es.json +2 -0
  42. package/es/locale/id/id.json +2 -0
  43. package/es/meta-comp/config-panels/TextConfig/index.js +5 -1
  44. package/es/utils/businessUtil.js +3 -2
  45. package/es/utils/commonUtil.js +15 -2
  46. package/es/utils/coreUtil.js +22 -26
  47. package/lib/assets/fonts/.DS_Store +0 -0
  48. package/lib/common/LinkModal/AffiliateProductTable/index.js +3 -2
  49. package/lib/composite-comp/bol/components/Banner/mobile/index.js +1 -4
  50. package/lib/composite-comp/bol/components/Banner/mobile/index.less +52 -78
  51. package/lib/composite-comp/bol/components/Banner/pc/index.js +1 -4
  52. package/lib/composite-comp/bol/components/Button/index.js +3 -4
  53. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +1 -4
  54. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
  55. package/lib/composite-comp/bol/components/Carousel/pc/index.js +1 -4
  56. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +1 -4
  57. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
  58. package/lib/composite-comp/bol/components/ImageGallery/pc/index.js +3 -4
  59. package/lib/composite-comp/bol/components/ImageText/mobile/index.js +1 -4
  60. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
  61. package/lib/composite-comp/bol/components/ImageText/pc/index.js +3 -4
  62. package/lib/composite-comp/bol/components/Newsletter/index.js +1 -4
  63. package/lib/composite-comp/bol/components/Tag/index.js +3 -4
  64. package/lib/composite-comp/bol/components/Text/index.js +3 -4
  65. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.js +1 -4
  66. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
  67. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.js +1 -4
  68. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
  69. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.js +1 -4
  70. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -54
  71. package/lib/composite-comp/bol/components/Video/mobile/index.less +2 -3
  72. package/lib/composite-comp/bol/components/Video/pc/Layout1/index.js +1 -4
  73. package/lib/composite-comp/bol/components/Video/pc/Layout2/index.js +1 -4
  74. package/lib/composite-comp/bol/components/Video/pc/Layout3/index.js +1 -4
  75. package/lib/composite-comp/bol/components/Video/pc/Layout4/index.js +1 -4
  76. package/lib/composite-comp/bol/components/Video/pc/Layout5/index.js +1 -4
  77. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +1 -4
  78. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
  79. package/lib/composite-comp/bol/components/Wallet/pc/index.js +1 -4
  80. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
  81. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
  82. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
  83. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
  84. package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +76 -80
  85. package/lib/decorator/metaDecorator.js +1 -1
  86. package/lib/locale/en/en.json +2 -0
  87. package/lib/locale/es/es.json +2 -0
  88. package/lib/locale/id/id.json +2 -0
  89. package/lib/meta-comp/config-panels/TextConfig/index.js +5 -1
  90. package/lib/utils/businessUtil.js +3 -2
  91. package/lib/utils/commonUtil.js +15 -2
  92. package/lib/utils/coreUtil.js +22 -26
  93. package/package.json +1 -1
@@ -1,38 +1,21 @@
1
- .mobile-navigation-mobile {
2
- // display: flex;
3
- // flex-direction: column;
4
- // padding-top: 18px;
5
- .group-wrap {
6
- padding: 0 20px;
7
- display: flex;
8
- .one-card {
9
- // display: flex;
10
-
11
- .card-image-wrap {
12
- margin-bottom: 4px;
13
- width: 100%;
14
- }
15
- }
16
- }
17
-
1
+ .mobile-navigation-mobile .group-wrap {
2
+ padding: 0 0.4rem;
3
+ display: flex;
18
4
  }
19
-
20
- .newline {
21
- .group-wrap {
22
- flex-wrap: wrap;
23
- }
5
+ .mobile-navigation-mobile .group-wrap .one-card .card-image-wrap {
6
+ margin-bottom: 0.08rem;
7
+ width: 100%;
24
8
  }
25
-
26
- .tile {
27
- .group-wrap {
28
- // overflow-x: scroll;
29
- overflow-x: auto;
30
- flex-wrap: nowrap;
31
- scroll-snap-type: x;
32
- padding: 0 15px;
33
- .one-card {
34
- flex-shrink: 0;
35
- scroll-snap-align: end;
36
- }
37
- }
9
+ .newline .group-wrap {
10
+ flex-wrap: wrap;
11
+ }
12
+ .tile .group-wrap {
13
+ overflow-x: auto;
14
+ flex-wrap: nowrap;
15
+ scroll-snap-type: x;
16
+ padding: 0 0.3rem;
17
+ }
18
+ .tile .group-wrap .one-card {
19
+ flex-shrink: 0;
20
+ scroll-snap-align: end;
38
21
  }
@@ -1,89 +1,76 @@
1
1
  .m-recommend-mobile {
2
2
  display: flex;
3
3
  flex-direction: column;
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
- }
4
+ }
5
+ .m-recommend-mobile .cylon-tabs-nav-operations {
6
+ display: none !important;
7
+ }
8
+ .m-recommend-mobile ::-webkit-scrollbar {
9
+ width: 0;
10
+ height: 0;
11
+ display: none;
12
+ }
13
+ .m-recommend-mobile .tab-select-wrap {
14
+ display: flex;
15
+ align-items: center;
16
+ height: 1rem;
17
+ background: #ffffff;
18
+ overflow: auto;
19
+ position: relative;
20
+ margin-bottom: 0.3rem;
21
+ }
22
+ .m-recommend-mobile .tab-select-wrap .tabTitle {
23
+ display: flex;
24
+ align-items: center;
25
+ text-align: center;
26
+ padding: 0 0.32rem;
27
+ width: fit-content;
28
+ height: 100%;
29
+ justify-content: center;
30
+ white-space: nowrap;
31
+ flex-direction: column;
32
+ }
33
+ .m-recommend-mobile .tab-select-wrap .tabTitle img {
34
+ height: 0.4rem;
35
+ width: 0.4rem;
36
+ margin-bottom: 0.04rem;
37
+ }
38
+ .m-recommend-mobile .tab-select-wrap .active-line {
39
+ position: absolute;
40
+ bottom: 0;
41
+ width: 4rem;
42
+ height: 0.06rem;
43
+ background-color: #fff;
44
+ transition: 0.2s all linear;
45
+ border-radius: 0.03rem;
46
+ }
47
+ .m-recommend-mobile .macyContainer {
48
+ display: flex;
49
+ margin: 0 0.32rem;
50
+ }
51
+ .m-recommend-mobile .scrollContainer {
52
+ display: flex;
53
+ flex-direction: row;
54
+ align-items: center;
55
+ margin: 0 0.32rem;
56
+ overflow-x: auto;
57
+ padding-bottom: 0.3rem;
58
+ }
59
+ .m-recommend-mobile .scrollContainer.pl_100 {
60
+ padding-left: 2rem;
61
+ }
62
+ .m-recommend-mobile .scrollContainer .scrollProductList {
63
+ display: flex;
64
+ flex-direction: row;
65
+ align-items: flex-start;
66
+ }
67
+ .m-recommend-mobile .scrollContainer .scrollProductList .productCard {
68
+ margin-right: 0.24rem;
69
+ }
70
+ .m-recommend-mobile .btnSeeAll {
71
+ display: block;
72
+ width: fit-content;
73
+ min-width: 1.6rem;
74
+ margin: 0 auto;
75
+ flex: none;
76
+ }
@@ -1,58 +1,51 @@
1
1
  .m-search-bar {
2
- height: 48px;
3
- padding: 8px 0;
2
+ height: 0.96rem;
3
+ padding: 0.16rem 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
- .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
- }
9
+ }
10
+ .m-search-bar .right {
11
+ display: flex;
12
+ flex: 1;
13
+ margin-left: 0.3rem;
14
+ align-items: center;
15
+ justify-content: space-between;
16
+ }
17
+ .m-search-bar .right .search-input-wrap {
18
+ flex: 1;
19
+ background: #fff;
20
+ border-radius: 0.08rem;
21
+ border: 0.02rem solid #D2D9E5;
22
+ padding: 0.08rem 0.24rem;
23
+ height: 0.64rem;
24
+ text-align: right;
25
+ display: flex;
26
+ justify-content: flex-end;
27
+ }
28
+ .m-search-bar .right .message-wrap {
29
+ position: relative;
30
+ margin-left: 0.2rem;
31
+ }
32
+ .m-search-bar .right .message-wrap .num {
33
+ position: absolute;
34
+ top: -0.12rem;
35
+ right: -0.12rem;
36
+ display: inline-block;
37
+ padding: 0.02rem 0.04rem;
38
+ min-width: 0.34rem;
39
+ text-align: center;
40
+ background-color: #CE1126;
41
+ border: 0.02rem solid #fff;
42
+ border-radius: 0.16rem;
43
+ font-family: 'Montserrat';
44
+ font-style: normal;
45
+ font-weight: 600;
46
+ font-size: 0.16rem;
47
+ color: #FFFFFF;
48
+ }
49
+ .m-search-bar .logo img {
50
+ width: auto;
51
+ }
@@ -1,82 +1,78 @@
1
1
  .m-sign-board-bar {
2
2
  width: 100%;
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
- .store-logo {
67
- width: 44px;
68
- height: 44px;
69
- border-radius: 50%;
70
- }
71
- .store-name {
72
- flex: 1;
73
- margin-left: 12px;
74
- font-weight: 500;
75
- font-size: 16px;
76
- line-height: 20px;
77
- color: #070707;
78
- font-family: 'Montserrat';
79
- }
80
- }
81
-
82
- }
3
+ }
4
+ .m-sign-board-bar .search {
5
+ width: 100%;
6
+ background: #EEEEEE;
7
+ border-radius: 0.16rem;
8
+ padding: 0.16rem 0.24rem;
9
+ height: 0.72rem;
10
+ display: flex;
11
+ justify-content: space-between;
12
+ align-items: center;
13
+ margin-bottom: 0.08rem;
14
+ }
15
+ .m-sign-board-bar .search .search-input {
16
+ height: 0.4rem;
17
+ font-weight: 400;
18
+ font-size: 0.32rem;
19
+ line-height: 0.4rem;
20
+ padding: 0;
21
+ background-color: transparent;
22
+ border: none;
23
+ }
24
+ .m-sign-board-bar .store-info-wrap {
25
+ display: flex;
26
+ align-items: center;
27
+ margin-top: 0.4rem;
28
+ }
29
+ .m-sign-board-bar .store-info-wrap .number {
30
+ font-family: 'Montserrat';
31
+ font-weight: 400;
32
+ font-size: 0.24rem;
33
+ line-height: 0.32rem;
34
+ color: #696973;
35
+ display: flex;
36
+ align-items: center;
37
+ }
38
+ .m-sign-board-bar .store-info-wrap .number > img {
39
+ width: 0.28rem;
40
+ }
41
+ .m-sign-board-bar .store-info-wrap .number > span {
42
+ font-weight: 700;
43
+ font-size: 0.28rem;
44
+ line-height: 0.36rem;
45
+ color: #333333;
46
+ margin: 0 0.08rem;
47
+ }
48
+ .m-sign-board-bar .store-info-wrap .number:nth-child(2) {
49
+ margin-left: 0.48rem;
50
+ flex: 1;
51
+ }
52
+ .m-sign-board-bar .store-info-wrap .chat-btn {
53
+ padding: 0.1rem 0.24rem;
54
+ background: #FFFFFF;
55
+ border: 0.02rem solid #333333;
56
+ border-radius: 0.08rem;
57
+ width: fit-content;
58
+ font-family: 'Montserrat';
59
+ font-weight: 400;
60
+ font-size: 0.24rem;
61
+ line-height: 0.32rem;
62
+ text-transform: uppercase;
63
+ color: #333333;
64
+ }
65
+ .m-sign-board-bar .store-info-wrap .store-logo {
66
+ width: 0.88rem;
67
+ height: 0.88rem;
68
+ border-radius: 50%;
69
+ }
70
+ .m-sign-board-bar .store-info-wrap .store-name {
71
+ flex: 1;
72
+ margin-left: 0.24rem;
73
+ font-weight: 500;
74
+ font-size: 0.32rem;
75
+ line-height: 0.4rem;
76
+ color: #070707;
77
+ font-family: 'Montserrat';
78
+ }
@@ -95,7 +95,7 @@ function metaDecorator(WrappedComponent) {
95
95
  GAData = _c.GAData;
96
96
  (0, _commonUtil.pushGA)(__assign(__assign({}, GAData), {
97
97
  elementId: data.id,
98
- elementName: data.text
98
+ elementName: data.text || GAData.groupName
99
99
  }));
100
100
  return;
101
101
  } // 组织冒泡
@@ -1,4 +1,6 @@
1
1
  {
2
+ "BOLD": "Bold",
3
+ "SEMIBOLD": "Semibold",
2
4
  "DARK": "Dark",
3
5
  "LIGHT": "Light",
4
6
  "AI_IMAGE": "AI Image",
@@ -1,4 +1,6 @@
1
1
  {
2
+ "BOLD": "Bold",
3
+ "SEMIBOLD": "Semibold",
2
4
  "DARK": "Dark",
3
5
  "LIGHT": "Light",
4
6
  "AI_IMAGE": "AI Image",
@@ -1,4 +1,6 @@
1
1
  {
2
+ "BOLD": "Bold",
3
+ "SEMIBOLD": "Semibold",
2
4
  "DARK": "Dark",
3
5
  "LIGHT": "Light",
4
6
  "AI_IMAGE": "AI Image",
@@ -241,8 +241,12 @@ function (_super) {
241
241
  }, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
242
242
  value: 400
243
243
  }, (0, _locale.i18n)('REGULAR')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
244
+ value: 500
245
+ }, (0, _locale.i18n)('MEDIUM')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
244
246
  value: 600
245
- }, (0, _locale.i18n)('MEDIUM')))), /*#__PURE__*/_react["default"].createElement(_common.Field, {
247
+ }, (0, _locale.i18n)('SEMIBOLD')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
248
+ value: 700
249
+ }, (0, _locale.i18n)('BOLD')))), /*#__PURE__*/_react["default"].createElement(_common.Field, {
246
250
  title: (0, _locale.i18n)('FONT_SIZE')
247
251
  }, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
248
252
  onChange: function onChange(_a) {
@@ -154,13 +154,14 @@ var newParseUrl = function newParseUrl(urlObj) {
154
154
  break;
155
155
 
156
156
  case _constants.urlTypeMap.AFFILIATE_PRODUCT:
157
- // 跳转店铺
157
+ // 分销商品
158
158
  link = '';
159
159
  params = {
160
160
  action: 'operation',
161
161
  params: {
162
162
  type: 'AFFILIATE_PRODUCT',
163
- productId: value
163
+ productName: value,
164
+ productId: productId
164
165
  }
165
166
  };
166
167
  break;
@@ -14,7 +14,7 @@ exports.copy2ClipBoard = copy2ClipBoard;
14
14
  exports.covertKey = covertKey;
15
15
  exports.dragSource = void 0;
16
16
  exports.ensure = ensure;
17
- exports.getColorRgba = void 0;
17
+ exports.getGAData = exports.getColorRgba = void 0;
18
18
  exports.getPageDataMap = getPageDataMap;
19
19
  exports.nextTick = exports.navigateTo = exports.importAsync = exports.getUrlParams = void 0;
20
20
  exports.pushGA = pushGA;
@@ -33,6 +33,8 @@ var _uuid = require("uuid");
33
33
 
34
34
  var _qs = _interopRequireDefault(require("qs"));
35
35
 
36
+ var _constants = require("../constants");
37
+
36
38
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
37
39
 
38
40
  var __assign = void 0 && (void 0).__assign || function () {
@@ -843,4 +845,15 @@ var compatibleNewPageData = function compatibleNewPageData(pageData) {
843
845
  }
844
846
  };
845
847
 
846
- exports.compatibleNewPageData = compatibleNewPageData;
848
+ exports.compatibleNewPageData = compatibleNewPageData;
849
+
850
+ var getGAData = function getGAData(data) {
851
+ var _a;
852
+
853
+ return {
854
+ moduleId: data.id,
855
+ moduleName: data.moduleIndex + '.' + ((_a = _constants.compInfoMap[data.type]) === null || _a === void 0 ? void 0 : _a.name)
856
+ };
857
+ };
858
+
859
+ exports.getGAData = getGAData;
@@ -11,8 +11,6 @@ var _businessUtil = require("./businessUtil");
11
11
 
12
12
  var _commonUtil = require("./commonUtil");
13
13
 
14
- var _androidUtil = require("./androidUtil");
15
-
16
14
  var _constants = require("../constants");
17
15
 
18
16
  var _MessageModal = _interopRequireDefault(require("../common/MessageModal"));
@@ -302,35 +300,33 @@ var clickUrl = function clickUrl(url) {
302
300
  data = _a.data;
303
301
 
304
302
  var _b = data.params,
305
- params = _b === void 0 ? {} : _b;
306
-
307
- if ((0, _androidUtil.browserVersion)().isApp) {
308
- (0, _androidUtil.sendToApp)(data);
309
- } else {
310
- // 视频
311
- if (params.type === 'VIDEO') {
312
- (0, _Video.createVideoModal)((0, _uuid.v4)(), __assign(__assign({}, params.data), {
313
- source: params.data.sourceUrl
314
- }));
315
- return;
316
- } // 领取优惠券
317
-
318
-
319
- if (params.type === 'GET_COUPON') {
320
- getCoupon(params.couponId);
321
- return;
322
- }
303
+ params = _b === void 0 ? {} : _b; // if (browserVersion().isApp) {
304
+ // sendToApp(data);
305
+ // } else {
306
+ // 视频
307
+
308
+ if (params.type === 'VIDEO') {
309
+ (0, _Video.createVideoModal)((0, _uuid.v4)(), __assign(__assign({}, params.data), {
310
+ source: params.data.sourceUrl
311
+ }));
312
+ return;
313
+ } // 领取优惠券
323
314
 
324
- if (params.type === 'SHARE_URL' || params.type === 'AFFILIATE_PRODUCT') {
325
- if (window.magicDesign.handleAction) {
326
- window.magicDesign.handleAction(params);
327
- }
328
315
 
329
- return;
316
+ if (params.type === 'GET_COUPON') {
317
+ getCoupon(params.couponId);
318
+ return;
319
+ }
320
+
321
+ if (params.type === 'SHARE_URL' || params.type === 'AFFILIATE_PRODUCT') {
322
+ if (window.magicDesign.handleAction) {
323
+ window.magicDesign.handleAction(params);
330
324
  }
331
325
 
332
- (0, _commonUtil.navigateTo)(link);
326
+ return;
333
327
  }
328
+
329
+ (0, _commonUtil.navigateTo)(link); // }
334
330
  };
335
331
 
336
332
  exports.clickUrl = clickUrl;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "0.1.69",
4
+ "version": "0.1.70-nuri",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",