杨锴
2024-09-02 9557d84559aabaa4c0c976804a90197b92e2dbe0
XQMuse/Root/Plans/PlanGuideVC.swift
@@ -19,7 +19,7 @@
            @IBOutlet weak var label_subTitle: UILabel!
            @IBOutlet weak var label_info: UILabel!
            @IBOutlet weak var btn_custom: UIButton!
            private lazy var player:AVPlayer = {
                        let bgPath = Bundle.main.url(forResource: "bg_movie", withExtension: "mov")
                        let p = AVPlayer(url: bgPath!)
@@ -33,10 +33,10 @@
                        return pLayer
            }()
    override func viewDidLoad() {
        super.viewDidLoad()
            override func viewDidLoad() {
                        super.viewDidLoad()
    }
            }
            override func setUI() {
@@ -75,7 +75,10 @@
                                    self?.player.play()
                        }
                        NotificationCenter.default.rx.notification(PlantGuideQuit_Noti).take(until: self.rx.deallocated).subscribe(onNext: {daa in
                        NotificationCenter.default.rx.notification(PlantGuideQuit_Noti).take(until: self.rx.deallocated).subscribe(onNext: {data in
                                    if data.object as? Bool == true{
                                    }
                                    self.dismiss(animated: true)
                        }).disposed(by: disposeBag)
            }
@@ -87,9 +90,20 @@
            @IBAction func backAction(_ sender: UIButton) {
                        self.dismiss(animated: true)
            }
            @IBAction func customAction(_ sender: UIButton) {
                        let vc = PlanGuide_1_VC()
                        jq_push(vc: vc)
                        PlanGuidePromptView.show { type in
                                    switch type {
                                                case .seeOther:
                                                            let vc = PlanGuide_1_VC()
                                                            self.jq_push(vc: vc)
                                                case .toSeting:
                                                            self.dismiss(animated: true) {
                                                                        let vc = BackgroundVoiceVC()
                                                                        vc.hidesBottomBarWhenPushed = true
                                                                        JQ_currentNavigationController().pushViewController(vc)
                                                            }
                                    }
                        }
            }
}