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

处理 圆角3的button

parent abd4ce3a
......@@ -69,9 +69,9 @@ class YHTwoOptionAlertView: UIView {
button.contentHorizontalAlignment = .center
button.setTitle("取消".local, for: .normal)
button.setTitleColor( UIColor.brandMainColor, for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.layer.borderWidth = 1
button.layer.borderColor = UIColor(hex: 0x3c86f8).cgColor
button.layer.borderColor = UIColor.brandMainColor.cgColor
button.addTarget(self, action: #selector(disagree), for: .touchUpInside)
return button
}()
......@@ -84,7 +84,7 @@ class YHTwoOptionAlertView: UIView {
button.contentHorizontalAlignment = .center
button.setTitle("确认".local, for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.addTarget(self, action: #selector(agree), for: .touchUpInside)
return button
}()
......
......@@ -106,9 +106,9 @@ class YHAgreementAlertView: UIView {
button.contentHorizontalAlignment = .center
button.setTitle("取消", for: .normal)
button.setTitleColor( UIColor.brandMainColor, for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.layer.borderWidth = 1
button.layer.borderColor = UIColor(hex: 0x3c86f8).cgColor
button.layer.borderColor = UIColor.brandMainColor.cgColor
button.addTarget(self, action: #selector(disagree), for: .touchUpInside)
return button
}()
......@@ -129,7 +129,7 @@ class YHAgreementAlertView: UIView {
button.contentHorizontalAlignment = .center
button.setTitle("确认", for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.addTarget(self, action: #selector(agree), for: .touchUpInside)
return button
}()
......
......@@ -37,7 +37,7 @@ private extension YHHomeWebViewBottomForSavePicView {
button.contentHorizontalAlignment = .center
button.setTitle("保存到相册", for: .normal)
button.setTitleColor(UIColor.brandMainColor, for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.layer.borderWidth = 0.5
button.layer.borderColor = UIColor.brandMainColor.cgColor
button.addTarget(self, action: #selector(save), for: .touchUpInside)
......
......@@ -98,7 +98,7 @@ class YHServiceOrderAlertView: UIView {
button.contentHorizontalAlignment = .center
button.setTitle("我知道了", for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.clipsToBounds = true
button.addTarget(self, action: #selector(goNext), for: .touchUpInside)
return button
......
......@@ -284,7 +284,7 @@ extension YHInformationPerfectListVC {
button.contentHorizontalAlignment = .center
button.setTitle("我的评分", for: .normal)
button.setTitleColor(UIColor.brandMainColor, for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.layer.borderWidth = 1
button.layer.borderColor = UIColor.brandMainColor.cgColor
button.addTarget(self, action: #selector(goScoreVC), for: .touchUpInside)
......@@ -303,7 +303,7 @@ extension YHInformationPerfectListVC {
button.contentHorizontalAlignment = .center
button.setTitle("个人信息表", for: .normal)
button.setTitleColor(.white, for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.clipsToBounds = true
button.addTarget(self, action: #selector(goInfoListVC), for: .touchUpInside)
return button
......
......@@ -58,7 +58,7 @@ private extension YHFileListBottomView {
button.contentHorizontalAlignment = .center
button.setTitle("保存清单图", for: .normal)
button.setTitleColor(.white, for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.clipsToBounds = true
button.addTarget(self, action: #selector(submit), for: .touchUpInside)
return button
......
......@@ -40,7 +40,7 @@ private extension YHCertificateEntryBottomView {
button.contentHorizontalAlignment = .center
button.setTitle("问题答疑", for: .normal)
button.setTitleColor(UIColor.mainTextColor, for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.addTarget(self, action: #selector(save), for: .touchUpInside)
return button
}()
......@@ -58,7 +58,7 @@ private extension YHCertificateEntryBottomView {
button.contentHorizontalAlignment = .center
button.setTitle("生成清单", for: .normal)
button.setTitleColor(.white, for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.clipsToBounds = true
button.addTarget(self, action: #selector(submit), for: .touchUpInside)
return button
......
......@@ -63,7 +63,7 @@ class YHHKPlanDoctumentVC: YHBaseViewController {
button.contentHorizontalAlignment = .center
button.setTitle("提交", for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.clipsToBounds = true
button.addTarget(self, action: #selector(clickSubmitBtn), for: .touchUpInside)
return button
......
......@@ -228,12 +228,11 @@ class YHMyDocumentsDetailViewController: YHBaseViewController {
bottomButton = {
let button = UIButton(type: .custom)
// button.backgroundColor = UIColor(hex:0x2274ee)
button.titleLabel?.font = UIFont.PFSC_M(ofSize: 16)
button.contentHorizontalAlignment = .center
button.setTitle("确定已签章,提交", for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.clipsToBounds = true
button.addTarget(self, action: #selector(submit), for: .touchUpInside)
return button
......
......@@ -139,9 +139,9 @@ class YHCheckEamilAlertView: UIView {
button.contentHorizontalAlignment = .center
button.setTitle("不同意", for: .normal)
button.setTitleColor( UIColor.brandMainColor, for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.layer.borderWidth = 1
button.layer.borderColor = UIColor(hex: 0x3c86f8).cgColor
button.layer.borderColor = UIColor.brandMainColor.cgColor
button.addTarget(self, action: #selector(disagree), for: .touchUpInside)
return button
}()
......@@ -160,7 +160,7 @@ class YHCheckEamilAlertView: UIView {
button.contentHorizontalAlignment = .center
button.setTitle("同意", for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.addTarget(self, action: #selector(agree), for: .touchUpInside)
return button
}()
......
......@@ -30,7 +30,7 @@ class YHDocListBottomView: UIView {
button.contentHorizontalAlignment = .center
button.setTitle("下载", for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.clipsToBounds = true
button.addTarget(self, action: #selector(clickDownloadBtn), for: .touchUpInside)
return button
......
......@@ -76,7 +76,7 @@ class YHMyDocListHeaderView: UIView {
button.titleLabel?.font = UIFont.PFSC_R(ofSize: 10)
button.addTarget(self, action: #selector(clickAllBtn), for: .touchUpInside)
button.layerCornerRadius = kCornerRadius4
button.layerCornerRadius = kCornerRadius3
button.clipsToBounds = true
button.iconInLeft(spacing: 2)
button.isHidden = true
......
......@@ -170,7 +170,7 @@ class YHSchemeTableHeadView: UIView {
button.setTitle("我的评分", for: .normal)
button.setImage(UIImage(named: "scheme_button_icon"), for: .normal)
button.setTitleColor(UIColor(hex:0xd48638), for: .normal)
button.layer.cornerRadius = kCornerRadius4
button.layer.cornerRadius = kCornerRadius3
button.clipsToBounds = true
button.addTarget(self, action: #selector(goNext), for: .touchUpInside)
return button
......
......@@ -110,7 +110,7 @@ class YHSchemeTableViewCell: UITableViewCell {
button.setTitle("资料清单", for: .normal)
button.setImage(UIImage(named: "scheme_button_icon"), for: .normal)
button.setTitleColor(UIColor(hex:0xd48638), for: .normal)
button.layer.cornerRadius = kCornerRadius4
button.layer.cornerRadius = kCornerRadius3
button.clipsToBounds = true
button.addTarget(self, action: #selector(goNext), for: .touchUpInside)
return button
......
......@@ -193,7 +193,7 @@ class YHMySignatureDetailViewController: YHBaseViewController {
button.contentHorizontalAlignment = .center
button.setTitle("确定已签章,提交", for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.clipsToBounds = true
button.addTarget(self, action: #selector(submit), for: .touchUpInside)
return button
......
......@@ -126,7 +126,7 @@ class YHCommonAlertView: UIView {
button.contentHorizontalAlignment = .center
button.setTitle("不同意", for: .normal)
button.setTitleColor( UIColor.brandMainColor, for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.layer.borderWidth = 1
button.layer.borderColor = UIColor.brandMainColor.cgColor
button.addTarget(self, action: #selector(disagree), for: .touchUpInside)
......@@ -142,13 +142,12 @@ class YHCommonAlertView: UIView {
agreeButton = {
let button = UIButton(type: .custom)
// button.backgroundColor = UIColor.brandMainColor
button.backgroundColor = UIColor.brandMainColor
button.titleLabel?.font = UIFont.PFSC_M(ofSize: 15)
button.contentHorizontalAlignment = .center
button.setTitle("同意", for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.addTarget(self, action: #selector(agree), for: .touchUpInside)
return button
}()
......
......@@ -40,7 +40,7 @@ private extension YHBasicInfoFillBottomView {
button.contentHorizontalAlignment = .center
button.setTitle("保存", for: .normal)
button.setTitleColor(UIColor.mainTextColor, for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.addTarget(self, action: #selector(save), for: .touchUpInside)
return button
}()
......@@ -58,7 +58,7 @@ private extension YHBasicInfoFillBottomView {
button.contentHorizontalAlignment = .center
button.setTitle("提交", for: .normal)
button.setTitleColor(.white, for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.clipsToBounds = true
button.addTarget(self, action: #selector(submit), for: .touchUpInside)
return button
......
......@@ -143,7 +143,7 @@ class YHIdentityCardCell: UITableViewCell {
button.contentHorizontalAlignment = .center
button.setTitle("示例模板", for: .normal)
button.setTitleColor( UIColor.brandMainColor, for: .normal)
button.layer.cornerRadius = 4
button.layer.cornerRadius = kCornerRadius3
button.addTarget(self, action: #selector(exampleClick), for: .touchUpInside)
return button
}()
......
......@@ -33,7 +33,7 @@ class YHBottomNextView: UIView {
button.contentHorizontalAlignment = .center
button.setTitle("保存", for: .normal)
button.setTitleColor( UIColor.mainTextColor, for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.addTarget(self, action: #selector(save), for: .touchUpInside)
return button
}()
......@@ -51,7 +51,7 @@ class YHBottomNextView: UIView {
button.contentHorizontalAlignment = .center
button.setTitle("下一步", for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.clipsToBounds = true
button.addTarget(self, action: #selector(goNext), for: .touchUpInside)
return button
......
......@@ -165,7 +165,7 @@ class YHCardExampleView: UIView {
button.contentHorizontalAlignment = .center
button.setTitle("知道了", for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.clipsToBounds = true
button.addTarget(self, action: #selector(dismiss), for: .touchUpInside)
return button
......
......@@ -150,7 +150,7 @@ class YHMainInformationCardTableViewCell: UITableViewCell {
button.contentHorizontalAlignment = .center
button.setTitle("示例模板", for: .normal)
button.setTitleColor( UIColor.brandMainColor, for: .normal)
button.layer.cornerRadius = 4
button.layer.cornerRadius = kCornerRadius3
button.addTarget(self, action: #selector(exampleClick), for: .touchUpInside)
return button
}()
......
......@@ -82,7 +82,7 @@ class YHImageClipperViewController: YHBaseViewController {
button.contentHorizontalAlignment = .center
button.setTitle("确认", for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.clipsToBounds = true
button.addTarget(self, action: #selector(sureBtnClick), for: .touchUpInside)
return button
......
......@@ -84,7 +84,7 @@ class YHWorkExperienceListViewController: YHBaseViewController {
button.contentHorizontalAlignment = .center
button.setTitle("提交", for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.clipsToBounds = true
button.addTarget(self, action: #selector(submit), for: .touchUpInside)
return button
......
......@@ -244,7 +244,7 @@ class YHWorkIntroductionViewController: YHBaseViewController {
button.contentHorizontalAlignment = .center
button.setTitle("保存", for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
button.layer.cornerRadius = 6
button.layer.cornerRadius = kCornerRadius3
button.addTarget(self, action: #selector(submit), for: .touchUpInside)
return button
}()
......
......@@ -33,7 +33,7 @@ class YHResultBottomView: UIView {
button.setTitle("开始识别", for: .normal)
button.setImage(UIImage(named: "image_scan"), for: .normal)
button.setTitleColor(UIColor(hex:0xffffff), for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.iconInLeft(spacing: 6)
button.clipsToBounds = true
button.addTarget(self, action: #selector(goNext), for: .touchUpInside)
......
......@@ -80,7 +80,7 @@ class YHWorkExampleMessageTableViewCell: UITableViewCell {
button.contentHorizontalAlignment = .center
button.setTitle("使用此模板", for: .normal)
button.setTitleColor( UIColor.brandMainColor, for: .normal)
button.layer.cornerRadius = 3
button.layer.cornerRadius = kCornerRadius3
button.addTarget(self, action: #selector(submit), for: .touchUpInside)
return button
}()
......
......@@ -150,7 +150,7 @@ class YHSubmintAllInfoSuccessTipView: UIView {
button.contentHorizontalAlignment = .center
button.setTitle("取消", for: .normal)
button.setTitleColor(UIColor.brandMainColor, for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.clipsToBounds = true
button.layer.borderWidth = 1
button.layer.borderColor = UIColor.brandMainColor.cgColor
......@@ -171,7 +171,7 @@ class YHSubmintAllInfoSuccessTipView: UIView {
button.contentHorizontalAlignment = .center
button.setTitle("评分详情", for: .normal)
button.setTitleColor(.white, for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.clipsToBounds = true
button.addTarget(self, action: #selector(agree), for: .touchUpInside)
return button
......
......@@ -94,7 +94,7 @@ class YHSubmitAllInfoCheckView: UIView {
button.contentHorizontalAlignment = .center
button.setTitle("取消", for: .normal)
button.setTitleColor(UIColor.brandMainColor, for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.clipsToBounds = true
button.layer.borderWidth = 1
button.layer.borderColor = UIColor.brandMainColor.cgColor
......@@ -116,7 +116,7 @@ class YHSubmitAllInfoCheckView: UIView {
button.setTitle("确认", for: .normal)
button.clipsToBounds = true
button.setTitleColor(.white, for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.addTarget(self, action: #selector(agree), for: .touchUpInside)
return button
}()
......
......@@ -155,7 +155,7 @@ class YHCodeSueecssViewController: YHBaseViewController {
button.setTitleColor( UIColor.mainTextColor, for: .normal)
button.addTarget(self, action: #selector(startClicked), for: .touchUpInside)
button.isHidden = true
button.layer.cornerRadius = 4
button.layer.cornerRadius = kCornerRadius3
button.layer.borderWidth = 1
button.layer.borderColor = UIColor(hex: 0xebeef4).cgColor
return button
......
......@@ -148,7 +148,7 @@ class YHPhoneLoginViewController: YHBaseViewController {
button.contentHorizontalAlignment = .center
button.setTitle("获取验证码", for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
button.layer.cornerRadius = 6
button.layer.cornerRadius = kCornerRadius3
button.addTarget(self, action: #selector(getCode), for: .touchUpInside)
button.isEnabled = false
return button
......
......@@ -84,9 +84,9 @@ class YHPrivacyAlertView: UIView {
button.contentHorizontalAlignment = .center
button.setTitle("不同意", for: .normal)
button.setTitleColor( UIColor.brandMainColor, for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.layer.borderWidth = 1
button.layer.borderColor = UIColor(hex: 0x3c86f8).cgColor
button.layer.borderColor = UIColor.brandMainColor.cgColor
button.addTarget(self, action: #selector(disagree), for: .touchUpInside)
return button
}()
......@@ -105,7 +105,7 @@ class YHPrivacyAlertView: UIView {
button.contentHorizontalAlignment = .center
button.setTitle("同意", for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
button.layer.cornerRadius = kCornerRadius6
button.layer.cornerRadius = kCornerRadius3
button.addTarget(self, action: #selector(agree), for: .touchUpInside)
return button
}()
......
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