Commit c0ba6d98ed22768f1cb4e3494df8441452e56f1e
1 parent
50523572
提交
Showing
3 changed files
with
19 additions
and
0 deletions
CNLiveServiceCenterModule/Classes/CNLiveServiceCenterModule/Controller/CNLiveBServiceCenterController.m
| @@ -109,6 +109,10 @@ | @@ -109,6 +109,10 @@ | ||
| 109 | [super viewWillAppear:animated]; | 109 | [super viewWillAppear:animated]; |
| 110 | self.navigationController.navigationBarHidden = YES; | 110 | self.navigationController.navigationBarHidden = YES; |
| 111 | [self loadStatus]; | 111 | [self loadStatus]; |
| 112 | + if (self.headerView) { | ||
| 113 | + [self.headerView eidtHeaderView]; | ||
| 114 | + } | ||
| 115 | + | ||
| 112 | 116 | ||
| 113 | } | 117 | } |
| 114 | 118 |
CNLiveServiceCenterModule/Classes/CNLiveServiceCenterModule/View/CNLiveBServiceCenterHeaderView.h
| @@ -16,6 +16,8 @@ NS_ASSUME_NONNULL_BEGIN | @@ -16,6 +16,8 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 16 | /*** 服务页面背景 ***/ | 16 | /*** 服务页面背景 ***/ |
| 17 | @property (nonatomic, strong) UIImageView *bgHeaderImageV; | 17 | @property (nonatomic, strong) UIImageView *bgHeaderImageV; |
| 18 | 18 | ||
| 19 | +- (void)eidtHeaderView; | ||
| 20 | + | ||
| 19 | - (void)configUIWithIsPerson:(NSString *)isPerson isEnterprise:(NSString *)isEnterprise; | 21 | - (void)configUIWithIsPerson:(NSString *)isPerson isEnterprise:(NSString *)isEnterprise; |
| 20 | 22 | ||
| 21 | @property (nonatomic, strong) CNLiveBServiceCenterModel *model; | 23 | @property (nonatomic, strong) CNLiveBServiceCenterModel *model; |
CNLiveServiceCenterModule/Classes/CNLiveServiceCenterModule/View/CNLiveBServiceCenterHeaderView.m
| @@ -196,6 +196,19 @@ | @@ -196,6 +196,19 @@ | ||
| 196 | } | 196 | } |
| 197 | 197 | ||
| 198 | #pragma mark - editUI | 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 | - (void)configUIWithIsPerson:(NSString *)isPerson isEnterprise:(NSString *)isEnterprise { | 212 | - (void)configUIWithIsPerson:(NSString *)isPerson isEnterprise:(NSString *)isEnterprise { |
| 200 | 213 | ||
| 201 | if ([isPerson isEqualToString:@"1"]) { | 214 | if ([isPerson isEqualToString:@"1"]) { |