s-material-react 0.0.4

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 (78) hide show
  1. package/css/basic/textLine.scss +13 -0
  2. package/css/common/card.scss +52 -0
  3. package/css/common/icon.scss +42 -0
  4. package/css/common/index.scss +2 -0
  5. package/css/index.scss +3 -0
  6. package/css/pages/classifyNav.scss +19 -0
  7. package/css/pages/cube.scss +76 -0
  8. package/css/pages/goods.scss +90 -0
  9. package/css/pages/goodsClassify.scss +108 -0
  10. package/css/pages/goodsGroup.scss +0 -0
  11. package/css/pages/goodsList.scss +83 -0
  12. package/css/pages/index.scss +17 -0
  13. package/css/pages/notice.scss +25 -0
  14. package/css/pages/order-goodsItem.scss +17 -0
  15. package/css/pages/orderDetail.scss +144 -0
  16. package/css/pages/orderEntry.scss +41 -0
  17. package/css/pages/orderList.scss +72 -0
  18. package/css/pages/service.scss +9 -0
  19. package/css/pages/slider.scss +17 -0
  20. package/css/pages/title.scss +3 -0
  21. package/css/variables/default.scss +55 -0
  22. package/dist/common/card/index.d.ts +8 -0
  23. package/dist/common/card/index.js +6 -0
  24. package/dist/common/icon/index.d.ts +7 -0
  25. package/dist/common/icon/index.js +12 -0
  26. package/dist/components/ClassifyNav/index.d.ts +15 -0
  27. package/dist/components/ClassifyNav/index.js +24 -0
  28. package/dist/components/Cube/index.d.ts +15 -0
  29. package/dist/components/Cube/index.js +36 -0
  30. package/dist/components/Goods/index.d.ts +20 -0
  31. package/dist/components/Goods/index.js +67 -0
  32. package/dist/components/GoodsClassify/components/classifyFloor.d.ts +1 -0
  33. package/dist/components/GoodsClassify/components/classifyFloor.js +11 -0
  34. package/dist/components/GoodsClassify/index.d.ts +2 -0
  35. package/dist/components/GoodsClassify/index.js +36 -0
  36. package/dist/components/GoodsDetail/index.d.ts +2 -0
  37. package/dist/components/GoodsDetail/index.js +6 -0
  38. package/dist/components/GoodsGroup/index.d.ts +25 -0
  39. package/dist/components/GoodsGroup/index.js +26 -0
  40. package/dist/components/GoodsList/index.d.ts +2 -0
  41. package/dist/components/GoodsList/index.js +66 -0
  42. package/dist/components/Line/index.d.ts +11 -0
  43. package/dist/components/Line/index.js +17 -0
  44. package/dist/components/Notice/index.d.ts +9 -0
  45. package/dist/components/Notice/index.js +20 -0
  46. package/dist/components/OrderDetail/index.d.ts +2 -0
  47. package/dist/components/OrderDetail/index.js +12 -0
  48. package/dist/components/OrderEntry/index.d.ts +2 -0
  49. package/dist/components/OrderEntry/index.js +9 -0
  50. package/dist/components/OrderList/components/OrderListItem.d.ts +7 -0
  51. package/dist/components/OrderList/components/OrderListItem.js +35 -0
  52. package/dist/components/OrderList/components/mock.d.ts +1647 -0
  53. package/dist/components/OrderList/components/mock.js +4417 -0
  54. package/dist/components/OrderList/components/orderItem.d.ts +15 -0
  55. package/dist/components/OrderList/components/orderItem.js +8 -0
  56. package/dist/components/OrderList/index.d.ts +2 -0
  57. package/dist/components/OrderList/index.js +16 -0
  58. package/dist/components/Search/index.d.ts +12 -0
  59. package/dist/components/Search/index.js +30 -0
  60. package/dist/components/Service/index.d.ts +2 -0
  61. package/dist/components/Service/index.js +7 -0
  62. package/dist/components/Slider/index.d.ts +22 -0
  63. package/dist/components/Slider/index.js +26 -0
  64. package/dist/components/Slider/item.d.ts +6 -0
  65. package/dist/components/Slider/item.js +13 -0
  66. package/dist/components/Title/index.d.ts +15 -0
  67. package/dist/components/Title/index.js +18 -0
  68. package/dist/components/Video/index.d.ts +11 -0
  69. package/dist/components/Video/index.js +11 -0
  70. package/dist/components/index.d.ts +18 -0
  71. package/dist/components/index.js +18 -0
  72. package/dist/index.d.ts +1 -0
  73. package/dist/index.js +1 -0
  74. package/dist/static/icon/index.d.ts +6 -0
  75. package/dist/static/icon/index.js +12 -0
  76. package/dist/static/index.d.ts +1 -0
  77. package/dist/static/index.js +1 -0
  78. package/package.json +48 -0
@@ -0,0 +1,13 @@
1
+ @mixin titleLine($num: 1) {
2
+ overflow: hidden;
3
+ text-overflow: ellipsis;
4
+
5
+ @if ($num == 1) {
6
+ white-space: nowrap;
7
+ } @else {
8
+ white-space: pre-wrap;
9
+ display: -webkit-box;
10
+ -webkit-line-clamp: $num;
11
+ -webkit-box-orient: vertical;
12
+ }
13
+ }
@@ -0,0 +1,52 @@
1
+ @import '../basic/textLine.scss';
2
+ .card-item {
3
+ display: grid;
4
+ grid-template-columns: 80px 1fr;
5
+ gap: 7px;
6
+ margin-bottom: 12px;
7
+
8
+ &-img {
9
+ width: 80px;
10
+ height: 80px;
11
+ border-radius: 8px;
12
+ }
13
+
14
+ &-info {
15
+ &-container {
16
+ display: grid;
17
+ grid-template-columns: 1fr 60px;
18
+ grid-auto-flow: dense;
19
+ line-height: 18px;
20
+
21
+ &-title {
22
+ @include titleLine(2);
23
+ font-size: 13px;
24
+ }
25
+
26
+ &-price {
27
+ font-size: 14px;
28
+ color: #333333;
29
+ font-weight: 600;
30
+ text-align: right;
31
+ }
32
+ }
33
+
34
+ &-sub {
35
+ display: flex;
36
+ justify-content: space-between;
37
+ color: #999999;
38
+ font-size: 13px;
39
+ margin-bottom: 3px;
40
+ }
41
+
42
+ &-tips {
43
+ display: inline-block;
44
+ height: 20px;
45
+ line-height: 20px;
46
+ background-color: rgba(255, 22, 67, 0.1);
47
+ border-radius: 3px;
48
+ color: #ff1643;
49
+ padding: 2px 4px;
50
+ }
51
+ }
52
+ }
@@ -0,0 +1,42 @@
1
+ @font-face {
2
+ font-family: 'iconfont'; /* Project id 3540782 */
3
+ src: url('//at.alicdn.com/t/c/font_3540782_lef74xv0ryn.woff2?t=1668067769509') format('woff2'),
4
+ url('//at.alicdn.com/t/c/font_3540782_lef74xv0ryn.woff?t=1668067769509') format('woff'),
5
+ url('//at.alicdn.com/t/c/font_3540782_lef74xv0ryn.ttf?t=1668067769509') format('truetype');
6
+ }
7
+
8
+ .iconfont {
9
+ display: inline-block;
10
+ font: {
11
+ family: iconfont;
12
+ variant: normal;
13
+ }
14
+ font-size: 16px;
15
+ line-height: 1;
16
+ font-style: normal;
17
+ vertical-align: middle;
18
+ text-transform: none;
19
+ text-rendering: auto;
20
+ -webkit-font-smoothing: antialiased;
21
+ -moz-osx-font-smoothing: grayscale;
22
+ }
23
+
24
+ .icon-my:before {
25
+ content: '\e66f';
26
+ }
27
+
28
+ .icon-fenleiclassify:before {
29
+ content: '\e7c0';
30
+ }
31
+
32
+ .icon-fenxiang:before {
33
+ content: '\e600';
34
+ }
35
+
36
+ .icon-cart:before {
37
+ content: '\e747';
38
+ }
39
+
40
+ .icon-paixu:before {
41
+ content: '\e610';
42
+ }
@@ -0,0 +1,2 @@
1
+ @import './card.scss';
2
+ @import './icon.scss';
package/css/index.scss ADDED
@@ -0,0 +1,3 @@
1
+ @import './common/index.scss';
2
+ @import './pages/index.scss';
3
+ @import '@brushes/qj-simulate-component/css';
@@ -0,0 +1,19 @@
1
+ .classifyNav {
2
+ width: 100%;
3
+ display: grid;
4
+ grid-template-columns: repeat(4, 1fr);
5
+
6
+ .classifyNavItem {
7
+ .img {
8
+ width: 40px;
9
+ height: 40px;
10
+ display: block;
11
+ margin: 10px auto 0;
12
+ }
13
+ .label {
14
+ display: block;
15
+ text-align: center;
16
+ margin-top: 6px;
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,76 @@
1
+ /*一行两个*/
2
+
3
+ .cube-type2 {
4
+ display: grid;
5
+ grid-template-columns: repeat(2, 1fr);
6
+ gap: 10px;
7
+ }
8
+
9
+ /*一上二下*/
10
+
11
+ .cube-type3 {
12
+ display: grid;
13
+ grid-template-columns: repeat(2, 1fr);
14
+ grid-template-rows: repeat(2, 1fr);
15
+ gap: 10px;
16
+
17
+ & .block:nth-child(1) {
18
+ grid-area: 1 / 1 / 2 / 3;
19
+ }
20
+ & .block:nth-child(2) {
21
+ grid-area: 2 / 1 / 3 / 2;
22
+ }
23
+ & .block:nth-child(3) {
24
+ grid-area: 2 / 2 / 3 / 3;
25
+ }
26
+ }
27
+
28
+ /*一左二右*/
29
+
30
+ .cube-type4 {
31
+ display: grid;
32
+ grid-template-columns: repeat(2, 1fr);
33
+ grid-template-rows: repeat(2, 1fr);
34
+ gap: 10px;
35
+
36
+ & .block:nth-child(1) {
37
+ grid-area: 1 / 1 / 3 / 2;
38
+ }
39
+ & .block:nth-child(2) {
40
+ grid-area: 1 / 2 / 2 / 3;
41
+ }
42
+ & .block:nth-child(3) {
43
+ grid-area: 2 / 2 / 3 / 3;
44
+ }
45
+ }
46
+
47
+ /*田字形*/
48
+
49
+ .cube-type5 {
50
+ display: grid;
51
+ grid-template-columns: repeat(2, 1fr);
52
+ grid-template-rows: repeat(2, 1fr);
53
+ gap: 10px;
54
+
55
+ & .block:nth-child(1) {
56
+ grid-area: 1 / 1 / 2 / 2;
57
+ }
58
+ & .block:nth-child(2) {
59
+ grid-area: 1 / 2 / 2 / 3;
60
+ }
61
+ & .block:nth-child(3) {
62
+ grid-area: 2 / 1 / 3 / 2;
63
+ }
64
+ & .block:nth-child(4) {
65
+ grid-area: 2 / 2 / 3 / 3;
66
+ }
67
+ }
68
+
69
+ .block {
70
+ height: 200px;
71
+ width: 100%;
72
+ overflow: hidden;
73
+ background-size: cover;
74
+ background-repeat: no-repeat;
75
+ background-position: center center;
76
+ }
@@ -0,0 +1,90 @@
1
+ @import '../basic/textLine';
2
+
3
+ .goods {
4
+ background: #fff;
5
+
6
+ .goods-img {
7
+ width: 100%;
8
+ overflow: hidden;
9
+ background-size: cover;
10
+ background-repeat: no-repeat;
11
+ background-position: center center;
12
+ }
13
+
14
+ .space {
15
+ margin-top: 10px;
16
+ padding: 8px;
17
+ position: relative;
18
+
19
+ .anticon {
20
+ position: absolute;
21
+ right: 10px;
22
+ bottom: 10px;
23
+ }
24
+ }
25
+
26
+ .titleType {
27
+ font-size: 16px;
28
+ margin-bottom: 4px;
29
+ @include titleLine(2);
30
+ }
31
+
32
+ .subTitle {
33
+ font-size: 12px;
34
+ color: #888;
35
+ }
36
+
37
+ .price {
38
+ font-size: 20px;
39
+ color: #f00;
40
+
41
+ .subPrice {
42
+ font-size: 14px;
43
+ }
44
+ }
45
+
46
+ .markedPrice {
47
+ padding-left: 8px;
48
+ font-size: 12px;
49
+ color: #888;
50
+ text-decoration: line-through;
51
+ }
52
+ }
53
+
54
+ .goods-one {
55
+ .goods-img {
56
+ height: 310px;
57
+ }
58
+ }
59
+
60
+ .goods-two {
61
+ .subTitle {
62
+ margin-bottom: 5px;
63
+ }
64
+
65
+ .goods-img {
66
+ height: 200px;
67
+ }
68
+ }
69
+
70
+ .goods-three {
71
+ .goods {
72
+ position: relative;
73
+ display: grid;
74
+ grid-template-columns: 1fr 200px;
75
+ }
76
+
77
+ .goods-img {
78
+ height: 150px;
79
+ }
80
+
81
+ .space {
82
+ margin-top: 0;
83
+ padding: 18px;
84
+ }
85
+
86
+ .price {
87
+ position: absolute;
88
+ bottom: 10px;
89
+ }
90
+ }
@@ -0,0 +1,108 @@
1
+ .goods-classify {
2
+ padding: 0 10px;
3
+ &-search {
4
+ width: 100%;
5
+ margin-bottom: 17px;
6
+ height: 34px;
7
+ background-color: #f4f4f4;
8
+ border-radius: 20px;
9
+ text-align: center;
10
+ display: flex;
11
+ align-items: center;
12
+ justify-content: center;
13
+ .icon {
14
+ width: 14px;
15
+ height: 14px;
16
+ margin-right: 5px;
17
+ }
18
+ }
19
+ }
20
+
21
+ .goodsClassifyContainer {
22
+ height: 100vh;
23
+ background-color: #ffffff;
24
+ display: grid;
25
+ grid-template-columns: 90px 1fr;
26
+ width: 100%;
27
+ overflow: hidden;
28
+
29
+ .side {
30
+ }
31
+
32
+ .main {
33
+ .content {
34
+ height: 100%;
35
+ display: none;
36
+ color: #cccccc;
37
+
38
+ &.active {
39
+ display: block;
40
+ }
41
+
42
+ .classifyFloor {
43
+ .titleWrap {
44
+ height: 20px;
45
+ width: 60%;
46
+ //background: greenyellow;
47
+ margin: 20px auto;
48
+ text-align: center;
49
+ position: relative;
50
+
51
+ .title {
52
+ color: #333;
53
+ font-size: 14px;
54
+ background-color: #fff;
55
+ height: 20px;
56
+ display: inline-block;
57
+ padding: 0 10px;
58
+ position: relative;
59
+ z-index: 1;
60
+ }
61
+
62
+ .line {
63
+ position: absolute;
64
+ width: 100%;
65
+ height: 1px;
66
+ background-color: #000;
67
+ left: 0;
68
+ top: 10px;
69
+ }
70
+ }
71
+
72
+ .container {
73
+ display: grid;
74
+ grid-template-columns: repeat(3, 1fr);
75
+ gap: 10px;
76
+ padding: 0 10px;
77
+ box-sizing: border-box;
78
+
79
+ .classifyFloorGoodsItem {
80
+ .logo {
81
+ width: 70px;
82
+ height: 70px;
83
+ display: block;
84
+ margin-bottom: 12px;
85
+ }
86
+ .title {
87
+ font-size: 12px;
88
+ text-align: center;
89
+ display: block;
90
+ color: #272727;
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+ .adm-side-bar {
99
+ --adm-color-box: #f5f5f5;
100
+ --item-border-radius: 8px;
101
+ }
102
+ .adm-side-bar-item {
103
+ font-size: 12px;
104
+ }
105
+ .adm-side-bar-item-active {
106
+ --adm-color-primary: #1677ff;
107
+ --adm-color-background: #fff;
108
+ }
File without changes
@@ -0,0 +1,83 @@
1
+ @import '../basic/textLine.scss';
2
+
3
+ .goodsList {
4
+ .topInfo {
5
+ .search {
6
+ width: 86%;
7
+ height: 34px;
8
+ line-height: 34px;
9
+ background-color: #f4f4f4;
10
+ border-radius: 20px;
11
+ margin: 0 auto;
12
+ text-indent: 10px;
13
+ .logo {
14
+ width: 14px;
15
+ height: 14px;
16
+ display: inline-block;
17
+ margin-left: 14px;
18
+ margin-right: 8px;
19
+ margin-top: -2px;
20
+ }
21
+
22
+ .title {
23
+ font-size: 14px;
24
+ color: #999999;
25
+ }
26
+ }
27
+
28
+ .sortWrap {
29
+ height: 43px;
30
+ line-height: 43px;
31
+ display: grid;
32
+ cursor: pointer;
33
+ grid-template-columns: repeat(4, 1fr);
34
+
35
+ .sortItem {
36
+ text-align: center;
37
+ &.active {
38
+ color: #ff0934;
39
+ }
40
+ }
41
+ }
42
+ }
43
+
44
+ .listWrap {
45
+ background-color: #f6f6f6;
46
+ //padding: 10px;
47
+ .list {
48
+ display: grid;
49
+ grid-template-columns: repeat(2, 1fr);
50
+ gap: 10px;
51
+ padding: 10px;
52
+ .listItem {
53
+ border-radius: 8px;
54
+ overflow: hidden;
55
+ background-color: #fff;
56
+ padding-bottom: 12px;
57
+
58
+ .img {
59
+ display: block;
60
+ width: 100%;
61
+ height: 170px;
62
+ background-size: cover;
63
+ margin-bottom: 5px;
64
+ }
65
+
66
+ .name {
67
+ font-size: 12px;
68
+ display: block;
69
+ padding: 0 10px;
70
+ margin-bottom: 5px;
71
+ @include titleLine(1);
72
+ }
73
+
74
+ .price {
75
+ display: block;
76
+ color: #ff0934;
77
+ font-size: 12px;
78
+ padding: 0 10px;
79
+ }
80
+ }
81
+ }
82
+ }
83
+ }
@@ -0,0 +1,17 @@
1
+ @import '../basic/textLine';
2
+ @import './goods.scss';
3
+ @import './title.scss';
4
+ @import './service.scss';
5
+ @import './cube.scss';
6
+ @import './slider.scss';
7
+ @import './goodsGroup.scss';
8
+ @import './orderEntry';
9
+ @import './orderList';
10
+ @import './orderDetail';
11
+ @import './classifyNav';
12
+ @import './goodsClassify';
13
+ @import './goodsList';
14
+
15
+ .design-container .monitor .actived:after {
16
+ display: none;
17
+ }
@@ -0,0 +1,25 @@
1
+ .scroll-wrap {
2
+ background: #ff3766;
3
+ padding: 10px 70px 10px 0;
4
+ height: 50px;
5
+ line-height: 50px;
6
+ }
7
+ .ovh {
8
+ overflow: hidden;
9
+ }
10
+ .font28 {
11
+ font-size: 28px;
12
+ }
13
+ .relative {
14
+ position: relative;
15
+ }
16
+ .scroll {
17
+ color: #fff;
18
+ width: 100%;
19
+ height: 40px;
20
+ }
21
+ .marquee_text {
22
+ white-space: nowrap;
23
+ position: absolute;
24
+ top: 0;
25
+ }
@@ -0,0 +1,17 @@
1
+ .btnGroup {
2
+ text-align: right;
3
+
4
+ .btn {
5
+ &.white {
6
+ --background-color: #fff;
7
+ --border-color: #000;
8
+ }
9
+
10
+ &.black {
11
+ --background-color: #000;
12
+ --border-color: #000;
13
+ --text-color: #fff;
14
+ margin-left: 10px;
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,144 @@
1
+ @import './order-goodsItem.scss';
2
+
3
+ .orderDetail {
4
+ .orderDetailTopTitle {
5
+ width: 100%;
6
+ height: 182px;
7
+ background: linear-gradient(360deg, #585858 0%, #2d2d2d 100%);
8
+ box-shadow: 0 2px 20px 0 rgba(227, 227, 227, 0.5);
9
+ text-align: center;
10
+ display: flex;
11
+ justify-content: center;
12
+ align-items: center;
13
+
14
+ .orderDetailTopTitleContent {
15
+ .title {
16
+ font-size: 18px;
17
+ color: #fff;
18
+ }
19
+
20
+ .subTitleWrap {
21
+ .subTitleIcon {
22
+ width: 19px;
23
+ height: 19px;
24
+ display: inline-block;
25
+ }
26
+
27
+ .subTitle {
28
+ font-size: 18px;
29
+ color: #fff;
30
+ }
31
+ }
32
+ }
33
+ }
34
+
35
+ .orderDetailContent {
36
+ background-color: #f6f6f6;
37
+ padding-bottom: 100px;
38
+
39
+ .addressInfo {
40
+ background: #fff;
41
+ border-radius: 8px;
42
+ margin: 0 12px 12px;
43
+ padding: 17px 14px;
44
+ display: grid;
45
+ grid-template-columns: 14px 1fr 6px;
46
+ gap: 7px;
47
+ position: relative;
48
+ //top: -26px;
49
+
50
+ .lPart {
51
+ .icon {
52
+ width: 14px;
53
+ height: 14px;
54
+ }
55
+ }
56
+
57
+ .cPart {
58
+ font-size: 14px;
59
+ }
60
+
61
+ .rPart {
62
+ .icon {
63
+ width: 6px;
64
+ height: 10px;
65
+ margin-top: 18px;
66
+ }
67
+ }
68
+ }
69
+
70
+ .orderDetailGoodsWrap {
71
+ background: #fff;
72
+ border-radius: 8px;
73
+ margin: 0 12px 12px;
74
+ padding: 17px 14px 0;
75
+
76
+ .orderDetailGoodsItem {
77
+ margin-bottom: 12px;
78
+
79
+ .mainInfo {
80
+ grid-template-columns: 126px 1fr;
81
+ }
82
+ }
83
+
84
+ .priceInfo {
85
+ margin-top: 20px;
86
+ border-top: 1px solid #dcdcdc;
87
+ padding: 18px 0 13px;
88
+
89
+ .priceInfoFloor {
90
+ display: flex;
91
+ justify-content: space-between;
92
+ color: #999;
93
+ margin-bottom: 6px;
94
+ }
95
+
96
+ .top {
97
+ font-size: 14px;
98
+ font-weight: 400;
99
+ color: #000;
100
+ }
101
+ }
102
+ }
103
+
104
+ .express {
105
+ background: #fff;
106
+ border-radius: 8px;
107
+ margin: 0 12px 12px;
108
+ padding: 13px 14px;
109
+ display: flex;
110
+ justify-content: space-between;
111
+
112
+ .label {
113
+ font-size: 14px;
114
+ color: #000;
115
+ }
116
+
117
+ .name {
118
+ color: #999;
119
+ }
120
+ }
121
+
122
+ .orderInfo {
123
+ background: #fff;
124
+ border-radius: 8px;
125
+ margin: 0 12px 12px;
126
+ padding: 13px 14px;
127
+
128
+ .orderInfoItem {
129
+ font-size: 14px;
130
+ margin-bottom: 6px;
131
+ display: grid;
132
+ grid-template-columns: 70px auto;
133
+ }
134
+ }
135
+
136
+ .btnGroupFooter {
137
+ background: #fff;
138
+ padding: 10px 12px;
139
+ display: grid;
140
+ grid-template-columns: repeat(2, 1fr);
141
+ gap: 10px;
142
+ }
143
+ }
144
+ }