@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.
@@ -251,14 +251,40 @@ var newParseUrl = function newParseUrl(urlObj) {
251
251
  '/search-page': 'SEARCH_PAGE',
252
252
  '/commission': 'COMMISSION'
253
253
  };
254
- params = {
255
- action: 'jump',
256
- params: {
257
- type: map[link] || name,
258
- link: link,
259
- url: link
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
- params = {
255
- action: 'jump',
256
- params: {
257
- type: map[link] || name,
258
- link: link,
259
- url: link
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 {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "0.1.96",
4
+ "version": "0.1.98",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",