@fonixtree/magic-design 0.1.95 → 0.1.98
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/composite-comp/bol/components/ImageGallery/mobile/index.less +3 -0
- package/es/utils/androidUtil.js +2 -1
- package/es/utils/businessUtil.js +37 -9
- package/es/utils/coreUtil.js +1 -1
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +3 -0
- package/lib/utils/androidUtil.js +2 -1
- package/lib/utils/businessUtil.js +37 -9
- package/lib/utils/coreUtil.js +1 -1
- 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
|
@@ -26,7 +26,8 @@ var browserVersion = function browserVersion() {
|
|
|
26
26
|
isDitoApp: u.indexOf('mydito') > -1,
|
|
27
27
|
ditoAndroidApp: u.indexOf('mydito') > -1 && (u.indexOf('Android') > -1 || u.indexOf('Adr') > -1),
|
|
28
28
|
ditoIosApp: u.indexOf('mydito') > -1 && !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
|
|
29
|
-
isAshitaApp: u.indexOf('app/ASHITA-APP') > -1
|
|
29
|
+
isAshitaApp: u.indexOf('app/ASHITA-APP') > -1,
|
|
30
|
+
flutterApp: u.indexOf('app/NURI-APP') > -1
|
|
30
31
|
};
|
|
31
32
|
};
|
|
32
33
|
|
package/es/utils/businessUtil.js
CHANGED
|
@@ -248,16 +248,43 @@ var newParseUrl = function newParseUrl(urlObj) {
|
|
|
248
248
|
'/social-commerce/my-cashback': 'CASHBACK',
|
|
249
249
|
'/account/wallet': 'WEBVIEW',
|
|
250
250
|
'/product/GroupBuy': 'GROUP',
|
|
251
|
-
'/search-page': 'SEARCH_PAGE'
|
|
251
|
+
'/search-page': 'SEARCH_PAGE',
|
|
252
|
+
'/commission': 'COMMISSION'
|
|
252
253
|
};
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
254
|
+
var typeTemp = map[link];
|
|
255
|
+
|
|
256
|
+
if (!typeTemp) {
|
|
257
|
+
if (type === _constants.urlTypeMap.FUNCTION_PAGE) {
|
|
258
|
+
params = {
|
|
259
|
+
action: 'jump',
|
|
260
|
+
params: {
|
|
261
|
+
type: 'WEBVIEW',
|
|
262
|
+
link: link,
|
|
263
|
+
url: link
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
} else if (!type) {
|
|
267
|
+
// 直接填的完整外链
|
|
268
|
+
params = {
|
|
269
|
+
action: 'jump',
|
|
270
|
+
params: {
|
|
271
|
+
type: 'NAVIGATE',
|
|
272
|
+
link: link,
|
|
273
|
+
url: link
|
|
274
|
+
}
|
|
275
|
+
};
|
|
259
276
|
}
|
|
260
|
-
}
|
|
277
|
+
} else {
|
|
278
|
+
params = {
|
|
279
|
+
action: 'jump',
|
|
280
|
+
params: {
|
|
281
|
+
type: typeTemp || name,
|
|
282
|
+
link: link,
|
|
283
|
+
url: link
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
|
|
261
288
|
}
|
|
262
289
|
|
|
263
290
|
return {
|
|
@@ -387,7 +414,8 @@ var parseUrl = function parseUrl(url) {
|
|
|
387
414
|
'/account/wallet': 'WEBVIEW',
|
|
388
415
|
'/product/GroupBuy': 'GROUP',
|
|
389
416
|
'/search-page': 'SEARCH_PAGE',
|
|
390
|
-
'/main/my-commission': 'WALLET'
|
|
417
|
+
'/main/my-commission': 'WALLET',
|
|
418
|
+
'/commission': 'COMMISSION'
|
|
391
419
|
};
|
|
392
420
|
link = url;
|
|
393
421
|
params = {
|
package/es/utils/coreUtil.js
CHANGED
|
@@ -335,7 +335,7 @@ var clickUrl = function clickUrl(url) {
|
|
|
335
335
|
return;
|
|
336
336
|
}
|
|
337
337
|
|
|
338
|
-
if ((0, _androidUtil.browserVersion)().isAshitaApp) {
|
|
338
|
+
if ((0, _androidUtil.browserVersion)().isAshitaApp || (0, _androidUtil.browserVersion)().flutterApp) {
|
|
339
339
|
(0, _androidUtil.sendToApp)(data);
|
|
340
340
|
} else if ((0, _androidUtil.browserVersion)().isApp && params.link && params.link.startsWith('http')) {
|
|
341
341
|
// 跳转链接是个绝对路径
|
package/lib/utils/androidUtil.js
CHANGED
|
@@ -26,7 +26,8 @@ var browserVersion = function browserVersion() {
|
|
|
26
26
|
isDitoApp: u.indexOf('mydito') > -1,
|
|
27
27
|
ditoAndroidApp: u.indexOf('mydito') > -1 && (u.indexOf('Android') > -1 || u.indexOf('Adr') > -1),
|
|
28
28
|
ditoIosApp: u.indexOf('mydito') > -1 && !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
|
|
29
|
-
isAshitaApp: u.indexOf('app/ASHITA-APP') > -1
|
|
29
|
+
isAshitaApp: u.indexOf('app/ASHITA-APP') > -1,
|
|
30
|
+
flutterApp: u.indexOf('app/NURI-APP') > -1
|
|
30
31
|
};
|
|
31
32
|
};
|
|
32
33
|
|
|
@@ -248,16 +248,43 @@ var newParseUrl = function newParseUrl(urlObj) {
|
|
|
248
248
|
'/social-commerce/my-cashback': 'CASHBACK',
|
|
249
249
|
'/account/wallet': 'WEBVIEW',
|
|
250
250
|
'/product/GroupBuy': 'GROUP',
|
|
251
|
-
'/search-page': 'SEARCH_PAGE'
|
|
251
|
+
'/search-page': 'SEARCH_PAGE',
|
|
252
|
+
'/commission': 'COMMISSION'
|
|
252
253
|
};
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
254
|
+
var typeTemp = map[link];
|
|
255
|
+
|
|
256
|
+
if (!typeTemp) {
|
|
257
|
+
if (type === _constants.urlTypeMap.FUNCTION_PAGE) {
|
|
258
|
+
params = {
|
|
259
|
+
action: 'jump',
|
|
260
|
+
params: {
|
|
261
|
+
type: 'WEBVIEW',
|
|
262
|
+
link: link,
|
|
263
|
+
url: link
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
} else if (!type) {
|
|
267
|
+
// 直接填的完整外链
|
|
268
|
+
params = {
|
|
269
|
+
action: 'jump',
|
|
270
|
+
params: {
|
|
271
|
+
type: 'NAVIGATE',
|
|
272
|
+
link: link,
|
|
273
|
+
url: link
|
|
274
|
+
}
|
|
275
|
+
};
|
|
259
276
|
}
|
|
260
|
-
}
|
|
277
|
+
} else {
|
|
278
|
+
params = {
|
|
279
|
+
action: 'jump',
|
|
280
|
+
params: {
|
|
281
|
+
type: typeTemp || name,
|
|
282
|
+
link: link,
|
|
283
|
+
url: link
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
|
|
261
288
|
}
|
|
262
289
|
|
|
263
290
|
return {
|
|
@@ -387,7 +414,8 @@ var parseUrl = function parseUrl(url) {
|
|
|
387
414
|
'/account/wallet': 'WEBVIEW',
|
|
388
415
|
'/product/GroupBuy': 'GROUP',
|
|
389
416
|
'/search-page': 'SEARCH_PAGE',
|
|
390
|
-
'/main/my-commission': 'WALLET'
|
|
417
|
+
'/main/my-commission': 'WALLET',
|
|
418
|
+
'/commission': 'COMMISSION'
|
|
391
419
|
};
|
|
392
420
|
link = url;
|
|
393
421
|
params = {
|
package/lib/utils/coreUtil.js
CHANGED
|
@@ -335,7 +335,7 @@ var clickUrl = function clickUrl(url) {
|
|
|
335
335
|
return;
|
|
336
336
|
}
|
|
337
337
|
|
|
338
|
-
if ((0, _androidUtil.browserVersion)().isAshitaApp) {
|
|
338
|
+
if ((0, _androidUtil.browserVersion)().isAshitaApp || (0, _androidUtil.browserVersion)().flutterApp) {
|
|
339
339
|
(0, _androidUtil.sendToApp)(data);
|
|
340
340
|
} else if ((0, _androidUtil.browserVersion)().isApp && params.link && params.link.startsWith('http')) {
|
|
341
341
|
// 跳转链接是个绝对路径
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|