diff --git a/lib/model/user/user_info_model.dart b/lib/model/user/user_info_model.dart index 869a9a5e..47a56716 100644 --- a/lib/model/user/user_info_model.dart +++ b/lib/model/user/user_info_model.dart @@ -37,7 +37,7 @@ class UserInfoModel { UserInfoModel.fromJson(Map 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']; diff --git a/lib/pages/things_page/fixed_submit_page.dart b/lib/pages/things_page/fixed_submit_page.dart index 35201bae..60cb13be 100644 --- a/lib/pages/things_page/fixed_submit_page.dart +++ b/lib/pages/things_page/fixed_submit_page.dart @@ -147,17 +147,17 @@ class _FixedSubmitPageState extends State { 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();