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