|
|
@ -83,11 +83,11 @@ class _HuiXiangBanner extends State<HuiXiangBanner> { |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 4: |
|
|
|
case 4: |
|
|
|
String router = bannerData.content; |
|
|
|
String router = bannerData.content; |
|
|
|
|
|
|
|
// String router = "/router/store_order?{\"id\":\"1512378184161558528\",\"tenant\":\"1188\",\"storeName\":\"农场煮意\"}"; |
|
|
|
if (router.contains("?")) { |
|
|
|
if (router.contains("?")) { |
|
|
|
String params = router.substring(router.indexOf("?")); |
|
|
|
String params = router.substring(router.indexOf("?")+1); |
|
|
|
params = params.replaceAll("?", ""); |
|
|
|
|
|
|
|
Map map = jsonDecode(params); |
|
|
|
Map map = jsonDecode(params); |
|
|
|
Navigator.of(context).pushNamed(router, arguments: map); |
|
|
|
Navigator.of(context).pushNamed(router.substring(0,router.indexOf("?")), arguments: map); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
Navigator.of(context).pushNamed(router); |
|
|
|
Navigator.of(context).pushNamed(router); |
|
|
|
} |
|
|
|
} |
|
|
|