| | |
| | | self.btn_back.setTitle("返回首页", for: .normal) |
| | | self.btn_again.setTitle("查看详情", for: .normal) |
| | | NotificationCenter.default.post(name: UpdateWelfare_Noti, object: nil) |
| | | |
| | | NotificationCenter.default.post(name: StudentRefresh_Nofi, object: nil) |
| | | |
| | | case .fail(let string, let code): |
| | | self.btn_back.setTitle("返回", for: .normal) |
| | | self.btn_again.setTitle("再次支付", for: .normal) |
| | |
| | | label_content.text = str |
| | | case .success: |
| | | label_content.text = "支付成功,恭喜您成为玩湃会员!" |
| | | NotificationCenter.default.post(name: UpdateWelfare_Noti, object: nil) |
| | | NotificationCenter.default.post(name: StudentRefresh_Nofi, object: nil) |
| | | case .none:break |
| | | } |
| | | Services.queryMemberCoupon(menthod: 2).subscribe(onNext: {[weak self] data in |
| | |
| | | }.disposed(by: disposeBag) |
| | | |
| | | case .courseApply: |
| | | NotificationCenter.default.post(name: StudentRefresh_Nofi, object: nil) |
| | | //课时购买 |
| | | btn_backHome.isHidden = true |
| | | if let id = courseConfigId{ |
| | |
| | | label_content.text = str |
| | | if code == 2{btn_again.setTitle("去充值", for: .normal)} |
| | | case .success: |
| | | NotificationCenter.default.post(name: UpdateWelfare_Noti, object: nil) |
| | | NotificationCenter.default.post(name: StudentRefresh_Nofi, object: nil) |
| | | btn_again.setTitle("立即预约", for: .normal) |
| | | btn_back.setTitle("返回首页", for: .normal) |
| | | label_content.text = "报名成功,请及时预约运动营上课!" |
| | |
| | | label_content.text = str |
| | | if code == 2{btn_again.setTitle("去充值", for: .normal)} |
| | | case .success: |
| | | NotificationCenter.default.post(name: UpdateWelfare_Noti, object: nil) |
| | | NotificationCenter.default.post(name: StudentRefresh_Nofi, object: nil) |
| | | btn_again.setTitle("立即预约", for: .normal) |
| | | btn_back.setTitle("返回首页", for: .normal) |
| | | label_content.text = "报名成功,请及时预约运动营上课!" |
| | |
| | | label_content.text = str |
| | | if code == 2{btn_again.setTitle("去充值", for: .normal)} |
| | | case .success: |
| | | NotificationCenter.default.post(name: UpdateWelfare_Noti, object: nil) |
| | | NotificationCenter.default.post(name: StudentRefresh_Nofi, object: nil) |
| | | btn_again.setTitle("查看报名", for: .normal) |
| | | btn_back.setTitle("返回首页", for: .normal) |
| | | label_content.text = "报名成功,请注意活动开始时间!" |
| | |
| | | btn_back.setTitle("返回", for: .normal) |
| | | if code == 2{btn_again.setTitle("去充值", for: .normal)} |
| | | case .success: |
| | | NotificationCenter.default.post(name: UpdateWelfare_Noti, object: nil) |
| | | NotificationCenter.default.post(name: StudentRefresh_Nofi, object: nil) |
| | | btn_again.setTitle("查看预约", for: .normal) |
| | | btn_back.setTitle("返回首页", for: .normal) |
| | | label_content.text = "预约成功,请注意预约开始时间!" |
| | |
| | | label_content.text = str |
| | | if code == 2{btn_again.setTitle("去充值", for: .normal)} |
| | | case .success: |
| | | NotificationCenter.default.post(name: UpdateWelfare_Noti, object: nil) |
| | | btn_again.isHidden = true |
| | | btn_back.setTitleColor(.white, for: .normal) |
| | | btn_back.backgroundColor = Def_ThemeColor |
| | |
| | | case .exchange: |
| | | switch result { |
| | | case .success: |
| | | NotificationCenter.default.post(name: UpdateWelfare_Noti, object: nil) |
| | | NotificationCenter.default.post(name: StudentRefresh_Nofi, object: nil) |
| | | label_content.text = "兑换成功" |
| | | btn_again.setTitle("查看详情", for: .normal) |
| | | btn_back.setTitle("返回首页", for: .normal) |