Browse Source

更新社群视频上传时间,首页banner跳转;

remove_uniapp
w-R 3 years ago
parent
commit
eeea0d1740
  1. 6
      lib/home/huixiang_view/huixiang_banner.dart
  2. 2
      lib/union/union_view/union_coupon.dart

6
lib/home/huixiang_view/huixiang_banner.dart

@ -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);
} }

2
lib/union/union_view/union_coupon.dart

@ -126,7 +126,7 @@ class _UnionCoupon extends State<UnionCoupon> {
.bizType == .bizType ==
5) 5)
? S.of(context).duihuanquan ? S.of(context).duihuanquan
: "${widget.storeInfo.couponVOList[position].discountPercent ~/ 10}", : "${widget.storeInfo.couponVOList[position].discountPercent / 10.0}",
style: TextStyle( style: TextStyle(
fontSize: 36.sp, fontSize: 36.sp,
color: Color(0xFFFF7A1A), color: Color(0xFFFF7A1A),

Loading…
Cancel
Save