Commit 8be31236 authored by David黄金龙's avatar David黄金龙

按钮添加 渐变

parent ce0bd010
...@@ -47,12 +47,12 @@ class YHBottomNextView: UIView { ...@@ -47,12 +47,12 @@ class YHBottomNextView: UIView {
nextButton = { nextButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex:0x4d9ff8)
button.titleLabel?.font = UIFont.PFSC_M(ofSize: 15) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 15)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("下一步", for: .normal) button.setTitle("下一步", for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal) button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
button.layer.cornerRadius = kCornerRadius6 button.layer.cornerRadius = kCornerRadius6
button.clipsToBounds = true
button.addTarget(self, action: #selector(goNext), for: .touchUpInside) button.addTarget(self, action: #selector(goNext), for: .touchUpInside)
return button return button
}() }()
...@@ -63,6 +63,10 @@ class YHBottomNextView: UIView { ...@@ -63,6 +63,10 @@ class YHBottomNextView: UIView {
make.height.equalTo(44) make.height.equalTo(44)
make.width.equalTo(247) make.width.equalTo(247)
} }
nextButton.layoutIfNeeded()
nextButton.backgroundGradient()
} }
......
...@@ -112,7 +112,7 @@ class YHCardExampleView: UIView { ...@@ -112,7 +112,7 @@ class YHCardExampleView: UIView {
let label = UILabel() let label = UILabel()
label.text = "*须使用二代身份证" label.text = "*须使用二代身份证"
label.font = UIFont.PFSC_R(ofSize: 14) label.font = UIFont.PFSC_R(ofSize: 14)
label.textColor = UIColor(hex:0xc0c0c0) label.textColor = UIColor.placeHolderColor
label.textAlignment = .left label.textAlignment = .left
label.numberOfLines = 0 label.numberOfLines = 0
return label return label
......
...@@ -79,7 +79,7 @@ class YHCodeSueecssViewController: YHBaseViewController { ...@@ -79,7 +79,7 @@ class YHCodeSueecssViewController: YHBaseViewController {
let label = UILabel() let label = UILabel()
label.text = "已发送至 \(phoneNumber ?? "")" label.text = "已发送至 \(phoneNumber ?? "")"
label.font = UIFont.PFSC_R(ofSize: 13) label.font = UIFont.PFSC_R(ofSize: 13)
label.textColor = UIColor(hex:0xc0c0c0) label.textColor = UIColor.placeHolderColor
return label return label
}() }()
view.addSubview(loginSubTitleLabel) view.addSubview(loginSubTitleLabel)
...@@ -115,7 +115,7 @@ class YHCodeSueecssViewController: YHBaseViewController { ...@@ -115,7 +115,7 @@ class YHCodeSueecssViewController: YHBaseViewController {
let button = UILabel() let button = UILabel()
button.font = UIFont.PFSC_M(ofSize: 12) button.font = UIFont.PFSC_M(ofSize: 12)
button.text = "重新发送(58s)" button.text = "重新发送(58s)"
button.textColor = UIColor(hex:0xc0c0c0) button.textColor = UIColor.placeHolderColor
button.textAlignment = .center button.textAlignment = .center
button.isHidden = false button.isHidden = false
button.layer.cornerRadius = 4 button.layer.cornerRadius = 4
......
...@@ -97,7 +97,7 @@ class YHPhoneLoginViewController: YHBaseViewController { ...@@ -97,7 +97,7 @@ class YHPhoneLoginViewController: YHBaseViewController {
let label = UILabel() let label = UILabel()
label.text = "手机号首次登录自动注册" label.text = "手机号首次登录自动注册"
label.font = UIFont.PFSC_R(ofSize: 13) label.font = UIFont.PFSC_R(ofSize: 13)
label.textColor = UIColor(hex:0xc0c0c0) label.textColor = UIColor.placeHolderColor
return label return label
}() }()
view.addSubview(loginSubTitleLabel) view.addSubview(loginSubTitleLabel)
......
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