Commit 3ce58cfc authored by Steven杜宇's avatar Steven杜宇

// UI

parent 7464c0d2
...@@ -82,14 +82,14 @@ class YHMyEducationCell: UITableViewCell { ...@@ -82,14 +82,14 @@ class YHMyEducationCell: UITableViewCell {
let label = UILabel() let label = UILabel()
label.textColor = UIColor.mainTextColor label.textColor = UIColor.mainTextColor
label.textAlignment = .left label.textAlignment = .left
label.font = UIFont.PFSC_M(ofSize: 14) label.font = UIFont.PFSC_R(ofSize: 14)
label.numberOfLines = 0 label.numberOfLines = 0
return label return label
}() }()
lazy var detailLabel: UILabel = { lazy var detailLabel: UILabel = {
let label = UILabel() let label = UILabel()
label.textColor = UIColor.mainTextColor70 label.textColor = UIColor.brandGrayColor7
label.textAlignment = .left label.textAlignment = .left
label.font = UIFont.PFSC_R(ofSize: 14) label.font = UIFont.PFSC_R(ofSize: 14)
label.numberOfLines = 0 label.numberOfLines = 0
......
...@@ -49,7 +49,7 @@ class YHNameCardContainerViewController: YHBaseViewController { ...@@ -49,7 +49,7 @@ class YHNameCardContainerViewController: YHBaseViewController {
// tab // tab
lazy var segmentedView: JXSegmentedView = { lazy var segmentedView: JXSegmentedView = {
let view = JXSegmentedView(frame: CGRect(x: 0, y: 0, width: KScreenWidth, height: 30)) let view = JXSegmentedView(frame: CGRect(x: 0, y: 0, width: KScreenWidth, height: 48))
view.backgroundColor = .white view.backgroundColor = .white
return view return view
}() }()
...@@ -108,18 +108,19 @@ class YHNameCardContainerViewController: YHBaseViewController { ...@@ -108,18 +108,19 @@ class YHNameCardContainerViewController: YHBaseViewController {
indicator.indicatorHeight = 2.0 indicator.indicatorHeight = 2.0
indicator.indicatorColor = UIColor.brandGrayColor8 indicator.indicatorColor = UIColor.brandGrayColor8
indicator.indicatorCornerRadius = 0 indicator.indicatorCornerRadius = 0
indicator.verticalOffset = 4
segmentedView.indicators = [indicator] segmentedView.indicators = [indicator]
segmentedView.defaultSelectedIndex = defaultIndex segmentedView.defaultSelectedIndex = defaultIndex
view.addSubview(segmentedView) view.addSubview(segmentedView)
segmentedView.snp.makeConstraints { make in segmentedView.snp.makeConstraints { make in
make.left.right.top.equalToSuperview() make.left.right.top.equalToSuperview()
make.height.equalTo(30) make.height.equalTo(48)
} }
view.addSubview(listContainerView) view.addSubview(listContainerView)
listContainerView.snp.makeConstraints { make in listContainerView.snp.makeConstraints { make in
make.left.right.bottom.equalToSuperview() make.left.right.bottom.equalToSuperview()
make.top.equalTo(segmentedView.snp.bottom).offset(0.0) make.top.equalTo(segmentedView.snp.bottom).offset(0.0)
make.height.equalTo(KScreenHeight-k_Height_NavigationtBarAndStatuBar-30-k_Height_safeAreaInsetsBottom()-46-10) make.height.equalTo(KScreenHeight-k_Height_NavigationtBarAndStatuBar-48-k_Height_safeAreaInsetsBottom()-46-10)
} }
} }
} }
......
...@@ -70,8 +70,8 @@ class YHNewNameCardViewController: YHBaseViewController { ...@@ -70,8 +70,8 @@ class YHNewNameCardViewController: YHBaseViewController {
} }
view.addSubview(nameTextView) view.addSubview(nameTextView)
nameTextView.snp.makeConstraints { make in nameTextView.snp.makeConstraints { make in
make.left.equalTo(20) make.left.equalTo(15)
make.right.equalTo(-20) make.right.equalTo(-15)
make.top.equalTo(avatarImgView.snp.bottom).offset(12) make.top.equalTo(avatarImgView.snp.bottom).offset(12)
} }
view.addSubview(professionalLabel) view.addSubview(professionalLabel)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment