Commit 4835e47c authored by Steven杜宇's avatar Steven杜宇

// 关于我们

parent 8804d264
...@@ -19,10 +19,10 @@ struct AboutAdvantageItem { ...@@ -19,10 +19,10 @@ struct AboutAdvantageItem {
class YHAboutUsViewController: YHBaseViewController { class YHAboutUsViewController: YHBaseViewController {
lazy var items = { lazy var items = {
return [AboutAdvantageItem(iconName: "about_match", title: "ABC".local, detail: "大数据精准匹配,专属方案获批率更高", url: ""), return [AboutAdvantageItem(iconName: "about_match", title: "精准匹配".local, detail: "大数据精准匹配,专属方案获批率更高", url: ""),
AboutAdvantageItem(iconName: "about_response", title: "快速响应", detail: "身份规划师一对一专业服务,第一时间响应您的需求", url: ""), AboutAdvantageItem(iconName: "about_response", title: "快速响应", detail: "身份规划师一对一专业服务,第一时间响应您的需求", url: ""),
AboutAdvantageItem(iconName: "about_service", title: "专业服务", detail: "5年经验+英语专8级文案导师团队倾力支持", url: ""), AboutAdvantageItem(iconName: "about_service", title: "专业服务", detail: "5年经验+英语专8级文案导师团队倾力支持", url: ""),
AboutAdvantageItem(iconName: "about_service2", title: "精准匹配", detail: "香港专才、香港留学获批常年保持90%以上", url: "")] AboutAdvantageItem(iconName: "about_service2", title: "获批保障", detail: "香港专才、香港留学获批常年保持90%以上", url: "")]
}() }()
lazy var collectView = { lazy var collectView = {
...@@ -50,9 +50,9 @@ class YHAboutUsViewController: YHBaseViewController { ...@@ -50,9 +50,9 @@ class YHAboutUsViewController: YHBaseViewController {
lazy var aboutLabel = { lazy var aboutLabel = {
var label = UILabel() var label = UILabel()
label.text = "关于银河".local label.text = "关于银河".local
label.textColor = UIColor.mainTextColor label.textColor = UIColor.init(hex: 0x121A26)
label.textAlignment = NSTextAlignment.left label.textAlignment = NSTextAlignment.left
label.font = UIFont.systemFont(ofSize: 20) label.font = UIFont.PFSC_B(ofSize: 21)
return label return label
}() }()
...@@ -62,16 +62,16 @@ class YHAboutUsViewController: YHBaseViewController { ...@@ -62,16 +62,16 @@ class YHAboutUsViewController: YHBaseViewController {
label.numberOfLines = 0 label.numberOfLines = 0
label.textColor = .labelTextColor2 label.textColor = .labelTextColor2
label.textAlignment = NSTextAlignment.left label.textAlignment = NSTextAlignment.left
label.font = UIFont.systemFont(ofSize: 14) label.font = UIFont.PFSC_R(ofSize: 14)
return label return label
}() }()
lazy var advantageLabel = { lazy var advantageLabel = {
var label = UILabel() var label = UILabel()
label.text = "四大优势" label.text = "四大优势"
label.textColor = UIColor.mainTextColor label.textColor = UIColor.init(hex: 0x121A26)
label.textAlignment = .center label.textAlignment = .center
label.font = UIFont.systemFont(ofSize: 15) label.font = UIFont.PFSC_B(ofSize: 17)
return label return label
}() }()
...@@ -93,14 +93,12 @@ class YHAboutUsViewController: YHBaseViewController { ...@@ -93,14 +93,12 @@ class YHAboutUsViewController: YHBaseViewController {
self.collectView.reloadData() self.collectView.reloadData()
self.collectView.layoutIfNeeded() self.collectView.layoutIfNeeded()
let height = self.collectView.contentSize.height
printLog("self.collectView.contentSize.height = \(height)")
} }
func setupUI() { func setupUI() {
self.title = "关于我们" self.gk_navTitle = "关于我们"
view.backgroundColor = .white view.backgroundColor = .white
view.addSubview(collectView) view.addSubview(collectView)
...@@ -113,19 +111,19 @@ class YHAboutUsViewController: YHBaseViewController { ...@@ -113,19 +111,19 @@ class YHAboutUsViewController: YHBaseViewController {
aboutLabel.snp.makeConstraints { make in aboutLabel.snp.makeConstraints { make in
make.left.equalTo(view).offset(18) make.left.equalTo(view).offset(18)
make.right.equalTo(view).offset(-18) make.right.equalTo(view).offset(-18)
make.top.equalTo(view).offset(k_Height_NavigationtBarAndStatuBar+18) make.top.equalTo(view).offset(k_Height_NavigationtBarAndStatuBar+16)
} }
detailLabel.snp.makeConstraints { make in detailLabel.snp.makeConstraints { make in
make.left.equalTo(view).offset(18) make.left.equalTo(view).offset(18)
make.right.equalTo(view).offset(-18) make.right.equalTo(view).offset(-18)
make.top.equalTo(aboutLabel.snp.bottom).offset(18) make.top.equalTo(aboutLabel.snp.bottom).offset(12)
} }
advantageLabel.snp.makeConstraints { make in advantageLabel.snp.makeConstraints { make in
make.centerX.equalTo(view) make.centerX.equalTo(view)
make.height.equalTo(40) make.height.equalTo(40)
make.top.equalTo(detailLabel.snp.bottom).offset(48) make.top.equalTo(detailLabel.snp.bottom).offset(38)
} }
advantageLeftImgView.snp.makeConstraints { make in advantageLeftImgView.snp.makeConstraints { make in
...@@ -142,7 +140,7 @@ class YHAboutUsViewController: YHBaseViewController { ...@@ -142,7 +140,7 @@ class YHAboutUsViewController: YHBaseViewController {
collectView.snp.makeConstraints { make in collectView.snp.makeConstraints { make in
make.left.right.bottom.equalToSuperview() make.left.right.bottom.equalToSuperview()
make.top.equalTo(advantageLabel.snp.bottom).offset(22) make.top.equalTo(advantageLabel.snp.bottom).offset(18)
} }
} }
......
...@@ -30,20 +30,18 @@ class YHAboutUsAdvantageCell: UICollectionViewCell { ...@@ -30,20 +30,18 @@ class YHAboutUsAdvantageCell: UICollectionViewCell {
lazy var titleLabel:UILabel = { lazy var titleLabel:UILabel = {
let label = UILabel() let label = UILabel()
label.text = "是的发放" label.textColor = UIColor.init(hex: 0x121A26)
label.textColor = UIColor(hexString:"#333333")
label.textAlignment = .center label.textAlignment = .center
label.font = UIFont.systemFont(ofSize: 14) label.font = UIFont.PFSC_B(ofSize: 14)
return label return label
}() }()
lazy var detailLabel:UILabel = { lazy var detailLabel:UILabel = {
let label = UILabel() let label = UILabel()
label.text = "sdfasfdasfasdfasfasdfasdfsafasdfasdfasdfasfdas" label.textColor = UIColor(hex: 0x121A2680, alpha: 0.5)
label.textColor = .labelTextColor2
label.numberOfLines = 0 label.numberOfLines = 0
label.textAlignment = .center label.textAlignment = .center
label.font = UIFont.systemFont(ofSize: 12) label.font = UIFont.PFSC_R(ofSize: 11)
return label return label
}() }()
...@@ -60,7 +58,7 @@ class YHAboutUsAdvantageCell: UICollectionViewCell { ...@@ -60,7 +58,7 @@ class YHAboutUsAdvantageCell: UICollectionViewCell {
func setupUI() { func setupUI() {
contentView.backgroundColor = UIColor(hexString: "#F8F9FB") contentView.backgroundColor = UIColor.init(hex: 0xF8FAFB)
contentView.layer.cornerRadius = 4 contentView.layer.cornerRadius = 4
contentView.clipsToBounds = true contentView.clipsToBounds = true
...@@ -81,9 +79,9 @@ class YHAboutUsAdvantageCell: UICollectionViewCell { ...@@ -81,9 +79,9 @@ class YHAboutUsAdvantageCell: UICollectionViewCell {
} }
detailLabel.snp.makeConstraints { make in detailLabel.snp.makeConstraints { make in
make.left.equalTo(contentView).offset(5) make.left.equalTo(contentView).offset(15)
make.right.equalTo(contentView).offset(-5) make.right.equalTo(contentView).offset(-15)
make.top.equalTo(titleLabel.snp.bottom).offset(8) make.top.equalTo(titleLabel.snp.bottom).offset(6)
make.bottom.equalTo(contentView).offset(-5) make.bottom.equalTo(contentView).offset(-5)
} }
} }
......
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