From 2834569133090d46dd3f28a30100fa74661ef1e1 Mon Sep 17 00:00:00 2001 From: 无故事王国 <841720330@qq.com> Date: 星期三, 20 九月 2023 18:41:27 +0800 Subject: [PATCH] 完善 --- WanPai/Root/Course/VC/CourseDetailApplyVC.swift | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/WanPai/Root/Course/VC/CourseDetailApplyVC.swift b/WanPai/Root/Course/VC/CourseDetailApplyVC.swift index 7b3c290..1f337d3 100644 --- a/WanPai/Root/Course/VC/CourseDetailApplyVC.swift +++ b/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 -- Gitblit v1.7.1