Commit 89b810f9 authored by David黄金龙's avatar David黄金龙

1、处理一处编译不过的问题

2、修改2处UIbug
parent 84d18294
...@@ -23,7 +23,11 @@ class YHInformationPerfectListVC: YHBaseViewController { ...@@ -23,7 +23,11 @@ class YHInformationPerfectListVC: YHBaseViewController {
if hasSubmitFlag == true { if hasSubmitFlag == true {
headerTitleDesLable.text = "您已提交信息表" headerTitleDesLable.text = "您已提交信息表"
} else { } else {
headerTitleDesLable.text = "您好," + (serviceCenterMainReqVM.informationFillStepModel?.applicantName ?? "-") var name = ""
if let applicant = serviceCenterMainReqVM.informationFillStepModel {
name = applicant.applicantName.defaultStringIfEmpty(detaultValue: "尊敬的客户")
}
headerTitleDesLable.text = "您好," + name
} }
} }
} }
......
...@@ -281,7 +281,9 @@ extension YHCertificateFilterView:UICollectionViewDataSource, UICollectionViewDe ...@@ -281,7 +281,9 @@ extension YHCertificateFilterView:UICollectionViewDataSource, UICollectionViewDe
} }
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
return CGSize(width:floorl((KScreenWidth-Self.margin*2-Self.gap*3)/4.0), height: Self.itemHeight) var width = Double(KScreenWidth-Self.margin*2.0-Self.gap*3.0)
width = floor(width/4.0)
return CGSize(width:width, height: Self.itemHeight)
} }
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, referenceSizeForHeaderInSection:Int) -> CGSize { func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, referenceSizeForHeaderInSection:Int) -> CGSize {
......
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