@fonixtree/magic-design 1.0.4 → 2.0.2
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/magic-box-iconfont.css +47 -3
- package/es/assets/fonts/magic-box-iconfont.css.bak +47 -3
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/assets/less/slider.less +49 -1
- package/es/common/ImageModal/index.js +35 -2
- package/es/common/ImagePicker/index.js +69 -9
- package/es/common/ImagePicker/index.less +1 -0
- package/es/common/LinkModal/AffiliateProductTable/index.js +348 -0
- package/es/common/LinkModal/index.js +6 -0
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +1 -1
- package/es/composite-comp/bol/components/Banner/index.js +15 -1
- package/es/composite-comp/bol/components/Banner/mobile/index.js +1 -4
- package/es/composite-comp/bol/components/Banner/mobile/index.less +52 -78
- package/es/composite-comp/bol/components/Banner/pc/index.js +1 -4
- package/es/composite-comp/bol/components/Button/index.js +3 -4
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +1 -4
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
- package/es/composite-comp/bol/components/Carousel/pc/index.js +1 -4
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +1 -4
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
- package/es/composite-comp/bol/components/ImageGallery/pc/index.js +3 -4
- package/es/composite-comp/bol/components/ImageText/defaultJSON.js +11 -2
- package/es/composite-comp/bol/components/ImageText/mobile/index.js +1 -4
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
- package/es/composite-comp/bol/components/ImageText/pc/index.js +3 -4
- package/es/composite-comp/bol/components/Newsletter/index.js +1 -4
- package/es/composite-comp/bol/components/Tag/index.js +3 -4
- package/es/composite-comp/bol/components/Text/index.js +3 -4
- package/es/composite-comp/bol/components/Video/components/VideoTag/index.js +49 -10
- package/es/composite-comp/bol/components/Video/components/VideoTag/index.less +5 -5
- package/es/composite-comp/bol/components/Video/defaultJSON.js +10 -0
- package/es/composite-comp/bol/components/Video/index.js +23 -1
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.js +9 -12
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.js +8 -11
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.js +9 -11
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -50
- package/es/composite-comp/bol/components/Video/mobile/index.js +8 -49
- package/es/composite-comp/bol/components/Video/mobile/index.less +2 -3
- package/es/composite-comp/bol/components/Video/pc/Layout1/index.js +9 -12
- package/es/composite-comp/bol/components/Video/pc/Layout1/index.less +2 -2
- package/es/composite-comp/bol/components/Video/pc/Layout2/index.js +15 -16
- package/es/composite-comp/bol/components/Video/pc/Layout2/index.less +4 -4
- package/es/composite-comp/bol/components/Video/pc/Layout3/index.js +8 -11
- package/es/composite-comp/bol/components/Video/pc/Layout3/index.less +2 -2
- package/es/composite-comp/bol/components/Video/pc/Layout4/index.js +9 -12
- package/es/composite-comp/bol/components/Video/pc/Layout4/index.less +5 -4
- package/es/composite-comp/bol/components/Video/pc/Layout5/index.js +9 -12
- package/es/composite-comp/bol/components/Video/pc/Layout5/index.less +12 -10
- package/es/composite-comp/bol/components/Wallet/mobile/index.js +1 -4
- package/es/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
- package/es/composite-comp/bol/components/Wallet/pc/index.js +1 -4
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +4 -0
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +1 -1
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -1
- package/es/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +12 -2
- package/es/composite-comp/bol/config-panels/VideoConfig/index.js +3 -1
- package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +10 -1
- package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +12 -2
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +5 -3
- 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 +4 -2
- package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back1.png +0 -0
- package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back2.png +0 -0
- package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back3.png +0 -0
- package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back4.png +0 -0
- package/es/core/Designer/AiImageGenerator/GenerateArtist/index.js +72 -0
- package/es/core/Designer/AiImageGenerator/GenerateArtist/index.less +41 -0
- package/es/core/Designer/AiImageGenerator/GenerateSize/index.js +43 -0
- package/es/core/Designer/AiImageGenerator/GenerateSize/index.less +3 -0
- package/es/core/Designer/AiImageGenerator/History/index.js +141 -0
- package/es/core/Designer/AiImageGenerator/History/index.less +69 -0
- package/es/core/Designer/AiImageGenerator/UploadReference/index.js +45 -0
- package/es/core/Designer/AiImageGenerator/UploadReference/index.less +39 -0
- package/es/core/Designer/AiImageGenerator/images/nodata.png +0 -0
- package/es/core/Designer/AiImageGenerator/index.js +711 -0
- package/es/core/Designer/AiImageGenerator/index.less +140 -0
- package/es/core/Designer/ChatRobot/components/CopyBtn/index.js +49 -0
- package/es/core/Designer/ChatRobot/components/CopyBtn/index.less +0 -0
- package/es/core/Designer/ChatRobot/index.js +321 -0
- package/es/core/Designer/ChatRobot/index.less +130 -0
- package/es/core/Designer/ChatRobot/markdown.less +1 -0
- package/es/core/Designer/FonixtreeGpt/index.js +160 -0
- package/es/core/Designer/index.js +27 -8
- package/es/decorator/metaDecorator.js +1 -1
- package/es/locale/en/en.json +5 -0
- package/es/locale/es/es.json +5 -0
- package/es/locale/id/id.json +5 -0
- package/es/meta-comp/config-panels/ImageConfig/index.js +32 -11
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-01.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-02.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-03.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-04.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-05.svg +3 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-01.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-02.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-03.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-04.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-05.svg +3 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/index.js +63 -0
- package/es/meta-comp/config-panels/PlayIconConfig/index.js +211 -0
- package/es/meta-comp/config-panels/PlayIconConfig/index.less +37 -2
- package/es/meta-comp/config-panels/TextConfig/index.js +5 -1
- package/es/mobx/Store.js +3 -0
- package/es/utils/androidUtil.js +2 -1
- package/es/utils/businessUtil.js +13 -0
- package/es/utils/commonUtil.js +142 -34
- package/es/utils/coreUtil.js +3 -4
- package/lib/assets/fonts/magic-box-iconfont.css +47 -3
- package/lib/assets/fonts/magic-box-iconfont.css.bak +47 -3
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/assets/less/slider.less +49 -1
- package/lib/common/ImageModal/index.js +35 -2
- package/lib/common/ImagePicker/index.js +69 -9
- package/lib/common/ImagePicker/index.less +1 -0
- package/lib/common/LinkModal/AffiliateProductTable/index.js +348 -0
- package/lib/common/LinkModal/index.js +6 -0
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +1 -1
- package/lib/composite-comp/bol/components/Banner/index.js +15 -1
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +1 -4
- package/lib/composite-comp/bol/components/Banner/mobile/index.less +52 -78
- package/lib/composite-comp/bol/components/Banner/pc/index.js +1 -4
- package/lib/composite-comp/bol/components/Button/index.js +3 -4
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +1 -4
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +1 -4
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +1 -4
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
- package/lib/composite-comp/bol/components/ImageGallery/pc/index.js +3 -4
- package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +11 -2
- package/lib/composite-comp/bol/components/ImageText/mobile/index.js +1 -4
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
- package/lib/composite-comp/bol/components/ImageText/pc/index.js +3 -4
- package/lib/composite-comp/bol/components/Newsletter/index.js +1 -4
- package/lib/composite-comp/bol/components/Tag/index.js +3 -4
- package/lib/composite-comp/bol/components/Text/index.js +3 -4
- package/lib/composite-comp/bol/components/Video/components/VideoTag/index.js +49 -10
- package/lib/composite-comp/bol/components/Video/components/VideoTag/index.less +5 -5
- package/lib/composite-comp/bol/components/Video/defaultJSON.js +10 -0
- package/lib/composite-comp/bol/components/Video/index.js +23 -1
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.js +9 -12
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.js +8 -11
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.js +9 -11
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -50
- package/lib/composite-comp/bol/components/Video/mobile/index.js +8 -49
- package/lib/composite-comp/bol/components/Video/mobile/index.less +2 -3
- package/lib/composite-comp/bol/components/Video/pc/Layout1/index.js +9 -12
- package/lib/composite-comp/bol/components/Video/pc/Layout1/index.less +2 -2
- package/lib/composite-comp/bol/components/Video/pc/Layout2/index.js +15 -16
- package/lib/composite-comp/bol/components/Video/pc/Layout2/index.less +4 -4
- package/lib/composite-comp/bol/components/Video/pc/Layout3/index.js +8 -11
- package/lib/composite-comp/bol/components/Video/pc/Layout3/index.less +2 -2
- package/lib/composite-comp/bol/components/Video/pc/Layout4/index.js +9 -12
- package/lib/composite-comp/bol/components/Video/pc/Layout4/index.less +5 -4
- package/lib/composite-comp/bol/components/Video/pc/Layout5/index.js +9 -12
- package/lib/composite-comp/bol/components/Video/pc/Layout5/index.less +12 -10
- package/lib/composite-comp/bol/components/Wallet/mobile/index.js +1 -4
- package/lib/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
- package/lib/composite-comp/bol/components/Wallet/pc/index.js +1 -4
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +4 -0
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +1 -1
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -1
- package/lib/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +12 -2
- package/lib/composite-comp/bol/config-panels/VideoConfig/index.js +3 -1
- package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +10 -1
- package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +12 -2
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +5 -3
- 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 +4 -2
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back1.png +0 -0
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back2.png +0 -0
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back3.png +0 -0
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back4.png +0 -0
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/index.js +72 -0
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/index.less +41 -0
- package/lib/core/Designer/AiImageGenerator/GenerateSize/index.js +43 -0
- package/lib/core/Designer/AiImageGenerator/GenerateSize/index.less +3 -0
- package/lib/core/Designer/AiImageGenerator/History/index.js +141 -0
- package/lib/core/Designer/AiImageGenerator/History/index.less +69 -0
- package/lib/core/Designer/AiImageGenerator/UploadReference/index.js +45 -0
- package/lib/core/Designer/AiImageGenerator/UploadReference/index.less +39 -0
- package/lib/core/Designer/AiImageGenerator/images/nodata.png +0 -0
- package/lib/core/Designer/AiImageGenerator/index.js +711 -0
- package/lib/core/Designer/AiImageGenerator/index.less +140 -0
- package/lib/core/Designer/ChatRobot/components/CopyBtn/index.js +49 -0
- package/lib/core/Designer/ChatRobot/components/CopyBtn/index.less +0 -0
- package/lib/core/Designer/ChatRobot/index.js +321 -0
- package/lib/core/Designer/ChatRobot/index.less +130 -0
- package/lib/core/Designer/ChatRobot/markdown.less +1 -0
- package/lib/core/Designer/FonixtreeGpt/index.js +160 -0
- package/lib/core/Designer/index.js +27 -8
- package/lib/decorator/metaDecorator.js +1 -1
- package/lib/locale/en/en.json +5 -0
- package/lib/locale/es/es.json +5 -0
- package/lib/locale/id/id.json +5 -0
- package/lib/meta-comp/config-panels/ImageConfig/index.js +32 -11
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-01.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-02.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-03.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-04.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-05.svg +3 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-01.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-02.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-03.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-04.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-05.svg +3 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/index.js +63 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/index.js +211 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/index.less +37 -2
- package/lib/meta-comp/config-panels/TextConfig/index.js +5 -1
- package/lib/mobx/Store.js +3 -0
- package/lib/utils/androidUtil.js +2 -1
- package/lib/utils/businessUtil.js +13 -0
- package/lib/utils/commonUtil.js +142 -34
- package/lib/utils/coreUtil.js +3 -4
- package/package.json +2 -1
- package/es/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/.DS_Store +0 -0
|
@@ -23,6 +23,8 @@ var _CommonSelPicCard = _interopRequireDefault(require("./CommonSelPicCard"));
|
|
|
23
23
|
|
|
24
24
|
var _const2 = require("./const");
|
|
25
25
|
|
|
26
|
+
var _utils = require("./utils");
|
|
27
|
+
|
|
26
28
|
var _Iconfont = _interopRequireDefault(require("../Iconfont"));
|
|
27
29
|
|
|
28
30
|
var _commonUtil = require("../../utils/commonUtil");
|
|
@@ -487,7 +489,7 @@ function ImageModal(_a) {
|
|
|
487
489
|
|
|
488
490
|
var handleUpload = function handleUpload(file) {
|
|
489
491
|
return __awaiter(_this, void 0, void 0, function () {
|
|
490
|
-
var form, result;
|
|
492
|
+
var config, result, form, result;
|
|
491
493
|
return __generator(this, function (_a) {
|
|
492
494
|
switch (_a.label) {
|
|
493
495
|
case 0:
|
|
@@ -505,6 +507,37 @@ function ImageModal(_a) {
|
|
|
505
507
|
}
|
|
506
508
|
}
|
|
507
509
|
|
|
510
|
+
console.log('file: ', file);
|
|
511
|
+
return [4
|
|
512
|
+
/*yield*/
|
|
513
|
+
, (0, _utils.getUploadParamCodeConfig)()];
|
|
514
|
+
|
|
515
|
+
case 1:
|
|
516
|
+
config = _a.sent();
|
|
517
|
+
if (!(file.size > config.maxSize)) return [3
|
|
518
|
+
/*break*/
|
|
519
|
+
, 3];
|
|
520
|
+
setSpinning(true);
|
|
521
|
+
setProcess(0);
|
|
522
|
+
return [4
|
|
523
|
+
/*yield*/
|
|
524
|
+
, (0, _utils.chunksUpload)({
|
|
525
|
+
file: file,
|
|
526
|
+
contentCatgId: selectedKeys[0]
|
|
527
|
+
}, function (process) {
|
|
528
|
+
// console.log('process', process);
|
|
529
|
+
setProcess(process);
|
|
530
|
+
})];
|
|
531
|
+
|
|
532
|
+
case 2:
|
|
533
|
+
result = _a.sent();
|
|
534
|
+
setProcess(null);
|
|
535
|
+
setSpinning(false);
|
|
536
|
+
return [2
|
|
537
|
+
/*return*/
|
|
538
|
+
, result];
|
|
539
|
+
|
|
540
|
+
case 3:
|
|
508
541
|
form = new FormData();
|
|
509
542
|
form.append('file', file); // 文件对象
|
|
510
543
|
|
|
@@ -518,7 +551,7 @@ function ImageModal(_a) {
|
|
|
518
551
|
/*yield*/
|
|
519
552
|
, onUpload(form)];
|
|
520
553
|
|
|
521
|
-
case
|
|
554
|
+
case 4:
|
|
522
555
|
result = _a.sent();
|
|
523
556
|
return [2
|
|
524
557
|
/*return*/
|
|
@@ -17,8 +17,12 @@ var _ImageModal = _interopRequireDefault(require("../ImageModal"));
|
|
|
17
17
|
|
|
18
18
|
var _ = require("..");
|
|
19
19
|
|
|
20
|
+
var _AiImageGenerator = _interopRequireDefault(require("../../core/Designer/AiImageGenerator"));
|
|
21
|
+
|
|
20
22
|
var _Iconfont = _interopRequireDefault(require("../Iconfont"));
|
|
21
23
|
|
|
24
|
+
var _coreUtil = require("../../utils/coreUtil");
|
|
25
|
+
|
|
22
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
27
|
|
|
24
28
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -66,8 +70,8 @@ function (_super) {
|
|
|
66
70
|
|
|
67
71
|
_this.state = {
|
|
68
72
|
visible: false,
|
|
69
|
-
|
|
70
|
-
|
|
73
|
+
inputVal: '',
|
|
74
|
+
aiImageVisible: false
|
|
71
75
|
};
|
|
72
76
|
|
|
73
77
|
_this.onChange = function (v) {
|
|
@@ -92,6 +96,12 @@ function (_super) {
|
|
|
92
96
|
}
|
|
93
97
|
};
|
|
94
98
|
|
|
99
|
+
_this.onAiImageClick = function () {
|
|
100
|
+
_this.setState({
|
|
101
|
+
aiImageVisible: true
|
|
102
|
+
});
|
|
103
|
+
};
|
|
104
|
+
|
|
95
105
|
_this.getImagePick = function () {
|
|
96
106
|
var visible = _this.state.visible;
|
|
97
107
|
var value = _this.props.value;
|
|
@@ -161,6 +171,19 @@ function (_super) {
|
|
|
161
171
|
}));
|
|
162
172
|
};
|
|
163
173
|
|
|
174
|
+
_this.onAiImageConfirm = function (data) {
|
|
175
|
+
_this.setState({
|
|
176
|
+
aiImageVisible: false
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
_this.props.onChange({
|
|
180
|
+
contentTitle: data.fileName,
|
|
181
|
+
contentType: 'File',
|
|
182
|
+
imgUrl: data.oriUrl,
|
|
183
|
+
url: data.oriUrl
|
|
184
|
+
});
|
|
185
|
+
};
|
|
186
|
+
|
|
164
187
|
_this.getImageUrl = function () {
|
|
165
188
|
var onChange = _this.props.onChange;
|
|
166
189
|
var inputVal = _this.state.inputVal;
|
|
@@ -198,6 +221,21 @@ function (_super) {
|
|
|
198
221
|
}))));
|
|
199
222
|
};
|
|
200
223
|
|
|
224
|
+
_this.changePickerWay = function (way) {
|
|
225
|
+
var tempObj = _this.props.imageSelectedWay;
|
|
226
|
+
|
|
227
|
+
if ((0, _coreUtil.isPc)()) {
|
|
228
|
+
tempObj.pc = way;
|
|
229
|
+
if (!tempObj.mobile) tempObj.mobile = way;
|
|
230
|
+
} else {
|
|
231
|
+
tempObj.mobile = way;
|
|
232
|
+
if (!tempObj.pc) tempObj.pc = way;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
var onChange = _this.props.onChange;
|
|
236
|
+
onChange(null, tempObj);
|
|
237
|
+
};
|
|
238
|
+
|
|
201
239
|
return _this;
|
|
202
240
|
}
|
|
203
241
|
|
|
@@ -218,7 +256,9 @@ function (_super) {
|
|
|
218
256
|
ImagePicker.prototype.render = function () {
|
|
219
257
|
var _this = this;
|
|
220
258
|
|
|
221
|
-
var
|
|
259
|
+
var imageSelectedWay = this.props.imageSelectedWay;
|
|
260
|
+
var way = (0, _coreUtil.isPc)() ? imageSelectedWay.pc : imageSelectedWay.mobile;
|
|
261
|
+
var aiImageVisible = this.state.aiImageVisible;
|
|
222
262
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
223
263
|
className: "image-picker-wrap"
|
|
224
264
|
}, /*#__PURE__*/_react["default"].createElement(_.Field, {
|
|
@@ -228,23 +268,43 @@ function (_super) {
|
|
|
228
268
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
229
269
|
className: "image-picker-select",
|
|
230
270
|
onChange: function onChange(value) {
|
|
231
|
-
_this.
|
|
232
|
-
imageWay: value
|
|
233
|
-
});
|
|
271
|
+
_this.changePickerWay(value);
|
|
234
272
|
},
|
|
235
273
|
size: "large",
|
|
236
|
-
value:
|
|
274
|
+
value: way || 'upload'
|
|
237
275
|
}, selectList.map(function (v) {
|
|
238
276
|
return /*#__PURE__*/_react["default"].createElement(Option, {
|
|
239
277
|
key: v.key,
|
|
240
278
|
value: v.key
|
|
241
279
|
}, v.value);
|
|
242
|
-
}))
|
|
280
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
281
|
+
className: "ai-btn",
|
|
282
|
+
onClick: this.onAiImageClick
|
|
283
|
+
}, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
284
|
+
color: "#2F54EB",
|
|
285
|
+
size: 20,
|
|
286
|
+
type: "icon-ai"
|
|
287
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
288
|
+
className: "btn-txt"
|
|
289
|
+
}, (0, _locale.i18n)('AI_IMAGE'))))), way === 'url' ? this.getImageUrl() : this.getImagePick(), /*#__PURE__*/_react["default"].createElement(_AiImageGenerator["default"], {
|
|
290
|
+
onClose: function onClose() {
|
|
291
|
+
return _this.setState({
|
|
292
|
+
aiImageVisible: false
|
|
293
|
+
});
|
|
294
|
+
},
|
|
295
|
+
onConfirm: this.onAiImageConfirm,
|
|
296
|
+
single: true,
|
|
297
|
+
visible: aiImageVisible
|
|
298
|
+
}));
|
|
243
299
|
};
|
|
244
300
|
|
|
245
301
|
ImagePicker.defaultProps = {
|
|
246
302
|
value: '',
|
|
247
|
-
onChange: function onChange() {}
|
|
303
|
+
onChange: function onChange() {},
|
|
304
|
+
imageSelectedWay: {
|
|
305
|
+
pc: '',
|
|
306
|
+
mobile: ''
|
|
307
|
+
}
|
|
248
308
|
};
|
|
249
309
|
return ImagePicker;
|
|
250
310
|
}(_react["default"].Component);
|
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = AffiliateProductTable;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _antd = require("antd");
|
|
13
|
+
|
|
14
|
+
var _commonUtil = require("../../../utils/commonUtil");
|
|
15
|
+
|
|
16
|
+
var _locale = require("../../../locale");
|
|
17
|
+
|
|
18
|
+
var _currencyUtil = require("../../../utils/currencyUtil");
|
|
19
|
+
|
|
20
|
+
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); }
|
|
21
|
+
|
|
22
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
+
|
|
24
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
25
|
+
__assign = Object.assign || function (t) {
|
|
26
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
27
|
+
s = arguments[i];
|
|
28
|
+
|
|
29
|
+
for (var p in s) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return t;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
return __assign.apply(this, arguments);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
|
|
41
|
+
function adopt(value) {
|
|
42
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
43
|
+
resolve(value);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
48
|
+
function fulfilled(value) {
|
|
49
|
+
try {
|
|
50
|
+
step(generator.next(value));
|
|
51
|
+
} catch (e) {
|
|
52
|
+
reject(e);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function rejected(value) {
|
|
57
|
+
try {
|
|
58
|
+
step(generator["throw"](value));
|
|
59
|
+
} catch (e) {
|
|
60
|
+
reject(e);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function step(result) {
|
|
65
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
73
|
+
var _ = {
|
|
74
|
+
label: 0,
|
|
75
|
+
sent: function sent() {
|
|
76
|
+
if (t[0] & 1) throw t[1];
|
|
77
|
+
return t[1];
|
|
78
|
+
},
|
|
79
|
+
trys: [],
|
|
80
|
+
ops: []
|
|
81
|
+
},
|
|
82
|
+
f,
|
|
83
|
+
y,
|
|
84
|
+
t,
|
|
85
|
+
g;
|
|
86
|
+
return g = {
|
|
87
|
+
next: verb(0),
|
|
88
|
+
"throw": verb(1),
|
|
89
|
+
"return": verb(2)
|
|
90
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
91
|
+
return this;
|
|
92
|
+
}), g;
|
|
93
|
+
|
|
94
|
+
function verb(n) {
|
|
95
|
+
return function (v) {
|
|
96
|
+
return step([n, v]);
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function step(op) {
|
|
101
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
102
|
+
|
|
103
|
+
while (_) {
|
|
104
|
+
try {
|
|
105
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
106
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
107
|
+
|
|
108
|
+
switch (op[0]) {
|
|
109
|
+
case 0:
|
|
110
|
+
case 1:
|
|
111
|
+
t = op;
|
|
112
|
+
break;
|
|
113
|
+
|
|
114
|
+
case 4:
|
|
115
|
+
_.label++;
|
|
116
|
+
return {
|
|
117
|
+
value: op[1],
|
|
118
|
+
done: false
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
case 5:
|
|
122
|
+
_.label++;
|
|
123
|
+
y = op[1];
|
|
124
|
+
op = [0];
|
|
125
|
+
continue;
|
|
126
|
+
|
|
127
|
+
case 7:
|
|
128
|
+
op = _.ops.pop();
|
|
129
|
+
|
|
130
|
+
_.trys.pop();
|
|
131
|
+
|
|
132
|
+
continue;
|
|
133
|
+
|
|
134
|
+
default:
|
|
135
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
136
|
+
_ = 0;
|
|
137
|
+
continue;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
141
|
+
_.label = op[1];
|
|
142
|
+
break;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
146
|
+
_.label = t[1];
|
|
147
|
+
t = op;
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
if (t && _.label < t[2]) {
|
|
152
|
+
_.label = t[2];
|
|
153
|
+
|
|
154
|
+
_.ops.push(op);
|
|
155
|
+
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (t[2]) _.ops.pop();
|
|
160
|
+
|
|
161
|
+
_.trys.pop();
|
|
162
|
+
|
|
163
|
+
continue;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
op = body.call(thisArg, _);
|
|
167
|
+
} catch (e) {
|
|
168
|
+
op = [6, e];
|
|
169
|
+
y = 0;
|
|
170
|
+
} finally {
|
|
171
|
+
f = t = 0;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
if (op[0] & 5) throw op[1];
|
|
176
|
+
return {
|
|
177
|
+
value: op[0] ? op[1] : void 0,
|
|
178
|
+
done: true
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
var paginationParams = {
|
|
184
|
+
pageSize: 80,
|
|
185
|
+
pageIndex: 1
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
function AffiliateProductTable(props) {
|
|
189
|
+
var _this = this;
|
|
190
|
+
|
|
191
|
+
var _onChange = props.onChange;
|
|
192
|
+
|
|
193
|
+
var _a = (0, _react.useState)([]),
|
|
194
|
+
productList = _a[0],
|
|
195
|
+
setProductList = _a[1];
|
|
196
|
+
|
|
197
|
+
var _b = (0, _react.useState)(false),
|
|
198
|
+
loading = _b[0],
|
|
199
|
+
setLoading = _b[1];
|
|
200
|
+
|
|
201
|
+
var _c = (0, _react.useState)({}),
|
|
202
|
+
formInfo = _c[0],
|
|
203
|
+
setFormInfo = _c[1];
|
|
204
|
+
|
|
205
|
+
var form = _antd.Form.useForm()[0];
|
|
206
|
+
|
|
207
|
+
var queryProduct = function queryProduct(params) {
|
|
208
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
209
|
+
var res;
|
|
210
|
+
return __generator(this, function (_a) {
|
|
211
|
+
switch (_a.label) {
|
|
212
|
+
case 0:
|
|
213
|
+
setLoading(true);
|
|
214
|
+
return [4
|
|
215
|
+
/*yield*/
|
|
216
|
+
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/distributor/product/list", __assign(__assign({}, params), {
|
|
217
|
+
state: 'Valid'
|
|
218
|
+
}), 'GET')];
|
|
219
|
+
|
|
220
|
+
case 1:
|
|
221
|
+
res = _a.sent();
|
|
222
|
+
paginationParams.total = res.total;
|
|
223
|
+
setProductList(res.list);
|
|
224
|
+
setLoading(false);
|
|
225
|
+
return [2
|
|
226
|
+
/*return*/
|
|
227
|
+
];
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
});
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
(0, _react.useEffect)(function () {
|
|
234
|
+
queryProduct(paginationParams);
|
|
235
|
+
}, []);
|
|
236
|
+
var columns = [{
|
|
237
|
+
title: 'Image',
|
|
238
|
+
dataIndex: 'imgUrls',
|
|
239
|
+
width: 100,
|
|
240
|
+
render: function render(val) {
|
|
241
|
+
return /*#__PURE__*/_react["default"].createElement("img", {
|
|
242
|
+
alt: "",
|
|
243
|
+
src: val && val[0],
|
|
244
|
+
style: {
|
|
245
|
+
maxWidth: '50px',
|
|
246
|
+
maxHeight: '50px'
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
}, {
|
|
251
|
+
title: 'Product Name',
|
|
252
|
+
dataIndex: 'productName',
|
|
253
|
+
ellipsis: true
|
|
254
|
+
}, {
|
|
255
|
+
title: 'Product Code',
|
|
256
|
+
dataIndex: 'affiliateProductCode'
|
|
257
|
+
}, {
|
|
258
|
+
title: 'Price',
|
|
259
|
+
dataIndex: 'productPrice',
|
|
260
|
+
width: 150,
|
|
261
|
+
render: function render(val) {
|
|
262
|
+
return (0, _currencyUtil.formatCurrencyWithSymbol)(val);
|
|
263
|
+
}
|
|
264
|
+
}];
|
|
265
|
+
var rowSelection = {
|
|
266
|
+
onChange: function onChange(selectedRowKeys, selectedRow) {
|
|
267
|
+
_onChange({
|
|
268
|
+
value: selectedRow[0].productName,
|
|
269
|
+
name: selectedRow[0].productName,
|
|
270
|
+
productId: selectedRow[0].affiliateProductId
|
|
271
|
+
});
|
|
272
|
+
},
|
|
273
|
+
type: 'radio'
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
var reset = function reset() {
|
|
277
|
+
form.resetFields(['productName', 'affiliateProductCode']);
|
|
278
|
+
queryProduct(__assign({}, paginationParams));
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
var onQueryClick = function onQueryClick() {
|
|
282
|
+
setLoading(true);
|
|
283
|
+
var data = form.getFieldsValue();
|
|
284
|
+
paginationParams.pageIndex = 1;
|
|
285
|
+
queryProduct(__assign(__assign({}, data), paginationParams));
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
289
|
+
style: {
|
|
290
|
+
height: 550
|
|
291
|
+
}
|
|
292
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
|
|
293
|
+
form: form,
|
|
294
|
+
initialValues: formInfo,
|
|
295
|
+
labelCol: {
|
|
296
|
+
span: 8
|
|
297
|
+
},
|
|
298
|
+
layout: "horizontal"
|
|
299
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Row, {
|
|
300
|
+
gutter: 24
|
|
301
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
302
|
+
span: 9
|
|
303
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
304
|
+
label: "Product Name",
|
|
305
|
+
name: "productName"
|
|
306
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
307
|
+
size: "small"
|
|
308
|
+
}))), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
309
|
+
span: 9
|
|
310
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
311
|
+
label: "Sku Code",
|
|
312
|
+
name: "affiliateProductCode"
|
|
313
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
314
|
+
size: "small"
|
|
315
|
+
}))), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
316
|
+
span: 6
|
|
317
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
318
|
+
onClick: onQueryClick,
|
|
319
|
+
size: "small",
|
|
320
|
+
style: {
|
|
321
|
+
marginRight: 10
|
|
322
|
+
},
|
|
323
|
+
type: "primary"
|
|
324
|
+
}, (0, _locale.i18n)('QUERY')), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
325
|
+
onClick: function onClick() {
|
|
326
|
+
reset();
|
|
327
|
+
},
|
|
328
|
+
size: "small"
|
|
329
|
+
}, (0, _locale.i18n)('CANCEL'))))), /*#__PURE__*/_react["default"].createElement(_antd.Table, {
|
|
330
|
+
bordered: false,
|
|
331
|
+
columns: columns,
|
|
332
|
+
dataSource: productList,
|
|
333
|
+
defaultExpandAllRows: true,
|
|
334
|
+
loading: loading,
|
|
335
|
+
pagination: __assign(__assign({}, paginationParams), {
|
|
336
|
+
onChange: function onChange(page) {
|
|
337
|
+
paginationParams.pageIndex = page;
|
|
338
|
+
queryProduct(__assign({}, paginationParams));
|
|
339
|
+
},
|
|
340
|
+
showSizeChanger: false
|
|
341
|
+
}),
|
|
342
|
+
rowKey: "affiliateProductId",
|
|
343
|
+
rowSelection: rowSelection,
|
|
344
|
+
scroll: {
|
|
345
|
+
y: 350
|
|
346
|
+
}
|
|
347
|
+
}));
|
|
348
|
+
}
|
|
@@ -35,6 +35,8 @@ var _StoreTable = _interopRequireDefault(require("./StoreTable"));
|
|
|
35
35
|
|
|
36
36
|
var _StoreCatgTable = _interopRequireDefault(require("./StoreCatgTable"));
|
|
37
37
|
|
|
38
|
+
var _AffiliateProductTable = _interopRequireDefault(require("./AffiliateProductTable"));
|
|
39
|
+
|
|
38
40
|
var _locale = require("../../locale");
|
|
39
41
|
|
|
40
42
|
var _commonUtil = require("../../utils/commonUtil");
|
|
@@ -341,6 +343,10 @@ var LinkModal = function LinkModal(props) {
|
|
|
341
343
|
onChange: function onChange(value) {
|
|
342
344
|
return setLinkUrl(value);
|
|
343
345
|
}
|
|
346
|
+
}), item.linkTypeCode === 'AffiliateProduct' && /*#__PURE__*/_react["default"].createElement(_AffiliateProductTable["default"], {
|
|
347
|
+
onChange: function onChange(value) {
|
|
348
|
+
return setLinkUrl(value);
|
|
349
|
+
}
|
|
344
350
|
}));
|
|
345
351
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
346
352
|
className: "footer"
|
|
@@ -66,7 +66,21 @@ function (_super) {
|
|
|
66
66
|
|
|
67
67
|
function Banner() {
|
|
68
68
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
69
|
-
}
|
|
69
|
+
} // componentWillMount() {
|
|
70
|
+
// // 兼容新功能: 轮播的 dots 点 区分pc 移动
|
|
71
|
+
// const { nodeData } = this.props;
|
|
72
|
+
// if (!nodeData.setting.dots.color.pc || !nodeData.setting.dots.hoverColor.pc || !nodeData.setting.dots.size.pc) {
|
|
73
|
+
// nodeData.setting.dots = { ...nodeData.setting.dots,
|
|
74
|
+
// ...{
|
|
75
|
+
// color: { pc: '#fff', mobile: '#fff' },
|
|
76
|
+
// hoverColor: { pc: '#fff', mobile: '#fff' },
|
|
77
|
+
// size: { pc: 16, mobile: 8 },
|
|
78
|
+
// hoverSize: { pc: 16, mobile: 8 },
|
|
79
|
+
// },
|
|
80
|
+
// };
|
|
81
|
+
// }
|
|
82
|
+
// }
|
|
83
|
+
|
|
70
84
|
|
|
71
85
|
Banner.prototype.render = function () {
|
|
72
86
|
var nodeData = this.props.nodeData; // console.log('---banner', nodeData);
|
|
@@ -182,10 +182,7 @@ function (_super) {
|
|
|
182
182
|
carouseIndex = _a.carouseIndex,
|
|
183
183
|
hoverState = _a.hoverState;
|
|
184
184
|
var autoplay = data.setting.autoplay.open;
|
|
185
|
-
var GAData =
|
|
186
|
-
moduleId: data.id,
|
|
187
|
-
moduleName: data.moduleIndex + '.' + data.type
|
|
188
|
-
};
|
|
185
|
+
var GAData = (0, _commonUtil.getGAData)(data);
|
|
189
186
|
/** 设计器模式下 如果选中特定group 自动播放关闭 */
|
|
190
187
|
|
|
191
188
|
if ((0, _coreUtil.isDesignMode)() && _mobx.store.clickedGroup) {
|