Commit 0d38fb52 authored by Steven杜宇's avatar Steven杜宇

// 名片

parent 5e650735
......@@ -21,6 +21,11 @@ class YHFileRenameInputView: UIView {
var maxWordsCount = 30
var editBlock: ((String?) -> Void)?
var dismissBlock: (() -> Void)?
var confirmBgColor: UIColor = .brandMainColor {
didSet {
confirmBtn.backgroundColor = confirmBgColor
}
}
lazy var blackMaskView: UIView = {
let view = UIView(frame: UIScreen.main.bounds)
......
......@@ -129,7 +129,7 @@ class YHEditHonorViewController: YHBaseViewController {
override func backItemClick(_ sender: Any) {
if viewModel.didChange {
view.resignAllFirstResponders()
YHCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
YHGrayCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
self.navigationController?.popViewController()
} callBack: {
}
......@@ -142,7 +142,7 @@ class YHEditHonorViewController: YHBaseViewController {
override func navigationShouldPop() -> Bool {
if viewModel.didChange {
view.resignAllFirstResponders()
YHCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
YHGrayCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
self.navigationController?.popViewController()
} callBack: {
}
......
......@@ -28,6 +28,7 @@ class YHEditInterestViewController: YHBaseViewController {
var renameInputView: YHFileRenameInputView = {
let view = YHFileRenameInputView.inputView(defalutText: "请输入自定义标签", "请输入10字以内的标签", "请输入自定义标签")
view.confirmBgColor = UIColor.brandGrayColor8
return view
}()
override func viewDidLoad() {
......@@ -84,7 +85,7 @@ class YHEditInterestViewController: YHBaseViewController {
nextButton = {
let button = UIButton(type: .custom)
button.backgroundColor = UIColor.brandMainColor
button.backgroundColor = UIColor.brandGrayColor8
button.titleLabel?.font = UIFont.PFSC_M(ofSize: 16)
button.contentHorizontalAlignment = .center
button.setTitle("保存", for: .normal)
......@@ -172,7 +173,7 @@ class YHEditInterestViewController: YHBaseViewController {
override func backItemClick(_ sender: Any) {
if viewModel.didChange {
view.resignAllFirstResponders()
YHCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
YHGrayCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
self.navigationController?.popViewController()
} callBack: {
}
......@@ -185,7 +186,7 @@ class YHEditInterestViewController: YHBaseViewController {
override func navigationShouldPop() -> Bool {
if viewModel.didChange {
view.resignAllFirstResponders()
YHCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
YHGrayCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
self.navigationController?.popViewController()
} callBack: {
}
......@@ -357,7 +358,7 @@ class YHEditInterestViewCell: UICollectionViewCell {
var label = UILabel()
label.font = .PFSC_R(ofSize: 12)
label.textAlignment = .left
label.textColor = UIColor.mainTextColor
label.textColor = UIColor.brandGrayColor8
return label
}()
......@@ -419,24 +420,26 @@ class YHEditInterestViewCell: UICollectionViewCell {
deleteButton.isHidden = true
if dataSource.isSelect {
contentView.layer.borderWidth = 1
contentView.layer.borderColor = UIColor.brandMainColor.cgColor
titleLabel.textColor = UIColor.brandMainColor
contentView.layer.borderColor = UIColor.brandGrayColor8.cgColor
titleLabel.font = .PFSC_M(ofSize: 12)
} else {
contentView.layer.borderWidth = 0
contentView.layer.borderColor = UIColor.brandMainColor.cgColor
titleLabel.textColor = UIColor.mainTextColor
contentView.layer.borderColor = UIColor.brandGrayColor8.cgColor
titleLabel.font = .PFSC_R(ofSize: 12)
}
} else {
if dataSource.isSelect {
contentView.layer.borderWidth = 1
contentView.layer.borderColor = UIColor.brandMainColor.cgColor
titleLabel.textColor = UIColor.brandMainColor
contentView.layer.borderColor = UIColor.brandGrayColor8.cgColor
deleteButton.isHidden = true
titleLabel.font = .PFSC_M(ofSize: 12)
} else {
contentView.layer.borderWidth = 0
contentView.layer.borderColor = UIColor.brandMainColor.cgColor
titleLabel.textColor = UIColor.mainTextColor
contentView.layer.borderColor = UIColor.brandGrayColor8.cgColor
deleteButton.isHidden = false
titleLabel.font = .PFSC_R(ofSize: 12)
}
}
}
......
......@@ -129,7 +129,7 @@ class YHEditPersonalProfileViewController: YHBaseViewController {
override func backItemClick(_ sender: Any) {
if viewModel.didChange {
view.resignAllFirstResponders()
YHCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
YHGrayCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
self.navigationController?.popViewController()
} callBack: {
}
......@@ -142,7 +142,7 @@ class YHEditPersonalProfileViewController: YHBaseViewController {
override func navigationShouldPop() -> Bool {
if viewModel.didChange {
view.resignAllFirstResponders()
YHCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
YHGrayCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
self.navigationController?.popViewController()
} callBack: {
}
......
......@@ -91,7 +91,7 @@ class YHEditSchoolViewController: YHBaseViewController {
override func backItemClick(_ sender: Any) {
if viewModel.didChange {
view.resignAllFirstResponders()
YHCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
YHGrayCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
self.navigationController?.popViewController()
} callBack: {
}
......@@ -104,7 +104,7 @@ class YHEditSchoolViewController: YHBaseViewController {
override func navigationShouldPop() -> Bool {
if viewModel.didChange {
view.resignAllFirstResponders()
YHCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
YHGrayCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
self.navigationController?.popViewController()
} callBack: {
}
......
......@@ -91,7 +91,7 @@ class YHEditWorkViewController: YHBaseViewController {
override func backItemClick(_ sender: Any) {
if viewModel.didChange {
view.resignAllFirstResponders()
YHCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
YHGrayCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
self.navigationController?.popViewController()
} callBack: {
}
......@@ -104,7 +104,7 @@ class YHEditWorkViewController: YHBaseViewController {
override func navigationShouldPop() -> Bool {
if viewModel.didChange {
view.resignAllFirstResponders()
YHCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
YHGrayCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
self.navigationController?.popViewController()
} callBack: {
}
......
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