无故事王国
2023-09-20 2834569133090d46dd3f28a30100fa74661ef1e1
WanPai/Root/Course/VC/CourseDetailApplyVC.swift
@@ -122,7 +122,7 @@
            guard m != nil else {
            weakSelf.btn_couponInfo.setTitle("去选择", for: .normal);return
            }
         weakSelf.btn_couponInfo.setTitle("-\(m!.favorable)", for: .normal)
         weakSelf.btn_couponInfo.setTitle("-\(m!.favorable.currency())", for: .normal)
         weakSelf.changePrice(weakSelf.selectClassIndex)
        }
    }
@@ -157,7 +157,7 @@
                  var paymentPrice:Double = 0
                  switch payType {
                     case .aliPay,.wechat:
                        paymentPrice = price
                        paymentPrice = discountPrice
                     case .coin:
                        paymentPrice = Double(coin)
                     case .courseNum:break
@@ -170,8 +170,8 @@
                                        YYPaymentManager.shared.sendPaymentRequest(YYAlipayRequest(orderString: m.orderString)) { [weak self] result in
                                            switch result {
                                                case .success:
                                       self?.navigationController?.popViewController(animated: false)
                                                    let vc = PaymentResultVC(result: .success, objType: .courseApply)
//                                       self?.navigationController?.popViewController(animated: false)
                                                    let vc = PaymentResultVC(result: .success, objType: .courseApply,handleVC: self,courseConfigId: model.id)
                                       vc.modalPresentationStyle = .fullScreen
                                                    self?.present(vc, animated: true)
                                                case .cancel:
@@ -185,8 +185,8 @@
                              self?.navigationController?.popViewController(animated: false)
                              break
                                    case .coin:
                              self?.navigationController?.popViewController(animated: false)
                              let vc = PaymentResultVC(result: .success, objType: .courseApply)
//                              self?.navigationController?.popViewController(animated: false)
                              let vc = PaymentResultVC(result: .success, objType: .courseApply,handleVC: self,courseConfigId: model.id)
                              vc.modalPresentationStyle = .fullScreen
                              self?.present(vc, animated: true)
                                    case .courseNum:break