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 {
textField in
var max = -1
if detailItem.type == .educationMajor ||
detailItem.type == .educationCity {
if detailItem.type == .educationMajor {
max = 50
} else if detailItem.type == .educationCity {
max = 100
}
......
......@@ -285,9 +285,9 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
if detailItem.type == .childName ||
detailItem.type == .everName {
max = 30
} else if detailItem.type == .birthCity ||
detailItem.type == .occupationName
{
} else if detailItem.type == .occupationName {
max = 50
} else if detailItem.type == .birthCity {
max = 100
}
......
......@@ -244,6 +244,8 @@ extension YHBrotherInfoVC : UITableViewDelegate, UITableViewDataSource {
var max = -1
if detailItem.type == .brotherName {
max = 30
} else if detailItem.type == .occupationName {
max = 50
} else if detailItem.type == .birthCity {
max = 100
}
......
......@@ -287,9 +287,10 @@ extension YHParentInfoVC : UITableViewDelegate, UITableViewDataSource {
if detailItem.type == .fatherName ||
detailItem.type == .motherName {
max = 30
} else if detailItem.type == .birthCity ||
detailItem.type == .occupationName
{
} else if detailItem.type == .occupationName {
max = 50
} else if detailItem.type == .birthCity {
max = 100
}
......
......@@ -411,9 +411,9 @@ extension YHSpouseBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
if detailItem.type == .spouseName ||
detailItem.type == .everName {
max = 30
} else if detailItem.type == .birthCity ||
detailItem.type == .occupationName
{
} else if detailItem.type == .occupationName {
max = 50
} else if detailItem.type == .birthCity {
max = 100
}
......
......@@ -36,6 +36,7 @@ class YHUserInfoHeaderView: UIView {
private lazy var userNameLabel:UILabel = {
let label = UILabel()
label.text = "登录/注册".local
label.textColor = UIColor(hexString:"##242424")
label.textAlignment = NSTextAlignment.left
label.font = UIFont.PFSC_B(ofSize: 21)
......@@ -47,6 +48,7 @@ class YHUserInfoHeaderView: UIView {
private lazy var infoLabel:UILabel = {
let label = UILabel()
label.text = "点赞 0 收藏 0 最近浏览 0".local
label.textColor = UIColor(hexString:"#949DB5")
label.textAlignment = NSTextAlignment.left
label.font = UIFont.PFSC_R(ofSize: 13)
......@@ -60,16 +62,17 @@ class YHUserInfoHeaderView: UIView {
private lazy var evaluateLabel:UILabel = {
let label = UILabel()
label.text = "香港身份20秒极速测评".local
label.textColor = UIColor(hexString:"#242424")
label.textAlignment = NSTextAlignment.left
label.font = UIFont.PFSC_R(ofSize: 17)
label.font = UIFont.PFSC_M(ofSize: 17)
return label
}()
private lazy var evaluateBtn: UIButton = {
let btn = UIButton()
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.backgroundColor = UIColor(hexString:"#242424")
btn.layer.cornerRadius = 6.0
......@@ -125,11 +128,7 @@ class YHUserInfoHeaderView: UIView {
evaluateView.addSubview(evaluateBgImgView)
evaluateView.addSubview(evaluateLabel)
evaluateView.addSubview(evaluateBtn)
userNameLabel.text = "登录/注册".local
infoLabel.text = "点赞 0 收藏 0 最近浏览 0".local
evaluateLabel.text = "香港身份20秒极速测评".local
bgImgView.snp.makeConstraints { make in
make.left.right.equalTo(self)
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