| | |
| | | btn_backHome.isHidden = result != .success |
| | | collectionView.isHidden = result != .success |
| | | switch result { |
| | | case .fail: |
| | | label_content.text = "支付失败,这是失败原因!" |
| | | case .fail(let str, _): |
| | | label_content.text = str |
| | | case .success: |
| | | label_content.text = "支付成功,恭喜您成为玩湃会员!并获得优惠券!" |
| | | case .none:break |
| | |
| | | btn_again.setTitle("再次支付", for: .normal) |
| | | btn_back.setTitle("返回", for: .normal) |
| | | label_content.text = str |
| | | if code == 3{btn_again.setTitle("去充值", for: .normal)} |
| | | case .success: |
| | | btn_again.setTitle("立即预约", for: .normal) |
| | | btn_back.setTitle("返回首页", for: .normal) |
| | |
| | | btn_backHome.isHidden = true |
| | | collectionView.isHidden = true |
| | | switch result { |
| | | case .fail: |
| | | case .fail(let str, let code): |
| | | btn_back.setTitle("返回", for: .normal) |
| | | label_content.text = "报名失败,这是失败原因!" |
| | | label_content.text = str |
| | | if code == 3{btn_again.setTitle("去充值", for: .normal)} |
| | | case .success: |
| | | btn_again.setTitle("查看报名", for: .normal) |
| | | btn_back.setTitle("返回首页", for: .normal) |
| | |
| | | collectionView.isHidden = true |
| | | switch result { |
| | | case .fail(let str,let code): |
| | | label_content.text = str |
| | | btn_again.setTitle("再次支付", for: .normal) |
| | | btn_back.setTitle("返回", for: .normal) |
| | | label_content.text = str |
| | | if code == 3{btn_again.setTitle("去充值", for: .normal)} |
| | | case .success: |
| | | btn_again.setTitle("查看预约", for: .normal) |
| | | btn_back.setTitle("返回首页", for: .normal) |
| | |
| | | btn_again.setTitle("再次支付", for: .normal) |
| | | btn_back.setTitle("返回", for: .normal) |
| | | label_content.text = str |
| | | if code == 3{btn_again.setTitle("去充值", for: .normal)} |
| | | case .success: |
| | | btn_again.isHidden = true |
| | | btn_back.setTitleColor(.white, for: .normal) |
| | |
| | | |
| | | switch str{ |
| | | case "查看预约": |
| | | dismiss(animated:true){ [weak self] in |
| | | let vc = YardBookingListVC() |
| | | self?.handleVC?.navigationController?.pushViewController(vc) |
| | | } |
| | | let vc = YardBookingListVC() |
| | | JQ_currentViewController().jq_push(vc: vc) |
| | | case "立即预约": |
| | | navigationController?.popToRootViewController(animated: true) |
| | | |
| | | NotificationCenter.default.post(name: UpdateCurrentStore_Noti, object: nil) |
| | | case "查看报名": |
| | | dismiss(animated:true){ [weak self] in |
| | | let vc = ActivitySignupListVC() |
| | | self?.handleVC?.navigationController?.pushViewController(vc) |
| | | } |
| | | let vc = ActivitySignupListVC() |
| | | JQ_currentViewController().jq_push(vc: vc) |
| | | case "再次支付": |
| | | navigationController?.popViewController(animated: true, {[weak self] in |
| | | self?.againClouse?() |
| | | }) |
| | | case "去充值": |
| | | navigationController?.popViewController(animated: true, {() in |
| | | let vc = RechargeCenterVC() |
| | | JQ_currentViewController().jq_push(vc: vc) |
| | | }) |
| | | default:break |
| | | } |
| | | } |