Commit 9f6ba290 authored by pete谢兆麟's avatar pete谢兆麟

工作经验产品要求的改动

parent 59141558
...@@ -74,6 +74,17 @@ class YHWorkExperienceListViewController: YHBaseViewController { ...@@ -74,6 +74,17 @@ class YHWorkExperienceListViewController: YHBaseViewController {
bottom.nextblock = { [weak self] in bottom.nextblock = { [weak self] in
guard let self = self else { return } guard let self = self else { return }
guard let dataSource = dataSource else { return } guard let dataSource = dataSource else { return }
if dataSource.count == 0 {
YHCommonAlertView.show("", "请确认主申请人无任何工作经历?", "取消", "确认") {
self.viewModel?.requestWorkTimeRemarkWorkExperience("\(self.orderId)", 1, callBackBlock: {[weak self] success, error in
guard let self = self else { return }
if success ?? false {
self.navigationController?.popViewController(animated: true)
}
})
}
return
}
for item in dataSource { for item in dataSource {
if item.vacant_num ?? 0 > 0 { if item.vacant_num ?? 0 > 0 {
showPrompt = true showPrompt = true
......
...@@ -251,6 +251,11 @@ class YHWorkExperienceViewController: YHBaseViewController { ...@@ -251,6 +251,11 @@ class YHWorkExperienceViewController: YHBaseViewController {
guard let self = self else { return } guard let self = self else { return }
if self.viewModel.isCanNext(self.stepView.currentIndex) { if self.viewModel.isCanNext(self.stepView.currentIndex) {
if self.stepView.currentIndex == 0 { if self.stepView.currentIndex == 0 {
if self.viewModel.positionList.count == 0 {
self.isShowPrompt = true
tableView.reloadData()
YHHUD.flash(message: "至少需要新增一个职位")
}
for item in self.viewModel.positionList { for item in self.viewModel.positionList {
if item.missing_item_num > 0 { if item.missing_item_num > 0 {
self.isShowPrompt = true self.isShowPrompt = true
......
...@@ -99,8 +99,8 @@ class YHWorkExperienceListTableViewCell: UITableViewCell { ...@@ -99,8 +99,8 @@ class YHWorkExperienceListTableViewCell: UITableViewCell {
cannalButton = { cannalButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.titleLabel?.font = UIFont.PFSC_M(ofSize: 14) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 14)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .right
button.setTitle("取消操作", for: .normal) button.setTitle("取消编辑", for: .normal)
button.setTitleColor(UIColor.brandMainColor, for: .normal) button.setTitleColor(UIColor.brandMainColor, for: .normal)
button.addTarget(self, action: #selector(cannal), for: .touchUpInside) button.addTarget(self, action: #selector(cannal), for: .touchUpInside)
button.isHidden = true button.isHidden = true
...@@ -116,7 +116,10 @@ class YHWorkExperienceListTableViewCell: UITableViewCell { ...@@ -116,7 +116,10 @@ class YHWorkExperienceListTableViewCell: UITableViewCell {
moreButton = { moreButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.setBackgroundImage(UIImage(named: "work_more"), for: .normal) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 14)
button.contentHorizontalAlignment = .right
button.setTitle("编辑", for: .normal)
button.setTitleColor(UIColor.brandMainColor, for: .normal)
button.addTarget(self, action: #selector(more), for: .touchUpInside) button.addTarget(self, action: #selector(more), for: .touchUpInside)
return button return button
}() }()
...@@ -124,8 +127,8 @@ class YHWorkExperienceListTableViewCell: UITableViewCell { ...@@ -124,8 +127,8 @@ class YHWorkExperienceListTableViewCell: UITableViewCell {
moreButton.snp.makeConstraints { make in moreButton.snp.makeConstraints { make in
make.right.equalTo(-18) make.right.equalTo(-18)
make.top.equalTo(24) make.top.equalTo(24)
make.height.equalTo(24) make.height.equalTo(20)
make.width.equalTo(24) make.width.equalTo(60)
} }
......
...@@ -100,7 +100,7 @@ class YHWorkExperiencePositionTableViewCell: UITableViewCell { ...@@ -100,7 +100,7 @@ class YHWorkExperiencePositionTableViewCell: UITableViewCell {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
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.brandMainColor, for: .normal) button.setTitleColor(UIColor.brandMainColor, for: .normal)
button.addTarget(self, action: #selector(cannal), for: .touchUpInside) button.addTarget(self, action: #selector(cannal), for: .touchUpInside)
button.isHidden = true button.isHidden = true
...@@ -116,7 +116,10 @@ class YHWorkExperiencePositionTableViewCell: UITableViewCell { ...@@ -116,7 +116,10 @@ class YHWorkExperiencePositionTableViewCell: UITableViewCell {
moreButton = { moreButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.setBackgroundImage(UIImage(named: "work_more"), for: .normal) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 14)
button.contentHorizontalAlignment = .right
button.setTitle("编辑", for: .normal)
button.setTitleColor(UIColor.brandMainColor, for: .normal)
button.addTarget(self, action: #selector(more), for: .touchUpInside) button.addTarget(self, action: #selector(more), for: .touchUpInside)
return button return button
}() }()
...@@ -124,8 +127,8 @@ class YHWorkExperiencePositionTableViewCell: UITableViewCell { ...@@ -124,8 +127,8 @@ class YHWorkExperiencePositionTableViewCell: UITableViewCell {
moreButton.snp.makeConstraints { make in moreButton.snp.makeConstraints { make in
make.right.equalTo(-18) make.right.equalTo(-18)
make.top.equalTo(24) make.top.equalTo(24)
make.height.equalTo(24) make.height.equalTo(20)
make.width.equalTo(24) make.width.equalTo(60)
} }
......
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