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

Merge branch 'develop' of http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS into develop

* 'develop' of http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS:
  // UI走查
  // 我的证书
parents 278a815a b42df17a
This diff is collapsed.
...@@ -34,7 +34,7 @@ class YHCertificateCategoryItem { ...@@ -34,7 +34,7 @@ class YHCertificateCategoryItem {
} }
} }
class YHMaterialListViewController: YHBaseViewController { class YHCertificateListContainerVC: YHBaseViewController {
static let segmentHeight = 53.0 static let segmentHeight = 53.0
...@@ -66,7 +66,7 @@ class YHMaterialListViewController: YHBaseViewController { ...@@ -66,7 +66,7 @@ class YHMaterialListViewController: YHBaseViewController {
YHCertificateCategoryItem(type: .rejected), YHCertificateCategoryItem(type: .rejected),
YHCertificateCategoryItem(type: .review), YHCertificateCategoryItem(type: .review),
YHCertificateCategoryItem(type: .finish)] YHCertificateCategoryItem(type: .finish)]
var itemVCs:[YHCertificateResourceUploadVC] = [] var itemVCs:[YHCertificateListVC] = []
lazy var segmentedView : JXSegmentedView = { lazy var segmentedView : JXSegmentedView = {
let segview = JXSegmentedView(frame: CGRect(x: 0, y: k_Height_NavigationtBarAndStatuBar, width: KScreenWidth, height: Self.segmentHeight)) let segview = JXSegmentedView(frame: CGRect(x: 0, y: k_Height_NavigationtBarAndStatuBar, width: KScreenWidth, height: Self.segmentHeight))
...@@ -132,7 +132,7 @@ class YHMaterialListViewController: YHBaseViewController { ...@@ -132,7 +132,7 @@ class YHMaterialListViewController: YHBaseViewController {
NotificationCenter.default.addObserver(self, selector: #selector(didCertificateCountStatistics(_:)), name:countStatisticsNotify , object: nil) NotificationCenter.default.addObserver(self, selector: #selector(didCertificateCountStatistics(_:)), name:countStatisticsNotify , object: nil)
for item in categoryItems { for item in categoryItems {
let vc = YHCertificateResourceUploadVC() let vc = YHCertificateListVC()
vc.orderId = orderId vc.orderId = orderId
vc.status = item.type vc.status = item.type
vc.categoryInfo = categoryInfo vc.categoryInfo = categoryInfo
...@@ -219,7 +219,7 @@ class YHMaterialListViewController: YHBaseViewController { ...@@ -219,7 +219,7 @@ class YHMaterialListViewController: YHBaseViewController {
} }
extension YHMaterialListViewController: JXSegmentedViewDelegate { extension YHCertificateListContainerVC: JXSegmentedViewDelegate {
func segmentedView(_ segmentedView: JXSegmentedView, didSelectedItemAt index: Int) { func segmentedView(_ segmentedView: JXSegmentedView, didSelectedItemAt index: Int) {
if 0 <= index && index < itemVCs.count { if 0 <= index && index < itemVCs.count {
...@@ -240,7 +240,7 @@ extension YHMaterialListViewController: JXSegmentedViewDelegate { ...@@ -240,7 +240,7 @@ extension YHMaterialListViewController: JXSegmentedViewDelegate {
} }
} }
extension YHMaterialListViewController: JXSegmentedListContainerViewDataSource { extension YHCertificateListContainerVC: JXSegmentedListContainerViewDataSource {
func numberOfLists(in listContainerView: JXSegmentedListContainerView) -> Int { func numberOfLists(in listContainerView: JXSegmentedListContainerView) -> Int {
if let titleDataSource = segmentedView.dataSource as? JXSegmentedBaseDataSource { if let titleDataSource = segmentedView.dataSource as? JXSegmentedBaseDataSource {
......
...@@ -12,7 +12,7 @@ import UniformTypeIdentifiers ...@@ -12,7 +12,7 @@ import UniformTypeIdentifiers
import IQKeyboardManagerSwift import IQKeyboardManagerSwift
import SwifterSwift import SwifterSwift
class YHCertificateResourceUploadVC: YHBaseViewController { class YHCertificateListVC: YHBaseViewController {
var orderId : Int? var orderId : Int?
var status: YHCertificateUploadStatus = .all var status: YHCertificateUploadStatus = .all
...@@ -84,12 +84,12 @@ class YHCertificateResourceUploadVC: YHBaseViewController { ...@@ -84,12 +84,12 @@ class YHCertificateResourceUploadVC: YHBaseViewController {
view.addSubview(tableView) view.addSubview(tableView)
tableView.snp.makeConstraints { make in tableView.snp.makeConstraints { make in
make.top.left.right.equalToSuperview() make.top.left.right.equalToSuperview()
make.height.equalTo(KScreenHeight - k_Height_NavigationtBarAndStatuBar - YHMaterialListViewController.segmentHeight) make.height.equalTo(KScreenHeight - k_Height_NavigationtBarAndStatuBar - YHCertificateListContainerVC.segmentHeight)
} }
} }
} }
extension YHCertificateResourceUploadVC: UITableViewDelegate, UITableViewDataSource { extension YHCertificateListVC: UITableViewDelegate, UITableViewDataSource {
func numberOfSections(in tableView: UITableView) -> Int { func numberOfSections(in tableView: UITableView) -> Int {
return items.count return items.count
...@@ -138,7 +138,7 @@ extension YHCertificateResourceUploadVC: UITableViewDelegate, UITableViewDataSou ...@@ -138,7 +138,7 @@ extension YHCertificateResourceUploadVC: UITableViewDelegate, UITableViewDataSou
return return
} }
// 非待上传的进入详情 // 非待上传的进入详情
let vc = YHUploadContentVC() let vc = YHCertificateUploadContentListVC()
vc.orderId = orderId vc.orderId = orderId
vc.categoryInfo = categoryInfo vc.categoryInfo = categoryInfo
vc.supplementInfo = item vc.supplementInfo = item
...@@ -166,13 +166,13 @@ extension YHCertificateResourceUploadVC: UITableViewDelegate, UITableViewDataSou ...@@ -166,13 +166,13 @@ extension YHCertificateResourceUploadVC: UITableViewDelegate, UITableViewDataSou
} }
// MARK: - JXSegmentedListContainerViewListDelegate // MARK: - JXSegmentedListContainerViewListDelegate
extension YHCertificateResourceUploadVC: JXSegmentedListContainerViewListDelegate { extension YHCertificateListVC: JXSegmentedListContainerViewListDelegate {
func listView() -> UIView { func listView() -> UIView {
return view return view
} }
} }
extension YHCertificateResourceUploadVC { extension YHCertificateListVC {
func requestList(status: YHCertificateUploadStatus, extra:[String:Any] = [:]) { func requestList(status: YHCertificateUploadStatus, extra:[String:Any] = [:]) {
......
...@@ -169,7 +169,7 @@ extension YHCertificateSearchViewController: UITableViewDelegate, UITableViewDat ...@@ -169,7 +169,7 @@ extension YHCertificateSearchViewController: UITableViewDelegate, UITableViewDat
return return
} }
// 非待上传的进入详情 // 非待上传的进入详情
let vc = YHUploadContentVC() let vc = YHCertificateUploadContentListVC()
vc.orderId = orderId vc.orderId = orderId
vc.categoryInfo = categoryInfo vc.categoryInfo = categoryInfo
vc.supplementInfo = item vc.supplementInfo = item
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
import UIKit import UIKit
import IQKeyboardManagerSwift import IQKeyboardManagerSwift
class YHUploadContentVC: YHBaseViewController { class YHCertificateUploadContentListVC: YHBaseViewController {
var orderId : Int! var orderId : Int!
var categoryInfo: YHCategoryData! var categoryInfo: YHCategoryData!
...@@ -159,7 +159,7 @@ class YHUploadContentVC: YHBaseViewController { ...@@ -159,7 +159,7 @@ class YHUploadContentVC: YHBaseViewController {
} }
} }
extension YHUploadContentVC: UITableViewDelegate, UITableViewDataSource { extension YHCertificateUploadContentListVC: UITableViewDelegate, UITableViewDataSource {
func numberOfSections(in tableView: UITableView) -> Int { func numberOfSections(in tableView: UITableView) -> Int {
return 2 return 2
...@@ -408,7 +408,7 @@ extension YHUploadContentVC: UITableViewDelegate, UITableViewDataSource { ...@@ -408,7 +408,7 @@ extension YHUploadContentVC: UITableViewDelegate, UITableViewDataSource {
} }
} }
extension YHUploadContentVC { extension YHCertificateUploadContentListVC {
func addKeyBoardNotify() { func addKeyBoardNotify() {
...@@ -443,7 +443,7 @@ extension YHUploadContentVC { ...@@ -443,7 +443,7 @@ extension YHUploadContentVC {
} }
} }
extension YHUploadContentVC { extension YHCertificateUploadContentListVC {
func requestList() { func requestList() {
......
...@@ -190,7 +190,7 @@ extension YHMineCertificateEntryViewController : UITableViewDelegate,UITableView ...@@ -190,7 +190,7 @@ extension YHMineCertificateEntryViewController : UITableViewDelegate,UITableView
guard let model = certificateReqVM.certificateEntryModel else { return } guard let model = certificateReqVM.certificateEntryModel else { return }
let vc = YHMaterialListViewController() let vc = YHCertificateListContainerVC()
vc.orderId = orderId vc.orderId = orderId
if indexPath.section < model.category_data.count { if indexPath.section < model.category_data.count {
vc.categoryInfo = model.category_data[indexPath.section] vc.categoryInfo = model.category_data[indexPath.section]
......
...@@ -103,7 +103,7 @@ class YHCertificateNameCell: UITableViewCell { ...@@ -103,7 +103,7 @@ class YHCertificateNameCell: UITableViewCell {
editBtn = UIButton() editBtn = UIButton()
editBtn.setImage(UIImage(named:"my_cer_btn_edit"), for:.normal) editBtn.setImage(UIImage(named:"my_cer_btn_edit"), for:.normal)
editBtn.YH_clickEdgeInsets = UIEdgeInsets(top: 20, left: 20, bottom: 20, right: 20) editBtn.YH_clickEdgeInsets = UIEdgeInsets(top: 30, left: 30, bottom: 30, right: 30)
editBtn.addTarget(self, action: #selector(didEditBtnClicked), for: .touchUpInside) editBtn.addTarget(self, action: #selector(didEditBtnClicked), for: .touchUpInside)
whiteView.addSubview(editBtn) whiteView.addSubview(editBtn)
......
...@@ -582,9 +582,14 @@ extension YHSpouseBasicInfoVC : UITableViewDelegate, UITableViewDataSource { ...@@ -582,9 +582,14 @@ extension YHSpouseBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
cell.deleteBlock = { cell.deleteBlock = {
[weak self] in [weak self] in
guard let self = self else { return } guard let self = self else { return }
self.spouse?.hasDegreeJson.remove(at: indexPath.row-2)
loadInfo() var msg = "确定删除学位信息\(indexPath.row-1)吗"
save() YHTwoOptionAlertView.showAlertView(message:msg) { sure in
if !sure { return }
self.spouse?.hasDegreeJson.remove(at: indexPath.row-2)
self.loadInfo()
self.save()
}
} }
} }
......
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