杨锴
2024-10-24 e821bea13d9f20905bba3972c4e9c4964994db5d
XQMuse/Root/Home/VC/PaymentOrderResultVC.swift
@@ -29,6 +29,14 @@
                        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
@@ -45,7 +53,7 @@
                                    }
                        }
                        topView.setPrice(price)
        topView.setPrice(courseId: courseId, price: price)
                        Services.paymentSuccess(courseId: courseId).subscribe(onNext: {data in
                                    self.models = data.data ?? []
@@ -122,7 +130,8 @@
            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
            }