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

产品问题走查

parent 41047b33
...@@ -102,7 +102,9 @@ class YHAddAdoptersViewController: YHBaseViewController { ...@@ -102,7 +102,9 @@ class YHAddAdoptersViewController: YHBaseViewController {
} }
@objc func nextStep() { @objc func nextStep() {
self.navigationController?.popViewController(animated: true) let vc = YHCertificateAppointViewController()
vc.orderId = orderId
navigationController?.pushViewController(vc)
} }
func showDeleteAlert(_ model: YHAdopterDependentModel) { func showDeleteAlert(_ model: YHAdopterDependentModel) {
......
...@@ -139,7 +139,7 @@ class YHAdopterNewPeopleViewController: YHBaseViewController { ...@@ -139,7 +139,7 @@ class YHAdopterNewPeopleViewController: YHBaseViewController {
} }
self.stepView.currentIndex = self.stepView.currentIndex + 1 self.stepView.currentIndex = self.stepView.currentIndex + 1
self.updateDataSource() self.updateDataSource()
if self.viewModel.mainModel.info.is_read_agreement == 0 { if self.viewModel.mainModel.info.is_read_agreement == 0 && titleText == "新增子女" {
let view = YHAdopterCardOtherGuideView.sheetView() let view = YHAdopterCardOtherGuideView.sheetView()
view.ischeckBeforeFlag = false view.ischeckBeforeFlag = false
view.block = { view.block = {
......
...@@ -45,6 +45,8 @@ class YHAdopterOtherViewController: YHBaseViewController { ...@@ -45,6 +45,8 @@ class YHAdopterOtherViewController: YHBaseViewController {
tableView.register(cellWithClass: YHAdopterOtherCardTableViewCell.self) tableView.register(cellWithClass: YHAdopterOtherCardTableViewCell.self)
tableView.register(cellWithClass: YHAdopterCardExplainTableViewCell.self) tableView.register(cellWithClass: YHAdopterCardExplainTableViewCell.self)
tableView.register(cellWithClass: YHAdopterIncomeFileCountTableViewCell.self) tableView.register(cellWithClass: YHAdopterIncomeFileCountTableViewCell.self)
let view = UIView(frame: CGRect(x: 0, y: 0, width: KScreenWidth, height: 20))
tableView.tableFooterView = view
return tableView return tableView
}() }()
view.addSubview(tableView) view.addSubview(tableView)
...@@ -171,8 +173,11 @@ extension YHAdopterOtherViewController: UITableViewDelegate, UITableViewDataSour ...@@ -171,8 +173,11 @@ extension YHAdopterOtherViewController: UITableViewDelegate, UITableViewDataSour
return 84 return 84
} }
if indexPath.row == 2 { if indexPath.row == 2 {
let count = urls.count/2 var count = urls.count/2
return CGFloat(173 + count * 173) if count > 4 {
count = 4
}
return CGFloat(173 + count * 143)
} }
return 45 return 45
} }
......
...@@ -115,7 +115,7 @@ class YHAdopterCardTableViewCell: UITableViewCell { ...@@ -115,7 +115,7 @@ class YHAdopterCardTableViewCell: UITableViewCell {
}() }()
centerView.addSubview(moreButton) centerView.addSubview(moreButton)
moreButton.snp.makeConstraints { make in moreButton.snp.makeConstraints { make in
make.centerY.equalTo(titleLabel.snp.centerY) make.centerY.equalToSuperview()
make.right.equalTo(-14) make.right.equalTo(-14)
make.height.equalTo(20) make.height.equalTo(20)
make.width.equalTo(62) make.width.equalTo(62)
......
...@@ -71,7 +71,7 @@ class YHAdopterIncomeTableViewCell: UITableViewCell { ...@@ -71,7 +71,7 @@ class YHAdopterIncomeTableViewCell: UITableViewCell {
centerView.addSubview(titleLabel) centerView.addSubview(titleLabel)
titleLabel.snp.makeConstraints { make in titleLabel.snp.makeConstraints { make in
make.left.equalTo(18) make.left.equalTo(18)
make.top.equalTo(16) make.top.equalTo(23)
make.height.equalTo(24) make.height.equalTo(24)
make.right.equalTo(-18) make.right.equalTo(-18)
} }
......
...@@ -320,21 +320,22 @@ class YHAdopterMarryCardTableViewCell: UITableViewCell { ...@@ -320,21 +320,22 @@ class YHAdopterMarryCardTableViewCell: UITableViewCell {
} }
YHImagePickerView.show() {[weak self] image in YHImagePickerView.show() {[weak self] image in
guard let self = self else { return } guard let self = self else { return }
self.thirdImageButton.setContent("card_loading", "上传中") self.backSurfaceImageButton.setContent("card_loading", "上传中")
self.thirdImageButton.startRotationAnimation() self.backSurfaceImageButton.startRotationAnimation()
self.viewModel.uploadImage(image) {[weak self] success, error in self.viewModel.uploadImage(image) {[weak self] success, error in
guard let self = self else { return } guard let self = self else { return }
self.thirdImageButton.stopRotationAnimation() self.backSurfaceImageButton.stopRotationAnimation()
self.thirdImageButton.setContent("", "") self.backSurfaceImageButton.setContent("", "")
guard let url = success else { return } guard let url = success else { return }
self.thirdImageButton.setBackgroundImage(image, for: .normal) self.backSurfaceImageButton.setBackgroundImage(image, for: .normal)
self.thirdDeleteButton.isHidden = false self.backSurfaceDeleteButton.isHidden = false
if let block = self.urlBlock { if let block = self.urlBlock {
block(url, 1) block(url, 1)
} }
} }
} }
} }
@objc func thirdImageClick() { @objc func thirdImageClick() {
...@@ -349,16 +350,16 @@ class YHAdopterMarryCardTableViewCell: UITableViewCell { ...@@ -349,16 +350,16 @@ class YHAdopterMarryCardTableViewCell: UITableViewCell {
} }
YHImagePickerView.show() {[weak self] image in YHImagePickerView.show() {[weak self] image in
guard let self = self else { return } guard let self = self else { return }
self.backSurfaceImageButton.setContent("card_loading", "上传中") self.thirdImageButton.setContent("card_loading", "上传中")
self.backSurfaceImageButton.startRotationAnimation() self.thirdImageButton.startRotationAnimation()
self.viewModel.uploadImage(image) {[weak self] success, error in self.viewModel.uploadImage(image) {[weak self] success, error in
guard let self = self else { return } guard let self = self else { return }
self.backSurfaceImageButton.stopRotationAnimation() self.thirdImageButton.stopRotationAnimation()
self.backSurfaceImageButton.setContent("", "") self.thirdImageButton.setContent("", "")
guard let url = success else { return } guard let url = success else { return }
self.backSurfaceImageButton.setBackgroundImage(image, for: .normal) self.thirdImageButton.setBackgroundImage(image, for: .normal)
self.backSurfaceDeleteButton.isHidden = false self.thirdDeleteButton.isHidden = false
if let block = self.urlBlock { if let block = self.urlBlock {
block(url, 2) block(url, 2)
} }
......
...@@ -86,8 +86,11 @@ class YHAdopterOtherCardTableViewCell: UITableViewCell { ...@@ -86,8 +86,11 @@ class YHAdopterOtherCardTableViewCell: UITableViewCell {
extension YHAdopterOtherCardTableViewCell: UICollectionViewDelegate, UICollectionViewDataSource { extension YHAdopterOtherCardTableViewCell: UICollectionViewDelegate, UICollectionViewDataSource {
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
if self.dataSource.count < 10 {
return self.dataSource.count return self.dataSource.count
} }
return 10
}
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: YHAdopterOtherCardCollectionViewCell.cellReuseIdentifier, for: indexPath) as! YHAdopterOtherCardCollectionViewCell let cell = collectionView.dequeueReusableCell(withReuseIdentifier: YHAdopterOtherCardCollectionViewCell.cellReuseIdentifier, for: indexPath) as! YHAdopterOtherCardCollectionViewCell
...@@ -136,7 +139,7 @@ class YHAdopterOtherCardCollectionViewCell: UICollectionViewCell { ...@@ -136,7 +139,7 @@ class YHAdopterOtherCardCollectionViewCell: UICollectionViewCell {
} }
var state: Int = 0 { var state: Int = 0 {
didSet { didSet {
if self.state == 1 || self.state == 2 { if self.state == 1 || self.state == 3 {
imagePickView.state = true imagePickView.state = true
} }
} }
......
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