无故事王国
2023-11-24 0956065363582c474fdead4b923adced42138641
WanPai/Root/Other/VC/PaymentResultVC.swift
@@ -78,7 +78,8 @@
                  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)
@@ -97,6 +98,8 @@
                  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
@@ -112,7 +115,6 @@
            }.disposed(by: disposeBag)
        case .courseApply:
            NotificationCenter.default.post(name: StudentRefresh_Nofi, object: nil)
            //课时购买
            btn_backHome.isHidden = true
            if let id = courseConfigId{
@@ -132,6 +134,8 @@
                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 = "报名成功,请及时预约运动营上课!"
@@ -153,6 +157,8 @@
                  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 = "报名成功,请及时预约运动营上课!"
@@ -168,6 +174,8 @@
                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 = "报名成功,请注意活动开始时间!"
@@ -184,6 +192,8 @@
               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 = "预约成功,请注意预约开始时间!"
@@ -200,6 +210,7 @@
                  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
@@ -211,6 +222,8 @@
         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)