@fonixtree/magic-design 0.1.93 → 0.2.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 +7 -35
- package/es/assets/fonts/magic-box-iconfont.css.bak +4 -8
- 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/button.less +0 -5
- package/es/common/AffiliateProductModal/index.js +1 -1
- package/es/common/AffiliateProductModal/index.less +1 -1
- package/es/common/Button/index.less +1 -0
- package/es/common/CountDown/index.js +11 -20
- package/es/common/GroupList/index.js +2 -7
- package/es/common/LinkModal/BundleCampaign/index.js +2 -2
- package/es/common/LinkModal/CouponTable/index.js +1 -1
- package/es/common/LinkModal/CustomTable/index.js +0 -1
- package/es/common/LinkModal/FilteredProductModal/index.js +106 -82
- package/es/common/LinkModal/FilteredProductModal/index.less +0 -1
- package/es/common/LinkModal/ProductDetailPage/index.js +60 -115
- package/es/common/LinkModal/ProductDetailPage/index.less +1 -6
- package/es/common/LinkModal/SelectVideoModal/index.js +2 -3
- package/es/common/LinkModal/index.js +5 -20
- package/es/common/MagicLink/index.js +2 -2
- package/es/common/ProductModal/index.js +124 -181
- package/es/common/ProductModal/index.less +1 -7
- package/es/common/ProductSource/index.js +21 -81
- package/es/common/UrlPicker/index.js +10 -51
- package/es/common/Video/index.js +86 -142
- package/es/common/VideoUpload/index.js +1 -1
- package/es/common/index.js +0 -8
- package/es/composite-comp/bol/components/Banner/mobile/index.js +2 -4
- package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +8 -4
- package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +1 -3
- package/es/composite-comp/common/components/AffiliateProductItem/index.js +20 -22
- package/es/composite-comp/common/components/AffiliateProductItem/index.less +1 -31
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
- package/{lib/composite-comp/nuri → es/composite-comp/dito}/components/AffiliateRecommend/mobile/index.js +10 -12
- package/es/composite-comp/{nuri → dito}/components/AffiliateRecommend/pc/index.js +10 -12
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +1 -8
- package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +17 -22
- package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +2 -2
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +0 -11
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +26 -31
- package/es/composite-comp/dito/components/Recommend/pc/index.js +1 -1
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +1 -13
- package/{lib/composite-comp/nuri → es/composite-comp/dito}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +1 -1
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +27 -25
- package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +1 -1
- package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +1 -1
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +2 -4
- package/es/constants/component-types.js +6 -24
- package/es/constants/index.js +5 -52
- package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +16 -34
- package/es/core/Designer/ChatRobot/index.js +4 -49
- package/es/core/Designer/ConfigPanel/index.js +0 -6
- package/es/core/Designer/FonixtreeGpt/index.js +29 -222
- package/es/core/Designer/PageCompList/index.js +1 -1
- package/es/core/Designer/QuickMenuBar/index.js +2 -6
- package/es/core/Designer/ToolBarModal/index.js +1 -5
- package/es/core/Designer/index.js +1 -12
- package/es/core/Renderer/index.js +2 -6
- package/es/decorator/compositeDecorator.js +6 -10
- package/es/decorator/index.js +1 -4
- package/es/decorator/metaDecorator.js +3 -7
- package/es/locale/en/en.json +2 -20
- package/es/locale/es/es.json +2 -20
- package/es/locale/id/id.json +2 -20
- package/es/meta-comp/config-panels/TextConfig/index.js +1 -1
- package/es/mobx/index.js +3 -9
- package/es/utils/androidUtil.js +2 -17
- package/es/utils/businessUtil.js +5 -54
- package/es/utils/commonUtil.js +13 -151
- package/es/utils/coreUtil.js +24 -89
- package/lib/assets/fonts/magic-box-iconfont.css +7 -35
- package/lib/assets/fonts/magic-box-iconfont.css.bak +4 -8
- 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/button.less +0 -5
- package/lib/common/AffiliateProductModal/index.js +1 -1
- package/lib/common/AffiliateProductModal/index.less +1 -1
- package/lib/common/Button/index.less +1 -0
- package/lib/common/CountDown/index.js +11 -20
- package/lib/common/GroupList/index.js +2 -7
- package/lib/common/LinkModal/BundleCampaign/index.js +2 -2
- package/lib/common/LinkModal/CouponTable/index.js +1 -1
- package/lib/common/LinkModal/CustomTable/index.js +0 -1
- package/lib/common/LinkModal/FilteredProductModal/index.js +106 -82
- package/lib/common/LinkModal/FilteredProductModal/index.less +0 -1
- package/lib/common/LinkModal/ProductDetailPage/index.js +60 -115
- package/lib/common/LinkModal/ProductDetailPage/index.less +1 -6
- package/lib/common/LinkModal/SelectVideoModal/index.js +2 -3
- package/lib/common/LinkModal/index.js +5 -20
- package/lib/common/MagicLink/index.js +2 -2
- package/lib/common/ProductModal/index.js +124 -181
- package/lib/common/ProductModal/index.less +1 -7
- package/lib/common/ProductSource/index.js +21 -81
- package/lib/common/UrlPicker/index.js +10 -51
- package/lib/common/Video/index.js +86 -142
- package/lib/common/VideoUpload/index.js +1 -1
- package/lib/common/index.js +0 -8
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +2 -4
- package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +8 -4
- package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +1 -3
- package/lib/composite-comp/common/components/AffiliateProductItem/index.js +20 -22
- package/lib/composite-comp/common/components/AffiliateProductItem/index.less +1 -31
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
- package/{es/composite-comp/nuri → lib/composite-comp/dito}/components/AffiliateRecommend/mobile/index.js +10 -12
- package/lib/composite-comp/{nuri → dito}/components/AffiliateRecommend/pc/index.js +10 -12
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +1 -8
- package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +17 -22
- package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +2 -2
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +0 -11
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +26 -31
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +1 -1
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +1 -13
- package/{es/composite-comp/nuri → lib/composite-comp/dito}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +27 -25
- package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +1 -1
- package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +1 -1
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +2 -4
- package/lib/constants/component-types.js +6 -24
- package/lib/constants/index.js +5 -52
- package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +16 -34
- package/lib/core/Designer/ChatRobot/index.js +4 -49
- package/lib/core/Designer/ConfigPanel/index.js +0 -6
- package/lib/core/Designer/FonixtreeGpt/index.js +29 -222
- package/lib/core/Designer/PageCompList/index.js +1 -1
- package/lib/core/Designer/QuickMenuBar/index.js +2 -6
- package/lib/core/Designer/ToolBarModal/index.js +1 -5
- package/lib/core/Designer/index.js +1 -12
- package/lib/core/Renderer/index.js +2 -6
- package/lib/decorator/compositeDecorator.js +6 -10
- package/lib/decorator/index.js +1 -4
- package/lib/decorator/metaDecorator.js +3 -7
- package/lib/locale/en/en.json +2 -20
- package/lib/locale/es/es.json +2 -20
- package/lib/locale/id/id.json +2 -20
- package/lib/meta-comp/config-panels/TextConfig/index.js +1 -1
- package/lib/mobx/index.js +3 -9
- package/lib/utils/androidUtil.js +2 -17
- package/lib/utils/businessUtil.js +5 -54
- package/lib/utils/commonUtil.js +13 -151
- package/lib/utils/coreUtil.js +24 -89
- package/package.json +1 -2
- package/es/common/CropperModal/index.js +0 -126
- package/es/common/CropperModal/index.less +0 -29
- package/es/common/LinkModal/AffiliatePlatform/index.js +0 -326
- package/es/common/LinkModal/AffiliateStore/index.js +0 -332
- package/es/common/ProductModal/SortableImageList/index.js +0 -118
- package/es/common/ProductModal/SortableImageList/index.less +0 -3
- package/es/common/UrlPicker/AnchorModal/index.js +0 -170
- package/es/common/UrlPicker/AnchorModal/index.less +0 -21
- package/es/common/Video/QualityComponent/index.js +0 -169
- package/es/common/Video/QualityComponent/index.less +0 -78
- package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-cashback.svg +0 -9
- package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +0 -92
- package/es/composite-comp/dito/components/CommonFunctions/index.js +0 -84
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +0 -113
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -30
- package/es/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
- package/es/composite-comp/dito/components/Orders/index.js +0 -84
- package/es/composite-comp/dito/components/Orders/mobile/index.js +0 -350
- package/es/composite-comp/dito/components/Orders/mobile/index.less +0 -86
- package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +0 -95
- package/es/composite-comp/dito/components/PersonalInformation/index.js +0 -84
- package/es/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +0 -592
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +0 -135
- package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +0 -128
- package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +0 -113
- package/es/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +0 -131
- package/es/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +0 -131
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +0 -118
- package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +0 -121
- package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
- package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +0 -143
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +0 -9
- package/es/mobx/UserState.js +0 -144
- package/lib/common/CropperModal/index.js +0 -126
- package/lib/common/CropperModal/index.less +0 -29
- package/lib/common/LinkModal/AffiliatePlatform/index.js +0 -326
- package/lib/common/LinkModal/AffiliateStore/index.js +0 -332
- package/lib/common/ProductModal/SortableImageList/index.js +0 -118
- package/lib/common/ProductModal/SortableImageList/index.less +0 -3
- package/lib/common/UrlPicker/AnchorModal/index.js +0 -170
- package/lib/common/UrlPicker/AnchorModal/index.less +0 -21
- package/lib/common/Video/QualityComponent/index.js +0 -169
- package/lib/common/Video/QualityComponent/index.less +0 -78
- package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-cashback.svg +0 -9
- package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +0 -92
- package/lib/composite-comp/dito/components/CommonFunctions/index.js +0 -84
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +0 -113
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -30
- package/lib/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
- package/lib/composite-comp/dito/components/Orders/index.js +0 -84
- package/lib/composite-comp/dito/components/Orders/mobile/index.js +0 -350
- package/lib/composite-comp/dito/components/Orders/mobile/index.less +0 -86
- package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +0 -95
- package/lib/composite-comp/dito/components/PersonalInformation/index.js +0 -84
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +0 -592
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +0 -135
- package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +0 -128
- package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +0 -113
- package/lib/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +0 -131
- package/lib/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +0 -131
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +0 -118
- package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +0 -121
- package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
- package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +0 -143
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +0 -9
- package/lib/mobx/UserState.js +0 -144
- /package/es/common/Video/{RateComponent → components}/index.js +0 -0
- /package/es/common/Video/{RateComponent → components}/index.less +0 -0
- /package/es/composite-comp/{nuri → dito}/components/AffiliateRecommend/defaultJSON.js +0 -0
- /package/es/composite-comp/{nuri → dito}/components/AffiliateRecommend/index.js +0 -0
- /package/es/composite-comp/{nuri → dito}/components/AffiliateRecommend/mobile/index.less +0 -0
- /package/es/composite-comp/{nuri → dito}/components/AffiliateRecommend/pc/index.less +0 -0
- /package/es/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -0
- /package/es/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
- /package/es/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -0
- /package/es/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
- /package/es/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/index.js +0 -0
- /package/es/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -0
- /package/es/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -0
- /package/es/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -0
- /package/lib/common/Video/{RateComponent → components}/index.js +0 -0
- /package/lib/common/Video/{RateComponent → components}/index.less +0 -0
- /package/lib/composite-comp/{nuri → dito}/components/AffiliateRecommend/defaultJSON.js +0 -0
- /package/lib/composite-comp/{nuri → dito}/components/AffiliateRecommend/index.js +0 -0
- /package/lib/composite-comp/{nuri → dito}/components/AffiliateRecommend/mobile/index.less +0 -0
- /package/lib/composite-comp/{nuri → dito}/components/AffiliateRecommend/pc/index.less +0 -0
- /package/lib/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -0
- /package/lib/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
- /package/lib/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -0
- /package/lib/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
- /package/lib/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/index.js +0 -0
- /package/lib/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -0
- /package/lib/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -0
- /package/lib/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -0
|
@@ -11,7 +11,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
11
11
|
|
|
12
12
|
var _iconBalance = _interopRequireDefault(require("./imgs/icon-Balance2.svg"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _iconKoin = _interopRequireDefault(require("./imgs/icon-Koin.svg"));
|
|
15
15
|
|
|
16
16
|
var _currencyUtil = require("../../../../utils/currencyUtil");
|
|
17
17
|
|
|
@@ -93,18 +93,18 @@ function (_super) {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
AffiliateProductItem.prototype.render = function () {
|
|
96
|
-
var _a
|
|
97
|
-
|
|
98
|
-
var
|
|
99
|
-
data =
|
|
100
|
-
panelProps =
|
|
101
|
-
onItemClick =
|
|
102
|
-
fixHeight =
|
|
103
|
-
layout =
|
|
104
|
-
imgHeight =
|
|
105
|
-
imgWidth =
|
|
106
|
-
customFont =
|
|
107
|
-
rest = __rest(
|
|
96
|
+
var _a;
|
|
97
|
+
|
|
98
|
+
var _b = this.props,
|
|
99
|
+
data = _b.data,
|
|
100
|
+
panelProps = _b.panelProps,
|
|
101
|
+
onItemClick = _b.onItemClick,
|
|
102
|
+
fixHeight = _b.fixHeight,
|
|
103
|
+
layout = _b.layout,
|
|
104
|
+
imgHeight = _b.imgHeight,
|
|
105
|
+
imgWidth = _b.imgWidth,
|
|
106
|
+
customFont = _b.customFont,
|
|
107
|
+
rest = __rest(_b, ["data", "panelProps", "onItemClick", "fixHeight", "layout", "imgHeight", "imgWidth", "customFont"]);
|
|
108
108
|
|
|
109
109
|
var imgStyle = {};
|
|
110
110
|
if (imgWidth) imgStyle.width = imgWidth;
|
|
@@ -139,21 +139,19 @@ function (_super) {
|
|
|
139
139
|
className: "cashBackBox"
|
|
140
140
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
141
141
|
className: "cashBackBox_cashBack"
|
|
142
|
-
},
|
|
142
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
143
143
|
alt: "",
|
|
144
|
-
src:
|
|
144
|
+
src: _iconBalance["default"]
|
|
145
145
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
146
146
|
className: "cashBackBox_text " + (customFont ? 'custom_font' : '')
|
|
147
|
-
}, "Cashback
|
|
148
|
-
className: "
|
|
149
|
-
},
|
|
147
|
+
}, "Cashback Saldo", /*#__PURE__*/_react["default"].createElement("span", null, (0, _currencyUtil.formatCurrencyWithSymbolNotSpace)(data.buyCommission || 0)))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
148
|
+
className: "cashBackBox_koin"
|
|
149
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
150
150
|
alt: "",
|
|
151
|
-
src:
|
|
151
|
+
src: _iconKoin["default"]
|
|
152
152
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
153
153
|
className: "cashBackBox_text " + (customFont ? 'custom_font' : '')
|
|
154
|
-
}, "Cashback
|
|
155
|
-
className: "tip"
|
|
156
|
-
}, "Khusus Pengguna Baru"), ((_h = data.rebateInfo) === null || _h === void 0 ? void 0 : _h.rebatesType) !== 'Newcomers' && panelProps.salesPrice.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
154
|
+
}, "Cashback", /*#__PURE__*/_react["default"].createElement("span", null, (0, _currencyUtil.formatCurrency)(data.giftCommission || 0)), "Koin"))), panelProps.salesPrice.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
157
155
|
className: "producItemPrice",
|
|
158
156
|
data: __assign(__assign({}, panelProps.salesPrice), {
|
|
159
157
|
text: (0, _currencyUtil.formatCurrencyWithSymbolNotSpace)(data.productPrice || 0)
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
|
|
35
35
|
.cashBackBox_cashBack {
|
|
36
36
|
display: flex;
|
|
37
|
-
align-items:
|
|
37
|
+
align-items: center;
|
|
38
38
|
|
|
39
39
|
img {
|
|
40
40
|
width: 14px;
|
|
@@ -43,7 +43,6 @@
|
|
|
43
43
|
|
|
44
44
|
.cashBackBox_text {
|
|
45
45
|
display: flex;
|
|
46
|
-
flex-wrap: wrap;
|
|
47
46
|
align-items: center;
|
|
48
47
|
padding-left: 4px;
|
|
49
48
|
color: #279e2c;
|
|
@@ -62,28 +61,6 @@
|
|
|
62
61
|
font-size: 9px;
|
|
63
62
|
padding-left: 2px;
|
|
64
63
|
}
|
|
65
|
-
|
|
66
|
-
.gratis_text {
|
|
67
|
-
display: flex;
|
|
68
|
-
align-items: center;
|
|
69
|
-
padding-left: 4px;
|
|
70
|
-
color: #279E2C;
|
|
71
|
-
font-family: Trueno;
|
|
72
|
-
font-size: 18px;
|
|
73
|
-
font-style: normal;
|
|
74
|
-
font-weight: 800;
|
|
75
|
-
line-height: 12px;
|
|
76
|
-
padding: 7px 0;
|
|
77
|
-
|
|
78
|
-
span {
|
|
79
|
-
color: #696973;
|
|
80
|
-
font-size: 9px;
|
|
81
|
-
text-decoration: line-through;
|
|
82
|
-
font-weight: 400;
|
|
83
|
-
margin-left: 8px;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
}
|
|
87
64
|
}
|
|
88
65
|
|
|
89
66
|
.cashBackBox_koin {
|
|
@@ -118,13 +95,6 @@
|
|
|
118
95
|
}
|
|
119
96
|
}
|
|
120
97
|
|
|
121
|
-
.tip {
|
|
122
|
-
color: #F94600;
|
|
123
|
-
font-size: 9px;
|
|
124
|
-
font-weight: 400;
|
|
125
|
-
padding: 6px 4px;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
98
|
.producItemPrice {
|
|
129
99
|
padding: 4px;
|
|
130
100
|
}
|
|
@@ -92,7 +92,6 @@ function (_super) {
|
|
|
92
92
|
_this.selfRender();
|
|
93
93
|
}
|
|
94
94
|
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
95
|
-
split: "dashed",
|
|
96
95
|
title: (0, _locale.i18n)('PADDING')
|
|
97
96
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
98
97
|
className: "padding-wrap"
|
|
@@ -314,10 +314,8 @@ function (_super) {
|
|
|
314
314
|
|
|
315
315
|
var _this = this;
|
|
316
316
|
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
return __generator(this, function (_f) {
|
|
320
|
-
switch (_f.label) {
|
|
317
|
+
return __generator(this, function (_e) {
|
|
318
|
+
switch (_e.label) {
|
|
321
319
|
case 0:
|
|
322
320
|
panelProps = this.props.panelProps;
|
|
323
321
|
groupSource = this.state.groupSource;
|
|
@@ -343,10 +341,10 @@ function (_super) {
|
|
|
343
341
|
|
|
344
342
|
_a = (groupSource[index] || {}).prodIds, prodIds = _a === void 0 ? '' : _a;
|
|
345
343
|
newData = [];
|
|
346
|
-
|
|
344
|
+
_e.label = 1;
|
|
347
345
|
|
|
348
346
|
case 1:
|
|
349
|
-
|
|
347
|
+
_e.trys.push([1, 5,, 6]);
|
|
350
348
|
|
|
351
349
|
if (!(groupSource.length > 0)) return [3
|
|
352
350
|
/*break*/
|
|
@@ -360,22 +358,22 @@ function (_super) {
|
|
|
360
358
|
|
|
361
359
|
return [4
|
|
362
360
|
/*yield*/
|
|
363
|
-
, (0, _commonUtil.commonFetch)('/designer/v1/h5/nuri/distribute/product
|
|
361
|
+
, (0, _commonUtil.commonFetch)('/designer/v1/h5/nuri/distribute/product', {
|
|
364
362
|
affiliateProductIds: prodIds,
|
|
365
363
|
pageIndex: 1,
|
|
366
364
|
pageSize: prodIds.split(',').length || 20
|
|
367
|
-
}, '
|
|
365
|
+
}, 'GET')];
|
|
368
366
|
|
|
369
367
|
case 2:
|
|
370
|
-
res =
|
|
371
|
-
newData = __spreadArrays(
|
|
368
|
+
res = _e.sent();
|
|
369
|
+
newData = __spreadArrays(res.list);
|
|
372
370
|
return [3
|
|
373
371
|
/*break*/
|
|
374
372
|
, 4];
|
|
375
373
|
|
|
376
374
|
case 3:
|
|
377
375
|
newData = [];
|
|
378
|
-
|
|
376
|
+
_e.label = 4;
|
|
379
377
|
|
|
380
378
|
case 4:
|
|
381
379
|
return [3
|
|
@@ -383,7 +381,7 @@ function (_super) {
|
|
|
383
381
|
, 6];
|
|
384
382
|
|
|
385
383
|
case 5:
|
|
386
|
-
e_1 =
|
|
384
|
+
e_1 = _e.sent();
|
|
387
385
|
newData = [];
|
|
388
386
|
return [3
|
|
389
387
|
/*break*/
|
|
@@ -309,10 +309,8 @@ function (_super) {
|
|
|
309
309
|
|
|
310
310
|
var _this = this;
|
|
311
311
|
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
return __generator(this, function (_f) {
|
|
315
|
-
switch (_f.label) {
|
|
312
|
+
return __generator(this, function (_e) {
|
|
313
|
+
switch (_e.label) {
|
|
316
314
|
case 0:
|
|
317
315
|
panelProps = this.props.panelProps;
|
|
318
316
|
groupSource = this.state.groupSource;
|
|
@@ -338,10 +336,10 @@ function (_super) {
|
|
|
338
336
|
|
|
339
337
|
_a = (groupSource[index] || {}).prodIds, prodIds = _a === void 0 ? '' : _a;
|
|
340
338
|
newData = [];
|
|
341
|
-
|
|
339
|
+
_e.label = 1;
|
|
342
340
|
|
|
343
341
|
case 1:
|
|
344
|
-
|
|
342
|
+
_e.trys.push([1, 5,, 6]);
|
|
345
343
|
|
|
346
344
|
if (!(groupSource.length > 0)) return [3
|
|
347
345
|
/*break*/
|
|
@@ -355,22 +353,22 @@ function (_super) {
|
|
|
355
353
|
|
|
356
354
|
return [4
|
|
357
355
|
/*yield*/
|
|
358
|
-
, (0, _commonUtil.commonFetch)('/designer/v1/h5/nuri/distribute/product
|
|
356
|
+
, (0, _commonUtil.commonFetch)('/designer/v1/h5/nuri/distribute/product', {
|
|
359
357
|
affiliateProductIds: prodIds,
|
|
360
358
|
pageIndex: 1,
|
|
361
359
|
pageSize: prodIds.split(',').length || 20
|
|
362
|
-
}, '
|
|
360
|
+
}, 'GET')];
|
|
363
361
|
|
|
364
362
|
case 2:
|
|
365
|
-
res =
|
|
366
|
-
newData = __spreadArrays(
|
|
363
|
+
res = _e.sent();
|
|
364
|
+
newData = __spreadArrays(res.list);
|
|
367
365
|
return [3
|
|
368
366
|
/*break*/
|
|
369
367
|
, 4];
|
|
370
368
|
|
|
371
369
|
case 3:
|
|
372
370
|
newData = [];
|
|
373
|
-
|
|
371
|
+
_e.label = 4;
|
|
374
372
|
|
|
375
373
|
case 4:
|
|
376
374
|
return [3
|
|
@@ -378,7 +376,7 @@ function (_super) {
|
|
|
378
376
|
, 6];
|
|
379
377
|
|
|
380
378
|
case 5:
|
|
381
|
-
e_1 =
|
|
379
|
+
e_1 = _e.sent();
|
|
382
380
|
newData = [];
|
|
383
381
|
return [3
|
|
384
382
|
/*break*/
|
|
@@ -423,14 +423,7 @@ function (_super) {
|
|
|
423
423
|
}) // onItemClick={() => clickUrl(`/product/detail/${item.offerId}?productId=${item.sppProductId ?? ''}`)}
|
|
424
424
|
,
|
|
425
425
|
onItemClick: function onItemClick() {
|
|
426
|
-
|
|
427
|
-
window.magicDesign.pushGA({}, 'select_promotion', {
|
|
428
|
-
event_section: list.type,
|
|
429
|
-
promotion_name: item === null || item === void 0 ? void 0 : item.offerName
|
|
430
|
-
});
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
(0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || ''));
|
|
426
|
+
return (0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || ''));
|
|
434
427
|
},
|
|
435
428
|
panelProps: panelProps.content,
|
|
436
429
|
unknownPrice: isWill
|
|
@@ -68,28 +68,23 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
68
68
|
groupSource: defaultHeadName.map(function (group) {
|
|
69
69
|
return groupSourceHeadJSON(group);
|
|
70
70
|
}),
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
// name: 'Community',
|
|
89
|
-
// type: '/main/community',
|
|
90
|
-
// state: true,
|
|
91
|
-
// },
|
|
92
|
-
// ],
|
|
71
|
+
displayPage: [{
|
|
72
|
+
name: 'Store Home',
|
|
73
|
+
type: '/store-home',
|
|
74
|
+
state: true
|
|
75
|
+
}, {
|
|
76
|
+
name: 'Product Detail',
|
|
77
|
+
type: '/product/list',
|
|
78
|
+
state: true
|
|
79
|
+
}, {
|
|
80
|
+
name: 'Poster Page',
|
|
81
|
+
type: '/poster',
|
|
82
|
+
state: true
|
|
83
|
+
}, {
|
|
84
|
+
name: 'Community',
|
|
85
|
+
type: '/main/community',
|
|
86
|
+
state: true
|
|
87
|
+
}],
|
|
93
88
|
background: {
|
|
94
89
|
opacity: 100,
|
|
95
90
|
color: '#fff',
|
|
@@ -62,8 +62,8 @@ function (_super) {
|
|
|
62
62
|
var _this = this;
|
|
63
63
|
|
|
64
64
|
var data = this.props.data;
|
|
65
|
-
var showNav = this.state.showNav;
|
|
66
|
-
|
|
65
|
+
var showNav = this.state.showNav;
|
|
66
|
+
console.log('---head data', data);
|
|
67
67
|
var GAData = (0, _commonUtil.getGAData)(data);
|
|
68
68
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
69
69
|
className: "m-head-navigation"
|
|
@@ -11,8 +11,6 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
11
11
|
|
|
12
12
|
require("./index.less");
|
|
13
13
|
|
|
14
|
-
var _locale = require("../../../../../locale");
|
|
15
|
-
|
|
16
14
|
var _components = require("../../../../../meta-comp/components");
|
|
17
15
|
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -102,15 +100,6 @@ function (_super) {
|
|
|
102
100
|
key: source.id,
|
|
103
101
|
className: "one-card" // className={data.groupSource.length > data.customize.rowNum ? 'one-card card-margin-bottom' : 'one-card'}
|
|
104
102
|
,
|
|
105
|
-
onClick: function onClick() {
|
|
106
|
-
/** PTO 定制GA */
|
|
107
|
-
if (window.magicDesign.pushGA) {
|
|
108
|
-
window.magicDesign.pushGA({}, 'select_promotion', {
|
|
109
|
-
event_section: data.type,
|
|
110
|
-
promotion_name: source.image.content.h5ImgSrc ? source.image.content.h5Name : (0, _locale.i18n)('NAVIGATION_NAME')
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
103
|
style: _this.getCardStyle(source, i)
|
|
115
104
|
}, source.image.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
116
105
|
className: "card-image-wrap"
|
|
@@ -308,14 +308,14 @@ function (_super) {
|
|
|
308
308
|
|
|
309
309
|
_this.getProductList = function (index) {
|
|
310
310
|
return __awaiter(_this, void 0, void 0, function () {
|
|
311
|
-
var panelProps, groupSource, recommendId, pageId, cache, _a, _b, sourceType, _c, prodIds, _d,
|
|
311
|
+
var panelProps, groupSource, recommendId, pageId, cache, _a, _b, sourceType, _c, prodIds, _d, intelligentType, _e, intelligentValue, _f, maxProdNum, newData, res, res, e_1, _cache;
|
|
312
312
|
|
|
313
|
-
var _h, _j
|
|
313
|
+
var _g, _h, _j;
|
|
314
314
|
|
|
315
315
|
var _this = this;
|
|
316
316
|
|
|
317
|
-
return __generator(this, function (
|
|
318
|
-
switch (
|
|
317
|
+
return __generator(this, function (_k) {
|
|
318
|
+
switch (_k.label) {
|
|
319
319
|
case 0:
|
|
320
320
|
panelProps = this.props.panelProps;
|
|
321
321
|
groupSource = this.state.groupSource;
|
|
@@ -327,7 +327,7 @@ function (_super) {
|
|
|
327
327
|
|
|
328
328
|
if (cache) {
|
|
329
329
|
if ("products" + index in cache) {
|
|
330
|
-
this.setState((
|
|
330
|
+
this.setState((_g = {}, _g["products" + index] = cache["products" + index], _g), function () {
|
|
331
331
|
_this.resetLayout();
|
|
332
332
|
});
|
|
333
333
|
/** 如果数据未过期 */
|
|
@@ -339,12 +339,12 @@ function (_super) {
|
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
|
|
342
|
-
_a = groupSource[index] || {}, _b = _a.sourceType, sourceType = _b === void 0 ? '' : _b, _c = _a.prodIds, prodIds = _c === void 0 ? '' : _c, _d = _a.
|
|
342
|
+
_a = groupSource[index] || {}, _b = _a.sourceType, sourceType = _b === void 0 ? '' : _b, _c = _a.prodIds, prodIds = _c === void 0 ? '' : _c, _d = _a.intelligentType, intelligentType = _d === void 0 ? '' : _d, _e = _a.intelligentValue, intelligentValue = _e === void 0 ? [] : _e, _f = _a.maxProdNum, maxProdNum = _f === void 0 ? 10 : _f;
|
|
343
343
|
newData = [];
|
|
344
|
-
|
|
344
|
+
_k.label = 1;
|
|
345
345
|
|
|
346
346
|
case 1:
|
|
347
|
-
|
|
347
|
+
_k.trys.push([1, 9,, 10]);
|
|
348
348
|
|
|
349
349
|
if (!(groupSource.length > 0)) return [3
|
|
350
350
|
/*break*/
|
|
@@ -352,25 +352,22 @@ function (_super) {
|
|
|
352
352
|
if (!(sourceType === 'select')) return [3
|
|
353
353
|
/*break*/
|
|
354
354
|
, 3];
|
|
355
|
-
if (!prodIds) return [2
|
|
356
|
-
/*return*/
|
|
357
|
-
];
|
|
358
|
-
params = {
|
|
359
|
-
state: 'A'
|
|
360
|
-
};
|
|
361
355
|
|
|
362
|
-
if (
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
356
|
+
if (!prodIds) {
|
|
357
|
+
return [2
|
|
358
|
+
/*return*/
|
|
359
|
+
];
|
|
366
360
|
}
|
|
367
361
|
|
|
368
362
|
return [4
|
|
369
363
|
/*yield*/
|
|
370
|
-
, (0, _commonUtil.commonFetch)('/designer/v1/h5/products',
|
|
364
|
+
, (0, _commonUtil.commonFetch)('/designer/v1/h5/products', {
|
|
365
|
+
products: prodIds,
|
|
366
|
+
state: 'A'
|
|
367
|
+
}, 'GET')];
|
|
371
368
|
|
|
372
369
|
case 2:
|
|
373
|
-
res =
|
|
370
|
+
res = _k.sent();
|
|
374
371
|
newData = __spreadArrays(res.list);
|
|
375
372
|
return [3
|
|
376
373
|
/*break*/
|
|
@@ -389,11 +386,11 @@ function (_super) {
|
|
|
389
386
|
intelligentType: intelligentType,
|
|
390
387
|
intelligentValue: intelligentValue.join(','),
|
|
391
388
|
aggregation: false,
|
|
392
|
-
storeId: window.magicDesign.storeId
|
|
389
|
+
storeId: window.magicDesign.storeId || ''
|
|
393
390
|
}, 'POST')];
|
|
394
391
|
|
|
395
392
|
case 4:
|
|
396
|
-
res =
|
|
393
|
+
res = _k.sent();
|
|
397
394
|
newData = __spreadArrays(res.pageInfo.list);
|
|
398
395
|
return [3
|
|
399
396
|
/*break*/
|
|
@@ -401,7 +398,7 @@ function (_super) {
|
|
|
401
398
|
|
|
402
399
|
case 5:
|
|
403
400
|
newData = [];
|
|
404
|
-
|
|
401
|
+
_k.label = 6;
|
|
405
402
|
|
|
406
403
|
case 6:
|
|
407
404
|
return [3
|
|
@@ -410,7 +407,7 @@ function (_super) {
|
|
|
410
407
|
|
|
411
408
|
case 7:
|
|
412
409
|
newData = [];
|
|
413
|
-
|
|
410
|
+
_k.label = 8;
|
|
414
411
|
|
|
415
412
|
case 8:
|
|
416
413
|
return [3
|
|
@@ -418,7 +415,7 @@ function (_super) {
|
|
|
418
415
|
, 10];
|
|
419
416
|
|
|
420
417
|
case 9:
|
|
421
|
-
e_1 =
|
|
418
|
+
e_1 = _k.sent();
|
|
422
419
|
newData = [];
|
|
423
420
|
return [3
|
|
424
421
|
/*break*/
|
|
@@ -427,10 +424,10 @@ function (_super) {
|
|
|
427
424
|
case 10:
|
|
428
425
|
if (!(0, _coreUtil.isDesignMode)()) {
|
|
429
426
|
_cache = (0, _storeUtil.getMagicStore)("recommend_" + pageId + "_" + recommendId);
|
|
430
|
-
(0, _storeUtil.setMagicStore)("recommend_" + pageId + "_" + recommendId, __assign(__assign({}, _cache), (
|
|
427
|
+
(0, _storeUtil.setMagicStore)("recommend_" + pageId + "_" + recommendId, __assign(__assign({}, _cache), (_h = {}, _h["products" + index] = newData, _h.endTime = Date.now() + 3 * 60 * 1000, _h)));
|
|
431
428
|
}
|
|
432
429
|
|
|
433
|
-
this.setState((
|
|
430
|
+
this.setState((_j = {}, _j["products" + index] = newData, _j), function () {
|
|
434
431
|
_this.resetLayout();
|
|
435
432
|
});
|
|
436
433
|
return [2
|
|
@@ -641,10 +638,8 @@ function (_super) {
|
|
|
641
638
|
onItemClick: function onItemClick() {
|
|
642
639
|
/** PTO 定制GA */
|
|
643
640
|
if (window.magicDesign.pushGA) {
|
|
644
|
-
window.magicDesign.pushGA(item, '
|
|
645
|
-
event_action: 'Select Item'
|
|
646
|
-
event_section: data.type,
|
|
647
|
-
promotion_name: item === null || item === void 0 ? void 0 : item.offerName
|
|
641
|
+
window.magicDesign.pushGA(item, 'select_item', {
|
|
642
|
+
event_action: 'Select Item'
|
|
648
643
|
});
|
|
649
644
|
}
|
|
650
645
|
|
|
@@ -381,7 +381,7 @@ function (_super) {
|
|
|
381
381
|
intelligentType: intelligentType,
|
|
382
382
|
intelligentValue: intelligentValue.join(','),
|
|
383
383
|
aggregation: false,
|
|
384
|
-
storeId: window.magicDesign.storeId
|
|
384
|
+
storeId: window.magicDesign.storeId || ''
|
|
385
385
|
}, 'POST')];
|
|
386
386
|
|
|
387
387
|
case 4:
|
|
@@ -344,19 +344,7 @@ function (_super) {
|
|
|
344
344
|
}), !!messageNum && /*#__PURE__*/_react["default"].createElement("span", {
|
|
345
345
|
className: "num"
|
|
346
346
|
}, messageNum))), data.content && ((_p = data.content.logo) === null || _p === void 0 ? void 0 : _p.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
347
|
-
className: "logo"
|
|
348
|
-
onClick: function onClick() {
|
|
349
|
-
var _a, _b;
|
|
350
|
-
/** PTO 定制GA */
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
if (window.magicDesign.pushGA) {
|
|
354
|
-
window.magicDesign.pushGA({}, 'select_promotion', {
|
|
355
|
-
event_section: data.type,
|
|
356
|
-
promotion_name: (_b = (_a = data.content.logo) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.h5Name
|
|
357
|
-
});
|
|
358
|
-
}
|
|
359
|
-
}
|
|
347
|
+
className: "logo"
|
|
360
348
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
361
349
|
data: data.content.logo,
|
|
362
350
|
style: {
|
|
@@ -15,7 +15,7 @@ var _Button = _interopRequireDefault(require("../../../../../common/Button"));
|
|
|
15
15
|
|
|
16
16
|
var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
|
|
17
17
|
|
|
18
|
-
var _defaultJSON = require("
|
|
18
|
+
var _defaultJSON = require("../../../components/Recommend/defaultJSON");
|
|
19
19
|
|
|
20
20
|
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
21
21
|
|
|
@@ -7,6 +7,8 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
+
var _antd = require("antd");
|
|
11
|
+
|
|
10
12
|
var _HeadNavConfigImageGroup = _interopRequireDefault(require("./HeadNavConfigImageGroup"));
|
|
11
13
|
|
|
12
14
|
var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
@@ -17,6 +19,8 @@ var _locale = require("../../../../locale");
|
|
|
17
19
|
|
|
18
20
|
var _coreUtil = require("../../../../utils/coreUtil");
|
|
19
21
|
|
|
22
|
+
var _common = require("../../../../common");
|
|
23
|
+
|
|
20
24
|
require("./index.less");
|
|
21
25
|
|
|
22
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -61,30 +65,25 @@ function (_super) {
|
|
|
61
65
|
_this.setState({});
|
|
62
66
|
};
|
|
63
67
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
// </Checkbox>
|
|
81
|
-
// </div>
|
|
82
|
-
// ))
|
|
83
|
-
// }
|
|
84
|
-
// </Field>
|
|
85
|
-
// );
|
|
86
|
-
// }
|
|
68
|
+
_this.getDisplayPage = function () {
|
|
69
|
+
var data = _this.props.data;
|
|
70
|
+
return /*#__PURE__*/_react["default"].createElement(_common.Field, null, data.displayPage.map(function (one) {
|
|
71
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
72
|
+
key: one.name,
|
|
73
|
+
className: "head-navigation-display-wrap"
|
|
74
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Checkbox, {
|
|
75
|
+
checked: one.state,
|
|
76
|
+
onChange: function onChange(e) {
|
|
77
|
+
one.state = e.target.checked;
|
|
78
|
+
|
|
79
|
+
_this.selfRender();
|
|
80
|
+
}
|
|
81
|
+
}, one.name));
|
|
82
|
+
}));
|
|
83
|
+
};
|
|
87
84
|
|
|
85
|
+
return _this;
|
|
86
|
+
}
|
|
88
87
|
|
|
89
88
|
HeadNavConfigImageGroup.prototype.render = function () {
|
|
90
89
|
var data = this.props.data;
|
|
@@ -99,8 +98,11 @@ function (_super) {
|
|
|
99
98
|
value: /*#__PURE__*/_react["default"].createElement(_HeadNavConfigImageGroup["default"], {
|
|
100
99
|
source: data.groupSource
|
|
101
100
|
})
|
|
102
|
-
},
|
|
103
|
-
|
|
101
|
+
}, {
|
|
102
|
+
key: 'headNavigation3',
|
|
103
|
+
name: (0, _locale.i18n)('DISPLAY_PAGE'),
|
|
104
|
+
value: this.getDisplayPage()
|
|
105
|
+
}, {
|
|
104
106
|
key: 'headNavigation2',
|
|
105
107
|
name: (0, _locale.i18n)('BACKGROUND'),
|
|
106
108
|
value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
@@ -71,7 +71,7 @@ function (_super) {
|
|
|
71
71
|
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
72
72
|
data: panelProps.image,
|
|
73
73
|
needHover: false,
|
|
74
|
-
onlySpecificCode:
|
|
74
|
+
onlySpecificCode: "FunctionPage"
|
|
75
75
|
}),
|
|
76
76
|
metaOption: panelProps.image
|
|
77
77
|
}];
|
|
@@ -71,7 +71,7 @@ function (_super) {
|
|
|
71
71
|
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
72
72
|
data: panelProps.image,
|
|
73
73
|
needClickArea: false,
|
|
74
|
-
onlySpecificCode:
|
|
74
|
+
onlySpecificCode: "FunctionPage"
|
|
75
75
|
}),
|
|
76
76
|
metaOption: panelProps.image
|
|
77
77
|
}];
|