无故事王国
2023-10-23 29ca792f9cd6216f5618cf8706d35a51b57b1376
WanPai/Root/Other/VC/PaymentResultVC.swift
@@ -72,8 +72,8 @@
         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
@@ -96,6 +96,7 @@
                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)
@@ -107,9 +108,10 @@
            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)
@@ -122,9 +124,10 @@
            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)
@@ -140,6 +143,7 @@
                  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)
@@ -164,22 +168,23 @@
      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
      }
    }