@fonixtree/magic-design 2.0.109 → 2.0.111
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 +27 -7
- package/es/assets/fonts/magic-box-iconfont.css.bak +71 -7
- 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/images/base64/index.js +3 -1
- package/es/common/AffiliateProductModal/index.js +1 -1
- package/es/common/Button/index.js +1 -1
- package/es/common/Collapse/index.js +1 -1
- package/es/common/ImageModal/CommonModal/index.js +1 -1
- package/es/common/ImageModal/CommonSelPicCard/index.js +1 -1
- package/es/common/ImageModal/index.js +52 -50
- package/es/common/ImageModal/utils.js +1 -1
- package/es/common/ImagePicker/index.js +1 -1
- package/es/common/InputNumber/index.js +1 -1
- package/es/common/LinkModal/AffiliatePlatform/index.js +325 -0
- package/es/common/LinkModal/AffiliateProductTable/index.js +15 -27
- package/es/common/LinkModal/AffiliateStore/index.js +11 -23
- package/es/common/LinkModal/BundleCampaign/index.js +15 -27
- package/es/common/LinkModal/CatgTable/index.js +3 -11
- package/es/common/LinkModal/CouponTable/index.js +3 -11
- package/es/common/LinkModal/CustomTable/index.js +3 -11
- package/es/common/LinkModal/FilteredProductModal/index.js +23 -37
- package/es/common/LinkModal/FunctionTable/index.js +4 -11
- package/es/common/LinkModal/MiniAppApi/index.js +4 -12
- package/es/common/LinkModal/MiniAppTable/index.js +3 -11
- package/es/common/LinkModal/ProductDetailPage/index.js +26 -38
- package/es/common/LinkModal/SelectVideoModal/index.js +10 -18
- package/es/common/LinkModal/ShareUrl/index.js +3 -11
- package/es/common/LinkModal/StoreCatgTable/index.js +3 -11
- package/es/common/LinkModal/StoreTable/index.js +11 -23
- package/es/common/LinkModal/index.js +15 -19
- package/es/common/ProductModal/index.js +1 -1
- package/es/common/Slider/index.js +1 -1
- package/es/common/SwitchCollapse/index.js +1 -1
- package/es/common/SystemNotification/Confirm/index.js +1 -1
- package/es/common/UrlPicker/AnchorModal/index.js +1 -1
- package/es/common/VideoUpload/index.js +1 -0
- package/es/composite-comp/bol/components/Banner/mobile/index.js +1 -1
- package/es/composite-comp/bol/components/Banner/pc/index.js +1 -1
- package/es/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +1 -1
- package/es/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +1 -1
- package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +1 -1
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +1 -1
- package/es/composite-comp/common/components/ProductItem/index.js +1 -1
- package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +1 -1
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +1 -1
- package/es/composite-comp/common/config-panels/InputField/index.js +1 -1
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +1 -1
- package/es/composite-comp/dito/components/Bargain/defaultJSON.js +244 -0
- package/es/composite-comp/dito/components/Bargain/index.js +86 -0
- package/es/composite-comp/dito/components/Bargain/mobile/imgs/defImg.png +0 -0
- package/es/composite-comp/dito/components/Bargain/mobile/imgs/defImg1.png +0 -0
- package/es/composite-comp/dito/components/Bargain/mobile/imgs/defImg2.png +0 -0
- package/es/composite-comp/dito/components/Bargain/mobile/imgs/defImg3.png +0 -0
- package/es/composite-comp/dito/components/Bargain/mobile/index.js +370 -0
- package/es/composite-comp/dito/components/Bargain/mobile/index.less +85 -0
- package/es/composite-comp/dito/components/GroupBuy/mobile/index.less +3 -3
- package/es/composite-comp/dito/components/Orders/mobile/index.js +8 -6
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +9 -7
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +1 -1
- package/es/composite-comp/dito/components/SignBoard/mobile/index.js +1 -1
- package/es/composite-comp/dito/components/SignBoard/pc/index.js +1 -1
- package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +157 -0
- package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.less +20 -0
- package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigTitle/index.js +126 -0
- package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigTitle/index.less +0 -0
- package/es/composite-comp/dito/config-panels/BargainConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/dito/config-panels/BargainConfig/index.js +73 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +1 -1
- package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +1 -1
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +1 -1
- package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +1 -1
- 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/OrdersSecondConfig/index.js +1 -1
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +1 -1
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +1 -1
- package/es/composite-comp/monpay/components/InterestProducts/mobile/index.js +11 -6
- package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +5 -2
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/SearchCondition/index.js +3 -3
- package/es/composite-comp/monpay/config-panels/BundleConfig/ConfigContent/index.js +1 -1
- package/es/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigContent/index.js +1 -1
- package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.js +1 -1
- package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js +1 -1
- package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.js +1 -1
- package/es/composite-comp/nuri/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/es/constants/component-types.js +6 -2
- package/es/constants/index.js +27 -5
- package/es/core/Designer/AiImageGenerator/GenerateSize/index.js +1 -1
- package/es/core/Designer/AiImageGenerator/NumberSlider/index.js +1 -1
- package/es/core/Designer/AiImageGenerator/UploadReference/index.js +1 -1
- package/es/core/Designer/AiImageGenerator/index.js +1 -1
- package/es/core/Designer/AppointmentModal/index.js +1 -1
- package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +1 -1
- package/es/core/Designer/ChatRobot/index.js +1 -1
- package/es/core/Designer/PageCompList/index.js +1 -1
- package/es/core/Designer/QuickMenuBar/index.js +60 -11
- package/es/core/Designer/ToolBarModal/index.js +1 -1
- package/es/core/Designer/index.js +22 -4
- package/es/core/SelectUrl/index.js +0 -1
- package/es/index.js +0 -8
- package/es/meta-comp/config-panels/ButtonConfig/index.js +1 -1
- package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +1 -1
- package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +1 -1
- package/es/meta-comp/config-panels/ImageConfig/index.js +1 -1
- package/es/meta-comp/config-panels/PlayIconConfig/index.js +1 -1
- package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.js +1 -1
- package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +1 -1
- package/es/meta-comp/config-panels/TextConfig/index.js +1 -1
- package/es/utils/androidUtil.js +5 -2
- package/es/utils/businessUtil.js +18 -3
- package/es/utils/commonUtil.js +2 -2
- package/es/utils/coreUtil.js +35 -25
- package/lib/assets/fonts/magic-box-iconfont.css +27 -7
- package/lib/assets/fonts/magic-box-iconfont.css.bak +71 -7
- 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/images/base64/index.js +3 -1
- package/lib/common/AffiliateProductModal/index.js +1 -1
- package/lib/common/Button/index.js +1 -1
- package/lib/common/Collapse/index.js +1 -1
- package/lib/common/ImageModal/CommonModal/index.js +1 -1
- package/lib/common/ImageModal/CommonSelPicCard/index.js +1 -1
- package/lib/common/ImageModal/index.js +52 -50
- package/lib/common/ImageModal/utils.js +1 -1
- package/lib/common/ImagePicker/index.js +1 -1
- package/lib/common/InputNumber/index.js +1 -1
- package/lib/common/LinkModal/AffiliatePlatform/index.js +325 -0
- package/lib/common/LinkModal/AffiliateProductTable/index.js +15 -27
- package/lib/common/LinkModal/AffiliateStore/index.js +11 -23
- package/lib/common/LinkModal/BundleCampaign/index.js +15 -27
- package/lib/common/LinkModal/CatgTable/index.js +3 -11
- package/lib/common/LinkModal/CouponTable/index.js +3 -11
- package/lib/common/LinkModal/CustomTable/index.js +3 -11
- package/lib/common/LinkModal/FilteredProductModal/index.js +23 -37
- package/lib/common/LinkModal/FunctionTable/index.js +4 -11
- package/lib/common/LinkModal/MiniAppApi/index.js +4 -12
- package/lib/common/LinkModal/MiniAppTable/index.js +3 -11
- package/lib/common/LinkModal/ProductDetailPage/index.js +26 -38
- package/lib/common/LinkModal/SelectVideoModal/index.js +10 -18
- package/lib/common/LinkModal/ShareUrl/index.js +3 -11
- package/lib/common/LinkModal/StoreCatgTable/index.js +3 -11
- package/lib/common/LinkModal/StoreTable/index.js +11 -23
- package/lib/common/LinkModal/index.js +15 -19
- package/lib/common/ProductModal/index.js +1 -1
- package/lib/common/Slider/index.js +1 -1
- package/lib/common/SwitchCollapse/index.js +1 -1
- package/lib/common/SystemNotification/Confirm/index.js +1 -1
- package/lib/common/UrlPicker/AnchorModal/index.js +1 -1
- package/lib/common/VideoUpload/index.js +1 -0
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +1 -1
- package/lib/composite-comp/bol/components/Banner/pc/index.js +1 -1
- package/lib/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +1 -1
- package/lib/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +1 -1
- package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +1 -1
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +1 -1
- package/lib/composite-comp/common/components/ProductItem/index.js +1 -1
- package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +1 -1
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +1 -1
- package/lib/composite-comp/common/config-panels/InputField/index.js +1 -1
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +1 -1
- package/lib/composite-comp/dito/components/Bargain/defaultJSON.js +244 -0
- package/lib/composite-comp/dito/components/Bargain/index.js +86 -0
- package/lib/composite-comp/dito/components/Bargain/mobile/imgs/defImg.png +0 -0
- package/lib/composite-comp/dito/components/Bargain/mobile/imgs/defImg1.png +0 -0
- package/lib/composite-comp/dito/components/Bargain/mobile/imgs/defImg2.png +0 -0
- package/lib/composite-comp/dito/components/Bargain/mobile/imgs/defImg3.png +0 -0
- package/lib/composite-comp/dito/components/Bargain/mobile/index.js +370 -0
- package/lib/composite-comp/dito/components/Bargain/mobile/index.less +85 -0
- package/lib/composite-comp/dito/components/GroupBuy/mobile/index.less +3 -3
- package/lib/composite-comp/dito/components/Orders/mobile/index.js +8 -6
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +9 -7
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +1 -1
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +1 -1
- package/lib/composite-comp/dito/components/SignBoard/pc/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +157 -0
- package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.less +20 -0
- package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigTitle/index.js +126 -0
- package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigTitle/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/BargainConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/dito/config-panels/BargainConfig/index.js +73 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +1 -1
- 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/OrdersSecondConfig/index.js +1 -1
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +1 -1
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +1 -1
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/index.js +11 -6
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +5 -2
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/SearchCondition/index.js +3 -3
- package/lib/composite-comp/monpay/config-panels/BundleConfig/ConfigContent/index.js +1 -1
- package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigContent/index.js +1 -1
- package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.js +1 -1
- package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js +1 -1
- package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.js +1 -1
- package/lib/composite-comp/nuri/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/lib/constants/component-types.js +6 -2
- package/lib/constants/index.js +27 -5
- package/lib/core/Designer/AiImageGenerator/GenerateSize/index.js +1 -1
- package/lib/core/Designer/AiImageGenerator/NumberSlider/index.js +1 -1
- package/lib/core/Designer/AiImageGenerator/UploadReference/index.js +1 -1
- package/lib/core/Designer/AiImageGenerator/index.js +1 -1
- package/lib/core/Designer/AppointmentModal/index.js +1 -1
- package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +1 -1
- package/lib/core/Designer/ChatRobot/index.js +1 -1
- package/lib/core/Designer/PageCompList/index.js +1 -1
- package/lib/core/Designer/QuickMenuBar/index.js +60 -11
- package/lib/core/Designer/ToolBarModal/index.js +1 -1
- package/lib/core/Designer/index.js +22 -4
- package/lib/core/SelectUrl/index.js +0 -1
- package/lib/index.js +0 -8
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +1 -1
- package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +1 -1
- package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +1 -1
- package/lib/meta-comp/config-panels/ImageConfig/index.js +1 -1
- package/lib/meta-comp/config-panels/PlayIconConfig/index.js +1 -1
- package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.js +1 -1
- package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +1 -1
- package/lib/meta-comp/config-panels/TextConfig/index.js +1 -1
- package/lib/utils/androidUtil.js +5 -2
- package/lib/utils/businessUtil.js +18 -3
- package/lib/utils/commonUtil.js +2 -2
- package/lib/utils/coreUtil.js +35 -25
- package/package.json +1 -1
- package/es/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/.DS_Store +0 -0
package/es/utils/androidUtil.js
CHANGED
|
@@ -23,6 +23,9 @@ var browserVersion = function browserVersion() {
|
|
|
23
23
|
qq: u.match(/\sQQ/i) == ' qq',
|
|
24
24
|
isApp: u.indexOf('app/CYLON-APP') > -1,
|
|
25
25
|
isNuriApp: u.indexOf('app/NURI-APP') > -1,
|
|
26
|
+
isDitoApp: u.indexOf('mydito') > -1,
|
|
27
|
+
ditoAndroidApp: u.indexOf('mydito') > -1 && (u.indexOf('Android') > -1 || u.indexOf('Adr') > -1),
|
|
28
|
+
ditoIosApp: u.indexOf('mydito') > -1 && !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
|
|
26
29
|
isAshitaApp: u.indexOf('app/ASHITA-APP') > -1
|
|
27
30
|
};
|
|
28
31
|
};
|
|
@@ -136,9 +139,9 @@ var sendToApp = function sendToApp(params) {
|
|
|
136
139
|
exports.sendToApp = sendToApp;
|
|
137
140
|
|
|
138
141
|
var goToLoginApp = function goToLoginApp() {
|
|
139
|
-
if (browserVersion().
|
|
142
|
+
if (browserVersion().ditoAndroidApp) {
|
|
140
143
|
window.dito.goToLogin();
|
|
141
|
-
} else if (browserVersion().
|
|
144
|
+
} else if (browserVersion().ditoIosApp) {
|
|
142
145
|
window.dito.goToLogin();
|
|
143
146
|
}
|
|
144
147
|
};
|
package/es/utils/businessUtil.js
CHANGED
|
@@ -28,7 +28,8 @@ var newParseUrl = function newParseUrl(urlObj) {
|
|
|
28
28
|
var type = urlObj.type,
|
|
29
29
|
value = urlObj.value,
|
|
30
30
|
offerId = urlObj.offerId,
|
|
31
|
-
productId = urlObj.productId
|
|
31
|
+
productId = urlObj.productId,
|
|
32
|
+
name = urlObj.name;
|
|
32
33
|
|
|
33
34
|
switch (type) {
|
|
34
35
|
// 锚点跳转
|
|
@@ -206,6 +207,18 @@ var newParseUrl = function newParseUrl(urlObj) {
|
|
|
206
207
|
};
|
|
207
208
|
break;
|
|
208
209
|
|
|
210
|
+
case _constants.urlTypeMap.AFFILIATE_PLATFORM:
|
|
211
|
+
// affiliate platform
|
|
212
|
+
link = "/platformDetail/" + value;
|
|
213
|
+
params = {
|
|
214
|
+
action: 'jump',
|
|
215
|
+
params: {
|
|
216
|
+
type: 'AFFILIATE_PLATFORM',
|
|
217
|
+
url: value
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
break;
|
|
221
|
+
|
|
209
222
|
default:
|
|
210
223
|
var map = {
|
|
211
224
|
'/main/cart': 'CART',
|
|
@@ -228,8 +241,9 @@ var newParseUrl = function newParseUrl(urlObj) {
|
|
|
228
241
|
params = {
|
|
229
242
|
action: 'jump',
|
|
230
243
|
params: {
|
|
231
|
-
type: map[link],
|
|
232
|
-
link: link
|
|
244
|
+
type: map[link] || name,
|
|
245
|
+
link: link,
|
|
246
|
+
url: link
|
|
233
247
|
}
|
|
234
248
|
};
|
|
235
249
|
}
|
|
@@ -433,6 +447,7 @@ var getPromotionList = function getPromotionList(offer) {
|
|
|
433
447
|
var PROMOTION_TYPE_MAP = {
|
|
434
448
|
2: 'FLASH',
|
|
435
449
|
4: 'Group',
|
|
450
|
+
12: 'Bargain',
|
|
436
451
|
C: 'Discount',
|
|
437
452
|
D: 'Discount',
|
|
438
453
|
G: 'Gift'
|
package/es/utils/commonUtil.js
CHANGED
|
@@ -372,8 +372,8 @@ var checkLogin = function checkLogin(isLead, redirectUrl, replaceFlag) {
|
|
|
372
372
|
|
|
373
373
|
if (!isLogin()) {
|
|
374
374
|
if (isLead) {
|
|
375
|
-
if ((0, _androidUtil.browserVersion)().
|
|
376
|
-
goToLoginApp();
|
|
375
|
+
if ((0, _androidUtil.browserVersion)().isDitoApp) {
|
|
376
|
+
(0, _androidUtil.goToLoginApp)();
|
|
377
377
|
} else {
|
|
378
378
|
var _a = window.location,
|
|
379
379
|
pathname = _a.pathname,
|
package/es/utils/coreUtil.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.setMagicDesign = exports.renderPreview = exports.isPc = exports.isDesignMode = exports.isActiveFloor = exports.getVideoCover = exports.copyNode = exports.clickUrl = void 0;
|
|
6
|
+
exports.setMagicDesign = exports.renderPreview = exports.isPc = exports.isDesignMode = exports.isAutoAudit = exports.isActiveFloor = exports.getVideoCover = exports.copyNode = exports.clickUrl = void 0;
|
|
7
7
|
|
|
8
8
|
var _uuid = require("uuid");
|
|
9
9
|
|
|
@@ -310,10 +310,9 @@ var clickUrl = function clickUrl(url) {
|
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
console.log('clickUrl...', url); // 只读模式,设计模式,url为空,邮箱模版
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
}
|
|
313
|
+
// if (window.magicDesign.readOnly || window.magicDesign.mode !== 'renderer' || !url || window.magicDesign.outputType == 'html') {
|
|
314
|
+
// return;
|
|
315
|
+
// }
|
|
317
316
|
|
|
318
317
|
var _b = _typeof(url) === 'object' ? (0, _businessUtil.newParseUrl)(url) : (0, _businessUtil.parseUrl)(url),
|
|
319
318
|
link = _b.link,
|
|
@@ -337,23 +336,21 @@ var clickUrl = function clickUrl(url) {
|
|
|
337
336
|
|
|
338
337
|
if ((0, _androidUtil.browserVersion)().isAshitaApp) {
|
|
339
338
|
(0, _androidUtil.sendToApp)(data);
|
|
340
|
-
} else if ((0, _androidUtil.browserVersion)().isNuriApp && params.link && params.link.startsWith('http')) {
|
|
341
|
-
// 兼容Nuri app的 绝对路径跳转
|
|
342
|
-
var urlTemp = "" + params.link + (params.link.includes('?') ? '&' : '?') + "userToken=" + (localStorage.getItem('h5Token') || '');
|
|
343
|
-
(0, _androidUtil.sendToApp)({
|
|
344
|
-
type: 'jumpBrowser',
|
|
345
|
-
params: {
|
|
346
|
-
url: urlTemp
|
|
347
|
-
}
|
|
348
|
-
});
|
|
349
339
|
} else if ((0, _androidUtil.browserVersion)().isApp && params.link && params.link.startsWith('http')) {
|
|
350
|
-
//
|
|
351
|
-
(
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
340
|
+
// 跳转链接是个绝对路径
|
|
341
|
+
if (params.type === 'Gamezop') {
|
|
342
|
+
// Nuri 对接 Gamezop 特殊情况
|
|
343
|
+
(0, _androidUtil.sendToApp)(data);
|
|
344
|
+
} else {
|
|
345
|
+
// Nuri 抽奖系统对接
|
|
346
|
+
var urlTemp = "" + params.link + (params.link.includes('?') ? '&' : '?') + "userToken=" + (localStorage.getItem('h5Token') || '');
|
|
347
|
+
(0, _androidUtil.sendToApp)({
|
|
348
|
+
type: 'jumpBrowser',
|
|
349
|
+
params: {
|
|
350
|
+
url: urlTemp
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
}
|
|
357
354
|
} else {
|
|
358
355
|
// 视频
|
|
359
356
|
if (params.type === 'VIDEO') {
|
|
@@ -381,7 +378,10 @@ var clickUrl = function clickUrl(url) {
|
|
|
381
378
|
if (((_a = window === null || window === void 0 ? void 0 : window.magicDesign) === null || _a === void 0 ? void 0 : _a.projectCode) === 'nuri') {
|
|
382
379
|
// 输入的是完整的跳转地址
|
|
383
380
|
if (isUrl(link)) {
|
|
384
|
-
if (
|
|
381
|
+
if (params.type === 'Gamezop') {
|
|
382
|
+
// Nuri 对接游戏页面
|
|
383
|
+
window.open(link);
|
|
384
|
+
} else if (!link.includes(window.location.host)) {
|
|
385
385
|
// 跳转外链 需要把userToken带上
|
|
386
386
|
if (link.includes('?')) {
|
|
387
387
|
var a = link + "&userToken=" + (localStorage.getItem('h5Token') || '');
|
|
@@ -396,9 +396,9 @@ var clickUrl = function clickUrl(url) {
|
|
|
396
396
|
} else {
|
|
397
397
|
(0, _commonUtil.navigateTo)(link);
|
|
398
398
|
}
|
|
399
|
+
} else {
|
|
400
|
+
(0, _commonUtil.navigateTo)(link);
|
|
399
401
|
}
|
|
400
|
-
|
|
401
|
-
(0, _commonUtil.navigateTo)(link);
|
|
402
402
|
}
|
|
403
403
|
};
|
|
404
404
|
|
|
@@ -444,5 +444,15 @@ var copyNode = function copyNode(value, parentId) {
|
|
|
444
444
|
});
|
|
445
445
|
return newNode;
|
|
446
446
|
};
|
|
447
|
+
/**
|
|
448
|
+
* 是否开启自动审核
|
|
449
|
+
*/
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
exports.copyNode = copyNode;
|
|
453
|
+
|
|
454
|
+
var isAutoAudit = function isAutoAudit() {
|
|
455
|
+
return window.magicDesign.autoAudit || window.partyType === _constants.partyTypeMap.PLATFORM;
|
|
456
|
+
};
|
|
447
457
|
|
|
448
|
-
exports.
|
|
458
|
+
exports.isAutoAudit = isAutoAudit;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "magic-box-iconfont";
|
|
3
3
|
/* Project id 3317752 */
|
|
4
|
-
src: url('magic-box-iconfont.woff2?t=
|
|
5
|
-
url('magic-box-iconfont.woff?t=
|
|
6
|
-
url('magic-box-iconfont.ttf?t=
|
|
4
|
+
src: url('magic-box-iconfont.woff2?t=1717469468478') format('woff2'),
|
|
5
|
+
url('magic-box-iconfont.woff?t=1717469468478') format('woff'),
|
|
6
|
+
url('magic-box-iconfont.ttf?t=1717469468478') format('truetype');
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.magic-box-iconfont {
|
|
@@ -14,6 +14,30 @@
|
|
|
14
14
|
-moz-osx-font-smoothing: grayscale;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
.magic-box-icon-bargain:before {
|
|
18
|
+
content: "\e649";
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.magic-box-icon-kanjia:before {
|
|
22
|
+
content: "\e688";
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.magic-box-icon-save:before {
|
|
26
|
+
content: "\e646";
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.magic-box-icon-eye1:before {
|
|
30
|
+
content: "\e647";
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.magic-box-icon-clock:before {
|
|
34
|
+
content: "\e648";
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.magic-box-icon-select2:before {
|
|
38
|
+
content: "\e67a";
|
|
39
|
+
}
|
|
40
|
+
|
|
17
41
|
.magic-box-icon-list-sort:before {
|
|
18
42
|
content: "\e645";
|
|
19
43
|
}
|
|
@@ -126,10 +150,6 @@
|
|
|
126
150
|
content: "\e671";
|
|
127
151
|
}
|
|
128
152
|
|
|
129
|
-
.magic-box-icon-select2:before {
|
|
130
|
-
content: "\e67a";
|
|
131
|
-
}
|
|
132
|
-
|
|
133
153
|
.magic-box-icon-b-play-02:before {
|
|
134
154
|
content: "\e672";
|
|
135
155
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "magic-box-iconfont"; /* Project id 3317752 */
|
|
3
|
-
src: url('magic-box-iconfont.woff2?t=
|
|
4
|
-
url('magic-box-iconfont.woff?t=
|
|
5
|
-
url('magic-box-iconfont.ttf?t=
|
|
3
|
+
src: url('magic-box-iconfont.woff2?t=1716881585254') format('woff2'),
|
|
4
|
+
url('magic-box-iconfont.woff?t=1716881585254') format('woff'),
|
|
5
|
+
url('magic-box-iconfont.ttf?t=1716881585254') format('truetype');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.magic-box-iconfont {
|
|
@@ -13,6 +13,74 @@
|
|
|
13
13
|
-moz-osx-font-smoothing: grayscale;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
.icon-save:before {
|
|
17
|
+
content: "\e646";
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.icon-eye1:before {
|
|
21
|
+
content: "\e647";
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.icon-clock:before {
|
|
25
|
+
content: "\e648";
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.icon-select2:before {
|
|
29
|
+
content: "\e67a";
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.icon-list-sort:before {
|
|
33
|
+
content: "\e645";
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.icon-check:before {
|
|
37
|
+
content: "\e644";
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.icon-sale:before {
|
|
41
|
+
content: "\e78b";
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.icon-bundle:before {
|
|
45
|
+
content: "\e6cb";
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.icon-interests:before {
|
|
49
|
+
content: "\e829";
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.icon-group-users:before {
|
|
53
|
+
content: "\e60a";
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.icon-group-buy:before {
|
|
57
|
+
content: "\e643";
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.icon-orders:before {
|
|
61
|
+
content: "\e64c";
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.icon-function:before {
|
|
65
|
+
content: "\e6d1";
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.icon-messages:before {
|
|
69
|
+
content: "\e600";
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.icon-set:before {
|
|
73
|
+
content: "\e601";
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.icon-cards_fill:before {
|
|
77
|
+
content: "\e7a6";
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.icon-account:before {
|
|
81
|
+
content: "\e655";
|
|
82
|
+
}
|
|
83
|
+
|
|
16
84
|
.icon-anchor:before {
|
|
17
85
|
content: "\e642";
|
|
18
86
|
}
|
|
@@ -73,10 +141,6 @@
|
|
|
73
141
|
content: "\e671";
|
|
74
142
|
}
|
|
75
143
|
|
|
76
|
-
.icon-select2:before {
|
|
77
|
-
content: "\e67a";
|
|
78
|
-
}
|
|
79
|
-
|
|
80
144
|
.icon-b-play-02:before {
|
|
81
145
|
content: "\e672";
|
|
82
146
|
}
|