@fonixtree/magic-design 0.1.53 → 0.1.54

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 (31) hide show
  1. package/es/composite-comp/bol/components/Banner/mobile/index.less +52 -78
  2. package/es/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
  3. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
  4. package/es/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
  5. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +23 -27
  6. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +38 -45
  7. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +41 -50
  8. package/es/composite-comp/bol/components/Video/mobile/index.less +2 -3
  9. package/es/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
  10. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
  11. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
  12. package/es/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
  13. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
  14. package/es/composite-comp/dito/components/SignBoard/mobile/index.less +76 -80
  15. package/es/utils/commonUtil.js +8 -6
  16. package/lib/composite-comp/bol/components/Banner/mobile/index.less +52 -78
  17. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
  18. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
  19. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
  20. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +23 -27
  21. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +38 -45
  22. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +41 -50
  23. package/lib/composite-comp/bol/components/Video/mobile/index.less +2 -3
  24. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
  25. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
  26. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
  27. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
  28. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
  29. package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +76 -80
  30. package/lib/utils/commonUtil.js +8 -6
  31. package/package.json +1 -1
@@ -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
+ }
@@ -717,9 +717,10 @@ var asyncNextTick = function asyncNextTick(asyncFunc, interval, count) {
717
717
  exports.asyncNextTick = asyncNextTick;
718
718
 
719
719
  var convertToRem = function convertToRem(value) {
720
- return value;
721
-
722
- if (window.magicDesign.device === 'pc' || window.magicDesign.mode === 'designer') {}
720
+ // return value; // PTO项目 解开注释
721
+ if (window.magicDesign.device === 'pc' || window.magicDesign.mode === 'designer') {
722
+ return value;
723
+ }
723
724
 
724
725
  var pxValue = parseFloat(value);
725
726
  var remValue = pxValue / 50; // 假设1rem = 50px
@@ -732,9 +733,10 @@ var convertToRem = function convertToRem(value) {
732
733
  exports.convertToRem = convertToRem;
733
734
 
734
735
  var pxToRem = function pxToRem(styleObj) {
735
- return styleObj;
736
-
737
- if (window.magicDesign.device === 'pc' || window.magicDesign.mode === 'designer') {}
736
+ // return styleObj; // PTO项目 解开注释
737
+ if (window.magicDesign.device === 'pc' || window.magicDesign.mode === 'designer') {
738
+ return styleObj;
739
+ }
738
740
 
739
741
  var remObj = {};
740
742
 
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.53",
4
+ "version": "0.1.54",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",