Commit 0ee59eb8 authored by Steven杜宇's avatar Steven杜宇

// 我的tab

parent aa9f6def
......@@ -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
......@@ -126,10 +129,6 @@ class YHUserInfoHeaderView: UIView {
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