| | |
| | | timer?.invalidate() |
| | | } |
| | | |
| | | override func viewWillDisappear(_ animated: Bool) { |
| | | super.viewWillDisappear(animated) |
| | | navigationController?.isNavigationBarHidden = false |
| | | } |
| | | |
| | | override func viewWillAppear(_ animated: Bool) { |
| | | super.viewWillAppear(animated) |
| | | navigationController?.isNavigationBarHidden = true |
| | | } |
| | | |
| | | override func viewDidAppear(_ animated: Bool) { |
| | | super.viewDidAppear(animated) |
| | | if timer != nil{ |
| | |
| | | coinCollectionView.delegate = self |
| | | coinCollectionView.dataSource = self |
| | | coinCollectionView.register(UINib(nibName: "WelfareCoinCCell", bundle: nil), forCellWithReuseIdentifier: "_WelfareCoinCCell") |
| | | } |
| | | |
| | | @IBAction func userProfileAction(_ sender: UIButton) { |
| | | let vc = ProfileVC() |
| | | push(vc: vc) |
| | | } |
| | | |
| | | @IBAction func billAction(_ sender: UIButton) { |
| | | let vc = WelfareBillListVC() |
| | | push(vc: vc) |
| | | } |
| | | |
| | | @IBAction func couponsAction(_ sender: UIButton) { |
| | | let vc = WelfareCouponsListVC() |
| | | push(vc: vc) |
| | | } |
| | | |
| | | @IBAction func rechargeAction(_ sender: UIButton) { |
| | | let vc = RechargeRecordVC() |
| | | push(vc: vc) |
| | | } |
| | | |
| | | private func autoScroll(){ |
| | |
| | | } |
| | | |
| | | extension WelfareVC:UICollectionViewDelegate{ |
| | | |
| | | func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) { |
| | | let vc = WelfareRedeemGoodsDetailVC() |
| | | push(vc: vc) |
| | | } |
| | | } |
| | | |
| | | extension WelfareVC:UICollectionViewDataSource{ |