@fonixtree/magic-design 2.0.72 → 2.0.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/assets/fonts/.DS_Store +0 -0
- package/es/common/AffiliateProductModal/index.js +1 -1
- package/es/common/AffiliateProductModal/index.less +1 -1
- package/es/common/LinkModal/FilteredProductModal/index.js +81 -105
- package/es/common/LinkModal/FilteredProductModal/index.less +1 -0
- package/es/common/LinkModal/ProductDetailPage/index.js +96 -58
- package/es/common/LinkModal/ProductDetailPage/index.less +6 -1
- package/es/common/ProductModal/index.js +124 -87
- package/es/common/ProductModal/index.less +7 -1
- package/es/common/ProductSource/index.js +82 -21
- package/es/composite-comp/bol/components/Wallet/mobile/index.js +1 -1
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +1 -1
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +26 -23
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +4 -2
- package/es/constants/index.js +1 -1
- package/es/locale/en/en.json +3 -2
- package/es/locale/es/es.json +3 -2
- package/es/locale/id/id.json +3 -2
- package/es/utils/commonUtil.js +14 -6
- package/lib/assets/fonts/.DS_Store +0 -0
- package/lib/common/AffiliateProductModal/index.js +1 -1
- package/lib/common/AffiliateProductModal/index.less +1 -1
- package/lib/common/LinkModal/FilteredProductModal/index.js +81 -105
- package/lib/common/LinkModal/FilteredProductModal/index.less +1 -0
- package/lib/common/LinkModal/ProductDetailPage/index.js +96 -58
- package/lib/common/LinkModal/ProductDetailPage/index.less +6 -1
- package/lib/common/ProductModal/index.js +124 -87
- package/lib/common/ProductModal/index.less +7 -1
- package/lib/common/ProductSource/index.js +82 -21
- package/lib/composite-comp/bol/components/Wallet/mobile/index.js +1 -1
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +1 -1
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +26 -23
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +4 -2
- package/lib/constants/index.js +1 -1
- package/lib/locale/en/en.json +3 -2
- package/lib/locale/es/es.json +3 -2
- package/lib/locale/id/id.json +3 -2
- package/lib/utils/commonUtil.js +14 -6
- package/package.json +1 -1
|
@@ -114,11 +114,13 @@ function (_super) {
|
|
|
114
114
|
}, (0, _locale.i18n)('AI_RECOMMENDATION')))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
115
115
|
className: "greyBg"
|
|
116
116
|
}, panelProps.sourceType === 'select' && /*#__PURE__*/_react["default"].createElement(_common.ProductSource, {
|
|
117
|
-
onChange: function onChange(
|
|
118
|
-
panelProps.prodIds =
|
|
117
|
+
onChange: function onChange(ids, type) {
|
|
118
|
+
panelProps.prodIds = ids;
|
|
119
|
+
panelProps.prodType = type;
|
|
119
120
|
|
|
120
121
|
_this.selfRender();
|
|
121
122
|
},
|
|
123
|
+
prodType: panelProps.prodType,
|
|
122
124
|
value: panelProps.prodIds
|
|
123
125
|
}), panelProps.sourceType === 'recommend' && /*#__PURE__*/_react["default"].createElement(_AIRecommendation["default"], {
|
|
124
126
|
onChange: function onChange(val) {
|
package/lib/constants/index.js
CHANGED
package/lib/locale/en/en.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"PUSH": "Push",
|
|
3
|
-
"SET_AS_TEMPLATE":"Set as Template",
|
|
3
|
+
"SET_AS_TEMPLATE": "Set as Template",
|
|
4
4
|
"DISPLAY_PAGE": "Display page",
|
|
5
5
|
"NAME": "Name",
|
|
6
6
|
"ADD_MENU": "Add Menu",
|
|
@@ -97,7 +97,8 @@
|
|
|
97
97
|
"BANNER_HEIGHT": "Banner Height",
|
|
98
98
|
"IMAGE": "Image",
|
|
99
99
|
"PRODUCT_NAME": "Product Name",
|
|
100
|
-
"
|
|
100
|
+
"SKU_CODE": "SKU Code",
|
|
101
|
+
"SPU_CODE": "SPU Code",
|
|
101
102
|
"SKU": "SKU",
|
|
102
103
|
"PRICE": "Price",
|
|
103
104
|
"BRAND": "Brand",
|
package/lib/locale/es/es.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"PUSH": "Push",
|
|
3
|
-
"SET_AS_TEMPLATE":"Set as Template",
|
|
3
|
+
"SET_AS_TEMPLATE": "Set as Template",
|
|
4
4
|
"DISPLAY_PAGE": "Display page",
|
|
5
5
|
"NAME": "Name",
|
|
6
6
|
"ADD_MENU": "Add Menu",
|
|
@@ -97,7 +97,8 @@
|
|
|
97
97
|
"BANNER_HEIGHT": "Altura del banner",
|
|
98
98
|
"IMAGE": "Imagen",
|
|
99
99
|
"PRODUCT_NAME": "Nombre del producto",
|
|
100
|
-
"
|
|
100
|
+
"SKU_CODE": "Código SKU",
|
|
101
|
+
"SPU_CODE": "Código spu",
|
|
101
102
|
"SKU": "SKU",
|
|
102
103
|
"PRICE": "Precio",
|
|
103
104
|
"BRAND": "Marca",
|
package/lib/locale/id/id.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"PUSH": "Push",
|
|
3
|
-
"SET_AS_TEMPLATE":"Set as Template",
|
|
3
|
+
"SET_AS_TEMPLATE": "Set as Template",
|
|
4
4
|
"DISPLAY_PAGE": "Display page",
|
|
5
5
|
"NAME": "Name",
|
|
6
6
|
"ADD_MENU": "Add Menu",
|
|
@@ -97,7 +97,8 @@
|
|
|
97
97
|
"BANNER_HEIGHT": "Banner Height",
|
|
98
98
|
"IMAGE": "Image",
|
|
99
99
|
"PRODUCT_NAME": "Product Name",
|
|
100
|
-
"
|
|
100
|
+
"SKU_CODE": "SKU Code",
|
|
101
|
+
"SPU_CODE": "SPU Code",
|
|
101
102
|
"SKU": "SKU",
|
|
102
103
|
"PRICE": "Price",
|
|
103
104
|
"BRAND": "Brand",
|
package/lib/utils/commonUtil.js
CHANGED
|
@@ -291,14 +291,22 @@ var navigateTo = function navigateTo(url) {
|
|
|
291
291
|
return;
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
294
|
+
var _a = url.split(';'),
|
|
295
|
+
h5Url = _a[0],
|
|
296
|
+
appUrl = _a[1]; // 未配置App路径并且h5绝对路径时直接跳转,其他情况让业务层处理
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
if (!appUrl && !h5Url.startsWith('/')) {
|
|
300
|
+
window.location.href = h5Url;
|
|
301
|
+
} else if (window.magicDesign.history) {
|
|
302
|
+
window.magicDesign.history.push(url);
|
|
303
|
+
} else if (window.magicDesign.navigatePreUrl) {
|
|
304
|
+
// 预览模式跳转
|
|
305
|
+
if (h5Url.startsWith('/')) {
|
|
298
306
|
window.location.href = "" + window.magicDesign.navigatePreUrl + url;
|
|
307
|
+
} else {
|
|
308
|
+
window.location.href = h5Url;
|
|
299
309
|
}
|
|
300
|
-
} else {
|
|
301
|
-
window.location.href = url;
|
|
302
310
|
}
|
|
303
311
|
};
|
|
304
312
|
|