@fonixtree/magic-design 0.1.32 → 0.1.34
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/StoreTable/index.js +13 -3
- package/es/common/Video/index.js +15 -64
- 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/Text/index.js +4 -1
- 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 +70 -74
- package/es/core/Designer/RenderHtml/index.js +9 -1
- package/lib/assets/fonts/.DS_Store +0 -0
- package/lib/common/LinkModal/StoreTable/index.js +13 -3
- package/lib/common/Video/index.js +15 -64
- 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/Text/index.js +4 -1
- 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 +70 -74
- package/lib/core/Designer/RenderHtml/index.js +9 -1
- 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,76 +1,72 @@
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
36
|
+
.m-sign-board-bar .store-info-wrap .number > span {
|
|
37
|
+
font-weight: 700;
|
|
38
|
+
font-size: 0.28rem;
|
|
39
|
+
line-height: 0.36rem;
|
|
40
|
+
color: #333333;
|
|
41
|
+
}
|
|
42
|
+
.m-sign-board-bar .store-info-wrap .number:nth-child(2) {
|
|
43
|
+
margin-left: 0.48rem;
|
|
44
|
+
flex: 1;
|
|
45
|
+
}
|
|
46
|
+
.m-sign-board-bar .store-info-wrap .chat-btn {
|
|
47
|
+
padding: 0.1rem 0.24rem;
|
|
48
|
+
background: #FFFFFF;
|
|
49
|
+
border: 0.02rem solid #333333;
|
|
50
|
+
border-radius: 0.08rem;
|
|
51
|
+
width: fit-content;
|
|
52
|
+
font-family: 'Montserrat';
|
|
53
|
+
font-weight: 400;
|
|
54
|
+
font-size: 0.24rem;
|
|
55
|
+
line-height: 0.32rem;
|
|
56
|
+
text-transform: uppercase;
|
|
57
|
+
color: #333333;
|
|
58
|
+
}
|
|
59
|
+
.m-sign-board-bar .store-info-wrap .store-logo {
|
|
60
|
+
width: 0.88rem;
|
|
61
|
+
height: 0.88rem;
|
|
62
|
+
border-radius: 50%;
|
|
63
|
+
}
|
|
64
|
+
.m-sign-board-bar .store-info-wrap .store-name {
|
|
65
|
+
flex: 1;
|
|
66
|
+
margin-left: 0.24rem;
|
|
67
|
+
font-weight: 500;
|
|
68
|
+
font-size: 0.32rem;
|
|
69
|
+
line-height: 0.4rem;
|
|
70
|
+
color: #070707;
|
|
71
|
+
font-family: 'Montserrat';
|
|
72
|
+
}
|
|
@@ -59,8 +59,16 @@ function (_super) {
|
|
|
59
59
|
renderProps: renderProps
|
|
60
60
|
}, function () {
|
|
61
61
|
document.querySelector('#render-html-wrap > div').style = 'max-width:600px;margin:auto;';
|
|
62
|
+
/** 去除设计器模式下元素 */
|
|
63
|
+
|
|
64
|
+
document.querySelectorAll('#render-html-wrap > div .composite_mask').forEach(function (el) {
|
|
65
|
+
el.remove();
|
|
66
|
+
});
|
|
62
67
|
var html = document.querySelector('#render-html-wrap').innerHTML;
|
|
63
|
-
|
|
68
|
+
/** 处理背景图资源引号问题 */
|
|
69
|
+
|
|
70
|
+
html = html.replace(/url\("((\S|\s)*)"\)/g, 'url($1)');
|
|
71
|
+
resolve(html);
|
|
64
72
|
|
|
65
73
|
_this.setState({
|
|
66
74
|
renderProps: null
|
|
Binary file
|
|
@@ -209,7 +209,9 @@ function StoreTable(props) {
|
|
|
209
209
|
setLoading(true);
|
|
210
210
|
return [4
|
|
211
211
|
/*yield*/
|
|
212
|
-
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/stores/page", params,
|
|
212
|
+
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/stores/page", __assign(__assign({}, params), {
|
|
213
|
+
state: 'A'
|
|
214
|
+
}), 'GET')];
|
|
213
215
|
|
|
214
216
|
case 1:
|
|
215
217
|
res = _a.sent();
|
|
@@ -235,8 +237,8 @@ function StoreTable(props) {
|
|
|
235
237
|
alt: "",
|
|
236
238
|
src: val,
|
|
237
239
|
style: {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
+
maxWidth: '50px',
|
|
241
|
+
maxHeight: '50px'
|
|
240
242
|
}
|
|
241
243
|
});
|
|
242
244
|
}
|
|
@@ -253,6 +255,14 @@ function StoreTable(props) {
|
|
|
253
255
|
},
|
|
254
256
|
type: 'radio'
|
|
255
257
|
};
|
|
258
|
+
|
|
259
|
+
var reset = function reset() {
|
|
260
|
+
setStoreName('');
|
|
261
|
+
queryStore(__assign({
|
|
262
|
+
storeName: ''
|
|
263
|
+
}, paginationParams));
|
|
264
|
+
};
|
|
265
|
+
|
|
256
266
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
257
267
|
style: {
|
|
258
268
|
height: 550
|
|
@@ -207,75 +207,26 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
207
207
|
/** 检查youtube依赖包 */
|
|
208
208
|
var checkYoutuVIdeo = function checkYoutuVIdeo() {
|
|
209
209
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
210
|
-
var scriptUrl, ttPolicy, YT, YTConfig;
|
|
211
210
|
return __generator(this, function (_a) {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
});
|
|
221
|
-
scriptUrl = ttPolicy.createScriptURL(scriptUrl);
|
|
222
|
-
} catch (e) {}
|
|
223
|
-
|
|
224
|
-
if (!window['YT']) YT = {
|
|
225
|
-
loading: 0,
|
|
226
|
-
loaded: 0
|
|
227
|
-
};
|
|
228
|
-
if (!window['YTConfig']) YTConfig = {
|
|
229
|
-
host: 'https://www.youtube.com'
|
|
230
|
-
};
|
|
231
|
-
|
|
232
|
-
if (!YT.loading) {
|
|
233
|
-
YT.loading = 1;
|
|
234
|
-
|
|
235
|
-
(function () {
|
|
236
|
-
var l = [];
|
|
237
|
-
|
|
238
|
-
YT.ready = function (f) {
|
|
239
|
-
if (YT.loaded) f();else l.push(f);
|
|
240
|
-
};
|
|
241
|
-
|
|
242
|
-
window.onYTReady = function () {
|
|
243
|
-
YT.loaded = 1;
|
|
244
|
-
|
|
245
|
-
for (var i = 0; i < l.length; i++) {
|
|
246
|
-
try {
|
|
247
|
-
l[i]();
|
|
248
|
-
} catch (e$0) {}
|
|
249
|
-
}
|
|
250
|
-
};
|
|
251
|
-
|
|
252
|
-
YT.setConfig = function (c) {
|
|
253
|
-
for (var k in c) {
|
|
254
|
-
if (c.hasOwnProperty(k)) YTConfig[k] = c[k];
|
|
255
|
-
}
|
|
256
|
-
};
|
|
211
|
+
switch (_a.label) {
|
|
212
|
+
case 0:
|
|
213
|
+
if (!!window.YT) return [3
|
|
214
|
+
/*break*/
|
|
215
|
+
, 2];
|
|
216
|
+
return [4
|
|
217
|
+
/*yield*/
|
|
218
|
+
, Promise.all([(0, _commonUtil.importAsync)('https://www.youtube.com/iframe_api', 'js')])];
|
|
257
219
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
a.id = 'www-widgetapi-script';
|
|
261
|
-
a.src = scriptUrl;
|
|
262
|
-
a.async = true;
|
|
263
|
-
var c = document.currentScript;
|
|
220
|
+
case 1:
|
|
221
|
+
_a.sent();
|
|
264
222
|
|
|
265
|
-
|
|
266
|
-
var n = c.nonce || c.getAttribute('nonce');
|
|
267
|
-
if (n) a.setAttribute('nonce', n);
|
|
268
|
-
}
|
|
223
|
+
_a.label = 2;
|
|
269
224
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
225
|
+
case 2:
|
|
226
|
+
return [2
|
|
227
|
+
/*return*/
|
|
228
|
+
];
|
|
274
229
|
}
|
|
275
|
-
|
|
276
|
-
return [2
|
|
277
|
-
/*return*/
|
|
278
|
-
];
|
|
279
230
|
});
|
|
280
231
|
});
|
|
281
232
|
};
|
|
@@ -1,80 +1,54 @@
|
|
|
1
1
|
.m-banner-mobile {
|
|
2
2
|
position: relative;
|
|
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
|
-
.swiper-ban {
|
|
58
|
-
position: absolute;
|
|
59
|
-
width: 100%;
|
|
60
|
-
bottom: 10px;
|
|
61
|
-
display: flex;
|
|
62
|
-
align-items: center;
|
|
63
|
-
justify-content: center;
|
|
64
|
-
|
|
65
|
-
.ban {
|
|
66
|
-
font-size: 16px;
|
|
67
|
-
width: 1.5em;
|
|
68
|
-
height: 0.3em;
|
|
69
|
-
background: #FFF;
|
|
70
|
-
cursor: inherit;
|
|
71
|
-
margin-right: 0.3em;
|
|
72
|
-
transition: all .5s;
|
|
73
|
-
|
|
74
|
-
&.active {
|
|
75
|
-
width: 1.5em;
|
|
76
|
-
opacity: 1;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
3
|
+
}
|
|
4
|
+
.m-banner-mobile .cylon-carousel .slick-track {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
}
|
|
8
|
+
.m-banner-mobile .carouselItem {
|
|
9
|
+
position: relative;
|
|
10
|
+
display: flex;
|
|
11
|
+
}
|
|
12
|
+
.m-banner-mobile .carouselItem .carouseContent {
|
|
13
|
+
padding: 1.6rem 0.56rem 0;
|
|
14
|
+
position: absolute;
|
|
15
|
+
z-index: 2;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
margin-bottom: auto;
|
|
19
|
+
}
|
|
20
|
+
.m-banner-mobile .carouselItem .title {
|
|
21
|
+
margin-bottom: 0.16rem;
|
|
22
|
+
}
|
|
23
|
+
.m-banner-mobile .carouselItem .sub-title {
|
|
24
|
+
margin-bottom: 0.4rem;
|
|
25
|
+
}
|
|
26
|
+
.m-banner-mobile .carouselItem .btn-wrap {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: flex-start;
|
|
30
|
+
}
|
|
31
|
+
.m-banner-mobile .carouselItem .btn-wrap .btn {
|
|
32
|
+
margin-right: 0.24rem;
|
|
33
|
+
}
|
|
34
|
+
.m-banner-mobile .swiper-ban {
|
|
35
|
+
position: absolute;
|
|
36
|
+
width: 100%;
|
|
37
|
+
bottom: 0.2rem;
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
}
|
|
42
|
+
.m-banner-mobile .swiper-ban .ban {
|
|
43
|
+
font-size: 0.32rem;
|
|
44
|
+
width: 1.5em;
|
|
45
|
+
height: 0.3em;
|
|
46
|
+
background: #FFF;
|
|
47
|
+
cursor: inherit;
|
|
48
|
+
margin-right: 0.3em;
|
|
49
|
+
transition: all 0.5s;
|
|
50
|
+
}
|
|
51
|
+
.m-banner-mobile .swiper-ban .ban.active {
|
|
52
|
+
width: 1.5em;
|
|
53
|
+
opacity: 1;
|
|
54
|
+
}
|