| | |
| | | let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "_CouponCCell", for: indexPath) as! CouponCCell |
| | | let model = models[indexPath.row] |
| | | cell.courseCouponModel = model |
| | | cell.showDetailClouse = {[weak self] () in |
| | | self?.dismiss(animated:true){ [weak self] in |
| | | let vc = WelfareCouponsListVC() |
| | | self?.handleVC?.navigationController?.pushViewController(vc) |
| | | } |
| | | } |
| | | return cell |
| | | } |
| | | |
| | |
| | | |
| | | extension PaymentResultVC:UICollectionViewDelegateFlowLayout{ |
| | | func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat { |
| | | return 5 |
| | | return 0 |
| | | } |
| | | |
| | | func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumInteritemSpacingForSectionAt section: Int) -> CGFloat { |
| | | return 5 |
| | | return 0 |
| | | } |
| | | |
| | | func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { |
| | | return CGSize(width: JQ_ScreenW, height: 110) |
| | | return CGSize(width: JQ_ScreenW, height: 120) |
| | | } |
| | | } |