Showing
1 changed file
with
6 additions
and
4 deletions
| ... | @@ -233,10 +233,12 @@ import UIKit | ... | @@ -233,10 +233,12 @@ import UIKit |
| 233 | } | 233 | } |
| 234 | 234 | ||
| 235 | private func openCouponViewController(with coupon: CouponItemModel) { | 235 | private func openCouponViewController(with coupon: CouponItemModel) { |
| 236 | - let vc = SwiftWarplyFramework.CouponViewController(nibName: "CouponViewController", bundle: Bundle.frameworkBundle) | 236 | + if (coupon.status == 1) { |
| 237 | - vc.coupon = coupon | 237 | + let vc = SwiftWarplyFramework.CouponViewController(nibName: "CouponViewController", bundle: Bundle.frameworkBundle) |
| 238 | - | 238 | + vc.coupon = coupon |
| 239 | - self.navigationController?.pushViewController(vc, animated: true) | 239 | + |
| 240 | + self.navigationController?.pushViewController(vc, animated: true) | ||
| 241 | + } | ||
| 240 | } | 242 | } |
| 241 | 243 | ||
| 242 | private func handleFilterPress(with filter: CouponFilterModel) { | 244 | private func handleFilterPress(with filter: CouponFilterModel) { | ... | ... |
-
Please register or login to post a comment