Commit 9cf25fd6 authored by Alex朱枝文's avatar Alex朱枝文

首页会话弹窗优化

parent 9a23bd8f
...@@ -24,14 +24,21 @@ class YHManagerFuncGuildeCheckView: UIView { ...@@ -24,14 +24,21 @@ class YHManagerFuncGuildeCheckView: UIView {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.addTarget(self, action: #selector(clickCloseBtn), for: .touchUpInside) button.addTarget(self, action: #selector(clickCloseBtn), for: .touchUpInside)
button.setTitle("知道啦", for: .normal) button.setTitle("知道啦", for: .normal)
button.layer.borderColor = UIColor.white.cgColor button.setTitleColor(UIColor(hexString: "#232D71"), for: .normal)
button.backgroundColor = .white
button.layer.cornerRadius = 2 button.layer.cornerRadius = 2
button.layer.borderWidth = 0.5
button.titleLabel?.font = UIFont.PFSC_R(ofSize: 12) button.titleLabel?.font = UIFont.PFSC_R(ofSize: 12)
return button return button
}() }()
lazy var cancelBtn: UIButton = {
let button = UIButton(type: .custom)
button.setImage(UIImage(named: "invitation_with_gifts_detail_close"), for: .normal)
button.addTarget(self, action: #selector(clickCancelBtn), for: .touchUpInside)
return button
}()
lazy var imageV1: UIImageView = { lazy var imageV1: UIImageView = {
let imageV = UIImageView() let imageV = UIImageView()
imageV.image = UIImage(named: "home_guild_yhmanager_1") imageV.image = UIImage(named: "home_guild_yhmanager_1")
...@@ -91,6 +98,10 @@ extension YHManagerFuncGuildeCheckView { ...@@ -91,6 +98,10 @@ extension YHManagerFuncGuildeCheckView {
self.block?() self.block?()
dismiss() dismiss()
} }
@objc func clickCancelBtn() {
dismiss()
}
} }
private extension YHManagerFuncGuildeCheckView { private extension YHManagerFuncGuildeCheckView {
...@@ -130,7 +141,14 @@ private extension YHManagerFuncGuildeCheckView { ...@@ -130,7 +141,14 @@ private extension YHManagerFuncGuildeCheckView {
make.height.equalTo(228.fix) make.height.equalTo(228.fix)
} }
blackMaskView.addSubview(cancelBtn)
cancelBtn.snp.makeConstraints { make in
make.bottom.equalTo(imageV1.snp.top).offset(-6)
make.right.equalTo(imageV1.snp.right)
make.width.height.equalTo(24)
}
cancelBtn.YH_clickEdgeInsets = UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10)
imageV1.addSubview(closeBtn) imageV1.addSubview(closeBtn)
closeBtn.snp.makeConstraints { make in closeBtn.snp.makeConstraints { make in
make.right.equalToSuperview().offset(-20) make.right.equalToSuperview().offset(-20)
......
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