12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- //
- // SPSBDisplayIdentityCardViewController.m
- // 我的社保
- //
- // Created by jiaxian_he on 2021/5/19.
- //
- #import "SPSBDisplayIdentityCardViewController.h"
- #import "SPSBUIGeneralHeader.h"
- #import "SPSBKeyProfile.h"
- @interface SPSBDisplayIdentityCardViewController ()
- @end
- @implementation SPSBDisplayIdentityCardViewController
- - (void)viewDidLoad {
- [super viewDidLoad];
- [self setupUI];
- }
- #pragma mark - Action
- #pragma mark - NetworkAction
- #pragma mark - UI
- - (void)setupUI {
- self.title = @"身份信息";
- self.view.backgroundColor = spsb_F5F5F5_color();
-
- UILabel *tipsLabel = [UILabel convenienceWithFont:spsb_font(14) textColor:spsb_999999_color() limitWidth:jxh_screenWidth() - 30];
- [tipsLabel setAttributedStringWithText:[NSString stringWithFormat:@"若需修改身份证号码,请联系在线客服或拔打客服热线:%@", [jxh_userDefaults() objectForKey:SPSBCustomerServicePhone]] lineSpacing:4];
- [self.view addSubview:tipsLabel];
- [tipsLabel makeConstraints:^(JXHConstraintMaker *make) {
- make.leading.equalTo(15);
- make.top.equalTo(self.view.safetop).offset(20);
- make.trailing.equalTo(-15);
- }];
-
- UIView *backgroundView = UIView.new;
- backgroundView.backgroundColor = spsb_FFFFFF_color(1.f);
- [self.view addSubview:backgroundView];
- [backgroundView makeConstraints:^(JXHConstraintMaker *make) {
- make.top.equalTo(tipsLabel.bottom).offset(15);
- make.leading.and.trailing.equalTo(0);
- make.height.equalTo(44);
- }];
-
- UILabel *titleLabel = [UILabel convenienceWithFont:spsb_font(16) text:@"身份证号" textColor:spsb_333333_color()];
- [backgroundView addSubview:titleLabel];
- [titleLabel makeConstraints:^(JXHConstraintMaker *make) {
- make.leading.equalTo(15);
- make.centerY.equalTo(backgroundView);
- }];
-
- UILabel *contentLabel = [UILabel convenienceWithFont:spsb_font(16) text:_spsb_identityCardNum textColor:spsb_999999_color() textAlignment:NSTextAlignmentRight];
- [backgroundView addSubview:contentLabel];
- [contentLabel makeConstraints:^(JXHConstraintMaker *make) {
- make.trailing.equalTo(-15);
- make.centerY.equalTo(backgroundView);
- }];
-
- [backgroundView createLineWithLocation:JXHLineLocationTop headOffset:0 footOffset:0];
- [backgroundView createLineWithLocation:JXHLineLocationBottom headOffset:0 footOffset:0];
- }
- @end
|