| | |
| | | collectionView.isHidden = true |
| | | switch result { |
| | | case .fail(let str): |
| | | label_title.text = "支付失败" |
| | | btn_again.setTitle("再次支付", for: .normal) |
| | | btn_back.setTitle("返回", for: .normal) |
| | | img_paymentState.image = UIImage(named: "icon_fail") |
| | | label_content.text = str |
| | | case .success: |
| | | label_title.text = "支付成功" |
| | | btn_again.isHidden = true |
| | | btn_back.setTitleColor(.white, for: .normal) |
| | | btn_back.backgroundColor = Def_ThemeColor |
| | | btn_back.setTitle("选择游戏", for: .normal) |
| | | btn_back.setTitle("我的数据", for: .normal) |
| | | img_paymentState.image = UIImage(named: "icon_success") |
| | | label_content.text = "支付成功,请选择游戏!" |
| | | label_content.text = "支付成功" |
| | | case .none:break |
| | | } |
| | | |
| | |
| | | if let handleVC{ |
| | | handleVC.navigationController?.popToRootViewController(animated: true) |
| | | } |
| | | dismiss(animated: true) |
| | | dismiss(animated: true) { |
| | | JQ_currentViewController().jq_push(vc: GamesDataSourceVC()) |
| | | } |
| | | } |
| | | } |
| | | |