update delete dialog

hmxc
张萌 4 years ago
parent a12113225a
commit ded21ef0b5

@ -37,7 +37,7 @@ class UserInfoModel {
UserInfoModel.fromJson(Map<String, dynamic> json) {
id = json['id'];
if (json['imgUrls'] != null)
if (json['imgUrls'] != null&&(json['imgUrls'] as List).length!=0)
imgUrl = (json['imgUrls'] as List).first['url'];
name = json['name'];
nickName = json['nickName'];

@ -147,17 +147,17 @@ class _FixedSubmitPageState extends State<FixedSubmitPage> {
Widget _showDeletDialog() {
return CupertinoAlertDialog(
title: '删除订单'.text.black.size(34.sp).make(),
content: '您确定要删除订单吗?'.text.black.size(28.sp).make(),
title: '删除订单'.text.black.size(34.sp).isIntrinsic.make(),
content: '您确定要删除订单吗?'.text.black.size(28.sp).isIntrinsic.make(),
actions: [
CupertinoDialogAction(
child: '先等等'.text.black.size(34.sp).make(),
child: '先等等'.text.black.size(34.sp).isIntrinsic.make(),
onPressed: () {
Get.back();
},
),
CupertinoDialogAction(
child: '删除订单'.text.color(Color(0xFFFF8200)).size(34.sp).bold.make(),
child: '删除订单'.text.color(Color(0xFFFF8200)).size(34.sp).bold.isIntrinsic.make(),
onPressed: () {
ManagerFunc.reportRepairDelete(_selected);
Get.back();

Loading…
Cancel
Save