Commit e741ca53 authored by David黄金龙's avatar David黄金龙

UI 微调

parent 8dc576d5
......@@ -50,8 +50,6 @@ class YHServiceCenterMainViewController: YHBaseViewController {
override func viewDidLoad() {
super.viewDidLoad()
setupUI()
loadData()
}
}
......
......@@ -39,8 +39,8 @@ class YHLoginTipsView: UIView {
private lazy var tipsLab : UILabel = {
let lable = UILabel()
lable.textColor = UIColor(red: 0.533, green: 0.561, blue: 0.596, alpha: 1)
lable.font = kFont(size: 14)
lable.textColor = UIColor.labelTextColor2
lable.font = UIFont.PFSC_R(ofSize: 14)
lable.textAlignment = .center
lable.text = "登录后可以查看"
return lable
......@@ -49,10 +49,10 @@ class YHLoginTipsView: UIView {
private lazy var loginBtn : UIButton = {
let btn = UIButton(type: .custom)
btn.setTitle("去登录", for: .normal)
btn.setBackgroundImage(UIImage.from(color: UIColor(hex: 0x4D9FF8, alpha: 1.0), rect: CGRect(x: 0, y: 0, width: 10, height: 10)), for: .normal)
btn.layer.cornerRadius = 8
btn.layer.cornerRadius = kCornerRadius6
btn.clipsToBounds = true
btn.titleLabel?.font = kFont(size: 12)
btn.titleLabel?.font = UIFont.PFSC_M(ofSize: 12)
btn.setTitleColor(.white, for: .normal)
return btn
}()
......@@ -61,7 +61,6 @@ class YHLoginTipsView: UIView {
initView()
}
private func initView() {
addSubview(iconImgV)
iconImgV.snp.makeConstraints { make in
......@@ -88,6 +87,8 @@ class YHLoginTipsView: UIView {
}
loginBtn.addTarget(self, action: #selector(clickLoginBtn), for: .touchUpInside)
loginBtn.layoutIfNeeded()
loginBtn.backgroundGradient()
}
required init?(coder: NSCoder) {
......
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