@fonixtree/magic-design 0.1.94 → 0.1.96
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/constants/index.js +2 -1
- package/es/utils/androidUtil.js +2 -1
- package/es/utils/businessUtil.js +16 -2
- package/es/utils/coreUtil.js +1 -1
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +3 -0
- package/lib/constants/index.js +2 -1
- package/lib/utils/androidUtil.js +2 -1
- package/lib/utils/businessUtil.js +16 -2
- 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/constants/index.js
CHANGED
|
@@ -87,7 +87,8 @@ var urlTypeMap = {
|
|
|
87
87
|
AFFILIATE_STORE: 'AffiliateStore',
|
|
88
88
|
ANCHOR: 'Anchor',
|
|
89
89
|
MINI_API: 'MiniApi',
|
|
90
|
-
AFFILIATE_PLATFORM: 'AffiliatePlatform'
|
|
90
|
+
AFFILIATE_PLATFORM: 'AffiliatePlatform',
|
|
91
|
+
AFFILIATE_MISSION_DETAIL: 'AffiliateMissionDetail'
|
|
91
92
|
};
|
|
92
93
|
exports.urlTypeMap = urlTypeMap;
|
|
93
94
|
var respCodeMap = {
|
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
|
@@ -219,6 +219,18 @@ var newParseUrl = function newParseUrl(urlObj) {
|
|
|
219
219
|
};
|
|
220
220
|
break;
|
|
221
221
|
|
|
222
|
+
case _constants.urlTypeMap.AFFILIATE_MISSION_DETAIL:
|
|
223
|
+
// affiliate mission detail
|
|
224
|
+
link = "/taskDetail/" + value;
|
|
225
|
+
params = {
|
|
226
|
+
action: 'jump',
|
|
227
|
+
params: {
|
|
228
|
+
type: 'AFFILIATE_MISSION_DETAIL',
|
|
229
|
+
url: value
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
break;
|
|
233
|
+
|
|
222
234
|
default:
|
|
223
235
|
var map = {
|
|
224
236
|
'/main/cart': 'CART',
|
|
@@ -236,7 +248,8 @@ var newParseUrl = function newParseUrl(urlObj) {
|
|
|
236
248
|
'/social-commerce/my-cashback': 'CASHBACK',
|
|
237
249
|
'/account/wallet': 'WEBVIEW',
|
|
238
250
|
'/product/GroupBuy': 'GROUP',
|
|
239
|
-
'/search-page': 'SEARCH_PAGE'
|
|
251
|
+
'/search-page': 'SEARCH_PAGE',
|
|
252
|
+
'/commission': 'COMMISSION'
|
|
240
253
|
};
|
|
241
254
|
params = {
|
|
242
255
|
action: 'jump',
|
|
@@ -375,7 +388,8 @@ var parseUrl = function parseUrl(url) {
|
|
|
375
388
|
'/account/wallet': 'WEBVIEW',
|
|
376
389
|
'/product/GroupBuy': 'GROUP',
|
|
377
390
|
'/search-page': 'SEARCH_PAGE',
|
|
378
|
-
'/main/my-commission': 'WALLET'
|
|
391
|
+
'/main/my-commission': 'WALLET',
|
|
392
|
+
'/commission': 'COMMISSION'
|
|
379
393
|
};
|
|
380
394
|
link = url;
|
|
381
395
|
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/constants/index.js
CHANGED
|
@@ -87,7 +87,8 @@ var urlTypeMap = {
|
|
|
87
87
|
AFFILIATE_STORE: 'AffiliateStore',
|
|
88
88
|
ANCHOR: 'Anchor',
|
|
89
89
|
MINI_API: 'MiniApi',
|
|
90
|
-
AFFILIATE_PLATFORM: 'AffiliatePlatform'
|
|
90
|
+
AFFILIATE_PLATFORM: 'AffiliatePlatform',
|
|
91
|
+
AFFILIATE_MISSION_DETAIL: 'AffiliateMissionDetail'
|
|
91
92
|
};
|
|
92
93
|
exports.urlTypeMap = urlTypeMap;
|
|
93
94
|
var respCodeMap = {
|
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
|
|
|
@@ -219,6 +219,18 @@ var newParseUrl = function newParseUrl(urlObj) {
|
|
|
219
219
|
};
|
|
220
220
|
break;
|
|
221
221
|
|
|
222
|
+
case _constants.urlTypeMap.AFFILIATE_MISSION_DETAIL:
|
|
223
|
+
// affiliate mission detail
|
|
224
|
+
link = "/taskDetail/" + value;
|
|
225
|
+
params = {
|
|
226
|
+
action: 'jump',
|
|
227
|
+
params: {
|
|
228
|
+
type: 'AFFILIATE_MISSION_DETAIL',
|
|
229
|
+
url: value
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
break;
|
|
233
|
+
|
|
222
234
|
default:
|
|
223
235
|
var map = {
|
|
224
236
|
'/main/cart': 'CART',
|
|
@@ -236,7 +248,8 @@ var newParseUrl = function newParseUrl(urlObj) {
|
|
|
236
248
|
'/social-commerce/my-cashback': 'CASHBACK',
|
|
237
249
|
'/account/wallet': 'WEBVIEW',
|
|
238
250
|
'/product/GroupBuy': 'GROUP',
|
|
239
|
-
'/search-page': 'SEARCH_PAGE'
|
|
251
|
+
'/search-page': 'SEARCH_PAGE',
|
|
252
|
+
'/commission': 'COMMISSION'
|
|
240
253
|
};
|
|
241
254
|
params = {
|
|
242
255
|
action: 'jump',
|
|
@@ -375,7 +388,8 @@ var parseUrl = function parseUrl(url) {
|
|
|
375
388
|
'/account/wallet': 'WEBVIEW',
|
|
376
389
|
'/product/GroupBuy': 'GROUP',
|
|
377
390
|
'/search-page': 'SEARCH_PAGE',
|
|
378
|
-
'/main/my-commission': 'WALLET'
|
|
391
|
+
'/main/my-commission': 'WALLET',
|
|
392
|
+
'/commission': 'COMMISSION'
|
|
379
393
|
};
|
|
380
394
|
link = url;
|
|
381
395
|
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
|