Commit 6c69f23e71b79db82bc6a0a07bf5e37db9512db2

Authored by “张旭”
1 parent 23d1b89d

隐藏认证-左右角落的 downSlideView , upSlideView

metaCode/Classes/Main/HomePage/Controller/AuthMainController/CNMetaCodeHomePageController.swift
... ... @@ -499,6 +499,41 @@ class CNMetaCodeHomePageController:CNLiveBaseViewController, NewPagedFlowViewDel
499 499  
500 500 self.backgroupView.replaceCurerrentApearView(fromIndex: self.backgroupView.currentApearViewIndex, toIndex: toIndex)
501 501  
  502 + if let toBannerView = self.pageFlowView.cells[toIndex] as? CNCustomIndexView{
  503 + UIView.animate(withDuration: 0.2) {
  504 + toBannerView.downSlideView.frame = CGRectMake(-LeftGap, 0, KSreenWidth, KSreenHeight)
  505 + toBannerView.downSlideView.upSlideVC.view.height = KSreenHeight-DownSlideBottomViewHeight
  506 + toBannerView.downSlideView.shopConsoleVC.view.height = KSreenHeight-DownSlideBottomViewHeight
  507 + toBannerView.upSlideView.frame = CGRectMake(-LeftGap, KSreenHeight*2,KSreenWidth, KSreenHeight)
  508 + }
  509 +
  510 + }
  511 + if let toBannerViewLeftView = self.pageFlowView.cells[toIndex-1] as? CNCustomIndexView{
  512 + UIView.animate(withDuration: 0.2) {
  513 + toBannerViewLeftView.downSlideView.frame = CGRectMake(-LeftGap, 0, 0, 0)
  514 + toBannerViewLeftView.upSlideView.frame = CGRectMake(-LeftGap, KSreenHeight*2,0, 0)
  515 + }
  516 + }
  517 + if let toBannerViewRightView = self.pageFlowView.cells[toIndex+1] as? CNCustomIndexView{
  518 + UIView.animate(withDuration: 0.2) {
  519 + toBannerViewRightView.downSlideView.frame = CGRectMake(-LeftGap, 0, 0, 0)
  520 + toBannerViewRightView.upSlideView.frame = CGRectMake(-LeftGap, KSreenHeight*2,0, 0)
  521 + }
  522 + }
  523 +
  524 +// for (idx,obj) in self.pageFlowView.cells.enumerated(){
  525 +// let bannerView = obj as? CNCustomIndexView
  526 +// if idx == toIndex{
  527 +// bannerView?.downSlideView.frame = CGRectMake(-LeftGap, 0, KSreenWidth, KSreenHeight)
  528 +// bannerView?.downSlideView.upSlideVC.view.height = KSreenHeight-DownSlideBottomViewHeight
  529 +// bannerView?.downSlideView.shopConsoleVC.view.height = KSreenHeight-DownSlideBottomViewHeight
  530 +//
  531 +// bannerView?.upSlideView.frame = CGRectMake(-LeftGap, KSreenHeight*2,KSreenWidth, KSreenHeight)
  532 +// }else{
  533 +// bannerView?.downSlideView.frame = CGRectMake(-LeftGap, 0, 0, 0)
  534 +// bannerView?.upSlideView.frame = CGRectMake(-LeftGap, KSreenHeight*2,0, 0)
  535 +// }
  536 +// }
502 537 }
503 538  
504 539  
... ...