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

图片替换

parent 41a512d5
...@@ -36,7 +36,7 @@ class YHCertificateSearchBar: UIView { ...@@ -36,7 +36,7 @@ class YHCertificateSearchBar: UIView {
textField.backgroundColor = .clear textField.backgroundColor = .clear
textField.attributedPlaceholder = NSAttributedString(string: "请输入关键词搜索".local, attributes: [NSAttributedString.Key.foregroundColor : UIColor.placeHolderColor]) textField.attributedPlaceholder = NSAttributedString(string: "请输入关键词搜索".local, attributes: [NSAttributedString.Key.foregroundColor : UIColor.placeHolderColor])
textField.font = UIFont.PFSC_M(ofSize: 12) textField.font = UIFont.PFSC_M(ofSize: 12)
textField.tintColor = UIColor(hexString: "#3D88F8") textField.tintColor = UIColor.brandMainColor
textField.textColor = UIColor.mainTextColor textField.textColor = UIColor.mainTextColor
textField.clearButtonMode = .whileEditing textField.clearButtonMode = .whileEditing
textField.addTarget(self, action: #selector(textFieldChanged(textField:)), for: .editingChanged) textField.addTarget(self, action: #selector(textFieldChanged(textField:)), for: .editingChanged)
...@@ -49,7 +49,7 @@ class YHCertificateSearchBar: UIView { ...@@ -49,7 +49,7 @@ class YHCertificateSearchBar: UIView {
btn.setTitle("搜索".local, for: .normal) btn.setTitle("搜索".local, for: .normal)
btn.titleLabel?.font = UIFont.PFSC_M(ofSize: 12) btn.titleLabel?.font = UIFont.PFSC_M(ofSize: 12)
btn.setTitleColor(.white, for: .normal) btn.setTitleColor(.white, for: .normal)
btn.backgroundColor = UIColor(hexString: "#3D88F8") btn.backgroundColor = UIColor.brandMainColor
btn.layer.cornerRadius = Self.cancelBtnHeight/2.0 btn.layer.cornerRadius = Self.cancelBtnHeight/2.0
btn.addTarget(self, action: #selector(searchBtnClicked), for: .touchUpInside) btn.addTarget(self, action: #selector(searchBtnClicked), for: .touchUpInside)
return btn return btn
......
...@@ -60,7 +60,7 @@ class YHDocumentPromptTableViewCell: UITableViewCell { ...@@ -60,7 +60,7 @@ class YHDocumentPromptTableViewCell: UITableViewCell {
promptImageView = { promptImageView = {
let view = UIImageView() let view = UIImageView()
view.image = UIImage(named: "document_prompt_icon") view.image = UIImage(named: "tips_icon")
return view return view
}() }()
centerView.addSubview(promptImageView) centerView.addSubview(promptImageView)
......
...@@ -35,7 +35,7 @@ class YHCollegeSearchBar: UIView { ...@@ -35,7 +35,7 @@ class YHCollegeSearchBar: UIView {
textField.backgroundColor = .clear textField.backgroundColor = .clear
textField.attributedPlaceholder = NSAttributedString(string: "请输入学校全称", attributes: [NSAttributedString.Key.foregroundColor : UIColor.placeHolderColor]) textField.attributedPlaceholder = NSAttributedString(string: "请输入学校全称", attributes: [NSAttributedString.Key.foregroundColor : UIColor.placeHolderColor])
textField.font = UIFont.PFSC_M(ofSize: 12) textField.font = UIFont.PFSC_M(ofSize: 12)
textField.tintColor = UIColor(hexString: "#3D88F8") textField.tintColor = UIColor.brandMainColor
textField.textColor = UIColor.mainTextColor textField.textColor = UIColor.mainTextColor
textField.addTarget(self, action: #selector(textFieldChanged(textField:)), for: .editingChanged) textField.addTarget(self, action: #selector(textFieldChanged(textField:)), for: .editingChanged)
return textField return textField
...@@ -46,7 +46,7 @@ class YHCollegeSearchBar: UIView { ...@@ -46,7 +46,7 @@ class YHCollegeSearchBar: UIView {
btn.setTitle("确认".local, for: .normal) btn.setTitle("确认".local, for: .normal)
btn.titleLabel?.font = UIFont.PFSC_M(ofSize: 12) btn.titleLabel?.font = UIFont.PFSC_M(ofSize: 12)
btn.setTitleColor(.white, for: .normal) btn.setTitleColor(.white, for: .normal)
btn.backgroundColor = UIColor(hexString: "#3D88F8") btn.backgroundColor = UIColor.brandMainColor
btn.layer.cornerRadius = Self.confirmBtnHeight/2.0 btn.layer.cornerRadius = Self.confirmBtnHeight/2.0
btn.addTarget(self, action: #selector(confirmBtnClicked), for: .touchUpInside) btn.addTarget(self, action: #selector(confirmBtnClicked), for: .touchUpInside)
return btn return btn
......
...@@ -184,7 +184,7 @@ class YHCardExampleView: UIView { ...@@ -184,7 +184,7 @@ class YHCardExampleView: UIView {
let array = ["四角完整", "照片清晰", "亮度均匀"] let array = ["四角完整", "照片清晰", "亮度均匀"]
for i in 0 ..< array.count { for i in 0 ..< array.count {
let imageView = UIImageView() let imageView = UIImageView()
imageView.image = UIImage(named: "service_card_complete") imageView.image = UIImage(named: "mid_image")
centerView.addSubview(imageView) centerView.addSubview(imageView)
imageView.snp.makeConstraints { make in imageView.snp.makeConstraints { make in
make.top.equalTo(76) make.top.equalTo(76)
......
...@@ -121,7 +121,7 @@ class YHDatePickView: UIView { ...@@ -121,7 +121,7 @@ class YHDatePickView: UIView {
button.titleLabel?.font = UIFont.PFSC_M(ofSize: 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.brandMainColor, for: .normal)
button.addTarget(self, action: #selector(sure), for: .touchUpInside) button.addTarget(self, action: #selector(sure), for: .touchUpInside)
return button return button
}() }()
......
...@@ -141,7 +141,7 @@ class YHItemView: UIView { ...@@ -141,7 +141,7 @@ class YHItemView: UIView {
longTimeButton = { longTimeButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.setImage(UIImage(named: "main_time_normal"), for: .normal) button.setImage(UIImage(named: "main_time_normal"), for: .normal)
button.setImage(UIImage(named: "main_time_select"), for: .selected) button.setImage(UIImage(named: "login_privacy_agree"), for: .selected)
button.setTitleColor(UIColor.mainTextColor, for: .normal) button.setTitleColor(UIColor.mainTextColor, for: .normal)
button.setTitle("长期", for: .normal) button.setTitle("长期", for: .normal)
button.titleLabel?.font = UIFont.PFSC_M(ofSize: 14) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 14)
......
...@@ -67,7 +67,7 @@ class YHStepView: UIScrollView { ...@@ -67,7 +67,7 @@ class YHStepView: UIScrollView {
self.removeSubviews() self.removeSubviews()
for i in 0 ..< array.count { for i in 0 ..< array.count {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.setBackgroundImage(UIImage(named: "service_step_fail"), for: .normal) button.setBackgroundImage(UIImage(named: "mid_image2"), for: .normal)
button.tag = 1000 + i button.tag = 1000 + i
button.addTarget(self, action: #selector(buttonClick(_:)), for: .touchUpInside) button.addTarget(self, action: #selector(buttonClick(_:)), for: .touchUpInside)
addSubview(button) addSubview(button)
...@@ -110,13 +110,13 @@ class YHStepView: UIScrollView { ...@@ -110,13 +110,13 @@ class YHStepView: UIScrollView {
} }
if currentIndex == i { if currentIndex == i {
button.setBackgroundImage(UIImage(named: "service_step_now"), for: .normal) button.setBackgroundImage(UIImage(named: "mid_image1"), for: .normal)
label.textColor = UIColor.brandMainColor label.textColor = UIColor.brandMainColor
} else if i < currentIndex { } else if i < currentIndex {
button.setBackgroundImage(UIImage(named: "service_step_success"), for: .normal) button.setBackgroundImage(UIImage(named: "mid_image"), for: .normal)
label.textColor = UIColor.mainTextColor label.textColor = UIColor.mainTextColor
} else { } else {
button.setBackgroundImage(UIImage(named: "service_step_fail"), for: .normal) button.setBackgroundImage(UIImage(named: "mid_image2"), for: .normal)
label.textColor = UIColor.placeHolderColor label.textColor = UIColor.placeHolderColor
} }
} }
...@@ -135,15 +135,15 @@ class YHStepView: UIScrollView { ...@@ -135,15 +135,15 @@ class YHStepView: UIScrollView {
} }
} }
if currentIndex == i { if currentIndex == i {
button?.setBackgroundImage(UIImage(named: "service_step_now"), for: .normal) button?.setBackgroundImage(UIImage(named: "mid_image1"), for: .normal)
lable?.textColor = UIColor.brandMainColor lable?.textColor = UIColor.brandMainColor
lable?.font = UIFont.PFSC_M(ofSize: 13) lable?.font = UIFont.PFSC_M(ofSize: 13)
} else if i < currentIndex { } else if i < currentIndex {
button?.setBackgroundImage(UIImage(named: "service_step_success"), for: .normal) button?.setBackgroundImage(UIImage(named: "mid_image"), for: .normal)
lable?.textColor = UIColor.mainTextColor lable?.textColor = UIColor.mainTextColor
lable?.font = UIFont.PFSC_R(ofSize: 13) lable?.font = UIFont.PFSC_R(ofSize: 13)
} else { } else {
button?.setBackgroundImage(UIImage(named: "service_step_fail"), for: .normal) button?.setBackgroundImage(UIImage(named: "mid_image2"), for: .normal)
lable?.textColor = UIColor.placeHolderColor lable?.textColor = UIColor.placeHolderColor
lable?.font = UIFont.PFSC_R(ofSize: 13) lable?.font = UIFont.PFSC_R(ofSize: 13)
} }
......
...@@ -48,7 +48,7 @@ class YHOtherSelecteItemView: UIView { ...@@ -48,7 +48,7 @@ class YHOtherSelecteItemView: UIView {
lazy var longTimeButton = { lazy var longTimeButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.setImage(UIImage(named: "main_time_normal"), for: .normal) button.setImage(UIImage(named: "main_time_normal"), for: .normal)
button.setImage(UIImage(named: "main_time_select"), for: .selected) button.setImage(UIImage(named: "login_privacy_agree"), for: .selected)
button.setTitleColor(UIColor.mainTextColor, for: .normal) button.setTitleColor(UIColor.mainTextColor, for: .normal)
button.setTitle("至今", for: .normal) button.setTitle("至今", for: .normal)
button.titleLabel?.font = UIFont.PFSC_M(ofSize: 14) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 14)
......
...@@ -143,7 +143,7 @@ class YHWorkExperienceItemView: UIView { ...@@ -143,7 +143,7 @@ class YHWorkExperienceItemView: UIView {
longTimeButton = { longTimeButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.setImage(UIImage(named: "main_time_normal"), for: .normal) button.setImage(UIImage(named: "main_time_normal"), for: .normal)
button.setImage(UIImage(named: "main_time_select"), for: .selected) button.setImage(UIImage(named: "login_privacy_agree"), for: .selected)
button.setTitleColor(UIColor.mainTextColor, for: .normal) button.setTitleColor(UIColor.mainTextColor, for: .normal)
button.setTitle("至今", for: .normal) button.setTitle("至今", for: .normal)
button.titleLabel?.font = UIFont.PFSC_M(ofSize: 14) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 14)
......
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "card_upload@2x.png", "filename" : "xinxi_Upload@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"filename" : "card_upload@3x.png", "filename" : "xinxi_Upload@3x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "3x" "scale" : "3x"
} }
......
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "main_time_select@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "main_time_select@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "service_card_complete@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "service_card_complete@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "service_step_fail@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "service_step_fail@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "service_step_now@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "service_step_now@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "service_step_success@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "service_step_success@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "document_prompt_icon@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "document_prompt_icon@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment