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

2
lib/union/union_view/union_coupon.dart

@ -126,7 +126,7 @@ class _UnionCoupon extends State<UnionCoupon> {
.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),

Loading…
Cancel
Save