@fonixtree/magic-design 0.1.45 → 0.1.46
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/common/LinkModal/StoreCatgTable/index.js +244 -0
- package/es/common/LinkModal/index.js +7 -1
- package/es/composite-comp/bol/components/Banner/mobile/index.less +52 -78
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +23 -27
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +38 -45
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +41 -50
- package/es/composite-comp/bol/components/Video/mobile/index.less +2 -3
- package/es/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
- package/es/composite-comp/dito/components/SignBoard/mobile/index.less +76 -80
- package/es/constants/index.js +1 -0
- package/es/utils/businessUtil.js +20 -4
- package/es/utils/commonUtil.js +2 -3
- package/lib/assets/fonts/.DS_Store +0 -0
- package/lib/common/LinkModal/StoreCatgTable/index.js +244 -0
- package/lib/common/LinkModal/index.js +7 -1
- package/lib/composite-comp/bol/components/Banner/mobile/index.less +52 -78
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +23 -27
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +38 -45
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +41 -50
- package/lib/composite-comp/bol/components/Video/mobile/index.less +2 -3
- package/lib/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +76 -80
- package/lib/constants/index.js +1 -0
- package/lib/utils/businessUtil.js +20 -4
- package/lib/utils/commonUtil.js +2 -3
- package/package.json +1 -1
|
@@ -1,58 +1,51 @@
|
|
|
1
1
|
.m-search-bar {
|
|
2
|
-
height:
|
|
3
|
-
padding:
|
|
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
|
-
|
|
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
|
-
.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
|
-
|
|
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
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
+
}
|
package/lib/constants/index.js
CHANGED
|
@@ -49,6 +49,18 @@ var newParseUrl = function newParseUrl(urlObj) {
|
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
break;
|
|
52
|
+
|
|
53
|
+
case _constants.urlTypeMap.STORE_CATEGORY:
|
|
54
|
+
// 商品列表
|
|
55
|
+
link = "/product/list/?storeCategory=" + value;
|
|
56
|
+
params = {
|
|
57
|
+
action: 'jump',
|
|
58
|
+
params: {
|
|
59
|
+
type: 'STORE_CATEGORY',
|
|
60
|
+
catgId: value
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
break;
|
|
52
64
|
// 海报页面
|
|
53
65
|
|
|
54
66
|
case _constants.urlTypeMap.CUSTOMIZED_PAGE:
|
|
@@ -316,13 +328,17 @@ var renderPreview = function renderPreview() {
|
|
|
316
328
|
|
|
317
329
|
exports.renderPreview = renderPreview;
|
|
318
330
|
|
|
319
|
-
var listToTree = function listToTree(list) {
|
|
331
|
+
var listToTree = function listToTree(list, idName) {
|
|
332
|
+
if (idName === void 0) {
|
|
333
|
+
idName = 'catgId';
|
|
334
|
+
}
|
|
335
|
+
|
|
320
336
|
var map = {};
|
|
321
337
|
var node;
|
|
322
338
|
var tree = [];
|
|
323
339
|
|
|
324
340
|
for (var i = 0; i < list.length; i++) {
|
|
325
|
-
map[list[i]
|
|
341
|
+
map[list[i][idName]] = list[i];
|
|
326
342
|
list[i].children = list[i].isLeaf == 0 ? null : [];
|
|
327
343
|
}
|
|
328
344
|
|
|
@@ -330,8 +346,8 @@ var listToTree = function listToTree(list) {
|
|
|
330
346
|
node = {
|
|
331
347
|
catgName: list[i].catgName,
|
|
332
348
|
title: list[i].catgName,
|
|
333
|
-
value: list[i]
|
|
334
|
-
key: list[i]
|
|
349
|
+
value: list[i][idName],
|
|
350
|
+
key: list[i][idName],
|
|
335
351
|
children: list[i].children
|
|
336
352
|
};
|
|
337
353
|
|
package/lib/utils/commonUtil.js
CHANGED
|
@@ -211,10 +211,9 @@ function commonFetch(url, data, method) {
|
|
|
211
211
|
return new Promise(function (resolve, reject) {
|
|
212
212
|
var _a, _b;
|
|
213
213
|
|
|
214
|
-
var isLoginUrl = url.includes('portal/login');
|
|
215
214
|
var credentials = localStorage.getItem('credentials');
|
|
216
215
|
var headers = {
|
|
217
|
-
'Content-Type':
|
|
216
|
+
'Content-Type': 'application/json; charset=UTF-8',
|
|
218
217
|
credentials: credentials
|
|
219
218
|
};
|
|
220
219
|
|
|
@@ -254,7 +253,7 @@ function commonFetch(url, data, method) {
|
|
|
254
253
|
return;
|
|
255
254
|
}
|
|
256
255
|
|
|
257
|
-
_axios["default"].post(url,
|
|
256
|
+
_axios["default"].post(url, data, {
|
|
258
257
|
headers: headers
|
|
259
258
|
}).then(function (res) {
|
|
260
259
|
resolve(res.data);
|