Commit bae10749 authored by Steven杜宇's avatar Steven杜宇

// plan

parent b03926d3
...@@ -29,6 +29,13 @@ class YHPlanAnalyzeInfoView: UIView { ...@@ -29,6 +29,13 @@ class YHPlanAnalyzeInfoView: UIView {
return lable return lable
}() }()
lazy var lineView: UIView = {
let v = UIView()
v.backgroundColor = .init(hex: 0xF1E8E0)
v.backgroundColor = .init(hex: 0xE9ECF0)
return v
}()
override init(frame: CGRect) { override init(frame: CGRect) {
super.init(frame: frame) super.init(frame: frame)
createUI() createUI()
...@@ -40,6 +47,7 @@ class YHPlanAnalyzeInfoView: UIView { ...@@ -40,6 +47,7 @@ class YHPlanAnalyzeInfoView: UIView {
func createUI() { func createUI() {
backgroundColor = .clear backgroundColor = .clear
self.addSubview(lineView)
self.addSubview(titleLabel) self.addSubview(titleLabel)
self.addSubview(descLabel) self.addSubview(descLabel)
...@@ -50,6 +58,13 @@ class YHPlanAnalyzeInfoView: UIView { ...@@ -50,6 +58,13 @@ class YHPlanAnalyzeInfoView: UIView {
make.height.equalTo(20) make.height.equalTo(20)
} }
lineView.snp.makeConstraints { make in
make.height.equalTo(6)
make.width.equalTo(60)
make.left.equalTo(titleLabel)
make.bottom.equalTo(titleLabel).offset(-2)
}
descLabel.snp.makeConstraints { make in descLabel.snp.makeConstraints { make in
make.left.equalTo(0) make.left.equalTo(0)
make.right.equalTo(-0) make.right.equalTo(-0)
...@@ -149,6 +164,7 @@ class YHPlanAnalyzeInfoCell: UITableViewCell { ...@@ -149,6 +164,7 @@ class YHPlanAnalyzeInfoCell: UITableViewCell {
lazy var suggestVeiw: YHPlanAnalyzeInfoView = { lazy var suggestVeiw: YHPlanAnalyzeInfoView = {
let v = YHPlanAnalyzeInfoView(frame: .zero) let v = YHPlanAnalyzeInfoView(frame: .zero)
v.titleLabel.textColor = .init(hex: 0xAE6C32) v.titleLabel.textColor = .init(hex: 0xAE6C32)
v.lineView.backgroundColor = .init(hex: 0xF1E8E0)
v.titleLabel.text = "银河建议" v.titleLabel.text = "银河建议"
return v return v
}() }()
......
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