From eeea0d1740d3c1bfb90550fd0fbdf39bbc84faf6 Mon Sep 17 00:00:00 2001 From: w-R <953969641@qq.com> Date: Fri, 29 Apr 2022 09:32:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=A4=BE=E7=BE=A4=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E4=B8=8A=E4=BC=A0=E6=97=B6=E9=97=B4,=E9=A6=96?= =?UTF-8?q?=E9=A1=B5banner=E8=B7=B3=E8=BD=AC;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/home/huixiang_view/huixiang_banner.dart | 6 +++--- lib/union/union_view/union_coupon.dart | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/home/huixiang_view/huixiang_banner.dart b/lib/home/huixiang_view/huixiang_banner.dart index e4361723..a57b800c 100644 --- a/lib/home/huixiang_view/huixiang_banner.dart +++ b/lib/home/huixiang_view/huixiang_banner.dart @@ -83,11 +83,11 @@ class _HuiXiangBanner extends State { break; case 4: String router = bannerData.content; + // String router = "/router/store_order?{\"id\":\"1512378184161558528\",\"tenant\":\"1188\",\"storeName\":\"农场煮意\"}"; if (router.contains("?")) { - String params = router.substring(router.indexOf("?")); - params = params.replaceAll("?", ""); + String params = router.substring(router.indexOf("?")+1); Map map = jsonDecode(params); - Navigator.of(context).pushNamed(router, arguments: map); + Navigator.of(context).pushNamed(router.substring(0,router.indexOf("?")), arguments: map); } else { Navigator.of(context).pushNamed(router); } diff --git a/lib/union/union_view/union_coupon.dart b/lib/union/union_view/union_coupon.dart index ad38744f..b9c2ef64 100644 --- a/lib/union/union_view/union_coupon.dart +++ b/lib/union/union_view/union_coupon.dart @@ -126,7 +126,7 @@ class _UnionCoupon extends State { .bizType == 5) ? S.of(context).duihuanquan - : "${widget.storeInfo.couponVOList[position].discountPercent ~/ 10}折", + : "${widget.storeInfo.couponVOList[position].discountPercent / 10.0}折", style: TextStyle( fontSize: 36.sp, color: Color(0xFFFF7A1A),