Commit 1dbc22ef authored by Alex朱枝文's avatar Alex朱枝文

格式修改

parent 0ccefffa
......@@ -61,9 +61,9 @@ class YHTalentProgramEvaluationView: UIView {
}
if !retUrl.contains("navigationH=") {
if retUrl.contains("?") {
retUrl = retUrl + "&navigationH=\(k_Height_NavigationtBarAndStatuBar)"
retUrl += "&navigationH=\(k_Height_NavigationtBarAndStatuBar)"
} else {
retUrl = retUrl + "?navigationH=\(k_Height_NavigationtBarAndStatuBar)"
retUrl += "?navigationH=\(k_Height_NavigationtBarAndStatuBar)"
}
}
vc.url = retUrl
......
......@@ -299,7 +299,9 @@ extension YHVideoProgressControl: UICollectionViewDataSource, UICollectionViewDe
}
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "SegmentCell", for: indexPath) as! SegmentCell
guard segments.count > indexPath.item, let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "SegmentCell", for: indexPath) as? SegmentCell else {
return UICollectionViewCell()
}
cell.configure(with: segments[indexPath.item], isSelected: indexPath.item == currentSegmentIndex)
return cell
}
......
......@@ -14,8 +14,7 @@ class YHMemberCenterViewModel: YHBaseViewModel {
func getMemberInfo(_ callBack: @escaping (_ success: Bool, _ error: YHErrorModel?) -> Void) {
let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.Member.memberBenefits
_ = YHNetRequest.getRequest(url: strUrl) {
[weak self] json, _ in
_ = YHNetRequest.getRequest(url: strUrl) { [weak self] json, _ in
// 1. json字符串 转 对象
guard let self = self else { return }
......
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