Browse Source

弹窗更改

remove_uniapp
w-R 3 years ago
parent
commit
117e5a7809
  1. 8
      lib/settlement/settlement.dart
  2. 6
      lib/view_widget/tips_dialog.dart

8
lib/settlement/settlement.dart

@ -153,7 +153,7 @@ class _Settlement extends State<Settlement> {
minOrderInfo = baseData.data; minOrderInfo = baseData.data;
}); });
}else{ }else{
SmartDialog.showToast(baseData.msg, alignment: Alignment.center); SmartDialog.showToast(baseData?.msg, alignment: Alignment.center);
} }
} }
@ -614,14 +614,14 @@ class _Settlement extends State<Settlement> {
); );
if (pro != null) { if (pro != null) {
this.promotion = pro; this.promotion = pro;
promotions = promotion.name; promotions = promotion?.name ?? "";
coupons = ""; coupons = "";
queryOrderInfo( queryOrderInfo(
address != null ? address.id : null, address?.id,
selectedBtn, selectedBtn,
null, null,
0, 0,
promotion != null ? promotion.id : null, promotion?.id,
); );
} }
} }

6
lib/view_widget/tips_dialog.dart

@ -38,7 +38,7 @@ class _Tips extends State<Tips> {
child: Text( child: Text(
widget.text ?? S.of(context).querenyaoshanchudangqianpinglunma, widget.text ?? S.of(context).querenyaoshanchudangqianpinglunma,
style: TextStyle( style: TextStyle(
fontSize: 17.sp, fontSize: 15.sp,
fontWeight: MyFontWeight.medium, fontWeight: MyFontWeight.medium,
color: Color(0xFF353535), color: Color(0xFF353535),
), ),
@ -65,7 +65,7 @@ class _Tips extends State<Tips> {
child: Text( child: Text(
S.of(context).quxiao, S.of(context).quxiao,
style: TextStyle( style: TextStyle(
fontSize: 17.sp, fontSize: 16.sp,
fontWeight: MyFontWeight.medium, fontWeight: MyFontWeight.medium,
color: Color(0xFF353535), color: Color(0xFF353535),
), ),
@ -91,7 +91,7 @@ class _Tips extends State<Tips> {
child: Text( child: Text(
S.of(context).queren, S.of(context).queren,
style: TextStyle( style: TextStyle(
fontSize: 17.sp, fontSize: 16.sp,
fontWeight: MyFontWeight.medium, fontWeight: MyFontWeight.medium,
color: Color(0xFF32A060), color: Color(0xFF32A060),
), ),

Loading…
Cancel
Save