浏览代码

地址列表展示优化

Abel 1 年之前
父节点
当前提交
a1bba85227

+ 2 - 1
Asteria/Fuction/UserCenter/Address/ASMineAddressCell.m

@@ -29,7 +29,8 @@
         self.titleLB.text = @"Other Address";
     }
     self.nameLB.text = [NSString stringWithFormat:@"%@ %@",m.lastname,m.firstname];
-    self.addressLB.text = [NSString stringWithFormat:@"%@,%@,%@",m.city,m.region,m.street];
+    NSString *street = [m.street componentsJoinedByString:@" "];
+    self.addressLB.text = [NSString stringWithFormat:@"%@,%@,%@",m.city,m.region.region,street];
     self.codeLB.text = m.postcode;//[NSString stringWithFormat:@""]
     self.countryLB.text = m.country;
     self.phoneLB.text = [NSString stringWithFormat:@"T:%@",m.telephone];

+ 1 - 1
Asteria/Fuction/UserManager/info/ASUserModel.h

@@ -32,7 +32,7 @@ NS_ASSUME_NONNULL_BEGIN
 @property (nonatomic, copy) NSString *region_id;
 @property (nonatomic, copy) NSString *country_id;
 @property (nonatomic, copy) NSString *country;
-@property (nonatomic, copy) NSString *street;
+@property (nonatomic, strong) NSArray <NSString *>*street;
 @property (nonatomic, copy) NSString *company;
 @property (nonatomic, copy) NSString *telephone;
 @property (nonatomic, copy) NSString *postcode;