5
0

2 کامیت‌ها 4499247657 ... f42c19e6db

نویسنده SHA1 پیام تاریخ
  zk f42c19e6db [fix]移除联系人创建时间 4 ماه پیش
  zk d5b54f3481 [fix]解决会员页返回报错的问题 4 ماه پیش
3فایلهای تغییر یافته به همراه4 افزوده شده و 6 حذف شده
  1. 1 4
      lib/data/bean/contact_info.dart
  2. 0 2
      lib/data/bean/contact_info.g.dart
  3. 3 0
      lib/module/member/member_page.dart

+ 1 - 4
lib/data/bean/contact_info.dart

@@ -16,10 +16,7 @@ class ContactInfo {
   @JsonKey(name: 'favor')
   bool? favor;
 
-  @JsonKey(name: 'createTime')
-  int createTime;
-
-  ContactInfo(this.id, this.phone, this.remark, this.favor, this.createTime);
+  ContactInfo(this.id, this.phone, this.remark, this.favor);
 
   factory ContactInfo.fromJson(Map<String, dynamic> json) =>
       _$ContactInfoFromJson(json);

+ 0 - 2
lib/data/bean/contact_info.g.dart

@@ -11,7 +11,6 @@ ContactInfo _$ContactInfoFromJson(Map<String, dynamic> json) => ContactInfo(
       json['phone'] as String,
       json['remark'] as String?,
       json['favor'] as bool?,
-      (json['createTime'] as num).toInt(),
     );
 
 Map<String, dynamic> _$ContactInfoToJson(ContactInfo instance) =>
@@ -20,5 +19,4 @@ Map<String, dynamic> _$ContactInfoToJson(ContactInfo instance) =>
       'phone': instance.phone,
       'remark': instance.remark,
       'favor': instance.favor,
-      'createTime': instance.createTime,
     };

+ 3 - 0
lib/module/member/member_page.dart

@@ -62,6 +62,9 @@ class MemberPage extends BasePage<MemberController> {
           return PopScope(
       canPop: false,
       onPopInvokedWithResult: (bool didPop, dynamic result) async {
+        if (didPop) {
+          return;
+        }
         controller.onPopBack();
       },
       child: Stack(