Browse Source

套餐价格空安全处理

wr_2023_new_business_new
wurong 4 months ago
parent
commit
4d0e455886
  1. 4
      lib/store/store_view/product_meals_sku.dart

4
lib/store/store_view/product_meals_sku.dart

@ -762,7 +762,7 @@ class _ProductMealsSku extends State<ProductMealsSku> {
color: Color(0xFFF65720), color: Color(0xFFF65720),
), ),
), ),
if(productInfoList.skuInfoList[0].skuPrice.contains(".")) if((productInfoList.skuInfoList[0].skuPrice??"").contains("."))
TextSpan( TextSpan(
text:".", text:".",
style: TextStyle( style: TextStyle(
@ -771,7 +771,7 @@ class _ProductMealsSku extends State<ProductMealsSku> {
color: Color(0xFFF65720), color: Color(0xFFF65720),
), ),
), ),
if(productInfoList.skuInfoList[0].skuPrice.contains(".")) if((productInfoList.skuInfoList[0].skuPrice ?? "").contains("."))
TextSpan( TextSpan(
text:(productInfoList.skuInfoList[0].skuPrice ?? "").split(".")[1], text:(productInfoList.skuInfoList[0].skuPrice ?? "").split(".")[1],
style: TextStyle( style: TextStyle(

Loading…
Cancel
Save