Commit 1d3d2912 authored by David黄金龙's avatar David黄金龙

Merge branch 'develop' of http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS into develop

* 'develop' of http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS:
  // 职业 字数限制
  // 我的tab
  //  专业限制
parents cdade403 966a6c0c
...@@ -215,8 +215,9 @@ extension YHEducationDetailVC : UITableViewDelegate, UITableViewDataSource { ...@@ -215,8 +215,9 @@ extension YHEducationDetailVC : UITableViewDelegate, UITableViewDataSource {
textField in textField in
var max = -1 var max = -1
if detailItem.type == .educationMajor || if detailItem.type == .educationMajor {
detailItem.type == .educationCity { max = 50
} else if detailItem.type == .educationCity {
max = 100 max = 100
} }
......
...@@ -285,9 +285,9 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource { ...@@ -285,9 +285,9 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
if detailItem.type == .childName || if detailItem.type == .childName ||
detailItem.type == .everName { detailItem.type == .everName {
max = 30 max = 30
} else if detailItem.type == .birthCity || } else if detailItem.type == .occupationName {
detailItem.type == .occupationName max = 50
{ } else if detailItem.type == .birthCity {
max = 100 max = 100
} }
......
...@@ -244,6 +244,8 @@ extension YHBrotherInfoVC : UITableViewDelegate, UITableViewDataSource { ...@@ -244,6 +244,8 @@ extension YHBrotherInfoVC : UITableViewDelegate, UITableViewDataSource {
var max = -1 var max = -1
if detailItem.type == .brotherName { if detailItem.type == .brotherName {
max = 30 max = 30
} else if detailItem.type == .occupationName {
max = 50
} else if detailItem.type == .birthCity { } else if detailItem.type == .birthCity {
max = 100 max = 100
} }
......
...@@ -287,9 +287,10 @@ extension YHParentInfoVC : UITableViewDelegate, UITableViewDataSource { ...@@ -287,9 +287,10 @@ extension YHParentInfoVC : UITableViewDelegate, UITableViewDataSource {
if detailItem.type == .fatherName || if detailItem.type == .fatherName ||
detailItem.type == .motherName { detailItem.type == .motherName {
max = 30 max = 30
} else if detailItem.type == .birthCity ||
detailItem.type == .occupationName } else if detailItem.type == .occupationName {
{ max = 50
} else if detailItem.type == .birthCity {
max = 100 max = 100
} }
......
...@@ -411,9 +411,9 @@ extension YHSpouseBasicInfoVC : UITableViewDelegate, UITableViewDataSource { ...@@ -411,9 +411,9 @@ extension YHSpouseBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
if detailItem.type == .spouseName || if detailItem.type == .spouseName ||
detailItem.type == .everName { detailItem.type == .everName {
max = 30 max = 30
} else if detailItem.type == .birthCity || } else if detailItem.type == .occupationName {
detailItem.type == .occupationName max = 50
{ } else if detailItem.type == .birthCity {
max = 100 max = 100
} }
......
...@@ -36,6 +36,7 @@ class YHUserInfoHeaderView: UIView { ...@@ -36,6 +36,7 @@ class YHUserInfoHeaderView: UIView {
private lazy var userNameLabel:UILabel = { private lazy var userNameLabel:UILabel = {
let label = UILabel() let label = UILabel()
label.text = "登录/注册".local
label.textColor = UIColor(hexString:"##242424") label.textColor = UIColor(hexString:"##242424")
label.textAlignment = NSTextAlignment.left label.textAlignment = NSTextAlignment.left
label.font = UIFont.PFSC_B(ofSize: 21) label.font = UIFont.PFSC_B(ofSize: 21)
...@@ -47,6 +48,7 @@ class YHUserInfoHeaderView: UIView { ...@@ -47,6 +48,7 @@ class YHUserInfoHeaderView: UIView {
private lazy var infoLabel:UILabel = { private lazy var infoLabel:UILabel = {
let label = UILabel() let label = UILabel()
label.text = "点赞 0 收藏 0 最近浏览 0".local
label.textColor = UIColor(hexString:"#949DB5") label.textColor = UIColor(hexString:"#949DB5")
label.textAlignment = NSTextAlignment.left label.textAlignment = NSTextAlignment.left
label.font = UIFont.PFSC_R(ofSize: 13) label.font = UIFont.PFSC_R(ofSize: 13)
...@@ -60,16 +62,17 @@ class YHUserInfoHeaderView: UIView { ...@@ -60,16 +62,17 @@ class YHUserInfoHeaderView: UIView {
private lazy var evaluateLabel:UILabel = { private lazy var evaluateLabel:UILabel = {
let label = UILabel() let label = UILabel()
label.text = "香港身份20秒极速测评".local
label.textColor = UIColor(hexString:"#242424") label.textColor = UIColor(hexString:"#242424")
label.textAlignment = NSTextAlignment.left label.textAlignment = NSTextAlignment.left
label.font = UIFont.PFSC_R(ofSize: 17) label.font = UIFont.PFSC_M(ofSize: 17)
return label return label
}() }()
private lazy var evaluateBtn: UIButton = { private lazy var evaluateBtn: UIButton = {
let btn = UIButton() let btn = UIButton()
btn.setTitle("免费测评", for: .normal) btn.setTitle("免费测评", for: .normal)
btn.titleLabel?.font = UIFont.PFSC_R(ofSize: 12) btn.titleLabel?.font = UIFont.PFSC_M(ofSize: 12)
btn.setTitleColor(.white, for: .normal) btn.setTitleColor(.white, for: .normal)
btn.backgroundColor = UIColor(hexString:"#242424") btn.backgroundColor = UIColor(hexString:"#242424")
btn.layer.cornerRadius = 6.0 btn.layer.cornerRadius = 6.0
...@@ -126,10 +129,6 @@ class YHUserInfoHeaderView: UIView { ...@@ -126,10 +129,6 @@ class YHUserInfoHeaderView: UIView {
evaluateView.addSubview(evaluateLabel) evaluateView.addSubview(evaluateLabel)
evaluateView.addSubview(evaluateBtn) evaluateView.addSubview(evaluateBtn)
userNameLabel.text = "登录/注册".local
infoLabel.text = "点赞 0 收藏 0 最近浏览 0".local
evaluateLabel.text = "香港身份20秒极速测评".local
bgImgView.snp.makeConstraints { make in bgImgView.snp.makeConstraints { make in
make.left.right.equalTo(self) make.left.right.equalTo(self)
let topMargin = (k_Height_StatusBar > 20.0 ? 0 : -24) let topMargin = (k_Height_StatusBar > 20.0 ? 0 : -24)
......
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