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

// UI

parent 7464c0d2
......@@ -82,14 +82,14 @@ class YHMyEducationCell: UITableViewCell {
let label = UILabel()
label.textColor = UIColor.mainTextColor
label.textAlignment = .left
label.font = UIFont.PFSC_M(ofSize: 14)
label.font = UIFont.PFSC_R(ofSize: 14)
label.numberOfLines = 0
return label
}()
lazy var detailLabel: UILabel = {
let label = UILabel()
label.textColor = UIColor.mainTextColor70
label.textColor = UIColor.brandGrayColor7
label.textAlignment = .left
label.font = UIFont.PFSC_R(ofSize: 14)
label.numberOfLines = 0
......
......@@ -49,7 +49,7 @@ class YHNameCardContainerViewController: YHBaseViewController {
// tab
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
return view
}()
......@@ -108,18 +108,19 @@ class YHNameCardContainerViewController: YHBaseViewController {
indicator.indicatorHeight = 2.0
indicator.indicatorColor = UIColor.brandGrayColor8
indicator.indicatorCornerRadius = 0
indicator.verticalOffset = 4
segmentedView.indicators = [indicator]
segmentedView.defaultSelectedIndex = defaultIndex
view.addSubview(segmentedView)
segmentedView.snp.makeConstraints { make in
make.left.right.top.equalToSuperview()
make.height.equalTo(30)
make.height.equalTo(48)
}
view.addSubview(listContainerView)
listContainerView.snp.makeConstraints { make in
make.left.right.bottom.equalToSuperview()
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 {
}
view.addSubview(nameTextView)
nameTextView.snp.makeConstraints { make in
make.left.equalTo(20)
make.right.equalTo(-20)
make.left.equalTo(15)
make.right.equalTo(-15)
make.top.equalTo(avatarImgView.snp.bottom).offset(12)
}
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