Commit c7451495 authored by pete谢兆麟's avatar pete谢兆麟

登录图片显示

parent 1c306395
......@@ -142,7 +142,7 @@ class YHWorkExperienceItemView: UIView {
button.setImage(UIImage(named: "main_time_normal"), for: .normal)
button.setImage(UIImage(named: "main_time_select"), for: .selected)
button.setTitleColor(UIColor.mainTextColor, for: .normal)
button.setTitle("长期", for: .normal)
button.setTitle("至今", for: .normal)
button.titleLabel?.font = UIFont.PFSC_M(ofSize: 14)
button.contentHorizontalAlignment = .right
button.addTarget(self, action: #selector(longTimeButtonClick), for: .touchUpInside)
......@@ -162,7 +162,7 @@ class YHWorkExperienceItemView: UIView {
@objc func longTimeButtonClick() {
longTimeButton.isSelected = !longTimeButton.isSelected
if longTimeButton.isSelected {
self.dataSource?.message = "长期"
self.dataSource?.message = "至今"
self.updateAllViews()
if let block = self.block {
block(self.dataSource ?? YHWorkExperienceModel())
......@@ -284,7 +284,7 @@ class YHWorkExperienceItemView: UIView {
if dataSource.id == .id10 || dataSource.id == .id22{
longTimeButton.isHidden = false
nextStepImageView.isHidden = true
if dataSource.message == "长期" {
if dataSource.message == "至今" {
longTimeButton.isSelected = true
longTimeButton.snp.remakeConstraints { make in
make.left.equalTo(messageTextField.snp.left)
......
......@@ -69,7 +69,9 @@ class YHPhoneLoginViewController: YHBaseViewController {
logImageView = {
let imageView = UIImageView()
imageView.image = UIImage(named: "login_phone_log_image")
imageView.image = UIImage(named: "login_icon")
imageView.layer.masksToBounds = true
imageView.layer.cornerRadius = kCornerRadius8
return imageView
}()
view.addSubview(logImageView)
......
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "login_icon@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "login_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