Commit a05ff01c0fd4e478c8b49fe8dccf761ecd3dda06

Authored by “张旭”
1 parent e82e1e30

认证主图加背景色

metaCode/Classes/Main/HomePage/Controller/AuthMainController/CNMetaCodeHomePageController.swift
... ... @@ -393,6 +393,7 @@ class CNMetaCodeHomePageController:CNLiveBaseViewController, NewPagedFlowViewDel
393 393 bannerView?.layer.cornerRadius = 4
394 394 bannerView?.layer.masksToBounds = false
395 395 }
  396 +
396 397 let identityModel = dataArray[index] as! StandListModel
397 398 bannerView?.idModel = identityModel
398 399 if (identityModel.auth == true){
... ...
metaCode/Classes/Main/HomePage/View/VerticalViews/CNCustomIndexView.swift
... ... @@ -119,10 +119,12 @@ class CNCustomIndexView:PGIndexBannerSubiew, UIScrollViewDelegate, WJColorChange
119 119 _idModel = newValue!
120 120 self.mainView.idModel = newValue!
121 121  
  122 + //上滑页
122 123 self.upSlideView.idModel = _idModel
123 124 self.upSlideView.type = _idModel?.downType
124 125 self.upSlideView.downPath = _idModel?.downPath
125 126  
  127 + //下滑页
126 128 self.downSlideView.idModel = _idModel
127 129 self.downSlideView.type = _idModel?.upType
128 130 self.downSlideView.downPath = _idModel?.upPath
... ... @@ -170,6 +172,9 @@ class CNCustomIndexView:PGIndexBannerSubiew, UIScrollViewDelegate, WJColorChange
170 172 let W = self.width
171 173 let H = W*1.5
172 174 let mainView = CNMainView.init(frame: CGRectMake(0, self.frame.size.height + KSreenHeight*0.16,W, H))
  175 + mainView.backgroundColor = .lightGray
  176 + mainView.clipsToBounds = true
  177 + mainView.layer.cornerRadius = 20
173 178 return mainView
174 179 }()
175 180  
... ... @@ -312,7 +317,7 @@ class CNCustomIndexView:PGIndexBannerSubiew, UIScrollViewDelegate, WJColorChange
312 317 }){
313 318 // print("leftView\(leftView)")
314 319 }else{
315   -
  320 + print("222222222nilleftView")
316 321 }
317 322 }
318 323 if rightView == nil{
... ... @@ -326,7 +331,7 @@ class CNCustomIndexView:PGIndexBannerSubiew, UIScrollViewDelegate, WJColorChange
326 331 }){
327 332 // print("rightView\(rightView)")
328 333 }else{
329   -
  334 + print("222222222nilrightView")
330 335 }
331 336 }
332 337  
... ...