@fonixtree/magic-design 0.1.52 → 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 (41) hide show
  1. package/es/common/LinkModal/BundleCampaign/index.js +27 -22
  2. package/es/common/LinkModal/FilteredProductModal/index.js +5 -2
  3. package/es/common/LinkModal/ProductDetailPage/index.js +37 -32
  4. package/es/common/ProductModal/index.js +7 -2
  5. package/es/composite-comp/bol/components/Banner/mobile/index.less +52 -78
  6. package/es/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
  7. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
  8. package/es/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
  9. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +23 -27
  10. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +38 -45
  11. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +41 -50
  12. package/es/composite-comp/bol/components/Video/mobile/index.less +2 -3
  13. package/es/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
  14. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
  15. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
  16. package/es/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
  17. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
  18. package/es/composite-comp/dito/components/SignBoard/mobile/index.less +76 -80
  19. package/es/utils/businessUtil.js +7 -1
  20. package/es/utils/commonUtil.js +29 -1
  21. package/lib/common/LinkModal/BundleCampaign/index.js +27 -22
  22. package/lib/common/LinkModal/FilteredProductModal/index.js +5 -2
  23. package/lib/common/LinkModal/ProductDetailPage/index.js +37 -32
  24. package/lib/common/ProductModal/index.js +7 -2
  25. package/lib/composite-comp/bol/components/Banner/mobile/index.less +52 -78
  26. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
  27. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
  28. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
  29. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +23 -27
  30. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +38 -45
  31. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +41 -50
  32. package/lib/composite-comp/bol/components/Video/mobile/index.less +2 -3
  33. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
  34. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
  35. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
  36. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
  37. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
  38. package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +76 -80
  39. package/lib/utils/businessUtil.js +7 -1
  40. package/lib/utils/commonUtil.js +29 -1
  41. package/package.json +1 -1
@@ -13,6 +13,8 @@ var _antd = require("antd");
13
13
 
14
14
  var _commonUtil = require("../../../utils/commonUtil");
15
15
 
16
+ var _businessUtil = require("../../../utils/businessUtil");
17
+
16
18
  var _dateUtil = require("../../../utils/dateUtil");
17
19
 
18
20
  require("./index.less");
@@ -298,7 +300,10 @@ var BundleCampaign = function BundleCampaign(props) {
298
300
  };
299
301
 
300
302
  (0, _react.useEffect)(function () {
301
- queryStore();
303
+ if ((0, _businessUtil.isPlatform)()) {
304
+ queryStore();
305
+ }
306
+
302
307
  var params = {
303
308
  campaignName: campaignName,
304
309
  storeId: storeId,
@@ -335,44 +340,44 @@ var BundleCampaign = function BundleCampaign(props) {
335
340
  }
336
341
  }, /*#__PURE__*/_react["default"].createElement("span", {
337
342
  className: "labelStyle"
338
- }, "Store"), /*#__PURE__*/_react["default"].createElement(_antd.Select, {
343
+ }, "Campaign State"), /*#__PURE__*/_react["default"].createElement(_antd.Select, {
339
344
  className: "inputStyle",
340
- onChange: function onChange(value) {
341
- return setStoreId(value);
342
- },
343
- optionFilterProp: "children",
344
- placeholder: "Please select",
345
- showSearch: true,
345
+ defaultValue: "A,B",
346
+ onChange: changeCamState,
346
347
  size: "small",
347
- value: storeId
348
- }, storeList && storeList.length > 0 && storeList.map(function (v) {
348
+ value: cmpState
349
+ }, stateMap && stateMap.length > 0 && stateMap.map(function (v) {
349
350
  return /*#__PURE__*/_react["default"].createElement(Option, {
350
- key: v.storeId,
351
- value: v.storeId
352
- }, v.storeName);
351
+ key: v.key,
352
+ value: v.key
353
+ }, v.value);
353
354
  })))), /*#__PURE__*/_react["default"].createElement(_antd.Row, {
354
355
  className: "mb12",
355
356
  style: {
356
357
  width: '100%'
357
358
  }
358
- }, /*#__PURE__*/_react["default"].createElement(_antd.Col, {
359
+ }, (0, _businessUtil.isPlatform)() && /*#__PURE__*/_react["default"].createElement(_antd.Col, {
359
360
  span: 12,
360
361
  style: {
361
362
  display: 'flex'
362
363
  }
363
364
  }, /*#__PURE__*/_react["default"].createElement("span", {
364
365
  className: "labelStyle"
365
- }, "Campaign State"), /*#__PURE__*/_react["default"].createElement(_antd.Select, {
366
+ }, "Store"), /*#__PURE__*/_react["default"].createElement(_antd.Select, {
366
367
  className: "inputStyle",
367
- defaultValue: "A,B",
368
- onChange: changeCamState,
368
+ onChange: function onChange(value) {
369
+ return setStoreId(value);
370
+ },
371
+ optionFilterProp: "children",
372
+ placeholder: "Please select",
373
+ showSearch: true,
369
374
  size: "small",
370
- value: cmpState
371
- }, stateMap && stateMap.length > 0 && stateMap.map(function (v) {
375
+ value: storeId
376
+ }, storeList && storeList.length > 0 && storeList.map(function (v) {
372
377
  return /*#__PURE__*/_react["default"].createElement(Option, {
373
- key: v.key,
374
- value: v.key
375
- }, v.value);
378
+ key: v.storeId,
379
+ value: v.storeId
380
+ }, v.storeName);
376
381
  }))), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
377
382
  span: 12,
378
383
  style: {
@@ -514,7 +514,10 @@ var FilteredProductModal = function FilteredProductModal(props) {
514
514
  queryCategory();
515
515
  queryBrand();
516
516
  queryLabel();
517
- queryStore();
517
+
518
+ if ((0, _businessUtil.isPlatform)()) {
519
+ queryStore();
520
+ }
518
521
  }, []);
519
522
  return /*#__PURE__*/_react["default"].createElement("div", {
520
523
  className: "mFilteredProductModal"
@@ -559,7 +562,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
559
562
  key: v.brandId,
560
563
  value: v.brandName
561
564
  }, v.brandName);
562
- }))), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
565
+ }))), (0, _businessUtil.isPlatform)() && /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
563
566
  label: "Store"
564
567
  }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
565
568
  className: "inputStyle",
@@ -15,6 +15,8 @@ var _locale = require("../../../locale");
15
15
 
16
16
  var _commonUtil = require("../../../utils/commonUtil");
17
17
 
18
+ var _businessUtil = require("../../../utils/businessUtil");
19
+
18
20
  require("./index.less");
19
21
 
20
22
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -366,7 +368,10 @@ var ProductDetailPage = function ProductDetailPage(props) {
366
368
 
367
369
  queryGoods(params);
368
370
  queryBrand();
369
- queryStore();
371
+
372
+ if ((0, _businessUtil.isPlatform)()) {
373
+ queryStore();
374
+ }
370
375
  }, []);
371
376
  return /*#__PURE__*/_react["default"].createElement("div", {
372
377
  className: "productDetailPage"
@@ -398,35 +403,6 @@ var ProductDetailPage = function ProductDetailPage(props) {
398
403
  size: "small",
399
404
  value: productCode
400
405
  }))), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
401
- span: 6
402
- }, /*#__PURE__*/_react["default"].createElement(_antd.Button, {
403
- onClick: function onClick() {
404
- setLoading(true);
405
- paginationParams.pageIndex = 1;
406
-
407
- var total = paginationParams.total,
408
- params = __rest(paginationParams, ["total"]);
409
-
410
- queryGoods(__assign({
411
- productName: productName,
412
- productCode: productCode,
413
- brandIds: brandId.map(function (v) {
414
- return v.key;
415
- }).join(',') || '',
416
- storeId: storeId
417
- }, params));
418
- },
419
- size: "small",
420
- style: {
421
- marginRight: 10
422
- },
423
- type: "primary"
424
- }, (0, _locale.i18n)('QUERY')), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
425
- onClick: function onClick() {
426
- reset();
427
- },
428
- size: "small"
429
- }, (0, _locale.i18n)('CANCEL'))), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
430
406
  span: 9
431
407
  }, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
432
408
  label: "Brand"
@@ -444,7 +420,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
444
420
  key: v.brandId,
445
421
  value: v.brandName
446
422
  }, v.brandName);
447
- })))), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
423
+ })))), (0, _businessUtil.isPlatform)() && /*#__PURE__*/_react["default"].createElement(_antd.Col, {
448
424
  span: 9
449
425
  }, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
450
426
  label: "Store"
@@ -463,7 +439,36 @@ var ProductDetailPage = function ProductDetailPage(props) {
463
439
  key: v.storeId,
464
440
  value: v.storeId
465
441
  }, v.storeName);
466
- })))))), /*#__PURE__*/_react["default"].createElement(_antd.Table, {
442
+ })))), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
443
+ span: 6
444
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Button, {
445
+ onClick: function onClick() {
446
+ setLoading(true);
447
+ paginationParams.pageIndex = 1;
448
+
449
+ var total = paginationParams.total,
450
+ params = __rest(paginationParams, ["total"]);
451
+
452
+ queryGoods(__assign({
453
+ productName: productName,
454
+ productCode: productCode,
455
+ brandIds: brandId.map(function (v) {
456
+ return v.key;
457
+ }).join(',') || '',
458
+ storeId: storeId
459
+ }, params));
460
+ },
461
+ size: "small",
462
+ style: {
463
+ marginRight: 10
464
+ },
465
+ type: "primary"
466
+ }, (0, _locale.i18n)('QUERY')), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
467
+ onClick: function onClick() {
468
+ reset();
469
+ },
470
+ size: "small"
471
+ }, (0, _locale.i18n)('CANCEL'))))), /*#__PURE__*/_react["default"].createElement(_antd.Table, {
467
472
  bordered: false,
468
473
  columns: columns,
469
474
  dataSource: productList,
@@ -13,6 +13,8 @@ var _react = _interopRequireWildcard(require("react"));
13
13
 
14
14
  var _commonUtil = require("../../utils/commonUtil");
15
15
 
16
+ var _businessUtil = require("../../utils/businessUtil");
17
+
16
18
  var _Iconfont = _interopRequireDefault(require("../Iconfont"));
17
19
 
18
20
  var _currencyUtil = require("../../utils/currencyUtil");
@@ -468,7 +470,10 @@ var ProductModal = function ProductModal(props) {
468
470
  queryOfferCatgs();
469
471
  queryBrands();
470
472
  queryLabel();
471
- queryStore();
473
+
474
+ if ((0, _businessUtil.isPlatform)()) {
475
+ queryStore();
476
+ }
472
477
  }, []);
473
478
  (0, _react.useEffect)(function () {
474
479
  setSelectedList(defaultList);
@@ -593,7 +598,7 @@ var ProductModal = function ProductModal(props) {
593
598
  key: item.catgId,
594
599
  value: item.brandId
595
600
  }, item.brandName);
596
- }))), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
601
+ }))), (0, _businessUtil.isPlatform)() && /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
597
602
  label: "Store"
598
603
  }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
599
604
  className: "inputStyle",
@@ -1,80 +1,54 @@
1
1
  .m-banner-mobile {
2
2
  position: relative;
3
- // .turnPage {
4
- // position: absolute;
5
- // top: 50%;
6
- // transform: translateY(-50%);
7
- // z-index: 3;
8
- // cursor: pointer;
9
- // }
10
- // .leftBtn {
11
- // left: 20px;
12
- // }
13
- // .rightBtn {
14
- // right: 20px;
15
- // }
16
-
17
- .cylon-carousel {
18
- .slick-track {
19
- display: flex;
20
- align-items: center;
21
- }
22
- }
23
-
24
- .carouselItem {
25
- // height: 386px;
26
- position: relative;
27
- display: flex;
28
-
29
- .carouseContent {
30
- padding: 80px 28px 0;
31
- position: absolute;
32
- z-index: 2;
33
- display: flex;
34
- flex-direction: column;
35
- margin-bottom: auto;
36
- }
37
-
38
- .title {
39
- margin-bottom: 8px;
40
- }
41
-
42
- .sub-title {
43
- margin-bottom: 20px;
44
- }
45
-
46
- .btn-wrap {
47
- display: flex;
48
- align-items: center;
49
- justify-content: flex-start;
50
-
51
- .btn {
52
- margin-right: 12px;
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
+ }
@@ -1,103 +1,84 @@
1
1
  .m-carousel-mobile {
2
2
  position: relative;
3
3
  width: 100%;
4
-
5
- .content {
6
- display: flex;
7
- margin: 0 auto;
8
- }
9
-
10
- .slider-wrap {
11
- width: 100%;
12
- margin: 0 auto;
13
- line-height: 1;
14
-
15
- .slick-list {
16
- // margin-left: -11px;
17
- // margin-right: -11px;
18
- padding: 0;
19
-
20
- &:hover {
21
- padding-top: 100px;
22
- margin-top: -100px;
23
- padding-bottom: 100px;
24
- margin-bottom: -100px;
25
- }
26
-
27
- .slick-track {
28
- display: flex;
29
- align-items: center;
30
- gap: 12px;
31
- }
32
- }
33
-
34
- .img-wrap {
35
- .img {
36
- width: fit-content;
37
- height: fit-content;
38
- display: block;
39
- margin: 0 auto;
40
- }
41
-
42
- .title {
43
- display: flex;
44
- justify-content: center;
45
- margin-top: 12px;
46
- }
47
-
48
- .text {
49
- display: flex;
50
- justify-content: center;
51
- margin-top: 6px;
52
- }
53
-
54
- .tags {
55
- margin-top: 8px;
56
- margin-bottom: 12px;
57
- display: flex;
58
- flex-direction: row;
59
- align-items: center;
60
- justify-content: center;
61
-
62
- >div {
63
- margin-right: 8px;
64
-
65
- &:last-child {
66
- margin-right: 0;
67
- }
68
- }
69
- }
70
- }
71
- }
72
-
73
- .swiper-ban {
74
- position: absolute;
75
- width: 100%;
76
- bottom: 6px;
77
- display: flex;
78
- align-items: center;
79
- justify-content: center;
80
-
81
- .ban {
82
- font-size: 8px;
83
- width: 1em;
84
- height: 1em;
85
- border-radius: 50%;
86
- background: #FFF;
87
- cursor: inherit;
88
- margin-right: 10px;
89
- transition: all .5s;
90
-
91
- &:last-child {
92
- margin-right: 0;
93
- }
94
-
95
- &.active {
96
- width: 2em;
97
- height: 1em;
98
- border-radius: 100px;
99
- opacity: 1;
100
- }
101
- }
102
- }
103
- }
4
+ }
5
+ .m-carousel-mobile .content {
6
+ display: flex;
7
+ margin: 0 auto;
8
+ }
9
+ .m-carousel-mobile .slider-wrap {
10
+ width: 100%;
11
+ margin: 0 auto;
12
+ line-height: 1;
13
+ }
14
+ .m-carousel-mobile .slider-wrap .slick-list {
15
+ padding: 0;
16
+ }
17
+ .m-carousel-mobile .slider-wrap .slick-list:hover {
18
+ padding-top: 2rem;
19
+ margin-top: -2rem;
20
+ padding-bottom: 2rem;
21
+ margin-bottom: -2rem;
22
+ }
23
+ .m-carousel-mobile .slider-wrap .slick-list .slick-track {
24
+ display: flex;
25
+ align-items: center;
26
+ gap: 0.24rem;
27
+ }
28
+ .m-carousel-mobile .slider-wrap .img-wrap .img {
29
+ width: fit-content;
30
+ height: fit-content;
31
+ display: block;
32
+ margin: 0 auto;
33
+ }
34
+ .m-carousel-mobile .slider-wrap .img-wrap .title {
35
+ display: flex;
36
+ justify-content: center;
37
+ margin-top: 0.24rem;
38
+ }
39
+ .m-carousel-mobile .slider-wrap .img-wrap .text {
40
+ display: flex;
41
+ justify-content: center;
42
+ margin-top: 0.12rem;
43
+ }
44
+ .m-carousel-mobile .slider-wrap .img-wrap .tags {
45
+ margin-top: 0.16rem;
46
+ margin-bottom: 0.24rem;
47
+ display: flex;
48
+ flex-direction: row;
49
+ align-items: center;
50
+ justify-content: center;
51
+ }
52
+ .m-carousel-mobile .slider-wrap .img-wrap .tags > div {
53
+ margin-right: 0.16rem;
54
+ }
55
+ .m-carousel-mobile .slider-wrap .img-wrap .tags > div:last-child {
56
+ margin-right: 0;
57
+ }
58
+ .m-carousel-mobile .swiper-ban {
59
+ position: absolute;
60
+ width: 100%;
61
+ bottom: 0.12rem;
62
+ display: flex;
63
+ align-items: center;
64
+ justify-content: center;
65
+ }
66
+ .m-carousel-mobile .swiper-ban .ban {
67
+ font-size: 0.16rem;
68
+ width: 1em;
69
+ height: 1em;
70
+ border-radius: 50%;
71
+ background: #FFF;
72
+ cursor: inherit;
73
+ margin-right: 0.2rem;
74
+ transition: all 0.5s;
75
+ }
76
+ .m-carousel-mobile .swiper-ban .ban:last-child {
77
+ margin-right: 0;
78
+ }
79
+ .m-carousel-mobile .swiper-ban .ban.active {
80
+ width: 2em;
81
+ height: 1em;
82
+ border-radius: 2rem;
83
+ opacity: 1;
84
+ }
@@ -1,22 +1,15 @@
1
- .m-image-gallery-mobile {
2
- .content {
3
- .line {
4
- margin-bottom: 12px;
5
-
6
- &.isHorizontal {
7
- display: flex;
8
- justify-content: flex-start;
9
- }
10
-
11
- &:last-child {
12
- margin-bottom: 0;
13
- }
14
-
15
- .img-wrap {
16
- display: flex;
17
- align-items: center;
18
- justify-content: center;
19
- }
20
- }
21
- }
22
- }
1
+ .m-image-gallery-mobile .content .line {
2
+ margin-bottom: 0.24rem;
3
+ }
4
+ .m-image-gallery-mobile .content .line.isHorizontal {
5
+ display: flex;
6
+ justify-content: flex-start;
7
+ }
8
+ .m-image-gallery-mobile .content .line:last-child {
9
+ margin-bottom: 0;
10
+ }
11
+ .m-image-gallery-mobile .content .line .img-wrap {
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+ }