From aa5e98e75be063e7cc4bccf46af65df6dee794c9 Mon Sep 17 00:00:00 2001 From: wurong <953969641@qq.com> Date: Mon, 9 Sep 2024 16:24:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A5=97=E9=A4=90=E4=BB=B7=E6=A0=BC=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/store/store_view/product_meals_sku.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/store/store_view/product_meals_sku.dart b/lib/store/store_view/product_meals_sku.dart index 68890544..adb5991c 100644 --- a/lib/store/store_view/product_meals_sku.dart +++ b/lib/store/store_view/product_meals_sku.dart @@ -742,7 +742,8 @@ class _ProductMealsSku extends State { fontWeight: FontWeight.w600, ), ),), - Padding(padding:EdgeInsets.only(left:8.w,right:8.w), + if(double.tryParse(productInfoList.skuInfoList[0].skuPrice ?? 0) > 0) + Padding(padding:EdgeInsets.only(left:8.w,right:8.w), child:Text.rich( TextSpan( children: [ @@ -755,14 +756,14 @@ class _ProductMealsSku extends State { ), ), TextSpan( - text:(productInfoList.skuInfoList[0].skuPrice ?? "").split(".")[0], + text:(productInfoList.skuInfoList[0].skuPrice ?? "0").split(".")[0], style: TextStyle( fontWeight: FontWeight.bold, fontSize: 18.sp, color: Color(0xFFF65720), ), ), - if((productInfoList.skuInfoList[0].skuPrice??"").contains(".")) + if((productInfoList.skuInfoList[0].skuPrice??"0").contains(".")) TextSpan( text:".", style: TextStyle(