Browse Source

套餐价格处理

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

7
lib/store/store_view/product_meals_sku.dart

@ -742,7 +742,8 @@ class _ProductMealsSku extends State<ProductMealsSku> {
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<ProductMealsSku> {
),
),
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(

Loading…
Cancel
Save