| | |
| | | super.viewDidLoad() |
| | | title = "支付结果" |
| | | |
| | | //如果从支付过来的,移除支付 |
| | | navigationController!.viewControllers.removeAll { vc in |
| | | if vc is PaymentOrderResultVC || vc is PaymentOrderVC{ |
| | | return true |
| | | } |
| | | return false |
| | | } |
| | | |
| | | NotificationCenter.default.post(name: CourseRefresh_Noti, object: nil) |
| | | |
| | | yy_popBlock = { [weak self] () in |
| | |
| | | } |
| | | } |
| | | |
| | | topView.setPrice(price) |
| | | topView.setPrice(courseId: courseId, price: price) |
| | | |
| | | Services.paymentSuccess(courseId: courseId).subscribe(onNext: {data in |
| | | self.models = data.data ?? [] |
| | |
| | | |
| | | func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { |
| | | let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "_HomeRelaxBanner_2_1_CCell", for: indexPath) as! HomeRelaxBanner_2_1_CCell |
| | | cell.backgroundColor = .jq_randomColor |
| | | let model = models[indexPath.row] |
| | | cell.setCourseModel(model) |
| | | return cell |
| | | } |
| | | |