@fonixtree/magic-design 2.0.74 → 2.0.75
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/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/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/.DS_Store +0 -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/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/utils/businessUtil.js
CHANGED
|
@@ -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/es/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);
|
|
Binary file
|
|
@@ -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=1704245006151') format('woff2'),
|
|
4
|
+
url('magic-box-iconfont.woff?t=1704245006151') format('woff'),
|
|
5
|
+
url('magic-box-iconfont.ttf?t=1704245006151') format('truetype');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.magic-box-iconfont {
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
-moz-osx-font-smoothing: grayscale;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
.magic-box-icon-anchor:before {
|
|
17
|
+
content: "\e642";
|
|
18
|
+
}
|
|
19
|
+
|
|
16
20
|
.magic-box-icon-circle-down:before {
|
|
17
21
|
content: "\e686";
|
|
18
22
|
}
|
|
@@ -21,7 +25,7 @@
|
|
|
21
25
|
content: "\e687";
|
|
22
26
|
}
|
|
23
27
|
|
|
24
|
-
.magic-box-icon-
|
|
28
|
+
.magic-box-icon-template:before {
|
|
25
29
|
content: "\e685";
|
|
26
30
|
}
|
|
27
31
|
|
|
@@ -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=1704245006151') format('woff2'),
|
|
4
|
+
url('magic-box-iconfont.woff?t=1704245006151') format('woff'),
|
|
5
|
+
url('magic-box-iconfont.ttf?t=1704245006151') format('truetype');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.magic-box-iconfont {
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
-moz-osx-font-smoothing: grayscale;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
.icon-anchor:before {
|
|
17
|
+
content: "\e642";
|
|
18
|
+
}
|
|
19
|
+
|
|
16
20
|
.icon-circle-down:before {
|
|
17
21
|
content: "\e686";
|
|
18
22
|
}
|
|
@@ -21,7 +25,7 @@
|
|
|
21
25
|
content: "\e687";
|
|
22
26
|
}
|
|
23
27
|
|
|
24
|
-
.icon-
|
|
28
|
+
.icon-template:before {
|
|
25
29
|
content: "\e685";
|
|
26
30
|
}
|
|
27
31
|
|