Showing
2 changed files
with
6 additions
and
1 deletions
| ... | @@ -39,18 +39,22 @@ import UIKit | ... | @@ -39,18 +39,22 @@ import UIKit |
| 39 | if (badgeId == "dfy") { | 39 | if (badgeId == "dfy") { |
| 40 | badgeImage.image = UIImage(named: "wallet_banner_dfy", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | 40 | badgeImage.image = UIImage(named: "wallet_banner_dfy", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) |
| 41 | badgeLabel.text = "DEALS FOR YOU" | 41 | badgeLabel.text = "DEALS FOR YOU" |
| 42 | + badgeCountView.isHidden = false | ||
| 42 | 43 | ||
| 43 | } else if (badgeId == "sm") { | 44 | } else if (badgeId == "sm") { |
| 44 | badgeImage.image = UIImage(named: "wallet_banner_sm", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | 45 | badgeImage.image = UIImage(named: "wallet_banner_sm", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) |
| 45 | badgeLabel.text = "SUPERMARKET DEALS" | 46 | badgeLabel.text = "SUPERMARKET DEALS" |
| 47 | + badgeCountView.isHidden = false | ||
| 46 | 48 | ||
| 47 | } else if (badgeId == "gfy") { | 49 | } else if (badgeId == "gfy") { |
| 48 | badgeImage.image = UIImage(named: "wallet_banner_gfy", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | 50 | badgeImage.image = UIImage(named: "wallet_banner_gfy", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) |
| 49 | badgeLabel.text = "FREE COUPONS" | 51 | badgeLabel.text = "FREE COUPONS" |
| 52 | + badgeCountView.isHidden = false | ||
| 50 | 53 | ||
| 51 | } else if (badgeId == "box") { | 54 | } else if (badgeId == "box") { |
| 52 | badgeImage.image = UIImage(named: "wallet_banner_box", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | 55 | badgeImage.image = UIImage(named: "wallet_banner_box", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) |
| 53 | badgeLabel.text = "BOX" | 56 | badgeLabel.text = "BOX" |
| 57 | + badgeCountView.isHidden = true | ||
| 54 | } | 58 | } |
| 55 | 59 | ||
| 56 | badgeCountLabel.text = String(badgeCount) | 60 | badgeCountLabel.text = String(badgeCount) | ... | ... |
| ... | @@ -1388,7 +1388,8 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{ | ... | @@ -1388,7 +1388,8 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{ |
| 1388 | 1388 | ||
| 1389 | if (indexPath.section == 0) { | 1389 | if (indexPath.section == 0) { |
| 1390 | let cell = tableView.dequeueReusableCell(withIdentifier: "WalletActiveCouponsScrollTableViewCellId", for: indexPath) as! WalletActiveCouponsScrollTableViewCell | 1390 | let cell = tableView.dequeueReusableCell(withIdentifier: "WalletActiveCouponsScrollTableViewCellId", for: indexPath) as! WalletActiveCouponsScrollTableViewCell |
| 1391 | - cell.configureCell(dfyCount: self.dfyCoupons.count, smCount: self.unifiedCoupons.count, gfyCount: self.coupons.count, boxCount: self.boxCoupons.count) | 1391 | +// cell.configureCell(dfyCount: self.dfyCoupons.count, smCount: self.unifiedCoupons.count, gfyCount: self.coupons.count, boxCount: self.boxCoupons.count) |
| 1392 | + cell.configureCell(dfyCount: self.dfyCoupons.count, smCount: self.unifiedCoupons.count, gfyCount: self.coupons.count, boxCount: 0) | ||
| 1392 | cell.parent = self | 1393 | cell.parent = self |
| 1393 | return cell | 1394 | return cell |
| 1394 | 1395 | ... | ... |
-
Please register or login to post a comment