无故事王国
2023-10-24 e9474fe95f7f6c3e1652d6406c00804910cb44ad
WanPai/Root/Other/VC/PaymentResultVC.swift
@@ -22,8 +22,7 @@
      case games //邮箱
    }
    
   @IBOutlet weak var label_title: UILabel!
   @IBOutlet weak var img_paymentState: UIImageView!
    @IBOutlet weak var label_content: UILabel!
    @IBOutlet weak var collectionView: UICollectionView!
@@ -36,8 +35,9 @@
   private var courseConfigId:Int?
   private var handleVC:UIViewController?
   private var models = [CourseCouponModel]()
   private var againClouse:(()->Void)?
   var isExtend:Bool = false
   required init(result:PaymentResult,objType:PaymentObjType,handleVC:UIViewController? = nil,courseConfigId:Int? = nil,againClouse:(()->Void)? = nil) {
        super.init(nibName: nil, bundle: nil)
@@ -101,6 +101,11 @@
                btn_again.setTitle("立即预约", for: .normal)
                btn_back.setTitle("返回首页", for: .normal)
                label_content.text = "报名成功,请及时预约课程上课!"
               if isExtend{
                  btn_back.isHidden = true
                  btn_again.setTitle("返回", for: .normal)
                  label_content.text = "续课成功!"
               }
            case .none:break
            }
            
@@ -171,8 +176,11 @@
            let vc = YardBookingListVC()
            JQ_currentViewController().jq_push(vc: vc)
         case "立即预约":
            navigationController?.popToRootViewController(animated: true)
            navigationController?.qmui_popToRootViewController(animated: true, completion: { () in
               JQ_currentViewController().tabBarController?.selectedIndex = 1
            })
            NotificationCenter.default.post(name: UpdateCurrentStore_Noti, object: nil)
            NotificationCenter.default.post(name: StudentRefresh_Nofi, object: nil)
         case "查看报名":
            let vc = ActivitySignupListVC()
            JQ_currentViewController().jq_push(vc: vc)
@@ -184,6 +192,10 @@
            navigationController?.popViewController(animated: true, {() in
               let vc = RechargeCenterVC()
               JQ_currentViewController().jq_push(vc: vc)
            })
         case "返回":
            navigationController?.popViewController(animated: true, {() in
            })
         default:break
      }
@@ -200,7 +212,7 @@
    }
   override var preferredStatusBarStyle: UIStatusBarStyle{
      return .default
      return .lightContent
   }
}