Commit 21c42c18 authored by Steven杜宇's avatar Steven杜宇

Merge branch 'develop' into duyu

parents 51329e3e 8be31236
...@@ -46,7 +46,7 @@ class YHTwoOptionAlertView: UIView { ...@@ -46,7 +46,7 @@ class YHTwoOptionAlertView: UIView {
centerView = { centerView = {
let view = UIView() let view = UIView()
view.backgroundColor = .white view.backgroundColor = .white
view.layer.cornerRadius = 12 view.layer.cornerRadius = kCornerRadius6
return view return view
}() }()
addSubview(centerView) addSubview(centerView)
...@@ -54,8 +54,8 @@ class YHTwoOptionAlertView: UIView { ...@@ -54,8 +54,8 @@ class YHTwoOptionAlertView: UIView {
messageLabel = { messageLabel = {
let label = UILabel() let label = UILabel()
label.text = "" label.text = ""
label.font = kFont(size: 16) label.font = UIFont.PFSC_R(ofSize: 16)
label.textColor = UIColor(hex:0x222222) label.textColor = UIColor.mainTextColor
label.textAlignment = .center label.textAlignment = .center
label.numberOfLines = 0 label.numberOfLines = 0
return label return label
...@@ -65,11 +65,11 @@ class YHTwoOptionAlertView: UIView { ...@@ -65,11 +65,11 @@ class YHTwoOptionAlertView: UIView {
leftButton = { leftButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex:0xffffff) button.backgroundColor = UIColor(hex:0xffffff)
button.titleLabel?.font = kBoldFont(size: 14) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 14)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("取消".local, for: .normal) button.setTitle("取消".local, for: .normal)
button.setTitleColor( UIColor(hex:0x3c86f8), for: .normal) button.setTitleColor( UIColor(hex:0x3c86f8), for: .normal)
button.layer.cornerRadius = 8 button.layer.cornerRadius = kCornerRadius6
button.layer.borderWidth = 1 button.layer.borderWidth = 1
button.layer.borderColor = UIColor(hex: 0x3c86f8).cgColor button.layer.borderColor = UIColor(hex: 0x3c86f8).cgColor
button.addTarget(self, action: #selector(disagree), for: .touchUpInside) button.addTarget(self, action: #selector(disagree), for: .touchUpInside)
...@@ -80,11 +80,11 @@ class YHTwoOptionAlertView: UIView { ...@@ -80,11 +80,11 @@ class YHTwoOptionAlertView: UIView {
rightButton = { rightButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex:0x3c86f8) button.backgroundColor = UIColor(hex:0x3c86f8)
button.titleLabel?.font = kBoldFont(size: 14) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 14)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("确认".local, for: .normal) button.setTitle("确认".local, for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal) button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
button.layer.cornerRadius = 8 button.layer.cornerRadius = kCornerRadius6
button.addTarget(self, action: #selector(agree), for: .touchUpInside) button.addTarget(self, action: #selector(agree), for: .touchUpInside)
return button return button
}() }()
......
...@@ -23,7 +23,7 @@ class YHBbxCollectionViewCell: UICollectionViewCell { ...@@ -23,7 +23,7 @@ class YHBbxCollectionViewCell: UICollectionViewCell {
lazy var descripeLable:UILabel = { lazy var descripeLable:UILabel = {
let label = UILabel() let label = UILabel()
label.textColor = UIColor(red: 0.315, green: 0.315, blue: 0.315, alpha: 1) label.textColor = UIColor(red: 0.315, green: 0.315, blue: 0.315, alpha: 1)
label.font = kFont(size: 12) label.font = UIFont.PFSC_R(ofSize: 12)
label.textAlignment = .center label.textAlignment = .center
label.text = "证件办理" label.text = "证件办理"
// label.backgroundColor = .blue // label.backgroundColor = .blue
......
...@@ -43,7 +43,7 @@ class YHDavidCell1: UITableViewCell { ...@@ -43,7 +43,7 @@ class YHDavidCell1: UITableViewCell {
lazy var subContentView : UIView = { lazy var subContentView : UIView = {
let view = UIView() let view = UIView()
view.backgroundColor = UIColor(hex: 0x999999, alpha: 1.0) view.backgroundColor = UIColor(hex: 0x999999, alpha: 1.0)
view.layer.cornerRadius = 12 view.layer.cornerRadius = kCornerRadius6
return view return view
}() }()
......
...@@ -43,7 +43,7 @@ class YHDavidCell2: UITableViewCell { ...@@ -43,7 +43,7 @@ class YHDavidCell2: UITableViewCell {
lazy var subContentView : UIView = { lazy var subContentView : UIView = {
let view = UIView() let view = UIView()
view.backgroundColor = UIColor(hex: 0x999999, alpha: 1.0) view.backgroundColor = UIColor(hex: 0x999999, alpha: 1.0)
view.layer.cornerRadius = 12 view.layer.cornerRadius = kCornerRadius6
view.layer.backgroundColor = UIColor(red: 1, green: 1, blue: 1, alpha: 1).cgColor view.layer.backgroundColor = UIColor(red: 1, green: 1, blue: 1, alpha: 1).cgColor
view.layer.cornerRadius = 10 view.layer.cornerRadius = 10
......
...@@ -63,7 +63,7 @@ class YHDavidCell3: UITableViewCell { ...@@ -63,7 +63,7 @@ class YHDavidCell3: UITableViewCell {
let bbxLable = UILabel() let bbxLable = UILabel()
bbxLable.text = "银河推荐官" bbxLable.text = "银河推荐官"
bbxLable.textColor = UIColor(red: 0.2, green: 0.2, blue: 0.2, alpha: 1) bbxLable.textColor = UIColor(red: 0.2, green: 0.2, blue: 0.2, alpha: 1)
bbxLable.font = kFont(size: 18) bbxLable.font = UIFont.PFSC_R(ofSize: 18)
subContentView.addSubview(bbxLable) subContentView.addSubview(bbxLable)
bbxLable.snp.makeConstraints { make in bbxLable.snp.makeConstraints { make in
...@@ -75,7 +75,7 @@ class YHDavidCell3: UITableViewCell { ...@@ -75,7 +75,7 @@ class YHDavidCell3: UITableViewCell {
desLable.text = "邀请拉新,合作共赢" desLable.text = "邀请拉新,合作共赢"
desLable.frame = CGRect(x: 0, y: 0, width: 141.5, height: 11.5) desLable.frame = CGRect(x: 0, y: 0, width: 141.5, height: 11.5)
desLable.textColor = UIColor(red: 0.592, green: 0.592, blue: 0.592, alpha: 1) desLable.textColor = UIColor(red: 0.592, green: 0.592, blue: 0.592, alpha: 1)
desLable.font = kFont(size: 10) desLable.font = UIFont.PFSC_R(ofSize: 10)
subContentView.addSubview(desLable) subContentView.addSubview(desLable)
desLable.snp.makeConstraints { make in desLable.snp.makeConstraints { make in
make.left.equalTo(bbxLable.snp.right).offset(11) make.left.equalTo(bbxLable.snp.right).offset(11)
......
...@@ -67,7 +67,7 @@ class YHDavidCell5: UITableViewCell { ...@@ -67,7 +67,7 @@ class YHDavidCell5: UITableViewCell {
let bbxLable = UILabel() let bbxLable = UILabel()
bbxLable.text = "百宝箱" bbxLable.text = "百宝箱"
bbxLable.textColor = UIColor(red: 0.2, green: 0.2, blue: 0.2, alpha: 1) bbxLable.textColor = UIColor(red: 0.2, green: 0.2, blue: 0.2, alpha: 1)
bbxLable.font = kFont(size: 18) bbxLable.font = UIFont.PFSC_R(ofSize: 18)
subContentView.addSubview(bbxLable) subContentView.addSubview(bbxLable)
bbxLable.snp.makeConstraints { make in bbxLable.snp.makeConstraints { make in
...@@ -79,7 +79,7 @@ class YHDavidCell5: UITableViewCell { ...@@ -79,7 +79,7 @@ class YHDavidCell5: UITableViewCell {
desLable.text = "香港本地宝,智慧小助手" desLable.text = "香港本地宝,智慧小助手"
desLable.frame = CGRect(x: 0, y: 0, width: 141.5, height: 11.5) desLable.frame = CGRect(x: 0, y: 0, width: 141.5, height: 11.5)
desLable.textColor = UIColor(red: 0.592, green: 0.592, blue: 0.592, alpha: 1) desLable.textColor = UIColor(red: 0.592, green: 0.592, blue: 0.592, alpha: 1)
desLable.font = kFont(size: 10) desLable.font = UIFont.PFSC_R(ofSize: 10)
subContentView.addSubview(desLable) subContentView.addSubview(desLable)
desLable.snp.makeConstraints { make in desLable.snp.makeConstraints { make in
make.left.equalTo(bbxLable.snp.right).offset(11) make.left.equalTo(bbxLable.snp.right).offset(11)
......
...@@ -115,7 +115,7 @@ class YHFormPickerView: UIView { ...@@ -115,7 +115,7 @@ class YHFormPickerView: UIView {
let btn = UIButton() let btn = UIButton()
btn.setTitle("取消".local, for: .normal) btn.setTitle("取消".local, for: .normal)
btn.titleLabel?.font = UIFont.PFSC_R(ofSize: 14) btn.titleLabel?.font = UIFont.PFSC_R(ofSize: 14)
btn.setTitleColor(UIColor(hex: 0x222222), for: .normal) btn.setTitleColor(UIColor.mainTextColor, for: .normal)
btn.addTarget(self, action: #selector(didClickCancelButton), for: .touchUpInside) btn.addTarget(self, action: #selector(didClickCancelButton), for: .touchUpInside)
return btn return btn
}() }()
......
...@@ -35,7 +35,7 @@ class YHFormItemExpireDateCell: UITableViewCell { ...@@ -35,7 +35,7 @@ class YHFormItemExpireDateCell: UITableViewCell {
let str = (isMust ? ("*"+title) : title) let str = (isMust ? ("*"+title) : title)
let attributes: [NSAttributedString.Key: Any] = [ let attributes: [NSAttributedString.Key: Any] = [
.font: UIFont.PFSC_R(ofSize: 14), .font: UIFont.PFSC_R(ofSize: 14),
.foregroundColor: UIColor(hex:0x222222)] .foregroundColor: UIColor.mainTextColor]
let questionAttrStr = NSMutableAttributedString(string: str, attributes: attributes) let questionAttrStr = NSMutableAttributedString(string: str, attributes: attributes)
if isMust { if isMust {
let starRange = NSRange(location: 0, length: 1) let starRange = NSRange(location: 0, length: 1)
...@@ -89,7 +89,7 @@ class YHFormItemExpireDateCell: UITableViewCell { ...@@ -89,7 +89,7 @@ class YHFormItemExpireDateCell: UITableViewCell {
let btn = UIButton(type: .custom) let btn = UIButton(type: .custom)
btn.setTitle("长期".local, for: .normal) btn.setTitle("长期".local, for: .normal)
btn.titleLabel?.font = UIFont.PFSC_R(ofSize: 14) btn.titleLabel?.font = UIFont.PFSC_R(ofSize: 14)
btn.setTitleColor(UIColor(hex: 0x222222), for: .normal) btn.setTitleColor(UIColor.mainTextColor, 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)
btn.setImage(UIImage(named: "form_square_select"), for: .selected) btn.setImage(UIImage(named: "form_square_select"), for: .selected)
......
...@@ -14,7 +14,7 @@ class YHFormItemOnlyDoubleChoiceCell: UITableViewCell { ...@@ -14,7 +14,7 @@ class YHFormItemOnlyDoubleChoiceCell: UITableViewCell {
let btnWidth = 70.0 let btnWidth = 70.0
let btnHeight = 32.0 let btnHeight = 32.0
let btnTitleSelectColor = UIColor(hex: 0x4487F9) let btnTitleSelectColor = UIColor(hex: 0x4487F9)
let btnTitleDefaultColor = UIColor(hex:0x222222) let btnTitleDefaultColor = UIColor.mainTextColor
let btnBgDefaultColor = UIColor(hex:0xF8F9FB) let btnBgDefaultColor = UIColor(hex:0xF8F9FB)
let btnBgSelectColor = UIColor(hex:0x4487F9, alpha: 0.08) let btnBgSelectColor = UIColor(hex:0x4487F9, alpha: 0.08)
let answerBaseTag = 9527 let answerBaseTag = 9527
......
...@@ -47,6 +47,8 @@ class YHMainApplicantInformationViewController: YHBaseViewController { ...@@ -47,6 +47,8 @@ class YHMainApplicantInformationViewController: YHBaseViewController {
} }
func setView() { func setView() {
view.backgroundColor = .contentBkgColor
stepView = { stepView = {
let step = YHStepView() let step = YHStepView()
step.dataSource = ["初始信息", "证件上传", "基本信息", "证件信息"] step.dataSource = ["初始信息", "证件上传", "基本信息", "证件信息"]
......
...@@ -36,7 +36,7 @@ class YHSelectCountryViewController: YHBaseViewController { ...@@ -36,7 +36,7 @@ class YHSelectCountryViewController: YHBaseViewController {
searchView = { searchView = {
let searchBar = UITextField() let searchBar = UITextField()
searchBar.placeholder = "搜索国家/地区" searchBar.placeholder = "搜索国家/地区"
searchBar.backgroundColor = UIColor(hex: 0xf8f9fb) searchBar.backgroundColor = UIColor.contentBkgColor
searchBar.keyboardType = .default searchBar.keyboardType = .default
searchBar.delegate = self searchBar.delegate = self
searchBar.layer.cornerRadius = 21 searchBar.layer.cornerRadius = 21
...@@ -75,8 +75,8 @@ class YHSelectCountryViewController: YHBaseViewController { ...@@ -75,8 +75,8 @@ class YHSelectCountryViewController: YHBaseViewController {
flagLabel = { flagLabel = {
let label = UILabel() let label = UILabel()
label.text = "热门国家/地区" label.text = "热门国家/地区"
label.textColor = UIColor(hex: 0x222222) label.textColor = UIColor.mainTextColor
label.font = kFont(size: 14) label.font = UIFont.PFSC_R(ofSize: 14)
return label return label
}() }()
view.addSubview(flagLabel) view.addSubview(flagLabel)
...@@ -200,8 +200,8 @@ class YHCountryCollectionViewCell: UICollectionViewCell { ...@@ -200,8 +200,8 @@ class YHCountryCollectionViewCell: UICollectionViewCell {
let view = UILabel() let view = UILabel()
view.textAlignment = .center view.textAlignment = .center
view.font = UIFont.PFSC_R(ofSize: 13) view.font = UIFont.PFSC_R(ofSize: 13)
view.textColor = UIColor(hex: 0x222222) view.textColor = UIColor.mainTextColor
view.backgroundColor = UIColor(hex: 0xf8f9fb) view.backgroundColor = UIColor.contentBkgColor
view.layer.masksToBounds = true view.layer.masksToBounds = true
view.layer.cornerRadius = 16 view.layer.cornerRadius = 16
return view return view
...@@ -241,7 +241,7 @@ class YHCountryTableViewCell: UITableViewCell { ...@@ -241,7 +241,7 @@ class YHCountryTableViewCell: UITableViewCell {
titleLabel = { titleLabel = {
let label = UILabel() let label = UILabel()
label.font = UIFont.PFSC_R(ofSize: 13) label.font = UIFont.PFSC_R(ofSize: 13)
label.textColor = UIColor(hex:0x222222) label.textColor = UIColor.mainTextColor
return label return label
}() }()
contentView.addSubview(titleLabel) contentView.addSubview(titleLabel)
......
...@@ -28,12 +28,12 @@ class YHBottomNextView: UIView { ...@@ -28,12 +28,12 @@ class YHBottomNextView: UIView {
func setUpView() { func setUpView() {
saveButton = { saveButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex:0xf8f9fb) button.backgroundColor = UIColor.contentBkgColor
button.titleLabel?.font = kBoldFont(size: 15) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 15)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("保存", for: .normal) button.setTitle("保存", for: .normal)
button.setTitleColor( UIColor(hex:0x222222), for: .normal) button.setTitleColor( UIColor.mainTextColor, for: .normal)
button.layer.cornerRadius = 8 button.layer.cornerRadius = kCornerRadius6
button.addTarget(self, action: #selector(save), for: .touchUpInside) button.addTarget(self, action: #selector(save), for: .touchUpInside)
return button return button
}() }()
...@@ -47,12 +47,12 @@ class YHBottomNextView: UIView { ...@@ -47,12 +47,12 @@ class YHBottomNextView: UIView {
nextButton = { nextButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex:0x4d9ff8) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 15)
button.titleLabel?.font = kBoldFont(size: 15)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("下一步", for: .normal) button.setTitle("下一步", for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal) button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
button.layer.cornerRadius = 8 button.layer.cornerRadius = kCornerRadius6
button.clipsToBounds = true
button.addTarget(self, action: #selector(goNext), for: .touchUpInside) button.addTarget(self, action: #selector(goNext), for: .touchUpInside)
return button return button
}() }()
...@@ -63,6 +63,10 @@ class YHBottomNextView: UIView { ...@@ -63,6 +63,10 @@ class YHBottomNextView: UIView {
make.height.equalTo(44) make.height.equalTo(44)
make.width.equalTo(247) make.width.equalTo(247)
} }
nextButton.layoutIfNeeded()
nextButton.backgroundGradient()
} }
......
...@@ -58,7 +58,7 @@ class YHCardExampleView: UIView { ...@@ -58,7 +58,7 @@ class YHCardExampleView: UIView {
centerView = { centerView = {
let view = UIView() let view = UIView()
view.backgroundColor = .white view.backgroundColor = .white
view.layer.cornerRadius = 12 view.layer.cornerRadius = kCornerRadius6
return view return view
}() }()
addSubview(centerView) addSubview(centerView)
...@@ -70,8 +70,8 @@ class YHCardExampleView: UIView { ...@@ -70,8 +70,8 @@ class YHCardExampleView: UIView {
titleLabel = { titleLabel = {
let label = UILabel() let label = UILabel()
label.text = "身份证示例模板" label.text = "身份证示例模板"
label.font = kFont(size: 17) label.font = UIFont.PFSC_M(ofSize: 17)
label.textColor = UIColor(hex:0x222222) label.textColor = UIColor.mainTextColor
label.textAlignment = .left label.textAlignment = .left
return label return label
}() }()
...@@ -97,7 +97,7 @@ class YHCardExampleView: UIView { ...@@ -97,7 +97,7 @@ class YHCardExampleView: UIView {
lineView = { lineView = {
let view = UIView() let view = UIView()
view.backgroundColor = UIColor(hex: 0xf0f0f0) view.backgroundColor = UIColor.separatorColor
return view return view
}() }()
centerView.addSubview(lineView) centerView.addSubview(lineView)
...@@ -111,8 +111,8 @@ class YHCardExampleView: UIView { ...@@ -111,8 +111,8 @@ class YHCardExampleView: UIView {
messageLabel = { messageLabel = {
let label = UILabel() let label = UILabel()
label.text = "*须使用二代身份证" label.text = "*须使用二代身份证"
label.font = kFont(size: 14) label.font = UIFont.PFSC_R(ofSize: 14)
label.textColor = UIColor(hex:0xc0c0c0) label.textColor = UIColor.placeHolderColor
label.textAlignment = .left label.textAlignment = .left
label.numberOfLines = 0 label.numberOfLines = 0
return label return label
...@@ -154,11 +154,11 @@ class YHCardExampleView: UIView { ...@@ -154,11 +154,11 @@ class YHCardExampleView: UIView {
bottomButton = { bottomButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex:0x4d9ffb) button.backgroundColor = UIColor(hex:0x4d9ffb)
button.titleLabel?.font = kBoldFont(size: 16) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 16)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("知道了", for: .normal) button.setTitle("知道了", for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal) button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
button.layer.cornerRadius = 8 button.layer.cornerRadius = kCornerRadius6
button.addTarget(self, action: #selector(dismiss), for: .touchUpInside) button.addTarget(self, action: #selector(dismiss), for: .touchUpInside)
return button return button
}() }()
...@@ -182,8 +182,8 @@ class YHCardExampleView: UIView { ...@@ -182,8 +182,8 @@ class YHCardExampleView: UIView {
} }
let label = UILabel() let label = UILabel()
label.text = array[i] label.text = array[i]
label.textColor = UIColor(hex: 0x222222) label.textColor = UIColor.mainTextColor
label.font = kFont(size: 14) label.font = UIFont.PFSC_R(ofSize: 14)
centerView.addSubview(label) centerView.addSubview(label)
label.snp.makeConstraints { make in label.snp.makeConstraints { make in
make.top.equalTo(73) make.top.equalTo(73)
......
...@@ -83,8 +83,8 @@ class YHDatePickView: UIView { ...@@ -83,8 +83,8 @@ class YHDatePickView: UIView {
titleLabel = { titleLabel = {
let label = UILabel() let label = UILabel()
label.text = "选择出生日期" label.text = "选择出生日期"
label.font = kFont(size: 17) label.font = UIFont.PFSC_M(ofSize: 17)
label.textColor = UIColor(hex:0x222222) label.textColor = UIColor.mainTextColor
label.textAlignment = .center label.textAlignment = .center
return label return label
}() }()
...@@ -98,10 +98,10 @@ class YHDatePickView: UIView { ...@@ -98,10 +98,10 @@ class YHDatePickView: UIView {
closeButton = { closeButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.titleLabel?.font = kBoldFont(size: 14) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 14)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("取消", for: .normal) button.setTitle("取消", for: .normal)
button.setTitleColor( UIColor(hex:0x222222), for: .normal) button.setTitleColor( UIColor.mainTextColor, for: .normal)
button.addTarget(self, action: #selector(dismiss), for: .touchUpInside) button.addTarget(self, action: #selector(dismiss), for: .touchUpInside)
return button return button
}() }()
...@@ -115,7 +115,7 @@ class YHDatePickView: UIView { ...@@ -115,7 +115,7 @@ class YHDatePickView: UIView {
sureButton = { sureButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.titleLabel?.font = kBoldFont(size: 14) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 14)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("确定", for: .normal) button.setTitle("确定", for: .normal)
button.setTitleColor( UIColor(hex:0x4487f9), for: .normal) button.setTitleColor( UIColor(hex:0x4487f9), for: .normal)
...@@ -132,7 +132,7 @@ class YHDatePickView: UIView { ...@@ -132,7 +132,7 @@ class YHDatePickView: UIView {
lineView = { lineView = {
let view = UIView() let view = UIView()
view.backgroundColor = UIColor(hex: 0xf0f0f0) view.backgroundColor = UIColor.separatorColor
return view return view
}() }()
centerView.addSubview(lineView) centerView.addSubview(lineView)
......
...@@ -57,8 +57,8 @@ class YHImagePickerView: UIView { ...@@ -57,8 +57,8 @@ class YHImagePickerView: UIView {
titleLabel = { titleLabel = {
let label = UILabel() let label = UILabel()
label.text = "请选择上传方式" label.text = "请选择上传方式"
label.font = kFont(size: 17) label.font = UIFont.PFSC_M(ofSize: 17)
label.textColor = UIColor(hex:0x222222) label.textColor = UIColor.mainTextColor
label.textAlignment = .left label.textAlignment = .left
return label return label
}() }()
...@@ -84,10 +84,10 @@ class YHImagePickerView: UIView { ...@@ -84,10 +84,10 @@ class YHImagePickerView: UIView {
takePhotoBtton = { takePhotoBtton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.titleLabel?.font = kBoldFont(size: 14) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 14)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("拍照上传", for: .normal) button.setTitle("拍照上传", for: .normal)
button.setTitleColor( UIColor(hex:0x222222), for: .normal) button.setTitleColor( UIColor.mainTextColor, for: .normal)
button.addTarget(self, action: #selector(takePhoto), for: .touchUpInside) button.addTarget(self, action: #selector(takePhoto), for: .touchUpInside)
return button return button
}() }()
...@@ -101,10 +101,10 @@ class YHImagePickerView: UIView { ...@@ -101,10 +101,10 @@ class YHImagePickerView: UIView {
selectPhotoButton = { selectPhotoButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.titleLabel?.font = kBoldFont(size: 14) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 14)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("相册上传", for: .normal) button.setTitle("相册上传", for: .normal)
button.setTitleColor( UIColor(hex:0x222222), for: .normal) button.setTitleColor( UIColor.mainTextColor, for: .normal)
button.addTarget(self, action: #selector(selectPhoto), for: .touchUpInside) button.addTarget(self, action: #selector(selectPhoto), for: .touchUpInside)
return button return button
}() }()
...@@ -118,7 +118,7 @@ class YHImagePickerView: UIView { ...@@ -118,7 +118,7 @@ class YHImagePickerView: UIView {
cannalButton = { cannalButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.titleLabel?.font = kBoldFont(size: 14) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 14)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("取消", for: .normal) button.setTitle("取消", for: .normal)
button.setTitleColor( UIColor(hex:0x909090), for: .normal) button.setTitleColor( UIColor(hex:0x909090), for: .normal)
...@@ -135,7 +135,7 @@ class YHImagePickerView: UIView { ...@@ -135,7 +135,7 @@ class YHImagePickerView: UIView {
for i in 0..<3 { for i in 0..<3 {
let view = UIView() let view = UIView()
view.backgroundColor = UIColor(hex: 0xf0f0f0) view.backgroundColor = UIColor.separatorColor
centerView.addSubview(view) centerView.addSubview(view)
view.snp.makeConstraints { make in view.snp.makeConstraints { make in
make.left.equalTo(18) make.left.equalTo(18)
......
...@@ -48,6 +48,8 @@ class YHItemView: UIView { ...@@ -48,6 +48,8 @@ class YHItemView: UIView {
messageTextField = { messageTextField = {
let textField = UITextField() let textField = UITextField()
textField.delegate = self textField.delegate = self
textField.textColor = UIColor.mainTextColor
textField.font = UIFont.PFSC_M(ofSize: 14)
return textField return textField
}() }()
addSubview(messageTextField) addSubview(messageTextField)
...@@ -81,12 +83,12 @@ class YHItemView: UIView { ...@@ -81,12 +83,12 @@ class YHItemView: UIView {
rightButton = { rightButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex: 0x4487f9).withAlphaComponent(0.08) button.backgroundColor = UIColor.brandMainColor.withAlphaComponent(0.08)
button.setTitleColor(UIColor(hex: 0x4487f9), for: .selected) button.setTitleColor(UIColor.brandMainColor, for: .selected)
button.setTitleColor(UIColor(hex: 0x222222), for: .normal) button.setTitleColor(UIColor.mainTextColor, for: .normal)
button.layer.cornerRadius = 16 button.layer.cornerRadius = 16
button.layer.borderWidth = 1 button.layer.borderWidth = 1
button.layer.borderColor = UIColor(hex: 0x4487f9).cgColor button.layer.borderColor = UIColor.brandMainColor.cgColor
button.isSelected = true button.isSelected = true
button.addTarget(self, action: #selector(rightClick), for: .touchUpInside) button.addTarget(self, action: #selector(rightClick), for: .touchUpInside)
return button return button
...@@ -101,9 +103,9 @@ class YHItemView: UIView { ...@@ -101,9 +103,9 @@ class YHItemView: UIView {
leftButton = { leftButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex: 0xf8f9fb) button.backgroundColor = UIColor.contentBkgColor
button.setTitleColor(UIColor(hex: 0x4487f9), for: .selected) button.setTitleColor(UIColor.brandMainColor, for: .selected)
button.setTitleColor(UIColor(hex: 0x222222), for: .normal) button.setTitleColor(UIColor.mainTextColor, for: .normal)
button.layer.cornerRadius = 16 button.layer.cornerRadius = 16
button.addTarget(self, action: #selector(leftClick), for: .touchUpInside) button.addTarget(self, action: #selector(leftClick), for: .touchUpInside)
return button return button
...@@ -124,7 +126,7 @@ class YHItemView: UIView { ...@@ -124,7 +126,7 @@ class YHItemView: UIView {
let str = "*" + (dataSource.title ?? "") let str = "*" + (dataSource.title ?? "")
let attributes: [NSAttributedString.Key: Any] = [ let attributes: [NSAttributedString.Key: Any] = [
.font: UIFont.PFSC_R(ofSize: 14), .font: UIFont.PFSC_R(ofSize: 14),
.foregroundColor: UIColor(hex:0x222222) .foregroundColor: UIColor.mainTextColor
] ]
let questionAttrStr = NSMutableAttributedString(string: str, attributes: attributes) let questionAttrStr = NSMutableAttributedString(string: str, attributes: attributes)
let starRange = NSRange(location: 0, length: 1) let starRange = NSRange(location: 0, length: 1)
...@@ -133,8 +135,8 @@ class YHItemView: UIView { ...@@ -133,8 +135,8 @@ class YHItemView: UIView {
} else { } else {
let str = dataSource.title ?? "" let str = dataSource.title ?? ""
let attributes: [NSAttributedString.Key: Any] = [ let attributes: [NSAttributedString.Key: Any] = [
.font: kFont(size: 14), .font: UIFont.PFSC_R(ofSize: 14),
.foregroundColor: UIColor(hex:0x222222) .foregroundColor: UIColor.mainTextColor
] ]
let questionAttrStr = NSMutableAttributedString(string: str, attributes: attributes) let questionAttrStr = NSMutableAttributedString(string: str, attributes: attributes)
titleLabel.attributedText = questionAttrStr titleLabel.attributedText = questionAttrStr
...@@ -193,49 +195,61 @@ class YHItemView: UIView { ...@@ -193,49 +195,61 @@ class YHItemView: UIView {
leftButton.isSelected = true leftButton.isSelected = true
rightButton.isSelected = false rightButton.isSelected = false
leftButton.layer.borderWidth = 1 leftButton.layer.borderWidth = 1
leftButton.layer.borderColor = UIColor(hex: 0x4487f9).cgColor leftButton.layer.borderColor = UIColor.brandMainColor.cgColor
leftButton.backgroundColor = UIColor(hex: 0x4487f9).withAlphaComponent(0.08) leftButton.backgroundColor = UIColor.brandMainColor.withAlphaComponent(0.08)
rightButton.backgroundColor = UIColor(hex: 0xf8f9fb) rightButton.backgroundColor = UIColor.contentBkgColor
rightButton.layer.borderWidth = 0 rightButton.layer.borderWidth = 0
leftButton.titleLabel?.font = UIFont.PFSC_M(ofSize: 13)
rightButton.titleLabel?.font = UIFont.PFSC_R(ofSize: 13)
} else { } else {
rightButton.isSelected = true rightButton.isSelected = true
leftButton.isSelected = false leftButton.isSelected = false
rightButton.layer.borderWidth = 1 rightButton.layer.borderWidth = 1
rightButton.layer.borderColor = UIColor(hex: 0x4487f9).cgColor rightButton.layer.borderColor = UIColor.brandMainColor.cgColor
rightButton.backgroundColor = UIColor(hex: 0x4487f9).withAlphaComponent(0.08) rightButton.backgroundColor = UIColor.brandMainColor.withAlphaComponent(0.08)
leftButton.backgroundColor = UIColor(hex: 0xf8f9fb) leftButton.backgroundColor = UIColor.contentBkgColor
leftButton.layer.borderWidth = 0 leftButton.layer.borderWidth = 0
rightButton.titleLabel?.font = UIFont.PFSC_M(ofSize: 13)
leftButton.titleLabel?.font = UIFont.PFSC_R(ofSize: 13)
} }
} }
@objc func rightClick() { @objc func rightClick() {
rightButton.isSelected = true rightButton.isSelected = true
leftButton.isSelected = false leftButton.isSelected = false
rightButton.layer.borderWidth = 1 rightButton.layer.borderWidth = 1
rightButton.layer.borderColor = UIColor(hex: 0x4487f9).cgColor rightButton.layer.borderColor = UIColor.brandMainColor.cgColor
rightButton.backgroundColor = UIColor(hex: 0x4487f9).withAlphaComponent(0.08) rightButton.backgroundColor = UIColor.brandMainColor.withAlphaComponent(0.08)
leftButton.backgroundColor = UIColor(hex: 0xf8f9fb) leftButton.backgroundColor = UIColor.contentBkgColor
leftButton.layer.borderWidth = 0 leftButton.layer.borderWidth = 0
dataSource?.message = "0" dataSource?.message = "0"
dataSource?.value = ["0"] dataSource?.value = ["0"]
if let block = block { if let block = block {
block(dataSource ?? YHItemModel()) block(dataSource ?? YHItemModel())
} }
rightButton.titleLabel?.font = UIFont.PFSC_M(ofSize: 13)
leftButton.titleLabel?.font = UIFont.PFSC_R(ofSize: 13)
} }
@objc func leftClick() { @objc func leftClick() {
leftButton.isSelected = true leftButton.isSelected = true
rightButton.isSelected = false rightButton.isSelected = false
leftButton.layer.borderWidth = 1 leftButton.layer.borderWidth = 1
leftButton.layer.borderColor = UIColor(hex: 0x4487f9).cgColor leftButton.layer.borderColor = UIColor.brandMainColor.cgColor
leftButton.backgroundColor = UIColor(hex: 0x4487f9).withAlphaComponent(0.08) leftButton.backgroundColor = UIColor.brandMainColor.withAlphaComponent(0.08)
rightButton.backgroundColor = UIColor(hex: 0xf8f9fb) rightButton.backgroundColor = UIColor.contentBkgColor
rightButton.layer.borderWidth = 0 rightButton.layer.borderWidth = 0
dataSource?.message = "1" dataSource?.message = "1"
dataSource?.value = ["1"] dataSource?.value = ["1"]
if let block = block { if let block = block {
block(dataSource ?? YHItemModel()) block(dataSource ?? YHItemModel())
} }
leftButton.titleLabel?.font = UIFont.PFSC_M(ofSize: 13)
rightButton.titleLabel?.font = UIFont.PFSC_R(ofSize: 13)
} }
@objc func centerClick() { @objc func centerClick() {
......
...@@ -66,25 +66,28 @@ class YHMainInformationCardTableViewCell: UITableViewCell { ...@@ -66,25 +66,28 @@ class YHMainInformationCardTableViewCell: UITableViewCell {
} }
func setupUI() { func setupUI() {
backgroundColor = UIColor(hex: 0xe9e9e9) contentView.backgroundColor = .clear
backgroundColor = .clear
centerView = { centerView = {
let view = UIView() let view = UIView()
view.backgroundColor = .white view.backgroundColor = .white
view.layer.cornerRadius = 12 view.layer.cornerRadius = kCornerRadius6
return view return view
}() }()
contentView.addSubview(centerView) contentView.addSubview(centerView)
centerView.snp.makeConstraints { make in centerView.snp.makeConstraints { make in
make.left.equalTo(16) make.left.equalTo(16)
make.right.equalTo(-16) make.right.equalTo(-16)
make.top.equalTo(7) make.top.equalTo(7)
make.bottom.equalTo(-7) make.bottom.equalTo(-16)
} }
titleLabel = { titleLabel = {
let label = UILabel() let label = UILabel()
label.font = kFont(size: 17) label.font = UIFont.PFSC_M(ofSize: 17)
label.textColor = UIColor(hex:0x222222) label.textColor = UIColor.mainTextColor
return label return label
}() }()
centerView.addSubview(titleLabel) centerView.addSubview(titleLabel)
...@@ -96,11 +99,11 @@ class YHMainInformationCardTableViewCell: UITableViewCell { ...@@ -96,11 +99,11 @@ class YHMainInformationCardTableViewCell: UITableViewCell {
exampleButton = { exampleButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex:0x1f93ff).withAlphaComponent(0.12) button.backgroundColor = UIColor.brandMainColor.withAlphaComponent(0.08)
button.titleLabel?.font = kBoldFont(size: 10) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 10)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("示例模板", for: .normal) button.setTitle("示例模板", for: .normal)
button.setTitleColor( UIColor(hex:0x0085ff), for: .normal) button.setTitleColor( UIColor.brandMainColor, for: .normal)
button.layer.cornerRadius = 4 button.layer.cornerRadius = 4
button.addTarget(self, action: #selector(exampleClick), for: .touchUpInside) button.addTarget(self, action: #selector(exampleClick), for: .touchUpInside)
return button return button
...@@ -115,7 +118,7 @@ class YHMainInformationCardTableViewCell: UITableViewCell { ...@@ -115,7 +118,7 @@ class YHMainInformationCardTableViewCell: UITableViewCell {
let lineView = { let lineView = {
let view = UIView() let view = UIView()
view.backgroundColor = UIColor(hex: 0xf0f0f0) view.backgroundColor = UIColor.separatorColor
return view return view
}() }()
centerView.addSubview(lineView) centerView.addSubview(lineView)
...@@ -128,8 +131,8 @@ class YHMainInformationCardTableViewCell: UITableViewCell { ...@@ -128,8 +131,8 @@ class YHMainInformationCardTableViewCell: UITableViewCell {
frontLabel = { frontLabel = {
let label = UILabel() let label = UILabel()
label.font = kFont(size: 12) label.font = UIFont.PFSC_R(ofSize: 12)
label.textColor = UIColor(hex:0x888f98) label.textColor = UIColor.contentBkgColor
label.textAlignment = .center label.textAlignment = .center
return label return label
}() }()
...@@ -143,8 +146,8 @@ class YHMainInformationCardTableViewCell: UITableViewCell { ...@@ -143,8 +146,8 @@ class YHMainInformationCardTableViewCell: UITableViewCell {
backSurfaceLabel = { backSurfaceLabel = {
let label = UILabel() let label = UILabel()
label.font = kFont(size: 12) label.font = UIFont.PFSC_R(ofSize: 12)
label.textColor = UIColor(hex:0x888f98) label.textColor = UIColor.contentBkgColor
label.textAlignment = .center label.textAlignment = .center
return label return label
}() }()
......
...@@ -41,11 +41,13 @@ class YHMainInformationTableViewCell: UITableViewCell { ...@@ -41,11 +41,13 @@ class YHMainInformationTableViewCell: UITableViewCell {
} }
func setupUI() { func setupUI() {
backgroundColor = UIColor(hex: 0xe9e9e9) contentView.backgroundColor = .clear
backgroundColor = .clear
centerView = { centerView = {
let view = UIView() let view = UIView()
view.backgroundColor = .white view.backgroundColor = .white
view.layer.cornerRadius = 12 view.layer.cornerRadius = kCornerRadius6
return view return view
}() }()
contentView.addSubview(centerView) contentView.addSubview(centerView)
...@@ -58,8 +60,8 @@ class YHMainInformationTableViewCell: UITableViewCell { ...@@ -58,8 +60,8 @@ class YHMainInformationTableViewCell: UITableViewCell {
titleLabel = { titleLabel = {
let label = UILabel() let label = UILabel()
label.font = kFont(size: 17) label.font = UIFont.PFSC_M(ofSize: 17)
label.textColor = UIColor(hex:0x222222) label.textColor = UIColor.mainTextColor
return label return label
}() }()
centerView.addSubview(titleLabel) centerView.addSubview(titleLabel)
...@@ -73,7 +75,7 @@ class YHMainInformationTableViewCell: UITableViewCell { ...@@ -73,7 +75,7 @@ class YHMainInformationTableViewCell: UITableViewCell {
mainItemView = { mainItemView = {
let view = UIView() let view = UIView()
view.backgroundColor = .white view.backgroundColor = .white
view.layer.cornerRadius = 12 view.layer.cornerRadius = kCornerRadius6
return view return view
}() }()
centerView.addSubview(mainItemView) centerView.addSubview(mainItemView)
...@@ -88,7 +90,7 @@ class YHMainInformationTableViewCell: UITableViewCell { ...@@ -88,7 +90,7 @@ class YHMainInformationTableViewCell: UITableViewCell {
mainItemView.removeSubviews() mainItemView.removeSubviews()
for i in 0 ..< (dataSource?.models?.count ?? 0) { for i in 0 ..< (dataSource?.models?.count ?? 0) {
let line = UIView() let line = UIView()
line.backgroundColor = UIColor(hex: 0xf0f0f0) line.backgroundColor = UIColor.separatorColor
mainItemView.addSubview(line) mainItemView.addSubview(line)
line.snp.makeConstraints { make in line.snp.makeConstraints { make in
make.left.equalTo(18) make.left.equalTo(18)
......
...@@ -20,7 +20,7 @@ class YHScoreItemCell: UITableViewCell { ...@@ -20,7 +20,7 @@ class YHScoreItemCell: UITableViewCell {
private lazy var holdView : UIView = { private lazy var holdView : UIView = {
let view = UIView() let view = UIView()
view.backgroundColor = .white view.backgroundColor = .white
view.layer.cornerRadius = 12 view.layer.cornerRadius = kCornerRadius6
view.clipsToBounds = true view.clipsToBounds = true
return view return view
}() }()
......
...@@ -126,7 +126,7 @@ class YHOtherPickerView: UIView { ...@@ -126,7 +126,7 @@ class YHOtherPickerView: UIView {
let btn = UIButton() let btn = UIButton()
btn.setTitle("取消".local, for: .normal) btn.setTitle("取消".local, for: .normal)
btn.titleLabel?.font = UIFont.PFSC_R(ofSize: 14) btn.titleLabel?.font = UIFont.PFSC_R(ofSize: 14)
btn.setTitleColor(UIColor(hex: 0x222222), for: .normal) btn.setTitleColor(UIColor.mainTextColor, for: .normal)
btn.addTarget(self, action: #selector(didClickCancelButton), for: .touchUpInside) btn.addTarget(self, action: #selector(didClickCancelButton), for: .touchUpInside)
return btn return btn
}() }()
......
...@@ -137,7 +137,7 @@ extension YHPersonInfoCommonCell { ...@@ -137,7 +137,7 @@ extension YHPersonInfoCommonCell {
for (index0,item0) in arrData.enumerated() { for (index0,item0) in arrData.enumerated() {
let lable = UILabel() let lable = UILabel()
lable.text = item0.cellTitle lable.text = item0.cellTitle
lable.textColor = UIColor(hex: 0x222222) lable.textColor = UIColor.mainTextColor
lable.font = UIFont.PFSC_M(ofSize: 14) lable.font = UIFont.PFSC_M(ofSize: 14)
holdView.addSubview(lable) holdView.addSubview(lable)
lable.snp.makeConstraints { make in lable.snp.makeConstraints { make in
......
...@@ -52,8 +52,8 @@ class YHWorkExampleViewController: YHBaseViewController { ...@@ -52,8 +52,8 @@ class YHWorkExampleViewController: YHBaseViewController {
titleLabel = { titleLabel = {
let label = UILabel() let label = UILabel()
label.text = "参考示例" label.text = "参考示例"
label.font = kBoldFont(size: 17) label.font = UIFont.PFSC_M(ofSize: 17)
label.textColor = UIColor(hex:0x222222) label.textColor = UIColor.mainTextColor
label.textAlignment = .center label.textAlignment = .center
return label return label
}() }()
...@@ -67,7 +67,7 @@ class YHWorkExampleViewController: YHBaseViewController { ...@@ -67,7 +67,7 @@ class YHWorkExampleViewController: YHBaseViewController {
lineView = { lineView = {
let line = UIView() let line = UIView()
line.backgroundColor = UIColor(hex: 0xf0f0f0) line.backgroundColor = UIColor.separatorColor
return line return line
}() }()
view.addSubview(lineView) view.addSubview(lineView)
......
...@@ -72,7 +72,7 @@ class YHWorkExperienceListViewController: YHBaseViewController { ...@@ -72,7 +72,7 @@ class YHWorkExperienceListViewController: YHBaseViewController {
bottomButton = { bottomButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex:0x2274ee) button.backgroundColor = UIColor(hex:0x2274ee)
button.titleLabel?.font = kBoldFont(size: 16) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 16)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("提交", for: .normal) button.setTitle("提交", for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal) button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
......
...@@ -40,8 +40,8 @@ class YHWorkIntroductionViewController: YHBaseViewController { ...@@ -40,8 +40,8 @@ class YHWorkIntroductionViewController: YHBaseViewController {
let array = ["项目名称", "项目时间", "项目业绩/亮点"] let array = ["项目名称", "项目时间", "项目业绩/亮点"]
for i in 0..<array.count { for i in 0..<array.count {
let label = UILabel() let label = UILabel()
label.textColor = UIColor(hex: 0x222222) label.textColor = UIColor.mainTextColor
label.font = kFont(size: 14) label.font = UIFont.PFSC_R(ofSize: 14)
label.text = array[i] label.text = array[i]
view.addSubview(label) view.addSubview(label)
label.snp.makeConstraints { make in label.snp.makeConstraints { make in
...@@ -65,7 +65,7 @@ class YHWorkIntroductionViewController: YHBaseViewController { ...@@ -65,7 +65,7 @@ class YHWorkIntroductionViewController: YHBaseViewController {
nameTextField = { nameTextField = {
let textField = UITextField() let textField = UITextField()
textField.font = kFont(size: 14) textField.font = UIFont.PFSC_R(ofSize: 14)
textField.placeholder = "如方便提供,请填写" textField.placeholder = "如方便提供,请填写"
return textField return textField
}() }()
...@@ -79,7 +79,7 @@ class YHWorkIntroductionViewController: YHBaseViewController { ...@@ -79,7 +79,7 @@ class YHWorkIntroductionViewController: YHBaseViewController {
startTextField = { startTextField = {
let textField = UITextField() let textField = UITextField()
textField.font = kFont(size: 14) textField.font = UIFont.PFSC_R(ofSize: 14)
textField.placeholder = "开始时间" textField.placeholder = "开始时间"
textField.isEnabled = false textField.isEnabled = false
textField.isUserInteractionEnabled = false textField.isUserInteractionEnabled = false
...@@ -108,7 +108,7 @@ class YHWorkIntroductionViewController: YHBaseViewController { ...@@ -108,7 +108,7 @@ class YHWorkIntroductionViewController: YHBaseViewController {
endTextField = { endTextField = {
let textField = UITextField() let textField = UITextField()
textField.font = kFont(size: 14) textField.font = UIFont.PFSC_R(ofSize: 14)
textField.placeholder = "结束时间" textField.placeholder = "结束时间"
textField.isEnabled = false textField.isEnabled = false
textField.isUserInteractionEnabled = false textField.isUserInteractionEnabled = false
...@@ -136,7 +136,7 @@ class YHWorkIntroductionViewController: YHBaseViewController { ...@@ -136,7 +136,7 @@ class YHWorkIntroductionViewController: YHBaseViewController {
} }
let lineView = UIView() let lineView = UIView()
lineView.backgroundColor = UIColor(hex: 0x222222) lineView.backgroundColor = UIColor.mainTextColor
view.addSubview(lineView) view.addSubview(lineView)
lineView.snp.makeConstraints { make in lineView.snp.makeConstraints { make in
make.centerY.equalTo(startTextField.snp.centerY) make.centerY.equalTo(startTextField.snp.centerY)
...@@ -147,8 +147,8 @@ class YHWorkIntroductionViewController: YHBaseViewController { ...@@ -147,8 +147,8 @@ class YHWorkIntroductionViewController: YHBaseViewController {
messageTextField = { messageTextField = {
let textField = UITextView() let textField = UITextView()
textField.backgroundColor = UIColor(hex: 0xf8f9fb) textField.backgroundColor = UIColor.contentBkgColor
textField.font = kFont(size: 14) textField.font = UIFont.PFSC_R(ofSize: 14)
textField.layer.cornerRadius = 6 textField.layer.cornerRadius = 6
textField.delegate = self textField.delegate = self
return textField return textField
...@@ -163,7 +163,7 @@ class YHWorkIntroductionViewController: YHBaseViewController { ...@@ -163,7 +163,7 @@ class YHWorkIntroductionViewController: YHBaseViewController {
promptsLabel = { promptsLabel = {
let prompts = UILabel() let prompts = UILabel()
prompts.font = kFont(size: 14) prompts.font = UIFont.PFSC_R(ofSize: 14)
prompts.textColor = UIColor(hex: 0xc0c0c0) prompts.textColor = UIColor(hex: 0xc0c0c0)
prompts.text = "在职期间负责的核心项目,如果负责过多个项目,请分段描述:\n\n例子:\n\n模式1、本人对XX项目展开深入研究,通过对XX方法/方式,研究出XX。此外,她还指出XX问题,反映了XX。XX的研究成果对XX产生了重要性,为XX领域/方面提供参考依据;\n\n模式2、本人在司参与了XX项目,该项目具有XX突出意义。在此项目中,XX是个难点,本人通过XX方法,实现了XX成果。在XX方面,本人通过XX方式,完成了XX工作。本人凭借在XX领域的丰富经验,推动项目在中国/海外市场取得XX成果。" prompts.text = "在职期间负责的核心项目,如果负责过多个项目,请分段描述:\n\n例子:\n\n模式1、本人对XX项目展开深入研究,通过对XX方法/方式,研究出XX。此外,她还指出XX问题,反映了XX。XX的研究成果对XX产生了重要性,为XX领域/方面提供参考依据;\n\n模式2、本人在司参与了XX项目,该项目具有XX突出意义。在此项目中,XX是个难点,本人通过XX方法,实现了XX成果。在XX方面,本人通过XX方式,完成了XX工作。本人凭借在XX领域的丰富经验,推动项目在中国/海外市场取得XX成果。"
prompts.numberOfLines = 0 prompts.numberOfLines = 0
...@@ -208,7 +208,7 @@ class YHWorkIntroductionViewController: YHBaseViewController { ...@@ -208,7 +208,7 @@ class YHWorkIntroductionViewController: YHBaseViewController {
bottomButton = { bottomButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex:0x2274ee) button.backgroundColor = UIColor(hex:0x2274ee)
button.titleLabel?.font = kBoldFont(size: 16) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 16)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("保存", for: .normal) button.setTitle("保存", for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal) button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
......
...@@ -46,7 +46,7 @@ class YHWorkExampleMessageTableViewCell: UITableViewCell { ...@@ -46,7 +46,7 @@ class YHWorkExampleMessageTableViewCell: UITableViewCell {
backgroundColor = .white backgroundColor = .white
centerView = { centerView = {
let view = UIView() let view = UIView()
view.backgroundColor = UIColor(hex: 0xf8f9fb) view.backgroundColor = UIColor.contentBkgColor
view.layer.cornerRadius = 8 view.layer.cornerRadius = 8
return view return view
}() }()
...@@ -60,9 +60,9 @@ class YHWorkExampleMessageTableViewCell: UITableViewCell { ...@@ -60,9 +60,9 @@ class YHWorkExampleMessageTableViewCell: UITableViewCell {
titleLabel = { titleLabel = {
let label = UILabel() let label = UILabel()
label.font = kFont(size: 14) label.font = UIFont.PFSC_R(ofSize: 14)
label.text = "工作职责范例1" label.text = "工作职责范例1"
label.textColor = UIColor(hex:0x222222) label.textColor = UIColor.mainTextColor
return label return label
}() }()
centerView.addSubview(titleLabel) centerView.addSubview(titleLabel)
...@@ -76,7 +76,7 @@ class YHWorkExampleMessageTableViewCell: UITableViewCell { ...@@ -76,7 +76,7 @@ class YHWorkExampleMessageTableViewCell: UITableViewCell {
useButton = { useButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex:0x2f7ef6).withAlphaComponent(0.08) button.backgroundColor = UIColor(hex:0x2f7ef6).withAlphaComponent(0.08)
button.titleLabel?.font = kBoldFont(size: 12) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 12)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("使用此模板", for: .normal) button.setTitle("使用此模板", for: .normal)
button.setTitleColor( UIColor(hex:0x2f7ef6), for: .normal) button.setTitleColor( UIColor(hex:0x2f7ef6), for: .normal)
...@@ -94,7 +94,7 @@ class YHWorkExampleMessageTableViewCell: UITableViewCell { ...@@ -94,7 +94,7 @@ class YHWorkExampleMessageTableViewCell: UITableViewCell {
lineView = { lineView = {
let line = UIView() let line = UIView()
line.backgroundColor = UIColor(hex: 0xf0f0f0) line.backgroundColor = UIColor.separatorColor
return line return line
}() }()
centerView.addSubview(lineView) centerView.addSubview(lineView)
...@@ -107,8 +107,8 @@ class YHWorkExampleMessageTableViewCell: UITableViewCell { ...@@ -107,8 +107,8 @@ class YHWorkExampleMessageTableViewCell: UITableViewCell {
messageLabel = { messageLabel = {
let label = UILabel() let label = UILabel()
label.numberOfLines = 0 label.numberOfLines = 0
label.font = kFont(size: 14) label.font = UIFont.PFSC_R(ofSize: 14)
label.textColor = UIColor(hex:0x222222) label.textColor = UIColor.mainTextColor
return label return label
}() }()
centerView.addSubview(messageLabel) centerView.addSubview(messageLabel)
......
...@@ -49,10 +49,10 @@ class YHWorkExampleMessageView: UIView { ...@@ -49,10 +49,10 @@ class YHWorkExampleMessageView: UIView {
titleLabel = { titleLabel = {
let label = UILabel() let label = UILabel()
label.font = kBoldFont(size: 16) label.font = UIFont.PFSC_M(ofSize: 16)
label.text = "业务支援及人力资源" label.text = "业务支援及人力资源"
label.textAlignment = .left label.textAlignment = .left
label.textColor = UIColor(hex:0x222222) label.textColor = UIColor.mainTextColor
return label return label
}() }()
addSubview(titleLabel) addSubview(titleLabel)
......
...@@ -30,10 +30,10 @@ class YHWorkExampleTypeView: UIView { ...@@ -30,10 +30,10 @@ class YHWorkExampleTypeView: UIView {
func setUpView() { func setUpView() {
titleLabel = { titleLabel = {
let label = UILabel() let label = UILabel()
label.font = kBoldFont(size: 14) label.font = UIFont.PFSC_M(ofSize: 14)
label.text = "请选择您的行业:" label.text = "请选择您的行业:"
label.textAlignment = .left label.textAlignment = .left
label.textColor = UIColor(hex:0x222222) label.textColor = UIColor.mainTextColor
return label return label
}() }()
addSubview(titleLabel) addSubview(titleLabel)
...@@ -70,8 +70,8 @@ class YHWorkExampleTypeView: UIView { ...@@ -70,8 +70,8 @@ class YHWorkExampleTypeView: UIView {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.setTitle(dataSource[i], for: .normal) button.setTitle(dataSource[i], for: .normal)
button.setTitleColor(UIColor(hex: 0x222222), for: .normal) button.setTitleColor(UIColor.mainTextColor, for: .normal)
button.setBackgroundColor(color: UIColor(hex: 0xf8f9fb), forState: .normal) button.setBackgroundColor(color: UIColor.contentBkgColor, forState: .normal)
button.titleLabel?.font = UIFont.PFSC_R(ofSize: 13) button.titleLabel?.font = UIFont.PFSC_R(ofSize: 13)
button.layer.cornerRadius = 16 button.layer.cornerRadius = 16
button.tag = 3000 + i button.tag = 3000 + i
......
...@@ -81,12 +81,12 @@ class YHWorkExperienceItemView: UIView { ...@@ -81,12 +81,12 @@ class YHWorkExperienceItemView: UIView {
rightButton = { rightButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex: 0x4487f9).withAlphaComponent(0.08) button.backgroundColor = UIColor.brandMainColor.withAlphaComponent(0.08)
button.setTitleColor(UIColor(hex: 0x4487f9), for: .selected) button.setTitleColor(UIColor.brandMainColor, for: .selected)
button.setTitleColor(UIColor(hex: 0x222222), for: .normal) button.setTitleColor(UIColor.mainTextColor, for: .normal)
button.layer.cornerRadius = 16 button.layer.cornerRadius = 16
button.layer.borderWidth = 1 button.layer.borderWidth = 1
button.layer.borderColor = UIColor(hex: 0x4487f9).cgColor button.layer.borderColor = UIColor.brandMainColor.cgColor
button.isSelected = true button.isSelected = true
button.addTarget(self, action: #selector(rightClick), for: .touchUpInside) button.addTarget(self, action: #selector(rightClick), for: .touchUpInside)
return button return button
...@@ -101,9 +101,9 @@ class YHWorkExperienceItemView: UIView { ...@@ -101,9 +101,9 @@ class YHWorkExperienceItemView: UIView {
leftButton = { leftButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex: 0xf8f9fb) button.backgroundColor = UIColor.contentBkgColor
button.setTitleColor(UIColor(hex: 0x4487f9), for: .selected) button.setTitleColor(UIColor.brandMainColor, for: .selected)
button.setTitleColor(UIColor(hex: 0x222222), for: .normal) button.setTitleColor(UIColor.mainTextColor, for: .normal)
button.layer.cornerRadius = 16 button.layer.cornerRadius = 16
button.addTarget(self, action: #selector(leftClick), for: .touchUpInside) button.addTarget(self, action: #selector(leftClick), for: .touchUpInside)
return button return button
...@@ -124,7 +124,7 @@ class YHWorkExperienceItemView: UIView { ...@@ -124,7 +124,7 @@ class YHWorkExperienceItemView: UIView {
let str = "*" + (dataSource.title ?? "") let str = "*" + (dataSource.title ?? "")
let attributes: [NSAttributedString.Key: Any] = [ let attributes: [NSAttributedString.Key: Any] = [
.font: UIFont.PFSC_R(ofSize: 14), .font: UIFont.PFSC_R(ofSize: 14),
.foregroundColor: UIColor(hex:0x222222) .foregroundColor: UIColor.mainTextColor
] ]
let questionAttrStr = NSMutableAttributedString(string: str, attributes: attributes) let questionAttrStr = NSMutableAttributedString(string: str, attributes: attributes)
let starRange = NSRange(location: 0, length: 1) let starRange = NSRange(location: 0, length: 1)
...@@ -133,8 +133,8 @@ class YHWorkExperienceItemView: UIView { ...@@ -133,8 +133,8 @@ class YHWorkExperienceItemView: UIView {
} else { } else {
let str = dataSource.title ?? "" let str = dataSource.title ?? ""
let attributes: [NSAttributedString.Key: Any] = [ let attributes: [NSAttributedString.Key: Any] = [
.font: kFont(size: 14), .font: UIFont.PFSC_R(ofSize: 14),
.foregroundColor: UIColor(hex:0x222222) .foregroundColor: UIColor.mainTextColor
] ]
let questionAttrStr = NSMutableAttributedString(string: str, attributes: attributes) let questionAttrStr = NSMutableAttributedString(string: str, attributes: attributes)
titleLabel.attributedText = questionAttrStr titleLabel.attributedText = questionAttrStr
...@@ -193,17 +193,17 @@ class YHWorkExperienceItemView: UIView { ...@@ -193,17 +193,17 @@ class YHWorkExperienceItemView: UIView {
leftButton.isSelected = true leftButton.isSelected = true
rightButton.isSelected = false rightButton.isSelected = false
leftButton.layer.borderWidth = 1 leftButton.layer.borderWidth = 1
leftButton.layer.borderColor = UIColor(hex: 0x4487f9).cgColor leftButton.layer.borderColor = UIColor.brandMainColor.cgColor
leftButton.backgroundColor = UIColor(hex: 0x4487f9).withAlphaComponent(0.08) leftButton.backgroundColor = UIColor.brandMainColor.withAlphaComponent(0.08)
rightButton.backgroundColor = UIColor(hex: 0xf8f9fb) rightButton.backgroundColor = UIColor.contentBkgColor
rightButton.layer.borderWidth = 0 rightButton.layer.borderWidth = 0
} else { } else {
rightButton.isSelected = true rightButton.isSelected = true
leftButton.isSelected = false leftButton.isSelected = false
rightButton.layer.borderWidth = 1 rightButton.layer.borderWidth = 1
rightButton.layer.borderColor = UIColor(hex: 0x4487f9).cgColor rightButton.layer.borderColor = UIColor.brandMainColor.cgColor
rightButton.backgroundColor = UIColor(hex: 0x4487f9).withAlphaComponent(0.08) rightButton.backgroundColor = UIColor.brandMainColor.withAlphaComponent(0.08)
leftButton.backgroundColor = UIColor(hex: 0xf8f9fb) leftButton.backgroundColor = UIColor.contentBkgColor
leftButton.layer.borderWidth = 0 leftButton.layer.borderWidth = 0
} }
} }
...@@ -212,9 +212,9 @@ class YHWorkExperienceItemView: UIView { ...@@ -212,9 +212,9 @@ class YHWorkExperienceItemView: UIView {
rightButton.isSelected = true rightButton.isSelected = true
leftButton.isSelected = false leftButton.isSelected = false
rightButton.layer.borderWidth = 1 rightButton.layer.borderWidth = 1
rightButton.layer.borderColor = UIColor(hex: 0x4487f9).cgColor rightButton.layer.borderColor = UIColor.brandMainColor.cgColor
rightButton.backgroundColor = UIColor(hex: 0x4487f9).withAlphaComponent(0.08) rightButton.backgroundColor = UIColor.brandMainColor.withAlphaComponent(0.08)
leftButton.backgroundColor = UIColor(hex: 0xf8f9fb) leftButton.backgroundColor = UIColor.contentBkgColor
leftButton.layer.borderWidth = 0 leftButton.layer.borderWidth = 0
dataSource?.message = "0" dataSource?.message = "0"
dataSource?.value = ["0"] dataSource?.value = ["0"]
...@@ -227,9 +227,9 @@ class YHWorkExperienceItemView: UIView { ...@@ -227,9 +227,9 @@ class YHWorkExperienceItemView: UIView {
leftButton.isSelected = true leftButton.isSelected = true
rightButton.isSelected = false rightButton.isSelected = false
leftButton.layer.borderWidth = 1 leftButton.layer.borderWidth = 1
leftButton.layer.borderColor = UIColor(hex: 0x4487f9).cgColor leftButton.layer.borderColor = UIColor.brandMainColor.cgColor
leftButton.backgroundColor = UIColor(hex: 0x4487f9).withAlphaComponent(0.08) leftButton.backgroundColor = UIColor.brandMainColor.withAlphaComponent(0.08)
rightButton.backgroundColor = UIColor(hex: 0xf8f9fb) rightButton.backgroundColor = UIColor.contentBkgColor
rightButton.layer.borderWidth = 0 rightButton.layer.borderWidth = 0
dataSource?.message = "1" dataSource?.message = "1"
dataSource?.value = ["1"] dataSource?.value = ["1"]
......
...@@ -52,7 +52,7 @@ class YHWorkExperienceListTableViewCell: UITableViewCell { ...@@ -52,7 +52,7 @@ class YHWorkExperienceListTableViewCell: UITableViewCell {
centerView = { centerView = {
let view = UIView() let view = UIView()
view.backgroundColor = .white view.backgroundColor = .white
view.layer.cornerRadius = 12 view.layer.cornerRadius = kCornerRadius6
return view return view
}() }()
contentView.addSubview(centerView) contentView.addSubview(centerView)
...@@ -65,9 +65,9 @@ class YHWorkExperienceListTableViewCell: UITableViewCell { ...@@ -65,9 +65,9 @@ class YHWorkExperienceListTableViewCell: UITableViewCell {
titleLabel = { titleLabel = {
let label = UILabel() let label = UILabel()
label.font = kFont(size: 16) label.font = UIFont.PFSC_R(ofSize: 16)
label.text = "主申请人工作经历" label.text = "主申请人工作经历"
label.textColor = UIColor(hex:0x222222) label.textColor = UIColor.mainTextColor
return label return label
}() }()
centerView.addSubview(titleLabel) centerView.addSubview(titleLabel)
...@@ -80,9 +80,9 @@ class YHWorkExperienceListTableViewCell: UITableViewCell { ...@@ -80,9 +80,9 @@ class YHWorkExperienceListTableViewCell: UITableViewCell {
subTitleLabel = { subTitleLabel = {
let label = UILabel() let label = UILabel()
label.font = kFont(size: 12) label.font = UIFont.PFSC_R(ofSize: 12)
label.text = "(从最近一份全职工作开始,直至毕业后的第一份工作)" label.text = "(从最近一份全职工作开始,直至毕业后的第一份工作)"
label.textColor = UIColor(hex:0x888f98) label.textColor = UIColor.contentBkgColor
return label return label
}() }()
centerView.addSubview(subTitleLabel) centerView.addSubview(subTitleLabel)
...@@ -95,7 +95,7 @@ class YHWorkExperienceListTableViewCell: UITableViewCell { ...@@ -95,7 +95,7 @@ class YHWorkExperienceListTableViewCell: UITableViewCell {
cannalButton = { cannalButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.titleLabel?.font = kBoldFont(size: 14) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 14)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("取消操作", for: .normal) button.setTitle("取消操作", for: .normal)
button.setTitleColor( UIColor(hex:0x2f7ef6), for: .normal) button.setTitleColor( UIColor(hex:0x2f7ef6), for: .normal)
...@@ -129,7 +129,7 @@ class YHWorkExperienceListTableViewCell: UITableViewCell { ...@@ -129,7 +129,7 @@ class YHWorkExperienceListTableViewCell: UITableViewCell {
mainItemView = { mainItemView = {
let view = UIView() let view = UIView()
view.backgroundColor = .white view.backgroundColor = .white
view.layer.cornerRadius = 12 view.layer.cornerRadius = kCornerRadius6
return view return view
}() }()
centerView.addSubview(mainItemView) centerView.addSubview(mainItemView)
...@@ -155,7 +155,7 @@ class YHWorkExperienceListTableViewCell: UITableViewCell { ...@@ -155,7 +155,7 @@ class YHWorkExperienceListTableViewCell: UITableViewCell {
mainItemView.removeSubviews() mainItemView.removeSubviews()
guard let dataSource = dataSource else { guard let dataSource = dataSource else {
let line = UIView() let line = UIView()
line.backgroundColor = UIColor(hex: 0xf0f0f0) line.backgroundColor = UIColor.separatorColor
mainItemView.addSubview(line) mainItemView.addSubview(line)
line.snp.makeConstraints { make in line.snp.makeConstraints { make in
make.left.equalTo(18) make.left.equalTo(18)
...@@ -177,7 +177,7 @@ class YHWorkExperienceListTableViewCell: UITableViewCell { ...@@ -177,7 +177,7 @@ class YHWorkExperienceListTableViewCell: UITableViewCell {
for i in 0 ..< dataSource.count { for i in 0 ..< dataSource.count {
let line = UIView() let line = UIView()
line.backgroundColor = UIColor(hex: 0xf0f0f0) line.backgroundColor = UIColor.separatorColor
mainItemView.addSubview(line) mainItemView.addSubview(line)
line.snp.makeConstraints { make in line.snp.makeConstraints { make in
make.left.equalTo(18) make.left.equalTo(18)
......
...@@ -45,7 +45,7 @@ class YHWorkExperienceTableViewCell: UITableViewCell { ...@@ -45,7 +45,7 @@ class YHWorkExperienceTableViewCell: UITableViewCell {
centerView = { centerView = {
let view = UIView() let view = UIView()
view.backgroundColor = .white view.backgroundColor = .white
view.layer.cornerRadius = 12 view.layer.cornerRadius = kCornerRadius6
return view return view
}() }()
contentView.addSubview(centerView) contentView.addSubview(centerView)
...@@ -58,8 +58,8 @@ class YHWorkExperienceTableViewCell: UITableViewCell { ...@@ -58,8 +58,8 @@ class YHWorkExperienceTableViewCell: UITableViewCell {
titleLabel = { titleLabel = {
let label = UILabel() let label = UILabel()
label.font = kFont(size: 17) label.font = UIFont.PFSC_M(ofSize: 17)
label.textColor = UIColor(hex:0x222222) label.textColor = UIColor.mainTextColor
return label return label
}() }()
centerView.addSubview(titleLabel) centerView.addSubview(titleLabel)
...@@ -73,7 +73,7 @@ class YHWorkExperienceTableViewCell: UITableViewCell { ...@@ -73,7 +73,7 @@ class YHWorkExperienceTableViewCell: UITableViewCell {
mainItemView = { mainItemView = {
let view = UIView() let view = UIView()
view.backgroundColor = .white view.backgroundColor = .white
view.layer.cornerRadius = 12 view.layer.cornerRadius = kCornerRadius6
return view return view
}() }()
centerView.addSubview(mainItemView) centerView.addSubview(mainItemView)
...@@ -89,7 +89,7 @@ class YHWorkExperienceTableViewCell: UITableViewCell { ...@@ -89,7 +89,7 @@ class YHWorkExperienceTableViewCell: UITableViewCell {
var y = 0 var y = 0
for i in 0 ..< (dataSource?.models?.count ?? 0) { for i in 0 ..< (dataSource?.models?.count ?? 0) {
let line = UIView() let line = UIView()
line.backgroundColor = UIColor(hex: 0xf0f0f0) line.backgroundColor = UIColor.separatorColor
mainItemView.addSubview(line) mainItemView.addSubview(line)
line.snp.makeConstraints { make in line.snp.makeConstraints { make in
make.left.equalTo(18) make.left.equalTo(18)
......
...@@ -47,7 +47,7 @@ class YHWorkExperienceTextItemView: UIView { ...@@ -47,7 +47,7 @@ class YHWorkExperienceTextItemView: UIView {
messageTextField = { messageTextField = {
let textField = UITextView() let textField = UITextView()
textField.backgroundColor = UIColor(hex: 0xf8f9fb) textField.backgroundColor = UIColor.contentBkgColor
textField.layer.cornerRadius = 4 textField.layer.cornerRadius = 4
textField.delegate = self textField.delegate = self
return textField return textField
...@@ -61,7 +61,7 @@ class YHWorkExperienceTextItemView: UIView { ...@@ -61,7 +61,7 @@ class YHWorkExperienceTextItemView: UIView {
promptsLabel = { promptsLabel = {
let textField = UILabel() let textField = UILabel()
textField.font = kFont(size: 14) textField.font = UIFont.PFSC_R(ofSize: 14)
textField.textColor = UIColor(hex: 0xc0c0c0) textField.textColor = UIColor(hex: 0xc0c0c0)
return textField return textField
}() }()
...@@ -91,7 +91,7 @@ class YHWorkExperienceTextItemView: UIView { ...@@ -91,7 +91,7 @@ class YHWorkExperienceTextItemView: UIView {
let str = "*" + (dataSource.title ?? "") let str = "*" + (dataSource.title ?? "")
let attributes: [NSAttributedString.Key: Any] = [ let attributes: [NSAttributedString.Key: Any] = [
.font: UIFont.PFSC_R(ofSize: 14), .font: UIFont.PFSC_R(ofSize: 14),
.foregroundColor: UIColor(hex:0x222222) .foregroundColor: UIColor.mainTextColor
] ]
let questionAttrStr = NSMutableAttributedString(string: str, attributes: attributes) let questionAttrStr = NSMutableAttributedString(string: str, attributes: attributes)
let starRange = NSRange(location: 0, length: 1) let starRange = NSRange(location: 0, length: 1)
...@@ -100,8 +100,8 @@ class YHWorkExperienceTextItemView: UIView { ...@@ -100,8 +100,8 @@ class YHWorkExperienceTextItemView: UIView {
} else { } else {
let str = dataSource.title ?? "" let str = dataSource.title ?? ""
let attributes: [NSAttributedString.Key: Any] = [ let attributes: [NSAttributedString.Key: Any] = [
.font: kFont(size: 14), .font: UIFont.PFSC_R(ofSize: 14),
.foregroundColor: UIColor(hex:0x222222) .foregroundColor: UIColor.mainTextColor
] ]
let questionAttrStr = NSMutableAttributedString(string: str, attributes: attributes) let questionAttrStr = NSMutableAttributedString(string: str, attributes: attributes)
titleLabel.attributedText = questionAttrStr titleLabel.attributedText = questionAttrStr
......
...@@ -32,9 +32,9 @@ class YHWorkFileItemView: UIView { ...@@ -32,9 +32,9 @@ class YHWorkFileItemView: UIView {
func setUpView() { func setUpView() {
titleLabel = { titleLabel = {
let label = UILabel() let label = UILabel()
label.font = kBoldFont(size: 14) label.font = UIFont.PFSC_M(ofSize: 14)
label.textAlignment = .left label.textAlignment = .left
label.textColor = UIColor(hex:0x222222) label.textColor = UIColor.mainTextColor
return label return label
}() }()
addSubview(titleLabel) addSubview(titleLabel)
...@@ -47,7 +47,7 @@ class YHWorkFileItemView: UIView { ...@@ -47,7 +47,7 @@ class YHWorkFileItemView: UIView {
deleteButton = { deleteButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.titleLabel?.font = kFont(size: 14) button.titleLabel?.font = UIFont.PFSC_R(ofSize: 14)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("删除", for: .normal) button.setTitle("删除", for: .normal)
button.setTitleColor( UIColor(hex:0xf81d22), for: .normal) button.setTitleColor( UIColor(hex:0xf81d22), for: .normal)
......
...@@ -49,7 +49,7 @@ class YHWorkFileSyncTableViewCell: UITableViewCell { ...@@ -49,7 +49,7 @@ class YHWorkFileSyncTableViewCell: UITableViewCell {
centerView = { centerView = {
let view = UIView() let view = UIView()
view.backgroundColor = .white view.backgroundColor = .white
view.layer.cornerRadius = 12 view.layer.cornerRadius = kCornerRadius6
return view return view
}() }()
contentView.addSubview(centerView) contentView.addSubview(centerView)
...@@ -65,7 +65,7 @@ class YHWorkFileSyncTableViewCell: UITableViewCell { ...@@ -65,7 +65,7 @@ class YHWorkFileSyncTableViewCell: UITableViewCell {
let str = "*" + "上传文件" let str = "*" + "上传文件"
let attributes: [NSAttributedString.Key: Any] = [ let attributes: [NSAttributedString.Key: Any] = [
.font: UIFont.PFSC_R(ofSize: 17), .font: UIFont.PFSC_R(ofSize: 17),
.foregroundColor: UIColor(hex:0x222222) .foregroundColor: UIColor.mainTextColor
] ]
let questionAttrStr = NSMutableAttributedString(string: str, attributes: attributes) let questionAttrStr = NSMutableAttributedString(string: str, attributes: attributes)
let starRange = NSRange(location: 0, length: 1) let starRange = NSRange(location: 0, length: 1)
...@@ -84,7 +84,7 @@ class YHWorkFileSyncTableViewCell: UITableViewCell { ...@@ -84,7 +84,7 @@ class YHWorkFileSyncTableViewCell: UITableViewCell {
mainItemView = { mainItemView = {
let view = UIView() let view = UIView()
view.backgroundColor = .white view.backgroundColor = .white
view.layer.cornerRadius = 12 view.layer.cornerRadius = kCornerRadius6
return view return view
}() }()
centerView.addSubview(mainItemView) centerView.addSubview(mainItemView)
...@@ -117,7 +117,7 @@ class YHWorkFileSyncTableViewCell: UITableViewCell { ...@@ -117,7 +117,7 @@ class YHWorkFileSyncTableViewCell: UITableViewCell {
mainItemView.removeSubviews() mainItemView.removeSubviews()
for i in 0 ..< (dataSource?.count ?? 0) { for i in 0 ..< (dataSource?.count ?? 0) {
let line = UIView() let line = UIView()
line.backgroundColor = UIColor(hex: 0xf0f0f0) line.backgroundColor = UIColor.separatorColor
mainItemView.addSubview(line) mainItemView.addSubview(line)
line.snp.makeConstraints { make in line.snp.makeConstraints { make in
make.left.equalTo(18) make.left.equalTo(18)
......
...@@ -64,7 +64,7 @@ class YHWorkHighlightsTableViewCell: UITableViewCell { ...@@ -64,7 +64,7 @@ class YHWorkHighlightsTableViewCell: UITableViewCell {
let str = "*" + "工作亮点" let str = "*" + "工作亮点"
let attributes: [NSAttributedString.Key: Any] = [ let attributes: [NSAttributedString.Key: Any] = [
.font: UIFont.PFSC_R(ofSize: 17), .font: UIFont.PFSC_R(ofSize: 17),
.foregroundColor: UIColor(hex:0x222222) .foregroundColor: UIColor.mainTextColor
] ]
let questionAttrStr = NSMutableAttributedString(string: str, attributes: attributes) let questionAttrStr = NSMutableAttributedString(string: str, attributes: attributes)
let starRange = NSRange(location: 0, length: 1) let starRange = NSRange(location: 0, length: 1)
...@@ -84,7 +84,7 @@ class YHWorkHighlightsTableViewCell: UITableViewCell { ...@@ -84,7 +84,7 @@ class YHWorkHighlightsTableViewCell: UITableViewCell {
let label = UILabel() let label = UILabel()
label.text = "温馨提示:如下模板仅供思路参考,工作内容请按您的实际填写,后期文案会基于该内容进行文书材料撰写,望悉知" label.text = "温馨提示:如下模板仅供思路参考,工作内容请按您的实际填写,后期文案会基于该内容进行文书材料撰写,望悉知"
label.textColor = UIColor(hex: 0x2f7ef6) label.textColor = UIColor(hex: 0x2f7ef6)
label.font = kFont(size: 12) label.font = UIFont.PFSC_R(ofSize: 12)
label.numberOfLines = 0 label.numberOfLines = 0
return label return label
}() }()
...@@ -98,7 +98,7 @@ class YHWorkHighlightsTableViewCell: UITableViewCell { ...@@ -98,7 +98,7 @@ class YHWorkHighlightsTableViewCell: UITableViewCell {
lineView = { lineView = {
let line = UIView() let line = UIView()
line.backgroundColor = UIColor(hex: 0xf0f0f0) line.backgroundColor = UIColor.separatorColor
return line return line
}() }()
centerView.addSubview(lineView) centerView.addSubview(lineView)
...@@ -111,7 +111,7 @@ class YHWorkHighlightsTableViewCell: UITableViewCell { ...@@ -111,7 +111,7 @@ class YHWorkHighlightsTableViewCell: UITableViewCell {
messageTextField = { messageTextField = {
let textField = UITextView() let textField = UITextView()
textField.font = kFont(size: 14) textField.font = UIFont.PFSC_R(ofSize: 14)
textField.delegate = self textField.delegate = self
return textField return textField
}() }()
...@@ -125,7 +125,7 @@ class YHWorkHighlightsTableViewCell: UITableViewCell { ...@@ -125,7 +125,7 @@ class YHWorkHighlightsTableViewCell: UITableViewCell {
promptsLabel = { promptsLabel = {
let prompts = UILabel() let prompts = UILabel()
prompts.font = kFont(size: 14) prompts.font = UIFont.PFSC_R(ofSize: 14)
prompts.textColor = UIColor(hex: 0xc0c0c0) prompts.textColor = UIColor(hex: 0xc0c0c0)
prompts.text = "示例:打破常规,超越同行或其他同事的优秀业绩;或有开创性且突破公司期望的杰出贡献,且给公司带来价值和收益。\n\n请举例2-3个工作亮点:\n\na. 是什么:某项目背景或工作目标或难点\nb.为什么:为什么出现这个项目工作/难点,旨在体现分析过程,为您后面提出解决方案做铺垫\nc.怎么处理:您是怎么把这件事做好的?用了什么技术/方法?有何突出/创新之处?\nd.有什么价值:为公司、客户或您本身带来了哪些价值?客户或您本身带来了哪些价值?\n最好用实际数据证明,比如销售业绩增加了多少,或者利润增加了多少,客户群体增加了多少等。" prompts.text = "示例:打破常规,超越同行或其他同事的优秀业绩;或有开创性且突破公司期望的杰出贡献,且给公司带来价值和收益。\n\n请举例2-3个工作亮点:\n\na. 是什么:某项目背景或工作目标或难点\nb.为什么:为什么出现这个项目工作/难点,旨在体现分析过程,为您后面提出解决方案做铺垫\nc.怎么处理:您是怎么把这件事做好的?用了什么技术/方法?有何突出/创新之处?\nd.有什么价值:为公司、客户或您本身带来了哪些价值?客户或您本身带来了哪些价值?\n最好用实际数据证明,比如销售业绩增加了多少,或者利润增加了多少,客户群体增加了多少等。"
prompts.numberOfLines = 0 prompts.numberOfLines = 0
...@@ -141,8 +141,8 @@ class YHWorkHighlightsTableViewCell: UITableViewCell { ...@@ -141,8 +141,8 @@ class YHWorkHighlightsTableViewCell: UITableViewCell {
detailLabel = { detailLabel = {
let label = UILabel() let label = UILabel()
label.text = "项目详细介绍" label.text = "项目详细介绍"
label.textColor = UIColor(hex: 0x222222) label.textColor = UIColor.mainTextColor
label.font = kFont(size: 14) label.font = UIFont.PFSC_R(ofSize: 14)
return label return label
}() }()
centerView.addSubview(detailLabel) centerView.addSubview(detailLabel)
......
...@@ -35,9 +35,9 @@ class YHWorkIntroductionItemView: UIView { ...@@ -35,9 +35,9 @@ class YHWorkIntroductionItemView: UIView {
func setUpView() { func setUpView() {
titleLabel = { titleLabel = {
let label = UILabel() let label = UILabel()
label.font = kBoldFont(size: 14) label.font = UIFont.PFSC_M(ofSize: 14)
label.textAlignment = .left label.textAlignment = .left
label.textColor = UIColor(hex:0x222222) label.textColor = UIColor.mainTextColor
return label return label
}() }()
addSubview(titleLabel) addSubview(titleLabel)
...@@ -50,9 +50,9 @@ class YHWorkIntroductionItemView: UIView { ...@@ -50,9 +50,9 @@ class YHWorkIntroductionItemView: UIView {
subTitleLabel = { subTitleLabel = {
let label = UILabel() let label = UILabel()
label.font = kBoldFont(size: 12) label.font = UIFont.PFSC_M(ofSize: 12)
label.textAlignment = .left label.textAlignment = .left
label.textColor = UIColor(hex:0x888f98) label.textColor = UIColor.contentBkgColor
return label return label
}() }()
addSubview(subTitleLabel) addSubview(subTitleLabel)
...@@ -87,7 +87,7 @@ class YHWorkIntroductionItemView: UIView { ...@@ -87,7 +87,7 @@ class YHWorkIntroductionItemView: UIView {
deleteButton = { deleteButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.titleLabel?.font = kFont(size: 14) button.titleLabel?.font = UIFont.PFSC_R(ofSize: 14)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("删除", for: .normal) button.setTitle("删除", for: .normal)
button.setTitleColor( UIColor(hex:0xf81d22), for: .normal) button.setTitleColor( UIColor(hex:0xf81d22), for: .normal)
......
...@@ -51,7 +51,7 @@ class YHWorkIntroductionTableViewCell: UITableViewCell { ...@@ -51,7 +51,7 @@ class YHWorkIntroductionTableViewCell: UITableViewCell {
centerView = { centerView = {
let view = UIView() let view = UIView()
view.backgroundColor = .white view.backgroundColor = .white
view.layer.cornerRadius = 12 view.layer.cornerRadius = kCornerRadius6
return view return view
}() }()
contentView.addSubview(centerView) contentView.addSubview(centerView)
...@@ -64,9 +64,9 @@ class YHWorkIntroductionTableViewCell: UITableViewCell { ...@@ -64,9 +64,9 @@ class YHWorkIntroductionTableViewCell: UITableViewCell {
titleLabel = { titleLabel = {
let label = UILabel() let label = UILabel()
label.font = kFont(size: 16) label.font = UIFont.PFSC_R(ofSize: 16)
label.text = "项目介绍(选填)" label.text = "项目介绍(选填)"
label.textColor = UIColor(hex:0x222222) label.textColor = UIColor.mainTextColor
return label return label
}() }()
centerView.addSubview(titleLabel) centerView.addSubview(titleLabel)
...@@ -79,7 +79,7 @@ class YHWorkIntroductionTableViewCell: UITableViewCell { ...@@ -79,7 +79,7 @@ class YHWorkIntroductionTableViewCell: UITableViewCell {
cannalButton = { cannalButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.titleLabel?.font = kBoldFont(size: 14) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 14)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("取消操作", for: .normal) button.setTitle("取消操作", for: .normal)
button.setTitleColor( UIColor(hex:0x2f7ef6), for: .normal) button.setTitleColor( UIColor(hex:0x2f7ef6), for: .normal)
...@@ -113,7 +113,7 @@ class YHWorkIntroductionTableViewCell: UITableViewCell { ...@@ -113,7 +113,7 @@ class YHWorkIntroductionTableViewCell: UITableViewCell {
mainItemView = { mainItemView = {
let view = UIView() let view = UIView()
view.backgroundColor = .white view.backgroundColor = .white
view.layer.cornerRadius = 12 view.layer.cornerRadius = kCornerRadius6
return view return view
}() }()
centerView.addSubview(mainItemView) centerView.addSubview(mainItemView)
...@@ -146,7 +146,7 @@ class YHWorkIntroductionTableViewCell: UITableViewCell { ...@@ -146,7 +146,7 @@ class YHWorkIntroductionTableViewCell: UITableViewCell {
mainItemView.removeSubviews() mainItemView.removeSubviews()
for i in 0 ..< (dataSource?.count ?? 0) { for i in 0 ..< (dataSource?.count ?? 0) {
let line = UIView() let line = UIView()
line.backgroundColor = UIColor(hex: 0xf0f0f0) line.backgroundColor = UIColor.separatorColor
mainItemView.addSubview(line) mainItemView.addSubview(line)
line.snp.makeConstraints { make in line.snp.makeConstraints { make in
make.left.equalTo(18) make.left.equalTo(18)
......
...@@ -38,9 +38,9 @@ class YHWorkItemView: UIView { ...@@ -38,9 +38,9 @@ class YHWorkItemView: UIView {
func setUpView() { func setUpView() {
titleLabel = { titleLabel = {
let label = UILabel() let label = UILabel()
label.font = kBoldFont(size: 14) label.font = UIFont.PFSC_M(ofSize: 14)
label.textAlignment = .left label.textAlignment = .left
label.textColor = UIColor(hex:0x222222) label.textColor = UIColor.mainTextColor
return label return label
}() }()
addSubview(titleLabel) addSubview(titleLabel)
...@@ -53,9 +53,9 @@ class YHWorkItemView: UIView { ...@@ -53,9 +53,9 @@ class YHWorkItemView: UIView {
subTitleLabel = { subTitleLabel = {
let label = UILabel() let label = UILabel()
label.font = kBoldFont(size: 12) label.font = UIFont.PFSC_M(ofSize: 12)
label.textAlignment = .left label.textAlignment = .left
label.textColor = UIColor(hex:0x888f98) label.textColor = UIColor.contentBkgColor
return label return label
}() }()
addSubview(subTitleLabel) addSubview(subTitleLabel)
...@@ -67,9 +67,9 @@ class YHWorkItemView: UIView { ...@@ -67,9 +67,9 @@ class YHWorkItemView: UIView {
explainLabel = { explainLabel = {
let label = UILabel() let label = UILabel()
label.font = kBoldFont(size: 14) label.font = UIFont.PFSC_M(ofSize: 14)
label.textAlignment = .right label.textAlignment = .right
label.textColor = UIColor(hex:0x888f98) label.textColor = UIColor.contentBkgColor
return label return label
}() }()
addSubview(explainLabel) addSubview(explainLabel)
...@@ -105,7 +105,7 @@ class YHWorkItemView: UIView { ...@@ -105,7 +105,7 @@ class YHWorkItemView: UIView {
deleteButton = { deleteButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.titleLabel?.font = kFont(size: 14) button.titleLabel?.font = UIFont.PFSC_R(ofSize: 14)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("删除", for: .normal) button.setTitle("删除", for: .normal)
button.contentHorizontalAlignment = .right button.contentHorizontalAlignment = .right
......
...@@ -42,7 +42,7 @@ class YHWorkMessageSelectTableViewCell: UITableViewCell { ...@@ -42,7 +42,7 @@ class YHWorkMessageSelectTableViewCell: UITableViewCell {
centerView = { centerView = {
let view = UIView() let view = UIView()
view.backgroundColor = .white view.backgroundColor = .white
view.layer.cornerRadius = 12 view.layer.cornerRadius = kCornerRadius6
return view return view
}() }()
contentView.addSubview(centerView) contentView.addSubview(centerView)
...@@ -55,9 +55,9 @@ class YHWorkMessageSelectTableViewCell: UITableViewCell { ...@@ -55,9 +55,9 @@ class YHWorkMessageSelectTableViewCell: UITableViewCell {
titleLabel = { titleLabel = {
let label = UILabel() let label = UILabel()
label.font = kFont(size: 17) label.font = UIFont.PFSC_M(ofSize: 17)
label.text = "信息选择" label.text = "信息选择"
label.textColor = UIColor(hex:0x222222) label.textColor = UIColor.mainTextColor
return label return label
}() }()
centerView.addSubview(titleLabel) centerView.addSubview(titleLabel)
...@@ -70,7 +70,7 @@ class YHWorkMessageSelectTableViewCell: UITableViewCell { ...@@ -70,7 +70,7 @@ class YHWorkMessageSelectTableViewCell: UITableViewCell {
lineView = { lineView = {
let line = UIView() let line = UIView()
line.backgroundColor = UIColor(hex: 0xf0f0f0) line.backgroundColor = UIColor.separatorColor
return line return line
}() }()
centerView.addSubview(lineView) centerView.addSubview(lineView)
...@@ -107,7 +107,7 @@ class YHWorkMessageSelectTableViewCell: UITableViewCell { ...@@ -107,7 +107,7 @@ class YHWorkMessageSelectTableViewCell: UITableViewCell {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex: 0x2f7ef6).withAlphaComponent(0.08) button.backgroundColor = UIColor(hex: 0x2f7ef6).withAlphaComponent(0.08)
button.setTitleColor(UIColor(hex: 0x2f7ef6), for: .selected) button.setTitleColor(UIColor(hex: 0x2f7ef6), for: .selected)
button.setTitleColor(UIColor(hex: 0x222222), for: .normal) button.setTitleColor(UIColor.mainTextColor, for: .normal)
button.setTitle("是", for: .normal) button.setTitle("是", for: .normal)
button.titleLabel?.font = UIFont.PFSC_R(ofSize: 13) button.titleLabel?.font = UIFont.PFSC_R(ofSize: 13)
button.layer.cornerRadius = 16 button.layer.cornerRadius = 16
...@@ -127,9 +127,9 @@ class YHWorkMessageSelectTableViewCell: UITableViewCell { ...@@ -127,9 +127,9 @@ class YHWorkMessageSelectTableViewCell: UITableViewCell {
leftButton = { leftButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex: 0xf8f9fb) button.backgroundColor = UIColor.contentBkgColor
button.setTitleColor(UIColor(hex: 0x2f7ef6), for: .selected) button.setTitleColor(UIColor(hex: 0x2f7ef6), for: .selected)
button.setTitleColor(UIColor(hex: 0x222222), for: .normal) button.setTitleColor(UIColor.mainTextColor, for: .normal)
button.setTitle("否", for: .normal) button.setTitle("否", for: .normal)
button.titleLabel?.font = UIFont.PFSC_R(ofSize: 13) button.titleLabel?.font = UIFont.PFSC_R(ofSize: 13)
button.layer.cornerRadius = 16 button.layer.cornerRadius = 16
...@@ -152,7 +152,7 @@ class YHWorkMessageSelectTableViewCell: UITableViewCell { ...@@ -152,7 +152,7 @@ class YHWorkMessageSelectTableViewCell: UITableViewCell {
leftButton.layer.borderWidth = 1 leftButton.layer.borderWidth = 1
leftButton.layer.borderColor = UIColor(hex: 0x2f7ef6).cgColor leftButton.layer.borderColor = UIColor(hex: 0x2f7ef6).cgColor
leftButton.backgroundColor = UIColor(hex: 0x2f7ef6).withAlphaComponent(0.08) leftButton.backgroundColor = UIColor(hex: 0x2f7ef6).withAlphaComponent(0.08)
rightButton.backgroundColor = UIColor(hex: 0xf8f9fb) rightButton.backgroundColor = UIColor.contentBkgColor
rightButton.layer.borderWidth = 0 rightButton.layer.borderWidth = 0
} else { } else {
rightButton.isSelected = true rightButton.isSelected = true
...@@ -160,7 +160,7 @@ class YHWorkMessageSelectTableViewCell: UITableViewCell { ...@@ -160,7 +160,7 @@ class YHWorkMessageSelectTableViewCell: UITableViewCell {
rightButton.layer.borderWidth = 1 rightButton.layer.borderWidth = 1
rightButton.layer.borderColor = UIColor(hex: 0x2f7ef6).cgColor rightButton.layer.borderColor = UIColor(hex: 0x2f7ef6).cgColor
rightButton.backgroundColor = UIColor(hex: 0x2f7ef6).withAlphaComponent(0.08) rightButton.backgroundColor = UIColor(hex: 0x2f7ef6).withAlphaComponent(0.08)
leftButton.backgroundColor = UIColor(hex: 0xf8f9fb) leftButton.backgroundColor = UIColor.contentBkgColor
leftButton.layer.borderWidth = 0 leftButton.layer.borderWidth = 0
} }
} }
...@@ -171,7 +171,7 @@ class YHWorkMessageSelectTableViewCell: UITableViewCell { ...@@ -171,7 +171,7 @@ class YHWorkMessageSelectTableViewCell: UITableViewCell {
rightButton.layer.borderWidth = 1 rightButton.layer.borderWidth = 1
rightButton.layer.borderColor = UIColor(hex: 0x2f7ef6).cgColor rightButton.layer.borderColor = UIColor(hex: 0x2f7ef6).cgColor
rightButton.backgroundColor = UIColor(hex: 0x2f7ef6).withAlphaComponent(0.08) rightButton.backgroundColor = UIColor(hex: 0x2f7ef6).withAlphaComponent(0.08)
leftButton.backgroundColor = UIColor(hex: 0xf8f9fb) leftButton.backgroundColor = UIColor.contentBkgColor
leftButton.layer.borderWidth = 0 leftButton.layer.borderWidth = 0
} }
...@@ -181,7 +181,7 @@ class YHWorkMessageSelectTableViewCell: UITableViewCell { ...@@ -181,7 +181,7 @@ class YHWorkMessageSelectTableViewCell: UITableViewCell {
leftButton.layer.borderWidth = 1 leftButton.layer.borderWidth = 1
leftButton.layer.borderColor = UIColor(hex: 0x2f7ef6).cgColor leftButton.layer.borderColor = UIColor(hex: 0x2f7ef6).cgColor
leftButton.backgroundColor = UIColor(hex: 0x2f7ef6).withAlphaComponent(0.08) leftButton.backgroundColor = UIColor(hex: 0x2f7ef6).withAlphaComponent(0.08)
rightButton.backgroundColor = UIColor(hex: 0xf8f9fb) rightButton.backgroundColor = UIColor.contentBkgColor
rightButton.layer.borderWidth = 0 rightButton.layer.borderWidth = 0
} }
......
...@@ -62,7 +62,7 @@ class YHWorkResponsibilitiesTableViewCell: UITableViewCell { ...@@ -62,7 +62,7 @@ class YHWorkResponsibilitiesTableViewCell: UITableViewCell {
let str = "*" + "工作职责" let str = "*" + "工作职责"
let attributes: [NSAttributedString.Key: Any] = [ let attributes: [NSAttributedString.Key: Any] = [
.font: UIFont.PFSC_R(ofSize: 17), .font: UIFont.PFSC_R(ofSize: 17),
.foregroundColor: UIColor(hex:0x222222) .foregroundColor: UIColor.mainTextColor
] ]
let questionAttrStr = NSMutableAttributedString(string: str, attributes: attributes) let questionAttrStr = NSMutableAttributedString(string: str, attributes: attributes)
let starRange = NSRange(location: 0, length: 1) let starRange = NSRange(location: 0, length: 1)
...@@ -82,7 +82,7 @@ class YHWorkResponsibilitiesTableViewCell: UITableViewCell { ...@@ -82,7 +82,7 @@ class YHWorkResponsibilitiesTableViewCell: UITableViewCell {
let label = UILabel() let label = UILabel()
label.text = "温馨提示:如下模板仅供思路参考,工作内容请按您的实际填写,后期文案会基于该内容进行文书材料撰写,望悉知" label.text = "温馨提示:如下模板仅供思路参考,工作内容请按您的实际填写,后期文案会基于该内容进行文书材料撰写,望悉知"
label.textColor = UIColor(hex: 0x2f7ef6) label.textColor = UIColor(hex: 0x2f7ef6)
label.font = kFont(size: 12) label.font = UIFont.PFSC_R(ofSize: 12)
label.numberOfLines = 0 label.numberOfLines = 0
return label return label
}() }()
...@@ -96,7 +96,7 @@ class YHWorkResponsibilitiesTableViewCell: UITableViewCell { ...@@ -96,7 +96,7 @@ class YHWorkResponsibilitiesTableViewCell: UITableViewCell {
lineView = { lineView = {
let line = UIView() let line = UIView()
line.backgroundColor = UIColor(hex: 0xf0f0f0) line.backgroundColor = UIColor.separatorColor
return line return line
}() }()
centerView.addSubview(lineView) centerView.addSubview(lineView)
...@@ -109,7 +109,7 @@ class YHWorkResponsibilitiesTableViewCell: UITableViewCell { ...@@ -109,7 +109,7 @@ class YHWorkResponsibilitiesTableViewCell: UITableViewCell {
messageTextField = { messageTextField = {
let textField = UITextView() let textField = UITextView()
textField.font = kFont(size: 14) textField.font = UIFont.PFSC_R(ofSize: 14)
textField.delegate = self textField.delegate = self
return textField return textField
}() }()
...@@ -123,7 +123,7 @@ class YHWorkResponsibilitiesTableViewCell: UITableViewCell { ...@@ -123,7 +123,7 @@ class YHWorkResponsibilitiesTableViewCell: UITableViewCell {
promptsLabel = { promptsLabel = {
let prompts = UILabel() let prompts = UILabel()
prompts.font = kFont(size: 14) prompts.font = UIFont.PFSC_R(ofSize: 14)
prompts.textColor = UIColor(hex: 0xc0c0c0) prompts.textColor = UIColor(hex: 0xc0c0c0)
prompts.text = "示例:在职期间负责的核心工作职责,建议不要超过3点。如果就职过多个职位,请分段描述:\n\n例子:\n\n模式1、在司担任某某岗位,任职期间,主要负责xxxx工作;在此期间,组建了xxx。实现了xxx;\n\n模式2、在担任xxx岗位期间,主要负责xxxx工作,具体的工作职责包括如下:\n\n2.1)xxxxxxxx;\n2.2)xxxxxxxx;\n2.3)xxxxxxxx;" prompts.text = "示例:在职期间负责的核心工作职责,建议不要超过3点。如果就职过多个职位,请分段描述:\n\n例子:\n\n模式1、在司担任某某岗位,任职期间,主要负责xxxx工作;在此期间,组建了xxx。实现了xxx;\n\n模式2、在担任xxx岗位期间,主要负责xxxx工作,具体的工作职责包括如下:\n\n2.1)xxxxxxxx;\n2.2)xxxxxxxx;\n2.3)xxxxxxxx;"
prompts.numberOfLines = 0 prompts.numberOfLines = 0
......
...@@ -44,7 +44,7 @@ class YHSubmitAllInfoCheckView: UIView { ...@@ -44,7 +44,7 @@ class YHSubmitAllInfoCheckView: UIView {
centerView = { centerView = {
let view = UIView() let view = UIView()
view.backgroundColor = .white view.backgroundColor = .white
view.layer.cornerRadius = 12 view.layer.cornerRadius = kCornerRadius6
return view return view
}() }()
addSubview(centerView) addSubview(centerView)
...@@ -57,8 +57,8 @@ class YHSubmitAllInfoCheckView: UIView { ...@@ -57,8 +57,8 @@ class YHSubmitAllInfoCheckView: UIView {
// titleLabel = { // titleLabel = {
// let label = UILabel() // let label = UILabel()
// label.text = "同意隐私协议" // label.text = "同意隐私协议"
// label.font = kFont(size: 16) // label.font = UIFont.PFSC_R(ofSize: 16)
// label.textColor = UIColor(hex:0x222222) // label.textColor = UIColor.mainTextColor
// label.textAlignment = .center // label.textAlignment = .center
// return label // return label
// }() // }()
......
...@@ -39,7 +39,7 @@ class YHCodeResultViewController: YHBaseViewController { ...@@ -39,7 +39,7 @@ class YHCodeResultViewController: YHBaseViewController {
loginTitleLabel = { loginTitleLabel = {
let label = UILabel() let label = UILabel()
label.text = "登录后更精彩" label.text = "登录后更精彩"
label.font = kBoldFont(size: 32) label.font = UIFont.PFSC_M(ofSize: 32)
label.textColor = UIColor(hex:0xffffff) label.textColor = UIColor(hex:0xffffff)
return label return label
}() }()
...@@ -53,7 +53,7 @@ class YHCodeResultViewController: YHBaseViewController { ...@@ -53,7 +53,7 @@ class YHCodeResultViewController: YHBaseViewController {
loginSubTitleLabel = { loginSubTitleLabel = {
let label = UILabel() let label = UILabel()
label.text = "香港美好生活期待与你的相遇" label.text = "香港美好生活期待与你的相遇"
label.font = kFont(size: 20) label.font = UIFont.PFSC_R(ofSize: 20)
label.textColor = UIColor(hex:0xffffff) label.textColor = UIColor(hex:0xffffff)
return label return label
}() }()
...@@ -67,7 +67,7 @@ class YHCodeResultViewController: YHBaseViewController { ...@@ -67,7 +67,7 @@ class YHCodeResultViewController: YHBaseViewController {
phoneLabel = { phoneLabel = {
let label = UILabel() let label = UILabel()
label.text = "已发送验证码至13352933800" label.text = "已发送验证码至13352933800"
label.font = kBoldFont(size: 17) label.font = UIFont.PFSC_M(ofSize: 17)
label.textAlignment = .left label.textAlignment = .left
label.textColor = UIColor(hex:0xffffff) label.textColor = UIColor(hex:0xffffff)
return label return label
...@@ -96,7 +96,7 @@ class YHCodeResultViewController: YHBaseViewController { ...@@ -96,7 +96,7 @@ class YHCodeResultViewController: YHBaseViewController {
getCodeLabel = { getCodeLabel = {
let button = UILabel() let button = UILabel()
button.font = kBoldFont(size: 16) button.font = UIFont.PFSC_M(ofSize: 16)
button.text = "重新发送(58s)" button.text = "重新发送(58s)"
button.textColor = UIColor(hex:0xffffff) button.textColor = UIColor(hex:0xffffff)
button.isHidden = false button.isHidden = false
...@@ -112,7 +112,7 @@ class YHCodeResultViewController: YHBaseViewController { ...@@ -112,7 +112,7 @@ class YHCodeResultViewController: YHBaseViewController {
getCodeButton = { getCodeButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.titleLabel?.font = kBoldFont(size: 16) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 16)
button.contentHorizontalAlignment = .left button.contentHorizontalAlignment = .left
button.setTitle("重新获取验证码", for: .normal) button.setTitle("重新获取验证码", for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal) button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
......
...@@ -63,8 +63,8 @@ class YHCodeSueecssViewController: YHBaseViewController { ...@@ -63,8 +63,8 @@ class YHCodeSueecssViewController: YHBaseViewController {
loginTitleLabel = { loginTitleLabel = {
let label = UILabel() let label = UILabel()
label.text = "请输入验证码" label.text = "请输入验证码"
label.font = kBoldFont(size: 28) label.font = UIFont.PFSC_M(ofSize: 28)
label.textColor = UIColor(hex:0x222222) label.textColor = UIColor.mainTextColor
return label return label
}() }()
view.addSubview(loginTitleLabel) view.addSubview(loginTitleLabel)
...@@ -79,7 +79,7 @@ class YHCodeSueecssViewController: YHBaseViewController { ...@@ -79,7 +79,7 @@ class YHCodeSueecssViewController: YHBaseViewController {
let label = UILabel() let label = UILabel()
label.text = "已发送至 \(phoneNumber ?? "")" label.text = "已发送至 \(phoneNumber ?? "")"
label.font = UIFont.PFSC_R(ofSize: 13) label.font = UIFont.PFSC_R(ofSize: 13)
label.textColor = UIColor(hex:0xc0c0c0) label.textColor = UIColor.placeHolderColor
return label return label
}() }()
view.addSubview(loginSubTitleLabel) view.addSubview(loginSubTitleLabel)
...@@ -113,9 +113,9 @@ class YHCodeSueecssViewController: YHBaseViewController { ...@@ -113,9 +113,9 @@ class YHCodeSueecssViewController: YHBaseViewController {
getCodeLabel = { getCodeLabel = {
let button = UILabel() let button = UILabel()
button.font = kBoldFont(size: 12) button.font = UIFont.PFSC_M(ofSize: 12)
button.text = "重新发送(58s)" button.text = "重新发送(58s)"
button.textColor = UIColor(hex:0xc0c0c0) button.textColor = UIColor.placeHolderColor
button.textAlignment = .center button.textAlignment = .center
button.isHidden = false button.isHidden = false
button.layer.cornerRadius = 4 button.layer.cornerRadius = 4
...@@ -133,10 +133,10 @@ class YHCodeSueecssViewController: YHBaseViewController { ...@@ -133,10 +133,10 @@ class YHCodeSueecssViewController: YHBaseViewController {
getCodeButton = { getCodeButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.titleLabel?.font = kBoldFont(size: 12) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 12)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("获取验证码", for: .normal) button.setTitle("获取验证码", for: .normal)
button.setTitleColor( UIColor(hex:0x222222), for: .normal) button.setTitleColor( UIColor.mainTextColor, for: .normal)
button.addTarget(self, action: #selector(startClicked), for: .touchUpInside) button.addTarget(self, action: #selector(startClicked), for: .touchUpInside)
button.isHidden = true button.isHidden = true
button.layer.cornerRadius = 4 button.layer.cornerRadius = 4
......
...@@ -55,7 +55,7 @@ class YHLoginViewController: YHBaseViewController { ...@@ -55,7 +55,7 @@ class YHLoginViewController: YHBaseViewController {
loginTitleLabel = { loginTitleLabel = {
let label = UILabel() let label = UILabel()
label.text = "登录后更精彩" label.text = "登录后更精彩"
label.font = kBoldFont(size: 32) label.font = UIFont.PFSC_M(ofSize: 32)
label.textColor = UIColor(hex:0xffffff) label.textColor = UIColor(hex:0xffffff)
return label return label
}() }()
...@@ -69,7 +69,7 @@ class YHLoginViewController: YHBaseViewController { ...@@ -69,7 +69,7 @@ class YHLoginViewController: YHBaseViewController {
loginSubTitleLabel = { loginSubTitleLabel = {
let label = UILabel() let label = UILabel()
label.text = "香港美好生活期待与你的相遇" label.text = "香港美好生活期待与你的相遇"
label.font = kFont(size: 20) label.font = UIFont.PFSC_R(ofSize: 20)
label.textColor = UIColor(hex:0xffffff) label.textColor = UIColor(hex:0xffffff)
return label return label
}() }()
...@@ -83,7 +83,7 @@ class YHLoginViewController: YHBaseViewController { ...@@ -83,7 +83,7 @@ class YHLoginViewController: YHBaseViewController {
loginPhoneLabel = { loginPhoneLabel = {
let label = UILabel() let label = UILabel()
label.text = "+86 133****3800" label.text = "+86 133****3800"
label.font = kBoldFont(size: 20) label.font = UIFont.PFSC_M(ofSize: 20)
label.textAlignment = .center label.textAlignment = .center
label.textColor = UIColor(hex:0xffffff) label.textColor = UIColor(hex:0xffffff)
return label return label
...@@ -98,7 +98,7 @@ class YHLoginViewController: YHBaseViewController { ...@@ -98,7 +98,7 @@ class YHLoginViewController: YHBaseViewController {
loginButton = { loginButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex:0x4d9ff8) button.backgroundColor = UIColor(hex:0x4d9ff8)
button.titleLabel?.font = kBoldFont(size: 16) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 16)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("本机号码一键登录", for: .normal) button.setTitle("本机号码一键登录", for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal) button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
...@@ -165,7 +165,7 @@ class YHLoginViewController: YHBaseViewController { ...@@ -165,7 +165,7 @@ class YHLoginViewController: YHBaseViewController {
promptsLabel = { promptsLabel = {
let label = UILabel() let label = UILabel()
label.text = "其他登录方式(第三方账号注册需绑定手机号)" label.text = "其他登录方式(第三方账号注册需绑定手机号)"
label.font = kFont(size: 12) label.font = UIFont.PFSC_R(ofSize: 12)
label.textColor = UIColor(hex:0xffffff) label.textColor = UIColor(hex:0xffffff)
label.textAlignment = .center label.textAlignment = .center
return label return label
......
...@@ -81,8 +81,8 @@ class YHPhoneLoginViewController: YHBaseViewController { ...@@ -81,8 +81,8 @@ class YHPhoneLoginViewController: YHBaseViewController {
loginTitleLabel = { loginTitleLabel = {
let label = UILabel() let label = UILabel()
label.text = "手机号登录" label.text = "手机号登录"
label.font = kBoldFont(size: 28) label.font = UIFont.PFSC_M(ofSize: 28)
label.textColor = UIColor(hex:0x222222) label.textColor = UIColor.mainTextColor
return label return label
}() }()
view.addSubview(loginTitleLabel) view.addSubview(loginTitleLabel)
...@@ -97,7 +97,7 @@ class YHPhoneLoginViewController: YHBaseViewController { ...@@ -97,7 +97,7 @@ class YHPhoneLoginViewController: YHBaseViewController {
let label = UILabel() let label = UILabel()
label.text = "手机号首次登录自动注册" label.text = "手机号首次登录自动注册"
label.font = UIFont.PFSC_R(ofSize: 13) label.font = UIFont.PFSC_R(ofSize: 13)
label.textColor = UIColor(hex:0xc0c0c0) label.textColor = UIColor.placeHolderColor
return label return label
}() }()
view.addSubview(loginSubTitleLabel) view.addSubview(loginSubTitleLabel)
...@@ -110,8 +110,8 @@ class YHPhoneLoginViewController: YHBaseViewController { ...@@ -110,8 +110,8 @@ class YHPhoneLoginViewController: YHBaseViewController {
phoneMessageView = { phoneMessageView = {
let view = YHPhoneMessageView() let view = YHPhoneMessageView()
view.backgroundColor = UIColor(hex:0xf8f9fb) view.backgroundColor = UIColor.contentBkgColor
view.layer.cornerRadius = 6 view.layer.cornerRadius = kCornerRadius6
view.layer.borderWidth = 1 view.layer.borderWidth = 1
view.layer.borderColor = UIColor(hex:0xebeef4).cgColor view.layer.borderColor = UIColor(hex:0xebeef4).cgColor
view.phoneBlock = {[weak self] count in view.phoneBlock = {[weak self] count in
...@@ -137,7 +137,7 @@ class YHPhoneLoginViewController: YHBaseViewController { ...@@ -137,7 +137,7 @@ class YHPhoneLoginViewController: YHBaseViewController {
getCodeButton = { getCodeButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex:0x2274ee).withAlphaComponent(0.4) button.backgroundColor = UIColor(hex:0x2274ee).withAlphaComponent(0.4)
button.titleLabel?.font = kBoldFont(size: 16) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 16)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("获取验证码", for: .normal) button.setTitle("获取验证码", for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal) button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
......
...@@ -33,7 +33,7 @@ class YHPickPhoneAddressViewController: YHBaseViewController { ...@@ -33,7 +33,7 @@ class YHPickPhoneAddressViewController: YHBaseViewController {
// loginTitleLabel = { // loginTitleLabel = {
// let label = UILabel() // let label = UILabel()
// label.text = "登录后更精彩" // label.text = "登录后更精彩"
// label.font = kBoldFont(size: 32) // label.font = UIFont.PFSC_M(ofSize: 32)
// label.textColor = UIColor(hex:0xffffff) // label.textColor = UIColor(hex:0xffffff)
// return label // return label
// }() // }()
......
...@@ -42,7 +42,7 @@ class YHVerificationCodeLoginController: YHBaseViewController { ...@@ -42,7 +42,7 @@ class YHVerificationCodeLoginController: YHBaseViewController {
loginTitleLabel = { loginTitleLabel = {
let label = UILabel() let label = UILabel()
label.text = "登录后更精彩" label.text = "登录后更精彩"
label.font = kBoldFont(size: 32) label.font = UIFont.PFSC_M(ofSize: 32)
label.textColor = UIColor(hex:0xffffff) label.textColor = UIColor(hex:0xffffff)
return label return label
}() }()
...@@ -56,7 +56,7 @@ class YHVerificationCodeLoginController: YHBaseViewController { ...@@ -56,7 +56,7 @@ class YHVerificationCodeLoginController: YHBaseViewController {
loginSubTitleLabel = { loginSubTitleLabel = {
let label = UILabel() let label = UILabel()
label.text = "香港美好生活期待与你的相遇" label.text = "香港美好生活期待与你的相遇"
label.font = kFont(size: 20) label.font = UIFont.PFSC_R(ofSize: 20)
label.textColor = UIColor(hex:0xffffff) label.textColor = UIColor(hex:0xffffff)
return label return label
}() }()
...@@ -70,7 +70,7 @@ class YHVerificationCodeLoginController: YHBaseViewController { ...@@ -70,7 +70,7 @@ class YHVerificationCodeLoginController: YHBaseViewController {
phoneLabel = { phoneLabel = {
let label = UILabel() let label = UILabel()
label.text = "未注册手机验证后完成注册" label.text = "未注册手机验证后完成注册"
label.font = kBoldFont(size: 17) label.font = UIFont.PFSC_M(ofSize: 17)
label.textAlignment = .left label.textAlignment = .left
label.textColor = UIColor(hex:0xffffff) label.textColor = UIColor(hex:0xffffff)
return label return label
...@@ -105,7 +105,7 @@ class YHVerificationCodeLoginController: YHBaseViewController { ...@@ -105,7 +105,7 @@ class YHVerificationCodeLoginController: YHBaseViewController {
getCodeButton = { getCodeButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex:0xd8d8d8).withAlphaComponent(0.8) button.backgroundColor = UIColor(hex:0xd8d8d8).withAlphaComponent(0.8)
button.titleLabel?.font = kBoldFont(size: 16) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 16)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("获取验证码", for: .normal) button.setTitle("获取验证码", for: .normal)
button.setTitleColor( UIColor(hex:0x979797), for: .normal) button.setTitleColor( UIColor(hex:0x979797), for: .normal)
...@@ -122,7 +122,7 @@ class YHVerificationCodeLoginController: YHBaseViewController { ...@@ -122,7 +122,7 @@ class YHVerificationCodeLoginController: YHBaseViewController {
} }
emailButton = { emailButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.titleLabel?.font = kBoldFont(size: 16) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 16)
button.setTitle("邮箱登录", for: .normal) button.setTitle("邮箱登录", for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal) button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
return button return button
...@@ -150,7 +150,7 @@ class YHVerificationCodeLoginController: YHBaseViewController { ...@@ -150,7 +150,7 @@ class YHVerificationCodeLoginController: YHBaseViewController {
promptsLabel = { promptsLabel = {
let label = UILabel() let label = UILabel()
label.text = "其他登录方式(第三方账号注册需绑定手机号)" label.text = "其他登录方式(第三方账号注册需绑定手机号)"
label.font = kFont(size: 12) label.font = UIFont.PFSC_R(ofSize: 12)
label.textColor = UIColor(hex:0xffffff) label.textColor = UIColor(hex:0xffffff)
label.textAlignment = .center label.textAlignment = .center
return label return label
......
...@@ -44,8 +44,8 @@ class YHLoginPrivacyView: UIView { ...@@ -44,8 +44,8 @@ class YHLoginPrivacyView: UIView {
messageLabel = { messageLabel = {
let label = UILabel() let label = UILabel()
label.text = "我已阅读并同意" label.text = "我已阅读并同意"
label.font = kFont(size: 12) label.font = UIFont.PFSC_R(ofSize: 12)
label.textColor = UIColor(hex:0x888f98) label.textColor = UIColor.contentBkgColor
label.textAlignment = .left label.textAlignment = .left
return label return label
}() }()
...@@ -58,7 +58,7 @@ class YHLoginPrivacyView: UIView { ...@@ -58,7 +58,7 @@ class YHLoginPrivacyView: UIView {
serviceButton = { serviceButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.titleLabel?.font = kBoldFont(size: 12) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 12)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("《隐私协议》", for: .normal) button.setTitle("《隐私协议》", for: .normal)
button.setTitleColor(UIColor(hex: 0x2f7ef6), for: .normal) button.setTitleColor(UIColor(hex: 0x2f7ef6), for: .normal)
...@@ -74,8 +74,8 @@ class YHLoginPrivacyView: UIView { ...@@ -74,8 +74,8 @@ class YHLoginPrivacyView: UIView {
andLabel = { andLabel = {
let label = UILabel() let label = UILabel()
label.text = "和" label.text = "和"
label.font = kFont(size: 12) label.font = UIFont.PFSC_R(ofSize: 12)
label.textColor = UIColor(hex:0x888f98) label.textColor = UIColor.contentBkgColor
label.textAlignment = .left label.textAlignment = .left
return label return label
}() }()
...@@ -87,7 +87,7 @@ class YHLoginPrivacyView: UIView { ...@@ -87,7 +87,7 @@ class YHLoginPrivacyView: UIView {
} }
privacyButton = { privacyButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.titleLabel?.font = kBoldFont(size: 12) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 12)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("《用户条款》", for: .normal) button.setTitle("《用户条款》", for: .normal)
button.setTitleColor(UIColor(hex: 0x2f7ef6), for: .normal) button.setTitleColor(UIColor(hex: 0x2f7ef6), for: .normal)
......
...@@ -32,7 +32,7 @@ class YHLoginStyleButton: UIButton { ...@@ -32,7 +32,7 @@ class YHLoginStyleButton: UIButton {
messageLabel = { messageLabel = {
let label = UILabel() let label = UILabel()
label.font = kBoldFont(size: 16) label.font = UIFont.PFSC_M(ofSize: 16)
label.textColor = UIColor(hex:0xffffff) label.textColor = UIColor(hex:0xffffff)
label.textAlignment = .right label.textAlignment = .right
return label return label
......
...@@ -28,7 +28,7 @@ class YHPhoneMessageView: UIView { ...@@ -28,7 +28,7 @@ class YHPhoneMessageView: UIView {
func setView() { func setView() {
messageButton = { messageButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.titleLabel?.font = kBoldFont(size: 16) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 16)
button.setTitle("+86", for: .normal) button.setTitle("+86", for: .normal)
button.setTitleColor( UIColor(hex:0x000000), for: .normal) button.setTitleColor( UIColor(hex:0x000000), for: .normal)
button.addTarget(self, action: #selector(messageClick), for: .touchUpInside) button.addTarget(self, action: #selector(messageClick), for: .touchUpInside)
...@@ -56,7 +56,7 @@ class YHPhoneMessageView: UIView { ...@@ -56,7 +56,7 @@ class YHPhoneMessageView: UIView {
phoneTextField = { phoneTextField = {
let text = UITextField() let text = UITextField()
text.placeholder = "请输入签约手机号" text.placeholder = "请输入签约手机号"
text.font = kFont(size: 16) text.font = UIFont.PFSC_R(ofSize: 16)
text.textColor = UIColor(hex:0x000000) text.textColor = UIColor(hex:0x000000)
text.textAlignment = .left text.textAlignment = .left
text.keyboardType = .phonePad text.keyboardType = .phonePad
......
...@@ -38,7 +38,7 @@ class YHPrivacyAlertView: UIView { ...@@ -38,7 +38,7 @@ class YHPrivacyAlertView: UIView {
centerView = { centerView = {
let view = UIView() let view = UIView()
view.backgroundColor = .white view.backgroundColor = .white
view.layer.cornerRadius = 12 view.layer.cornerRadius = kCornerRadius6
return view return view
}() }()
addSubview(centerView) addSubview(centerView)
...@@ -81,11 +81,11 @@ class YHPrivacyAlertView: UIView { ...@@ -81,11 +81,11 @@ class YHPrivacyAlertView: UIView {
disAgressButton = { disAgressButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex:0xffffff) button.backgroundColor = UIColor(hex:0xffffff)
button.titleLabel?.font = kBoldFont(size: 15) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 15)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("不同意", for: .normal) button.setTitle("不同意", for: .normal)
button.setTitleColor( UIColor(hex:0x3c86f8), for: .normal) button.setTitleColor( UIColor(hex:0x3c86f8), for: .normal)
button.layer.cornerRadius = 8 button.layer.cornerRadius = kCornerRadius6
button.layer.borderWidth = 1 button.layer.borderWidth = 1
button.layer.borderColor = UIColor(hex: 0x3c86f8).cgColor button.layer.borderColor = UIColor(hex: 0x3c86f8).cgColor
button.addTarget(self, action: #selector(disagree), for: .touchUpInside) button.addTarget(self, action: #selector(disagree), for: .touchUpInside)
...@@ -102,11 +102,11 @@ class YHPrivacyAlertView: UIView { ...@@ -102,11 +102,11 @@ class YHPrivacyAlertView: UIView {
agreeButton = { agreeButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex:0x3c86f8) button.backgroundColor = UIColor(hex:0x3c86f8)
button.titleLabel?.font = kBoldFont(size: 15) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 15)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("同意", for: .normal) button.setTitle("同意", for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal) button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
button.layer.cornerRadius = 8 button.layer.cornerRadius = kCornerRadius6
button.addTarget(self, action: #selector(agree), for: .touchUpInside) button.addTarget(self, action: #selector(agree), for: .touchUpInside)
return button return button
}() }()
......
...@@ -114,25 +114,6 @@ func kIsEmpty(string: String) -> Bool { ...@@ -114,25 +114,6 @@ func kIsEmpty(string: String) -> Bool {
} }
} }
/** 文字大小设置
* parameter name 字体名字 (为空时默认字体)
* parameter size 字体大小
*/
func kFont(name: String = "", size: CGFloat) -> UIFont {
if !kIsEmpty(string: name) {
return UIFont.init(name: name, size: size)!
}else {
return UIFont.systemFont(ofSize: size)
}
}
func kBoldFont(name: String = "", size: CGFloat) -> UIFont {
if !kIsEmpty(string: name) {
return UIFont.init(name: name, size: size)!
}else {
return UIFont.boldSystemFont(ofSize: size)
}
}
/// 版本号相同: /// 版本号相同:
func systemVersionEqual(version:String) -> Bool { func systemVersionEqual(version:String) -> Bool {
......
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