@fonixtree/magic-design 0.1.96 → 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/utils/businessUtil.js +33 -7
- package/lib/utils/businessUtil.js +33 -7
- package/package.json +1 -1
package/es/utils/businessUtil.js
CHANGED
|
@@ -251,14 +251,40 @@ var newParseUrl = function newParseUrl(urlObj) {
|
|
|
251
251
|
'/search-page': 'SEARCH_PAGE',
|
|
252
252
|
'/commission': 'COMMISSION'
|
|
253
253
|
};
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
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
|
+
};
|
|
260
276
|
}
|
|
261
|
-
}
|
|
277
|
+
} else {
|
|
278
|
+
params = {
|
|
279
|
+
action: 'jump',
|
|
280
|
+
params: {
|
|
281
|
+
type: typeTemp || name,
|
|
282
|
+
link: link,
|
|
283
|
+
url: link
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
|
|
262
288
|
}
|
|
263
289
|
|
|
264
290
|
return {
|
|
@@ -251,14 +251,40 @@ var newParseUrl = function newParseUrl(urlObj) {
|
|
|
251
251
|
'/search-page': 'SEARCH_PAGE',
|
|
252
252
|
'/commission': 'COMMISSION'
|
|
253
253
|
};
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
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
|
+
};
|
|
260
276
|
}
|
|
261
|
-
}
|
|
277
|
+
} else {
|
|
278
|
+
params = {
|
|
279
|
+
action: 'jump',
|
|
280
|
+
params: {
|
|
281
|
+
type: typeTemp || name,
|
|
282
|
+
link: link,
|
|
283
|
+
url: link
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
|
|
262
288
|
}
|
|
263
289
|
|
|
264
290
|
return {
|