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

我的评分 UI

parent 9c663ce1
...@@ -141,6 +141,10 @@ ...@@ -141,6 +141,10 @@
A5FD63CD2B64E2D600D1D9DA /* YHScoreDetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FD63CC2B64E2D600D1D9DA /* YHScoreDetailViewController.swift */; }; A5FD63CD2B64E2D600D1D9DA /* YHScoreDetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FD63CC2B64E2D600D1D9DA /* YHScoreDetailViewController.swift */; };
A5FD63CF2B64E32400D1D9DA /* YHMyInformationListViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FD63CE2B64E32400D1D9DA /* YHMyInformationListViewController.swift */; }; A5FD63CF2B64E32400D1D9DA /* YHMyInformationListViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FD63CE2B64E32400D1D9DA /* YHMyInformationListViewController.swift */; };
A5FD63D22B650BA700D1D9DA /* YHScorePersonInfoCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FD63D12B650BA700D1D9DA /* YHScorePersonInfoCell.swift */; }; A5FD63D22B650BA700D1D9DA /* YHScorePersonInfoCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FD63D12B650BA700D1D9DA /* YHScorePersonInfoCell.swift */; };
A5FD63D42B65F99500D1D9DA /* YHScoreItemCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FD63D32B65F99500D1D9DA /* YHScoreItemCell.swift */; };
A5FD63D62B65FCA400D1D9DA /* YHScoreTitleView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FD63D52B65FCA400D1D9DA /* YHScoreTitleView.swift */; };
A5FD63D82B6603A500D1D9DA /* YHScoreResultView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FD63D72B6603A500D1D9DA /* YHScoreResultView.swift */; };
A5FD63DA2B66060800D1D9DA /* YHScoreOptionsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FD63D92B66060800D1D9DA /* YHScoreOptionsView.swift */; };
/* End PBXBuildFile section */ /* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */ /* Begin PBXContainerItemProxy section */
...@@ -314,6 +318,10 @@ ...@@ -314,6 +318,10 @@
A5FD63CC2B64E2D600D1D9DA /* YHScoreDetailViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHScoreDetailViewController.swift; sourceTree = "<group>"; }; A5FD63CC2B64E2D600D1D9DA /* YHScoreDetailViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHScoreDetailViewController.swift; sourceTree = "<group>"; };
A5FD63CE2B64E32400D1D9DA /* YHMyInformationListViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHMyInformationListViewController.swift; sourceTree = "<group>"; }; A5FD63CE2B64E32400D1D9DA /* YHMyInformationListViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHMyInformationListViewController.swift; sourceTree = "<group>"; };
A5FD63D12B650BA700D1D9DA /* YHScorePersonInfoCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHScorePersonInfoCell.swift; sourceTree = "<group>"; }; A5FD63D12B650BA700D1D9DA /* YHScorePersonInfoCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHScorePersonInfoCell.swift; sourceTree = "<group>"; };
A5FD63D32B65F99500D1D9DA /* YHScoreItemCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHScoreItemCell.swift; sourceTree = "<group>"; };
A5FD63D52B65FCA400D1D9DA /* YHScoreTitleView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHScoreTitleView.swift; sourceTree = "<group>"; };
A5FD63D72B6603A500D1D9DA /* YHScoreResultView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHScoreResultView.swift; sourceTree = "<group>"; };
A5FD63D92B66060800D1D9DA /* YHScoreOptionsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHScoreOptionsView.swift; sourceTree = "<group>"; };
B6BB01E4C5DB87B66F0ECE84 /* Pods-galaxy.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-galaxy.release.xcconfig"; path = "Target Support Files/Pods-galaxy/Pods-galaxy.release.xcconfig"; sourceTree = "<group>"; }; B6BB01E4C5DB87B66F0ECE84 /* Pods-galaxy.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-galaxy.release.xcconfig"; path = "Target Support Files/Pods-galaxy/Pods-galaxy.release.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */ /* End PBXFileReference section */
...@@ -913,6 +921,10 @@ ...@@ -913,6 +921,10 @@
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
A5FD63D12B650BA700D1D9DA /* YHScorePersonInfoCell.swift */, A5FD63D12B650BA700D1D9DA /* YHScorePersonInfoCell.swift */,
A5FD63D32B65F99500D1D9DA /* YHScoreItemCell.swift */,
A5FD63D52B65FCA400D1D9DA /* YHScoreTitleView.swift */,
A5FD63D72B6603A500D1D9DA /* YHScoreResultView.swift */,
A5FD63D92B66060800D1D9DA /* YHScoreOptionsView.swift */,
); );
path = "我的评分"; path = "我的评分";
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -1157,6 +1169,7 @@ ...@@ -1157,6 +1169,7 @@
0468D4432B61F76800CFB916 /* YHMainApplicantInformationViewController.swift in Sources */, 0468D4432B61F76800CFB916 /* YHMainApplicantInformationViewController.swift in Sources */,
0468D4262B495A5400CFB916 /* YHPickPhoneAddressViewController.swift in Sources */, 0468D4262B495A5400CFB916 /* YHPickPhoneAddressViewController.swift in Sources */,
A5C5B32D2B57D66000A7C5D1 /* YHBbxCollectionViewCell.swift in Sources */, A5C5B32D2B57D66000A7C5D1 /* YHBbxCollectionViewCell.swift in Sources */,
A5FD63D82B6603A500D1D9DA /* YHScoreResultView.swift in Sources */,
A5ACE9342B4564F7002C94D2 /* YHAllApiName.swift in Sources */, A5ACE9342B4564F7002C94D2 /* YHAllApiName.swift in Sources */,
A5ACE9502B4564F7002C94D2 /* YhCacheTool.swift in Sources */, A5ACE9502B4564F7002C94D2 /* YhCacheTool.swift in Sources */,
0468D4242B494BEA00CFB916 /* YHCodeResultViewController.swift in Sources */, 0468D4242B494BEA00CFB916 /* YHCodeResultViewController.swift in Sources */,
...@@ -1190,6 +1203,7 @@ ...@@ -1190,6 +1203,7 @@
A5C382CC2B5EA11800C5E65C /* YHContractCell.swift in Sources */, A5C382CC2B5EA11800C5E65C /* YHContractCell.swift in Sources */,
042FBBC12B63B21700F9DE23 /* YHFormItemDegreeInfoCell.swift in Sources */, 042FBBC12B63B21700F9DE23 /* YHFormItemDegreeInfoCell.swift in Sources */,
A5ACE9492B4564F7002C94D2 /* BsHUDSuccessView.swift in Sources */, A5ACE9492B4564F7002C94D2 /* BsHUDSuccessView.swift in Sources */,
A5FD63D42B65F99500D1D9DA /* YHScoreItemCell.swift in Sources */,
A5ACE9432B4564F7002C94D2 /* UILable+Extension.swift in Sources */, A5ACE9432B4564F7002C94D2 /* UILable+Extension.swift in Sources */,
A5ACE9382B4564F7002C94D2 /* UIApplication+Extension.swift in Sources */, A5ACE9382B4564F7002C94D2 /* UIApplication+Extension.swift in Sources */,
041B52872B5657B3007EBCEB /* IMAppKey.swift in Sources */, 041B52872B5657B3007EBCEB /* IMAppKey.swift in Sources */,
...@@ -1214,6 +1228,8 @@ ...@@ -1214,6 +1228,8 @@
A5C5B32B2B57D17600A7C5D1 /* YHDavidCell5.swift in Sources */, A5C5B32B2B57D17600A7C5D1 /* YHDavidCell5.swift in Sources */,
A5ACE92D2B4564F7002C94D2 /* YHLoginPrivacyView.swift in Sources */, A5ACE92D2B4564F7002C94D2 /* YHLoginPrivacyView.swift in Sources */,
A5C5B3272B57C8D500A7C5D1 /* YHDavidCell2.swift in Sources */, A5C5B3272B57C8D500A7C5D1 /* YHDavidCell2.swift in Sources */,
A5FD63D62B65FCA400D1D9DA /* YHScoreTitleView.swift in Sources */,
A5FD63DA2B66060800D1D9DA /* YHScoreOptionsView.swift in Sources */,
A5ACE9372B4564F7002C94D2 /* YHBaseUrlManager.swift in Sources */, A5ACE9372B4564F7002C94D2 /* YHBaseUrlManager.swift in Sources */,
A5ACE9352B4564F7002C94D2 /* YHNetRequest.swift in Sources */, A5ACE9352B4564F7002C94D2 /* YHNetRequest.swift in Sources */,
A5FD63CB2B63D6C300D1D9DA /* YHInformationFillTipsCell.swift in Sources */, A5FD63CB2B63D6C300D1D9DA /* YHInformationFillTipsCell.swift in Sources */,
......
...@@ -31,6 +31,7 @@ class YHScoreDetailViewController: YHBaseViewController { ...@@ -31,6 +31,7 @@ class YHScoreDetailViewController: YHBaseViewController {
tableView.showsVerticalScrollIndicator = false tableView.showsVerticalScrollIndicator = false
tableView.rowHeight = UITableView.automaticDimension tableView.rowHeight = UITableView.automaticDimension
tableView.register(YHScorePersonInfoCell.self,forCellReuseIdentifier: YHScorePersonInfoCell.cellReuseIdentifier) tableView.register(YHScorePersonInfoCell.self,forCellReuseIdentifier: YHScorePersonInfoCell.cellReuseIdentifier)
tableView.register(YHScoreItemCell.self,forCellReuseIdentifier: YHScoreItemCell.cellReuseIdentifier)
// tableView.register(YHDavidCell1.self,forCellReuseIdentifier: YHDavidCell1.cellReuseIdentifier) // tableView.register(YHDavidCell1.self,forCellReuseIdentifier: YHDavidCell1.cellReuseIdentifier)
// tableView.register(YHDavidCell3.self,forCellReuseIdentifier: YHDavidCell3.cellReuseIdentifier) // tableView.register(YHDavidCell3.self,forCellReuseIdentifier: YHDavidCell3.cellReuseIdentifier)
// tableView.register(YHDavidCell2.self,forCellReuseIdentifier: YHDavidCell2.cellReuseIdentifier) // tableView.register(YHDavidCell2.self,forCellReuseIdentifier: YHDavidCell2.cellReuseIdentifier)
...@@ -120,7 +121,12 @@ extension YHScoreDetailViewController : UITableViewDelegate,UITableViewDataSourc ...@@ -120,7 +121,12 @@ extension YHScoreDetailViewController : UITableViewDelegate,UITableViewDataSourc
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withClass: YHScorePersonInfoCell.self) if indexPath.row == 0 {
let cell = tableView.dequeueReusableCell(withClass: YHScorePersonInfoCell.self)
return cell
}
let cell = tableView.dequeueReusableCell(withClass: YHScoreItemCell.self)
return cell return cell
} }
......
...@@ -41,7 +41,7 @@ class YHChildInitialInfoVC: YHBaseViewController { ...@@ -41,7 +41,7 @@ class YHChildInitialInfoVC: YHBaseViewController {
lazy var submitBtn:UIButton = { lazy var submitBtn:UIButton = {
let btn = UIButton() let btn = UIButton()
btn.setTitle("提交".local, for: .normal) btn.setTitle("提交".local, for: .normal)
btn.titleLabel?.font = UIFont.PFSCR(ofSize: 14) btn.titleLabel?.font = UIFont.PingFangScR(ofSize: 14)
btn.setTitleColor(.white, for: .normal) btn.setTitleColor(.white, for: .normal)
btn.backgroundColor = UIColor(hexString:"#4388FF") btn.backgroundColor = UIColor(hexString:"#4388FF")
btn.layer.cornerRadius = 8.0 btn.layer.cornerRadius = 8.0
...@@ -52,7 +52,7 @@ class YHChildInitialInfoVC: YHBaseViewController { ...@@ -52,7 +52,7 @@ class YHChildInitialInfoVC: YHBaseViewController {
lazy var saveBtn:UIButton = { lazy var saveBtn:UIButton = {
let btn = UIButton() let btn = UIButton()
btn.setTitle("保存", for: .normal) btn.setTitle("保存", for: .normal)
btn.titleLabel?.font = UIFont.PFSCR(ofSize: 14) btn.titleLabel?.font = UIFont.PingFangScR(ofSize: 14)
btn.setTitleColor(UIColor(hexString:"#222222"), for: .normal) btn.setTitleColor(UIColor(hexString:"#222222"), for: .normal)
btn.backgroundColor = UIColor(hexString:"#F8F9FB") btn.backgroundColor = UIColor(hexString:"#F8F9FB")
btn.layer.cornerRadius = 8.0 btn.layer.cornerRadius = 8.0
......
...@@ -23,7 +23,7 @@ class YHFormItemExpireDateCell: UITableViewCell { ...@@ -23,7 +23,7 @@ class YHFormItemExpireDateCell: UITableViewCell {
if let title = title { if let title = title {
let str = (isMust ? ("*"+title) : title) let str = (isMust ? ("*"+title) : title)
let attributes: [NSAttributedString.Key: Any] = [ let attributes: [NSAttributedString.Key: Any] = [
.font: UIFont.PFSCR(ofSize: 14), .font: UIFont.PingFangScR(ofSize: 14),
.foregroundColor: UIColor(hex:0x222222)] .foregroundColor: UIColor(hex:0x222222)]
let questionAttrStr = NSMutableAttributedString(string: str, attributes: attributes) let questionAttrStr = NSMutableAttributedString(string: str, attributes: attributes)
if isMust { if isMust {
...@@ -67,7 +67,7 @@ class YHFormItemExpireDateCell: UITableViewCell { ...@@ -67,7 +67,7 @@ class YHFormItemExpireDateCell: UITableViewCell {
label.textColor = UIColor(hexString:"#333333") label.textColor = UIColor(hexString:"#333333")
label.textAlignment = .left label.textAlignment = .left
label.numberOfLines = 0 label.numberOfLines = 0
label.font = UIFont.PFSCR(ofSize: 14) label.font = UIFont.PingFangScR(ofSize: 14)
return label return label
}() }()
...@@ -75,7 +75,7 @@ class YHFormItemExpireDateCell: UITableViewCell { ...@@ -75,7 +75,7 @@ class YHFormItemExpireDateCell: UITableViewCell {
let label = UILabel() let label = UILabel()
label.textColor = UIColor(hexString: "#222222") label.textColor = UIColor(hexString: "#222222")
label.textAlignment = .left label.textAlignment = .left
label.font = UIFont.PFSCR(ofSize: 14) label.font = UIFont.PingFangScR(ofSize: 14)
label.isHidden = true label.isHidden = true
return label return label
}() }()
...@@ -85,7 +85,7 @@ class YHFormItemExpireDateCell: UITableViewCell { ...@@ -85,7 +85,7 @@ class YHFormItemExpireDateCell: UITableViewCell {
label.textColor = UIColor(hexString: "#C0C0C0") label.textColor = UIColor(hexString: "#C0C0C0")
label.text = "请选择".local label.text = "请选择".local
label.textAlignment = .left label.textAlignment = .left
label.font = UIFont.PFSCR(ofSize: 14) label.font = UIFont.PingFangScR(ofSize: 14)
label.isHidden = false label.isHidden = false
return label return label
}() }()
...@@ -93,7 +93,7 @@ class YHFormItemExpireDateCell: UITableViewCell { ...@@ -93,7 +93,7 @@ class YHFormItemExpireDateCell: UITableViewCell {
lazy var longTimeBtn: UIButton = { lazy var longTimeBtn: UIButton = {
let btn = UIButton(type: .custom) let btn = UIButton(type: .custom)
btn.setTitle("长期".local, for: .normal) btn.setTitle("长期".local, for: .normal)
btn.titleLabel?.font = UIFont.PFSCR(ofSize: 14) btn.titleLabel?.font = UIFont.PingFangScR(ofSize: 14)
btn.setTitleColor(UIColor(hex: 0x222222), for: .normal) btn.setTitleColor(UIColor(hex: 0x222222), for: .normal)
btn.iconInLeft(spacing: 6) btn.iconInLeft(spacing: 6)
btn.setImage(UIImage(named: "form_square_unselect"), for: .normal) btn.setImage(UIImage(named: "form_square_unselect"), for: .normal)
......
//
// YHScoreItemCell.swift
// galaxy
//
// Created by davidhuangA on 2024/1/28.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
import AttributedString
class YHScoreItemCell: UITableViewCell {
static let cellReuseIdentifier = "YHScoreItemCell"
// var dataModel : YHContactItemModel? {
// didSet {
//// updateUI()
// }
// }
private lazy var holdView : UIView = {
let view = UIView()
view.backgroundColor = .white
view.layer.cornerRadius = 12
view.clipsToBounds = true
return view
}()
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
setupUI()
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
extension YHScoreItemCell {
func setupUI() {
backgroundColor = .clear
contentView.backgroundColor = .clear
contentView.addSubview(holdView)
holdView.snp.makeConstraints { make in
make.top.right.left.equalToSuperview()
make.bottom.equalToSuperview().offset(-14)
}
//
let view1 = UIView()
holdView.addSubview(view1)
view1.snp.makeConstraints { make in
make.top.left.right.equalToSuperview()
}
let titleView = YHScoreTitleView()
holdView.addSubview(titleView)
titleView.snp.makeConstraints { make in
make.top.equalToSuperview()
make.left.equalTo(18)
make.right.equalTo(-18)
make.height.equalTo(YHScoreTitleView.viewH)
}
let resultView = YHScoreResultView()
holdView.addSubview(resultView)
resultView.snp.makeConstraints { make in
make.top.equalTo(titleView.snp.bottom)
make.left.equalTo(titleView.snp.left)
make.right.equalTo(titleView.snp.right)
make.height.equalTo(YHScoreTitleView.viewH)
}
let scoreOptionsView1 = YHScoreOptionsView()
holdView.addSubview(scoreOptionsView1)
scoreOptionsView1.snp.makeConstraints { make in
make.top.equalTo(resultView.snp.bottom)
make.left.equalTo(titleView.snp.left)
make.right.equalTo(titleView.snp.right)
}
let scoreOptionsView2 = YHScoreOptionsView()
holdView.addSubview(scoreOptionsView2)
scoreOptionsView2.snp.makeConstraints { make in
make.top.equalTo(scoreOptionsView1.snp.bottom)
make.left.equalTo(titleView.snp.left)
make.right.equalTo(titleView.snp.right)
}
let scoreOptionsView3 = YHScoreOptionsView()
holdView.addSubview(scoreOptionsView3)
scoreOptionsView3.snp.makeConstraints { make in
make.top.equalTo(scoreOptionsView2.snp.bottom)
make.left.equalTo(titleView.snp.left)
make.right.equalTo(titleView.snp.right)
}
let scoreOptionsView4 = YHScoreOptionsView()
holdView.addSubview(scoreOptionsView4)
scoreOptionsView4.snp.makeConstraints { make in
make.top.equalTo(scoreOptionsView3.snp.bottom)
make.left.equalTo(titleView.snp.left)
make.right.equalTo(titleView.snp.right)
make.bottom.equalToSuperview()
}
}
}
//
// YHScoreOptionsView.swift
// galaxy
//
// Created by davidhuangA on 2024/1/28.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
class YHScoreOptionsView: UIView {
override init(frame: CGRect) {
super.init(frame: frame)
setupUI()
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
private lazy var nameLable : UILabel = {
let lable0 = UILabel(text: "(3)学士学位/由国家或国际认可或著名的专业团 队颁授,证明持有人具有极高水平的专业知识或专业技能的专业资格 ")
lable0.textColor = UIColor(hex: 0x4E4E4E)
lable0.font = UIFont.PingFangScR(ofSize: 14)
lable0.numberOfLines = 0
lable0.lineBreakMode = .byWordWrapping
return lable0
}()
private lazy var bottomLine : UIView = {
let view = UIView()
view.backgroundColor = UIColor(hex:0xF0F0F0)
return view
}()
}
private extension YHScoreOptionsView {
func setupUI() {
addSubview(bottomLine)
bottomLine.snp.makeConstraints { make in
make.bottom.left.right.equalToSuperview()
make.height.equalTo(0.5)
}
addSubview(nameLable)
nameLable.snp.makeConstraints { make in
make.top.equalTo(16)
make.left.right.equalToSuperview()
make.bottom.equalTo(bottomLine.snp.top).offset(-16)
}
}
}
//
// YHScoreResultView.swift
// galaxy
//
// Created by davidhuangA on 2024/1/28.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
class YHScoreResultView: UIView {
override init(frame: CGRect) {
super.init(frame: frame)
setupUI()
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
//固定高度
static let viewH : CGFloat = 52.0
//icon
private lazy var iconImageV : UIImageView = {
let imageV = UIImageView(image: UIImage(named: "score_satisfy_0"))
imageV.contentMode = .scaleAspectFit
return imageV
}()
private lazy var nameLable : UILabel = {
let lable0 = UILabel(text: "年龄:32")
lable0.textColor = UIColor(hex: 0x4E4E4E)
lable0.font = UIFont.PingFangScM(ofSize: 14)
return lable0
}()
private lazy var desLable : UILabel = {
let lable0 = UILabel(text: "得分:30分")
lable0.textColor = UIColor(hex: 0x4E4E4E)
lable0.font = UIFont.PingFangScM(ofSize: 14)
return lable0
}()
private lazy var bottomLine : UIView = {
let view = UIView()
view.backgroundColor = UIColor(hex:0xF0F0F0)
return view
}()
}
private extension YHScoreResultView {
func setupUI() {
addSubview(bottomLine)
bottomLine.snp.makeConstraints { make in
make.bottom.left.right.equalToSuperview()
make.height.equalTo(0.5)
}
addSubview(iconImageV)
iconImageV.snp.makeConstraints { make in
make.left.equalToSuperview()
make.centerY.equalToSuperview().offset(-0.5)
make.width.height.equalTo(14)
}
addSubview(nameLable)
nameLable.snp.makeConstraints { make in
make.centerY.equalTo(iconImageV.snp.centerY)
make.left.equalTo(iconImageV.snp.right).offset(12)
make.bottom.equalTo(bottomLine.snp.top)
}
addSubview(desLable)
desLable.snp.makeConstraints { make in
make.centerY.equalTo(nameLable.snp.centerY)
make.left.equalTo(nameLable.snp.right).offset(6)
}
}
}
//
// YHScoreTitleView.swift
// galaxy
//
// Created by davidhuangA on 2024/1/28.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
class YHScoreTitleView: UIView {
override init(frame: CGRect) {
super.init(frame: frame)
setupUI()
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
//固定高度
static let viewH : CGFloat = 52.0
private lazy var nameLable : UILabel = {
let lable0 = UILabel(text: "年龄得分")
lable0.textColor = UIColor(hex: 0x222222)
lable0.font = UIFont.PingFangScM(ofSize: 17)
return lable0
}()
private lazy var desLable : UILabel = {
let lable0 = UILabel(text: "(最高30分)")
lable0.textColor = UIColor(hex: 0x888F98)
lable0.font = UIFont.PingFangScR(ofSize: 14)
return lable0
}()
private lazy var bottomLine : UIView = {
let view = UIView()
view.backgroundColor = UIColor(hex:0xF0F0F0)
return view
}()
}
private extension YHScoreTitleView {
func setupUI() {
addSubview(bottomLine)
bottomLine.snp.makeConstraints { make in
make.bottom.left.right.equalToSuperview()
make.height.equalTo(0.5)
}
addSubview(nameLable)
nameLable.snp.makeConstraints { make in
make.top.left.equalToSuperview()
make.bottom.equalTo(bottomLine.snp.top)
}
addSubview(desLable)
desLable.snp.makeConstraints { make in
make.centerY.equalTo(nameLable.snp.centerY)
make.left.equalTo(nameLable.snp.right).offset(6)
}
}
}
{
"images" : [
{
"filename" : "Group 2918.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Group 2918@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Group 2918@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "Group 2919.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Group 2919@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Group 2919@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
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