增加房间

This commit is contained in:
liyuhua
2024-03-08 10:05:28 +08:00
parent e91d324a90
commit d9dc765504
8 changed files with 177 additions and 30 deletions

View File

@@ -15,9 +15,15 @@ class RoomVC: BaseViewController, HiddenNavigationBarProtocol {
}
private func setUILayout(){
view.addSubview(backgroundView)
view.addSubview(topView)
backgroundView.snp.makeConstraints { make in
make.edges.equalTo(self.view)
}
topView.snp.makeConstraints { make in
make.leading.trailing.top.equalTo(self.view)
make.height.equalTo(UIDevice.scaleWidth(width: NavHeight))
}
}
private func requestData(){
@@ -27,4 +33,9 @@ class RoomVC: BaseViewController, HiddenNavigationBarProtocol {
let _backgroundView = RoomBackgroundView(frame: .zero)
return _backgroundView
}()
private lazy var topView:RoomTopView = {
let _topView = RoomTopView(frame: .zero)
return _topView
}()
}