Commit 479ab22e authored by David黄金龙's avatar David黄金龙

替换 一些图片

parent a3b734c0
...@@ -249,6 +249,7 @@ ...@@ -249,6 +249,7 @@
A510441A2B495DD0006B60BB /* UIView+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = A51044192B495DD0006B60BB /* UIView+Extension.swift */; }; A510441A2B495DD0006B60BB /* UIView+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = A51044192B495DD0006B60BB /* UIView+Extension.swift */; };
A514E5DC2B60A2B700C93951 /* YHServiceCenterSecondViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A514E5DB2B60A2B700C93951 /* YHServiceCenterSecondViewController.swift */; }; A514E5DC2B60A2B700C93951 /* YHServiceCenterSecondViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A514E5DB2B60A2B700C93951 /* YHServiceCenterSecondViewController.swift */; };
A517A4DF2BB53BE8000DEECD /* YHDocListBottomView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A517A4DE2BB53BE8000DEECD /* YHDocListBottomView.swift */; }; A517A4DF2BB53BE8000DEECD /* YHDocListBottomView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A517A4DE2BB53BE8000DEECD /* YHDocListBottomView.swift */; };
A517A4E12BB573EB000DEECD /* YHDocListCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A517A4E02BB573EB000DEECD /* YHDocListCell.swift */; };
A520124F2BABCE05008655EA /* YHFileListContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A520124E2BABCE05008655EA /* YHFileListContentView.swift */; }; A520124F2BABCE05008655EA /* YHFileListContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A520124E2BABCE05008655EA /* YHFileListContentView.swift */; };
A53026902B4E6F2700F35102 /* YHHomeCustomCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A530268F2B4E6F2700F35102 /* YHHomeCustomCell.swift */; }; A53026902B4E6F2700F35102 /* YHHomeCustomCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A530268F2B4E6F2700F35102 /* YHHomeCustomCell.swift */; };
A53B61122BB128AF0010B573 /* YHFileListItemsView2.swift in Sources */ = {isa = PBXBuildFile; fileRef = A53B61112BB128AF0010B573 /* YHFileListItemsView2.swift */; }; A53B61122BB128AF0010B573 /* YHFileListItemsView2.swift in Sources */ = {isa = PBXBuildFile; fileRef = A53B61112BB128AF0010B573 /* YHFileListItemsView2.swift */; };
...@@ -642,6 +643,7 @@ ...@@ -642,6 +643,7 @@
A51044192B495DD0006B60BB /* UIView+Extension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIView+Extension.swift"; sourceTree = "<group>"; }; A51044192B495DD0006B60BB /* UIView+Extension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIView+Extension.swift"; sourceTree = "<group>"; };
A514E5DB2B60A2B700C93951 /* YHServiceCenterSecondViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHServiceCenterSecondViewController.swift; sourceTree = "<group>"; }; A514E5DB2B60A2B700C93951 /* YHServiceCenterSecondViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHServiceCenterSecondViewController.swift; sourceTree = "<group>"; };
A517A4DE2BB53BE8000DEECD /* YHDocListBottomView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHDocListBottomView.swift; sourceTree = "<group>"; }; A517A4DE2BB53BE8000DEECD /* YHDocListBottomView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHDocListBottomView.swift; sourceTree = "<group>"; };
A517A4E02BB573EB000DEECD /* YHDocListCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHDocListCell.swift; sourceTree = "<group>"; };
A520124E2BABCE05008655EA /* YHFileListContentView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHFileListContentView.swift; sourceTree = "<group>"; }; A520124E2BABCE05008655EA /* YHFileListContentView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHFileListContentView.swift; sourceTree = "<group>"; };
A530268F2B4E6F2700F35102 /* YHHomeCustomCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHHomeCustomCell.swift; sourceTree = "<group>"; }; A530268F2B4E6F2700F35102 /* YHHomeCustomCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHHomeCustomCell.swift; sourceTree = "<group>"; };
A53B61112BB128AF0010B573 /* YHFileListItemsView2.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHFileListItemsView2.swift; sourceTree = "<group>"; }; A53B61112BB128AF0010B573 /* YHFileListItemsView2.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHFileListItemsView2.swift; sourceTree = "<group>"; };
...@@ -1620,6 +1622,7 @@ ...@@ -1620,6 +1622,7 @@
children = ( children = (
A53B61182BB3C9960010B573 /* YHMyDocListHeaderView.swift */, A53B61182BB3C9960010B573 /* YHMyDocListHeaderView.swift */,
A517A4DE2BB53BE8000DEECD /* YHDocListBottomView.swift */, A517A4DE2BB53BE8000DEECD /* YHDocListBottomView.swift */,
A517A4E02BB573EB000DEECD /* YHDocListCell.swift */,
); );
path = V; path = V;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -2543,6 +2546,7 @@ ...@@ -2543,6 +2546,7 @@
04A271252BAC33BB00652B1B /* YHFilePreviewTool.swift in Sources */, 04A271252BAC33BB00652B1B /* YHFilePreviewTool.swift in Sources */,
045EEEC32B9F171A0022A143 /* YHOtherResidenceFillView.swift in Sources */, 045EEEC32B9F171A0022A143 /* YHOtherResidenceFillView.swift in Sources */,
045EEE792B9F171A0022A143 /* YHPreviewViewModel.swift in Sources */, 045EEE792B9F171A0022A143 /* YHPreviewViewModel.swift in Sources */,
A517A4E12BB573EB000DEECD /* YHDocListCell.swift in Sources */,
A58037212BAD7B2A0031C312 /* YHMySchemeModel.swift in Sources */, A58037212BAD7B2A0031C312 /* YHMySchemeModel.swift in Sources */,
0493B3DE2BA80C2300AF9393 /* YHCertificateFilterButton.swift in Sources */, 0493B3DE2BA80C2300AF9393 /* YHCertificateFilterButton.swift in Sources */,
045EEE822B9F171A0022A143 /* YHPersonInfoIdentityCardModel.swift in Sources */, 045EEE822B9F171A0022A143 /* YHPersonInfoIdentityCardModel.swift in Sources */,
......
...@@ -22,14 +22,9 @@ class YHMyDocumentsListViewController: YHBaseViewController { ...@@ -22,14 +22,9 @@ class YHMyDocumentsListViewController: YHBaseViewController {
private var isEditFlag : Bool = false { private var isEditFlag : Bool = false {
didSet { didSet {
updateUI() updateUIForEditStatus()
} }
} }
lazy var headSessionView : YHMyDocListHeaderView = { lazy var headSessionView : YHMyDocListHeaderView = {
let view = YHMyDocListHeaderView() let view = YHMyDocListHeaderView()
...@@ -97,6 +92,7 @@ extension YHMyDocumentsListViewController { ...@@ -97,6 +92,7 @@ extension YHMyDocumentsListViewController {
headSessionView.block = { type in headSessionView.block = { type in
self.updateUIForClickButton(type: type) self.updateUIForClickButton(type: type)
self.isEditFlag = type == .downAll ? true : false
} }
view.addSubview(bottomView) view.addSubview(bottomView)
...@@ -106,6 +102,18 @@ extension YHMyDocumentsListViewController { ...@@ -106,6 +102,18 @@ extension YHMyDocumentsListViewController {
} }
bottomView.isHidden = true bottomView.isHidden = true
bottomView.block = { (type,flag) in
if type == .downAllCheck {
} else if type == .allChoice {
if flag {
//全选
} else {
//全选 的 反选
}
}
}
tableView = { tableView = {
let tableView = UITableView(frame:.zero, style:.plain) let tableView = UITableView(frame:.zero, style:.plain)
tableView.contentInsetAdjustmentBehavior = .never tableView.contentInsetAdjustmentBehavior = .never
...@@ -113,7 +121,7 @@ extension YHMyDocumentsListViewController { ...@@ -113,7 +121,7 @@ extension YHMyDocumentsListViewController {
tableView.separatorStyle = .none tableView.separatorStyle = .none
tableView.delegate = self tableView.delegate = self
tableView.dataSource = self tableView.dataSource = self
tableView.register(cellWithClass: YHMySignatureListTableViewCell.self) tableView.register(cellWithClass: YHDocListCell.self)
return tableView return tableView
}() }()
...@@ -129,11 +137,8 @@ extension YHMyDocumentsListViewController { ...@@ -129,11 +137,8 @@ extension YHMyDocumentsListViewController {
bottomView.bottomButton.addYinHeGradualLayer() bottomView.bottomButton.addYinHeGradualLayer()
} }
@objc func submit() { private func updateUIForEditStatus() {
//
}
private func updateUI() {
} }
...@@ -170,13 +175,13 @@ extension YHMyDocumentsListViewController: UITableViewDelegate, UITableViewDataS ...@@ -170,13 +175,13 @@ extension YHMyDocumentsListViewController: UITableViewDelegate, UITableViewDataS
} }
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withClass: YHMySignatureListTableViewCell.self) let cell = tableView.dequeueReusableCell(withClass: YHDocListCell.self)
cell.textLabel?.text = viewModel?.mainModel?.docs[indexPath.row].doc_type_name cell.dataSourceForDocs = viewModel?.mainModel?.docs[indexPath.row]
return cell return cell
} }
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return CGFloat(86) return UITableView.automaticDimension
} }
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
......
...@@ -54,10 +54,23 @@ class YHDocListBottomView: UIView { ...@@ -54,10 +54,23 @@ class YHDocListBottomView: UIView {
lable0.font = UIFont.PFSC_R(ofSize: 15) lable0.font = UIFont.PFSC_R(ofSize: 15)
return lable0 return lable0
}() }()
private lazy var line : UIView = {
let view = UIView()
view.backgroundColor = .separatorColor
return view
}()
} }
private extension YHDocListBottomView { private extension YHDocListBottomView {
func initView() { func initView() {
addSubview(line)
line.snp.makeConstraints { make in
make.left.right.top.equalToSuperview()
make.height.equalTo(0.5)
}
addSubview(checkButton) addSubview(checkButton)
checkButton.snp.makeConstraints { make in checkButton.snp.makeConstraints { make in
......
//
// YHDocListCell.swift
// galaxy
//
// Created by davidhuangA on 2024/3/28.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
class YHDocListCell: UITableViewCell {
var centerView: UIView = {
let view = UIView()
view.backgroundColor = .white
view.layer.cornerRadius = kCornerRadius6
return view
}()
var titleLabel: UILabel = {
let label = UILabel()
label.font = UIFont.PFSC_M(ofSize: 16)
label.textColor = UIColor.mainTextColor
label.lineBreakMode = .byWordWrapping
label.numberOfLines = 0
return label
}()
var statusLabel: UILabel!
lazy var statusHoldView : UIView = {
let view = UIView()
return view
}()
lazy var checkButton : UIButton = {
let button = UIButton(type: .custom)
button.titleLabel?.font = UIFont.PFSC_R(ofSize: 15)
button.contentHorizontalAlignment = .center
button.setTitleColor(UIColor.mainTextColor, for: .normal)
button.setImage(UIImage(named: "my_doc_check_btn_0"), for: .normal)
button.setImage(UIImage(named: "my_doc_check_btn_1"), for: .selected)
button.addTarget(self, action: #selector(clickCheckBtn), for: .touchUpInside)
return button
}()
var dataSourceForSign: YHMySignatureModel? {
didSet {
updateAllViewsForSign()
}
}
var dataSourceForDocs: YHMyDocumentsListModel? {
didSet {
updateAllViewsForDocs()
}
}
required init?(coder: NSCoder) {
super.init(coder: coder)
}
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
selectionStyle = .none
setupUI()
}
func setupUI() {
backgroundColor = .clear
contentView.addSubview(centerView)
centerView.snp.makeConstraints { make in
make.left.equalTo(kMargin)
make.right.equalTo(-kMargin)
make.top.equalTo(14)
make.bottom.equalToSuperview()
}
centerView.addSubview(statusHoldView)
statusHoldView.snp.makeConstraints { make in
make.centerY.equalToSuperview()
make.right.equalTo(-kMargin)
make.height.equalTo(20)
make.width.equalTo(62)
}
let imageV : UIImageView = UIImageView()
imageV.image = UIImage(named: "my_doc_right_arrow")
statusHoldView.addSubview(imageV)
imageV.snp.makeConstraints { make in
make.right.equalToSuperview()
make.centerY.equalToSuperview()
make.width.height.equalTo(kMargin)
}
statusLabel = {
let label = UILabel()
label.font = UIFont.PFSC_R(ofSize: 14)
label.textColor = UIColor.brandMainColor
label.textAlignment = .right
label.text = "待审核"
return label
}()
statusHoldView.addSubview(statusLabel)
statusLabel.snp.makeConstraints { make in
make.right.equalTo(imageV.snp.left).offset(-4)
make.centerY.equalToSuperview()
make.width.equalTo(42)
make.height.equalTo(20)
}
centerView.addSubview(titleLabel)
titleLabel.snp.makeConstraints { make in
make.top.equalTo(22)
make.left.equalTo(21)
make.right.equalTo(-90)
make.bottom.equalTo(-22)
}
centerView.addSubview(checkButton)
checkButton.snp.makeConstraints { make in
make.right.equalToSuperview().offset(-kMargin)
make.centerY.equalToSuperview()
make.width.height.equalTo(kMargin)
}
checkButton.isHidden = true
}
func updateAllViewsForDocs() {
guard let dataSource = dataSourceForDocs else { return }
titleLabel.text = dataSource.doc_type_name
/*
1: '待确认',
* 2: '待签章',
* 3: '已驳回',
* 4: '待核对',
* 5: '已签章',
* 6: '已定稿',
* 7: '已完成'
*/
var statusTxt = ""
var color : UIColor = .brandMainColor
let status = dataSource.document_check_status
if status == 1 {
statusTxt = "待确认"
color = UIColor.brandMainColor
} else if status == 2 {
statusTxt = "待签章"
color = UIColor.brandMainColor
} else if status == 3 {
statusTxt = "已驳回"
color = UIColor.failColor
} else if status == 4 {
statusTxt = "待审核"
color = UIColor.warnColor
} else if status == 5 {
statusTxt = "已签章"
color = UIColor.successColor
} else if status == 6 {
statusTxt = "已定稿"
color = UIColor.labelTextColor2
} else if status == 7 {
statusTxt = "已完成"
color = UIColor.labelTextColor2
} else {
statusTxt = "--"
color = UIColor.brandMainColor
}
statusLabel.text = statusTxt
statusLabel.textColor = color
}
func updateAllViewsForSign() {
guard let dataSource = dataSourceForSign else { return }
}
}
extension YHDocListCell {
@objc func clickCheckBtn() {
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "More@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "More@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