@fonixtree/magic-design 2.0.74 → 2.0.76
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 +8 -4
- package/es/assets/fonts/magic-box-iconfont.css.bak +8 -4
- 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/common/LinkModal/BundleCampaign/index.js +2 -2
- package/es/common/LinkModal/CouponTable/index.js +1 -1
- package/es/common/LinkModal/FilteredProductModal/index.js +2 -2
- package/es/common/LinkModal/ProductDetailPage/index.js +30 -13
- package/es/common/MagicLink/index.js +2 -2
- package/es/common/ProductModal/index.js +29 -22
- package/es/common/ProductSource/index.js +0 -1
- package/es/common/UrlPicker/AnchorModal/index.js +170 -0
- package/es/common/UrlPicker/AnchorModal/index.less +21 -0
- package/es/common/UrlPicker/index.js +61 -11
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +1 -1
- package/es/composite-comp/dito/components/Recommend/pc/index.js +1 -1
- package/es/constants/index.js +2 -1
- package/es/core/Designer/PageCompList/index.js +1 -1
- package/es/core/Designer/QuickMenuBar/index.js +1 -1
- package/es/locale/en/en.json +1 -0
- package/es/locale/es/es.json +1 -0
- package/es/locale/id/id.json +1 -0
- package/es/utils/businessUtil.js +13 -2
- package/es/utils/coreUtil.js +11 -0
- package/lib/assets/fonts/magic-box-iconfont.css +8 -4
- package/lib/assets/fonts/magic-box-iconfont.css.bak +8 -4
- 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/common/LinkModal/BundleCampaign/index.js +2 -2
- package/lib/common/LinkModal/CouponTable/index.js +1 -1
- package/lib/common/LinkModal/FilteredProductModal/index.js +2 -2
- package/lib/common/LinkModal/ProductDetailPage/index.js +30 -13
- package/lib/common/MagicLink/index.js +2 -2
- package/lib/common/ProductModal/index.js +29 -22
- package/lib/common/ProductSource/index.js +0 -1
- package/lib/common/UrlPicker/AnchorModal/index.js +170 -0
- package/lib/common/UrlPicker/AnchorModal/index.less +21 -0
- package/lib/common/UrlPicker/index.js +61 -11
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +1 -1
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +1 -1
- package/lib/constants/index.js +2 -1
- package/lib/core/Designer/PageCompList/index.js +1 -1
- package/lib/core/Designer/QuickMenuBar/index.js +1 -1
- package/lib/locale/en/en.json +1 -0
- package/lib/locale/es/es.json +1 -0
- package/lib/locale/id/id.json +1 -0
- package/lib/utils/businessUtil.js +13 -2
- package/lib/utils/coreUtil.js +11 -0
- package/package.json +1 -1
- package/es/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/.DS_Store +0 -0
|
@@ -31,7 +31,18 @@ var newParseUrl = function newParseUrl(urlObj) {
|
|
|
31
31
|
productId = urlObj.productId;
|
|
32
32
|
|
|
33
33
|
switch (type) {
|
|
34
|
+
// 锚点跳转
|
|
35
|
+
case _constants.urlTypeMap.ANCHOR:
|
|
36
|
+
params = {
|
|
37
|
+
action: 'operation',
|
|
38
|
+
params: {
|
|
39
|
+
type: 'ANCHOR',
|
|
40
|
+
data: value
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
break;
|
|
34
44
|
// 商品详情
|
|
45
|
+
|
|
35
46
|
case _constants.urlTypeMap.PRODUCT_DETAIL_PAGE:
|
|
36
47
|
if (offerId) {
|
|
37
48
|
link = "/product/detail/" + offerId + "?productId=" + (productId !== null && productId !== void 0 ? productId : '');
|
|
@@ -87,7 +98,7 @@ var newParseUrl = function newParseUrl(urlObj) {
|
|
|
87
98
|
// 商品列表
|
|
88
99
|
|
|
89
100
|
case _constants.urlTypeMap.FILTERED_PRODUCT:
|
|
90
|
-
link = "/product/list
|
|
101
|
+
link = "/product/list/?" + value;
|
|
91
102
|
params = {
|
|
92
103
|
action: 'jump',
|
|
93
104
|
params: {
|
|
@@ -261,7 +272,7 @@ var parseUrl = function parseUrl(url) {
|
|
|
261
272
|
// 商品列表
|
|
262
273
|
|
|
263
274
|
case _constants.urlType.PROD_FILTER:
|
|
264
|
-
link = "/product/list
|
|
275
|
+
link = "/product/list/?" + arg1;
|
|
265
276
|
params = {
|
|
266
277
|
action: 'jump',
|
|
267
278
|
params: {
|
package/lib/utils/coreUtil.js
CHANGED
|
@@ -326,6 +326,17 @@ var clickUrl = function clickUrl(url) {
|
|
|
326
326
|
url: params.link
|
|
327
327
|
}
|
|
328
328
|
});
|
|
329
|
+
/** 锚点跳转 */
|
|
330
|
+
|
|
331
|
+
if (params.type === 'ANCHOR') {
|
|
332
|
+
(0, _commonUtil.ensure)(function () {
|
|
333
|
+
var nodeId = isPc() ? params.data.pcNodeId : params.data.mobileNodeId;
|
|
334
|
+
document.querySelector("#node-" + nodeId).scrollIntoView({
|
|
335
|
+
behavior: 'smooth'
|
|
336
|
+
});
|
|
337
|
+
});
|
|
338
|
+
return;
|
|
339
|
+
}
|
|
329
340
|
|
|
330
341
|
if ((0, _androidUtil.browserVersion)().isAshitaApp) {
|
|
331
342
|
(0, _androidUtil.sendToApp)(data);
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|