Commit 5ae31bc5 authored by Steven杜宇's avatar Steven杜宇

// 续期

parent e6611ad3
...@@ -36,6 +36,12 @@ class YHResinMaterialManageListVC: YHBaseViewController { ...@@ -36,6 +36,12 @@ class YHResinMaterialManageListVC: YHBaseViewController {
return segview return segview
}() }()
lazy var segmentContainerView: UIView = {
let view = UIView()
view.backgroundColor = .white
return view
}()
lazy var segmentedDataSource: JXSegmentedTitleDataSource = { lazy var segmentedDataSource: JXSegmentedTitleDataSource = {
let dataSource = JXSegmentedTitleDataSource() let dataSource = JXSegmentedTitleDataSource()
dataSource.isTitleColorGradientEnabled = true dataSource.isTitleColorGradientEnabled = true
...@@ -52,8 +58,35 @@ class YHResinMaterialManageListVC: YHBaseViewController { ...@@ -52,8 +58,35 @@ class YHResinMaterialManageListVC: YHBaseViewController {
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
} }
func setupUI() {
view.addSubview(segmentContainerView)
segmentContainerView.addSubview(segmentedView)
view.addSubview(listContainerView)
segmentContainerView.snp.makeConstraints { make in
make.left.right.equalToSuperview()
make.top.equalToSuperview().offset(k_Height_NavigationtBarAndStatuBar)
make.height.equalTo(Self.segmentHeight+4)
}
segmentedView.snp.makeConstraints { make in
make.top.left.equalToSuperview()
make.right.equalToSuperview().offset(-21-18)
make.height.equalTo(Self.segmentHeight)
}
listContainerView.snp.makeConstraints { make in
make.left.right.equalToSuperview()
make.top.equalTo(segmentContainerView.snp.bottom)
make.bottom.equalToSuperview()
}
}
} }
extension YHResinMaterialManageListVC: JXSegmentedListContainerViewDataSource { extension YHResinMaterialManageListVC: JXSegmentedListContainerViewDataSource {
......
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