Commit c0ba6d98ed22768f1cb4e3494df8441452e56f1e
1 parent
50523572
提交
Showing
3 changed files
with
19 additions
and
0 deletions
CNLiveServiceCenterModule/Classes/CNLiveServiceCenterModule/Controller/CNLiveBServiceCenterController.m
CNLiveServiceCenterModule/Classes/CNLiveServiceCenterModule/View/CNLiveBServiceCenterHeaderView.h
| ... | ... | @@ -16,6 +16,8 @@ NS_ASSUME_NONNULL_BEGIN |
| 16 | 16 | /*** 服务页面背景 ***/ |
| 17 | 17 | @property (nonatomic, strong) UIImageView *bgHeaderImageV; |
| 18 | 18 | |
| 19 | +- (void)eidtHeaderView; | |
| 20 | + | |
| 19 | 21 | - (void)configUIWithIsPerson:(NSString *)isPerson isEnterprise:(NSString *)isEnterprise; |
| 20 | 22 | |
| 21 | 23 | @property (nonatomic, strong) CNLiveBServiceCenterModel *model; | ... | ... |
CNLiveServiceCenterModule/Classes/CNLiveServiceCenterModule/View/CNLiveBServiceCenterHeaderView.m
| ... | ... | @@ -196,6 +196,19 @@ |
| 196 | 196 | } |
| 197 | 197 | |
| 198 | 198 | #pragma mark - editUI |
| 199 | + | |
| 200 | +- (void)eidtHeaderView { | |
| 201 | + | |
| 202 | + //用户信息 | |
| 203 | + NSString *userImagUrl = [NSString stringWithFormat:@"%@",CNUserShareModel.faceUrl]; | |
| 204 | + [self.userImageV sd_setImageWithURL:[NSURL URLWithString:userImagUrl] placeholderImage:[UIImage imageNamedFromService:@"service_person"]]; | |
| 205 | + NSString *userName = [NSString stringWithFormat:@"%@",CNUserShareModel.nickname ? CNUserShareModel.nickname : @""]; | |
| 206 | + self.userNameL.text = userName; | |
| 207 | + NSString *userLoc = [NSString stringWithFormat:@"%@",CNUserShareModel.location ? CNUserShareModel.location : @""]; | |
| 208 | + self.locationL.text = userLoc; | |
| 209 | + | |
| 210 | +} | |
| 211 | + | |
| 199 | 212 | - (void)configUIWithIsPerson:(NSString *)isPerson isEnterprise:(NSString *)isEnterprise { |
| 200 | 213 | |
| 201 | 214 | if ([isPerson isEqualToString:@"1"]) { | ... | ... |